]>
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 | ||
0f774bef 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 |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 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 { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 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 *); | |
0f774bef 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 | ||
0f774bef | 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 | ||
0f774bef 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 | ||
540 | DECLARE_DEF_STRING(EmptyString); | |
423f194a | 541 | // DECLARE_DEF_STRING(PanelNameStr); |
d14a1e28 RD |
542 | |
543 | ||
544 | #if ! wxUSE_HOTKEY | |
545 | enum wxHotkeyModifier | |
546 | { | |
547 | wxMOD_NONE = 0, | |
548 | wxMOD_ALT = 1, | |
549 | wxMOD_CONTROL = 2, | |
550 | wxMOD_SHIFT = 4, | |
551 | wxMOD_WIN = 8 | |
552 | }; | |
553 | #define wxEVT_HOTKEY 9999 | |
554 | #endif | |
555 | ||
556 | wxString wxObject_GetClassName(wxObject *self){ | |
557 | return self->GetClassInfo()->GetClassName(); | |
558 | } | |
559 | void wxObject_Destroy(wxObject *self){ | |
560 | delete self; | |
561 | } | |
562 | ||
563 | #ifndef __WXMAC__ | |
564 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
565 | #endif | |
566 | ||
423f194a | 567 | PyObject *wxSize_Get(wxSize *self){ |
d14a1e28 RD |
568 | wxPyBeginBlockThreads(); |
569 | PyObject* tup = PyTuple_New(2); | |
570 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
571 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
572 | wxPyEndBlockThreads(); | |
573 | return tup; | |
574 | } | |
575 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
576 | self->x = x; | |
577 | self->y = y; | |
578 | } | |
423f194a | 579 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d14a1e28 RD |
580 | wxPyBeginBlockThreads(); |
581 | PyObject* tup = PyTuple_New(2); | |
582 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
583 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
584 | wxPyEndBlockThreads(); | |
585 | return tup; | |
586 | } | |
587 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
588 | self->x = x; | |
589 | self->y = y; | |
590 | } | |
423f194a | 591 | PyObject *wxPoint_Get(wxPoint *self){ |
d14a1e28 RD |
592 | wxPyBeginBlockThreads(); |
593 | PyObject* tup = PyTuple_New(2); | |
594 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
595 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
596 | wxPyEndBlockThreads(); | |
597 | return tup; | |
598 | } | |
599 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
600 | self->x = x; | |
601 | self->y = y; | |
602 | self->width = width; | |
603 | self->height = height; | |
604 | } | |
423f194a | 605 | PyObject *wxRect_Get(wxRect *self){ |
d14a1e28 RD |
606 | wxPyBeginBlockThreads(); |
607 | PyObject* tup = PyTuple_New(4); | |
608 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
609 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
610 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
611 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
612 | wxPyEndBlockThreads(); | |
613 | return tup; | |
614 | } | |
615 | ||
616 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
617 | wxRegion reg1(*r1); | |
618 | wxRegion reg2(*r2); | |
619 | wxRect dest(0,0,0,0); | |
620 | PyObject* obj; | |
621 | ||
622 | reg1.Intersect(reg2); | |
623 | dest = reg1.GetBox(); | |
624 | ||
625 | if (dest != wxRect(0,0,0,0)) { | |
626 | wxPyBeginBlockThreads(); | |
627 | wxRect* newRect = new wxRect(dest); | |
423f194a | 628 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
d14a1e28 RD |
629 | wxPyEndBlockThreads(); |
630 | return obj; | |
631 | } | |
632 | Py_INCREF(Py_None); | |
633 | return Py_None; | |
634 | } | |
635 | ||
636 | ||
637 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
638 | PyObject* o2; | |
639 | PyObject* o3; | |
640 | ||
641 | if (!target) { | |
642 | target = o; | |
643 | } else if (target == Py_None) { | |
644 | Py_DECREF(Py_None); | |
645 | target = o; | |
646 | } else { | |
647 | if (!PyTuple_Check(target)) { | |
648 | o2 = target; | |
649 | target = PyTuple_New(1); | |
650 | PyTuple_SetItem(target, 0, o2); | |
651 | } | |
652 | o3 = PyTuple_New(1); | |
653 | PyTuple_SetItem(o3, 0, o); | |
654 | ||
655 | o2 = target; | |
656 | target = PySequence_Concat(o2, o3); | |
657 | Py_DECREF(o2); | |
658 | Py_DECREF(o3); | |
659 | } | |
660 | return target; | |
661 | } | |
662 | ||
663 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
664 | self->m_x = x; | |
665 | self->m_y = y; | |
666 | } | |
423f194a | 667 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d14a1e28 RD |
668 | wxPyBeginBlockThreads(); |
669 | PyObject* tup = PyTuple_New(2); | |
670 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
671 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
672 | wxPyEndBlockThreads(); | |
673 | return tup; | |
674 | } | |
675 | ||
676 | #include "wx/wxPython/pyistream.h" | |
677 | ||
678 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
679 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
680 | if (wxis) | |
681 | return new wxPyInputStream(wxis); | |
682 | else | |
683 | return NULL; | |
684 | } | |
685 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
686 | // We use only strings for the streams, not unicode | |
687 | PyObject* str = PyObject_Str(obj); | |
688 | if (! str) { | |
689 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
690 | return; | |
691 | } | |
692 | self->Write(PyString_AS_STRING(str), | |
693 | PyString_GET_SIZE(str)); | |
694 | Py_DECREF(str); | |
695 | } | |
696 | ||
697 | #include "wx/wxPython/pyistream.h" | |
698 | ||
699 | ||
700 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
701 | { | |
702 | public: | |
703 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
704 | ||
705 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
706 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
707 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
708 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
709 | ||
710 | wxString GetProtocol(const wxString& location) { | |
711 | return wxFileSystemHandler::GetProtocol(location); | |
712 | } | |
713 | ||
714 | wxString GetLeftLocation(const wxString& location) { | |
715 | return wxFileSystemHandler::GetLeftLocation(location); | |
716 | } | |
717 | ||
718 | wxString GetAnchor(const wxString& location) { | |
719 | return wxFileSystemHandler::GetAnchor(location); | |
720 | } | |
721 | ||
722 | wxString GetRightLocation(const wxString& location) { | |
723 | return wxFileSystemHandler::GetRightLocation(location); | |
724 | } | |
725 | ||
726 | wxString GetMimeTypeFromExt(const wxString& location) { | |
727 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
728 | } | |
729 | ||
730 | PYPRIVATE; | |
731 | }; | |
732 | ||
733 | ||
734 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
735 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
736 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
737 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
738 | ||
739 | ||
740 | wxString wxFileSystem_URLToFileName(const wxString& url) { | |
741 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
742 | return fname.GetFullPath(); | |
743 | } | |
744 | ||
745 | ||
746 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
747 | wxImage& image, | |
748 | long type) { | |
749 | wxMemoryFSHandler::AddFile(filename, image, type); | |
750 | } | |
751 | ||
752 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
753 | const wxBitmap& bitmap, | |
754 | long type) { | |
755 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
756 | } | |
757 | ||
758 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
759 | PyObject* data) { | |
760 | wxMemoryFSHandler::AddFile(filename, | |
761 | // TODO: Verify data type | |
762 | (void*)PyString_AsString(data), | |
763 | (size_t)PyString_Size(data)); | |
764 | } | |
765 | ||
766 | ||
767 | #include "wx/wxPython/pyistream.h" | |
768 | ||
769 | wxImage *new_wxImage(int width,int height,bool clear){ | |
770 | if (width > 0 && height > 0) | |
771 | return new wxImage(width, height, clear); | |
772 | else | |
773 | return new wxImage; | |
774 | } | |
775 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
776 | return new wxImage(bitmap.ConvertToImage()); | |
777 | } | |
778 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
779 | // Copy the source data so the wxImage can clean it up later | |
780 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
781 | if (copy == NULL) { | |
782 | PyErr_NoMemory(); | |
783 | return NULL; | |
784 | } | |
785 | memcpy(copy, data, width*height*3); | |
423f194a | 786 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
787 | } |
788 | PyObject *wxImage_GetData(wxImage *self){ | |
789 | unsigned char* data = self->GetData(); | |
790 | int len = self->GetWidth() * self->GetHeight() * 3; | |
791 | PyObject* rv; | |
792 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
793 | return rv; | |
794 | } | |
795 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
796 | unsigned char* dataPtr; | |
797 | ||
798 | if (! PyString_Check(data)) { | |
799 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
800 | return /* NULL */ ; | |
801 | } | |
802 | ||
803 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
804 | dataPtr = (unsigned char*) malloc(len); | |
805 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
806 | self->SetData(dataPtr); | |
807 | // wxImage takes ownership of dataPtr... | |
808 | } | |
809 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
810 | unsigned char* data = self->GetData(); | |
811 | int len = self->GetWidth() * self->GetHeight() * 3; | |
812 | PyObject* rv; | |
813 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
814 | return rv; | |
815 | } | |
816 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
817 | unsigned char* buffer; | |
818 | int size; | |
819 | ||
820 | wxPyBeginBlockThreads(); | |
821 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
822 | goto done; | |
823 | ||
824 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
825 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
826 | goto done; | |
827 | } | |
828 | self->SetData(buffer); | |
829 | done: | |
830 | wxPyEndBlockThreads(); | |
831 | } | |
832 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
833 | unsigned char* data = self->GetAlpha(); | |
834 | if (! data) { | |
835 | RETURN_NONE(); | |
836 | } else { | |
837 | int len = self->GetWidth() * self->GetHeight(); | |
838 | PyObject* rv; | |
839 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
840 | return rv; | |
841 | } | |
842 | } | |
843 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
844 | unsigned char* dataPtr; | |
845 | ||
846 | if (! PyString_Check(data)) { | |
847 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
848 | return /* NULL */ ; | |
849 | } | |
850 | ||
851 | size_t len = self->GetWidth() * self->GetHeight(); | |
852 | dataPtr = (unsigned char*) malloc(len); | |
853 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
854 | self->SetAlpha(dataPtr); | |
855 | // wxImage takes ownership of dataPtr... | |
856 | } | |
857 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
858 | unsigned char* data = self->GetAlpha(); | |
859 | int len = self->GetWidth() * self->GetHeight(); | |
860 | PyObject* rv; | |
861 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
862 | return rv; | |
863 | } | |
864 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
865 | unsigned char* buffer; | |
866 | int size; | |
867 | ||
868 | wxPyBeginBlockThreads(); | |
869 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
870 | goto done; | |
871 | ||
872 | if (size != self->GetWidth() * self->GetHeight()) { | |
873 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
874 | goto done; | |
875 | } | |
876 | self->SetAlpha(buffer); | |
877 | done: | |
878 | wxPyEndBlockThreads(); | |
879 | } | |
880 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
881 | wxBitmap bitmap(*self); | |
882 | return bitmap; | |
883 | } | |
884 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
885 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
886 | wxBitmap bitmap( mono, 1 ); | |
887 | return bitmap; | |
888 | } | |
889 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
890 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
891 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
892 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
893 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
894 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
895 | if (PyCallable_Check(func)) { | |
896 | self->Connect(id, lastId, eventType, | |
897 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
898 | new wxPyCallback(func)); | |
899 | } | |
900 | else if (func == Py_None) { | |
901 | self->Disconnect(id, lastId, eventType, | |
902 | (wxObjectEventFunction) | |
903 | &wxPyCallback::EventThunker); | |
904 | } | |
905 | else { | |
906 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
907 | } | |
908 | } | |
909 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
910 | return self->Disconnect(id, lastId, eventType, | |
911 | (wxObjectEventFunction) | |
912 | &wxPyCallback::EventThunker); | |
913 | } | |
914 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
915 | if (_self && _self != Py_None) { | |
916 | self->SetClientObject(new wxPyOORClientData(_self)); | |
917 | } | |
918 | else { | |
919 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
920 | if (data) { | |
921 | self->SetClientObject(NULL); // This will delete it too | |
922 | } | |
923 | } | |
924 | } | |
925 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
41f1cec7 RD |
926 | #if wxUSE_UNICODE |
927 | return self->m_uniChar; | |
928 | #else | |
d14a1e28 | 929 | return 0; |
41f1cec7 | 930 | #endif |
d14a1e28 RD |
931 | } |
932 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
933 | self->m_size = size; | |
934 | } | |
935 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
936 | self->m_pos = pos; | |
937 | } | |
938 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
939 | int count = self->GetNumberOfFiles(); | |
940 | wxString* files = self->GetFiles(); | |
941 | PyObject* list = PyList_New(count); | |
942 | ||
943 | if (!list) { | |
944 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
945 | return NULL; | |
946 | } | |
947 | ||
948 | for (int i=0; i<count; i++) { | |
41f1cec7 | 949 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
950 | } |
951 | return list; | |
952 | } | |
953 | ||
954 | ||
955 | wxPyApp *new_wxPyApp(){ | |
956 | wxPythonApp = new wxPyApp(); | |
957 | return wxPythonApp; | |
958 | } | |
959 | int PyApp_GetComCtl32Version(){ PyErr_SetNone(PyExc_NotImplementedError); return 0; } | |
960 | ||
961 | void wxApp_CleanUp() { | |
962 | __wxPyCleanup(); | |
963 | } | |
964 | ||
965 | ||
966 | wxPyApp* wxGetApp() { | |
967 | return (wxPyApp*)wxTheApp; | |
968 | } | |
969 | ||
970 | ||
971 | ||
423f194a | 972 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
973 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
974 | wxWindowList& list = self->GetChildren(); | |
975 | return wxPy_ConvertList(&list); | |
976 | } | |
977 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
978 | ||
979 | ||
980 | ||
423f194a | 981 | return False; |
d14a1e28 RD |
982 | |
983 | } | |
984 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
985 | ||
986 | ||
987 | ||
423f194a | 988 | return False; |
d14a1e28 RD |
989 | |
990 | } | |
991 | long wxWindow_GetHandle(wxWindow *self){ | |
992 | return wxPyGetWinHandle(self); | |
993 | } | |
994 | ||
995 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
996 | return wxWindow::FindWindowById(id, parent); | |
997 | } | |
998 | ||
999 | wxWindow* wxFindWindowByName( const wxString& name, | |
1000 | const wxWindow *parent = NULL ) { | |
1001 | return wxWindow::FindWindowByName(name, parent); | |
1002 | } | |
1003 | ||
1004 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1005 | const wxWindow *parent = NULL ) { | |
1006 | return wxWindow::FindWindowByLabel(label, parent); | |
1007 | } | |
1008 | ||
1009 | ||
1010 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1011 | #ifdef __WXMSW__ | |
1012 | wxWindow* win = new wxWindow; | |
1013 | win->SetHWND(hWnd); | |
1014 | win->SubclassWin(hWnd); | |
1015 | return win; | |
1016 | #else | |
1017 | PyErr_SetNone(PyExc_NotImplementedError); | |
1018 | return NULL; | |
1019 | #endif | |
1020 | } | |
1021 | ||
1022 | ||
1023 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1024 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1025 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1026 | ||
1027 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1028 | ||
1029 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1030 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1031 | wxMenuItemList& list = self->GetMenuItems(); | |
1032 | return wxPy_ConvertList(&list); | |
1033 | } | |
1034 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
1035 | ||
1036 | DECLARE_DEF_STRING(ControlNameStr); | |
1037 | ||
1038 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1039 | if (clientData) { | |
1040 | wxPyClientData* data = new wxPyClientData(clientData); | |
1041 | return self->Append(item, data); | |
1042 | } else | |
1043 | return self->Append(item); | |
1044 | } | |
1045 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1046 | if (clientData) { | |
1047 | wxPyClientData* data = new wxPyClientData(clientData); | |
1048 | return self->Insert(item, pos, data); | |
1049 | } else | |
1050 | return self->Insert(item, pos); | |
1051 | } | |
1052 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1053 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1054 | if (data) { | |
1055 | Py_INCREF(data->m_obj); | |
1056 | return data->m_obj; | |
1057 | } else { | |
1058 | Py_INCREF(Py_None); | |
1059 | return Py_None; | |
1060 | } | |
1061 | } | |
1062 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1063 | wxPyClientData* data = new wxPyClientData(clientData); | |
1064 | self->SetClientObject(n, data); | |
1065 | } | |
1066 | ||
1067 | ||
1068 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1069 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1070 | if (data) { | |
1071 | Py_INCREF(data->m_obj); | |
1072 | return data->m_obj; | |
1073 | } else { | |
1074 | Py_INCREF(Py_None); | |
1075 | return Py_None; | |
1076 | } | |
1077 | } | |
1078 | ||
1079 | // Figure out the type of the sizer item | |
1080 | ||
1081 | struct wxPySizerItemInfo { | |
1082 | wxPySizerItemInfo() | |
423f194a RD |
1083 | : window(NULL), sizer(NULL), gotSize(False), |
1084 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1085 | {} |
1086 | ||
1087 | wxWindow* window; | |
1088 | wxSizer* sizer; | |
1089 | bool gotSize; | |
1090 | wxSize size; | |
1091 | bool gotPos; | |
1092 | int pos; | |
1093 | }; | |
1094 | ||
1095 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1096 | ||
1097 | wxPySizerItemInfo info; | |
1098 | wxSize size; | |
1099 | wxSize* sizePtr = &size; | |
1100 | ||
1101 | // Find out what the type of the item is | |
1102 | // try wxWindow | |
1103 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1104 | PyErr_Clear(); | |
1105 | info.window = NULL; | |
1106 | ||
1107 | // try wxSizer | |
1108 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1109 | PyErr_Clear(); | |
1110 | info.sizer = NULL; | |
1111 | ||
1112 | // try wxSize or (w,h) | |
1113 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1114 | info.size = *sizePtr; | |
423f194a | 1115 | info.gotSize = True; |
d14a1e28 RD |
1116 | } |
1117 | ||
1118 | // or a single int | |
1119 | if (checkIdx && PyInt_Check(item)) { | |
1120 | info.pos = PyInt_AsLong(item); | |
423f194a | 1121 | info.gotPos = True; |
d14a1e28 RD |
1122 | } |
1123 | } | |
1124 | } | |
1125 | ||
1126 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1127 | // no expected type, figure out what kind of error message to generate | |
1128 | if ( !checkSize && !checkIdx ) | |
1129 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1130 | else if ( checkSize && !checkIdx ) | |
1131 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1132 | else if ( !checkSize && checkIdx) | |
1133 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1134 | else | |
1135 | // can this one happen? | |
1136 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1137 | } | |
1138 | ||
1139 | return info; | |
1140 | } | |
1141 | ||
1142 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1143 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1144 | } | |
1145 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1146 | ||
1147 | wxPyUserData* data = NULL; | |
1148 | wxPyBeginBlockThreads(); | |
423f194a | 1149 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1150 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1151 | data = new wxPyUserData(userData); | |
1152 | wxPyEndBlockThreads(); | |
1153 | ||
1154 | // Now call the real Add method if a valid item type was found | |
1155 | if ( info.window ) | |
1156 | self->Add(info.window, proportion, flag, border, data); | |
1157 | else if ( info.sizer ) | |
1158 | self->Add(info.sizer, proportion, flag, border, data); | |
1159 | else if (info.gotSize) | |
1160 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1161 | proportion, flag, border, data); | |
1162 | } | |
1163 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1164 | ||
1165 | wxPyUserData* data = NULL; | |
1166 | wxPyBeginBlockThreads(); | |
423f194a | 1167 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1168 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1169 | data = new wxPyUserData(userData); | |
1170 | wxPyEndBlockThreads(); | |
1171 | ||
1172 | // Now call the real Insert method if a valid item type was found | |
1173 | if ( info.window ) | |
1174 | self->Insert(before, info.window, proportion, flag, border, data); | |
1175 | else if ( info.sizer ) | |
1176 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1177 | else if (info.gotSize) | |
1178 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1179 | proportion, flag, border, data); | |
1180 | } | |
1181 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1182 | ||
1183 | wxPyUserData* data = NULL; | |
1184 | wxPyBeginBlockThreads(); | |
423f194a | 1185 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1186 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1187 | data = new wxPyUserData(userData); | |
1188 | wxPyEndBlockThreads(); | |
1189 | ||
1190 | // Now call the real Prepend method if a valid item type was found | |
1191 | if ( info.window ) | |
1192 | self->Prepend(info.window, proportion, flag, border, data); | |
1193 | else if ( info.sizer ) | |
1194 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1195 | else if (info.gotSize) | |
1196 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1197 | proportion, flag, border, data); | |
1198 | } | |
1199 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1200 | wxPyBeginBlockThreads(); | |
423f194a | 1201 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1202 | wxPyEndBlockThreads(); |
1203 | if ( info.window ) | |
1204 | return self->Remove(info.window); | |
1205 | else if ( info.sizer ) | |
1206 | return self->Remove(info.sizer); | |
1207 | else if ( info.gotPos ) | |
1208 | return self->Remove(info.pos); | |
1209 | else | |
423f194a | 1210 | return False; |
d14a1e28 | 1211 | } |
423f194a | 1212 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1213 | wxPyBeginBlockThreads(); |
423f194a | 1214 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1215 | wxPyEndBlockThreads(); |
1216 | if ( info.window ) | |
1217 | self->SetItemMinSize(info.window, size); | |
1218 | else if ( info.sizer ) | |
1219 | self->SetItemMinSize(info.sizer, size); | |
1220 | else if ( info.gotPos ) | |
1221 | self->SetItemMinSize(info.pos, size); | |
1222 | } | |
1223 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1224 | wxSizerItemList& list = self->GetChildren(); | |
1225 | return wxPy_ConvertList(&list); | |
1226 | } | |
1227 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1228 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1229 | if ( info.window ) |
1230 | self->Show(info.window, show); | |
1231 | else if ( info.sizer ) | |
1232 | self->Show(info.sizer, show); | |
1233 | } | |
1234 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1235 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1236 | if ( info.window ) |
1237 | self->Hide(info.window); | |
1238 | else if ( info.sizer ) | |
1239 | self->Hide(info.sizer); | |
1240 | } | |
1241 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1242 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1243 | if ( info.window ) |
1244 | return self->IsShown(info.window); | |
1245 | else if ( info.sizer ) | |
1246 | return self->IsShown(info.sizer); | |
1247 | else | |
423f194a | 1248 | return False; |
d14a1e28 RD |
1249 | } |
1250 | ||
1251 | // See pyclasses.h | |
1252 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1253 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1254 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1255 | ||
1256 | ||
1257 | ||
1258 | ||
1259 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1260 | { | |
1261 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1262 | } | |
1263 | ||
1264 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1265 | { | |
1266 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1267 | } | |
1268 | ||
1269 | ||
423f194a RD |
1270 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1271 | self->SetRow(row); | |
1272 | self->SetCol(col); | |
1273 | } | |
1274 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1275 | wxPyBeginBlockThreads(); |
1276 | PyObject* tup = PyTuple_New(2); | |
1277 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1278 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1279 | wxPyEndBlockThreads(); | |
1280 | return tup; | |
1281 | } | |
423f194a RD |
1282 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1283 | self->SetRowspan(rowspan); | |
1284 | self->SetColspan(colspan); | |
1285 | } | |
1286 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1287 | wxPyBeginBlockThreads(); |
1288 | PyObject* tup = PyTuple_New(2); | |
1289 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1290 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1291 | wxPyEndBlockThreads(); | |
1292 | return tup; | |
1293 | } | |
1294 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1295 | ||
1296 | wxPyUserData* data = NULL; | |
1297 | wxPyBeginBlockThreads(); | |
423f194a | 1298 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1299 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1300 | data = new wxPyUserData(userData); | |
1301 | wxPyEndBlockThreads(); | |
1302 | ||
1303 | // Now call the real Add method if a valid item type was found | |
1304 | if ( info.window ) | |
1305 | return self->Add(info.window, pos, span, flag, border, data); | |
1306 | else if ( info.sizer ) | |
1307 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1308 | else if (info.gotSize) | |
1309 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1310 | pos, span, flag, border, data); | |
423f194a | 1311 | return False; |
d14a1e28 RD |
1312 | } |
1313 | ||
1314 | ||
1315 | #ifdef __cplusplus | |
1316 | extern "C" { | |
1317 | #endif | |
1318 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1319 | PyObject *resultobj; | |
1320 | wxObject *arg1 = (wxObject *) 0 ; | |
1321 | wxString result; | |
1322 | PyObject * obj0 = 0 ; | |
1323 | char *kwnames[] = { | |
1324 | (char *) "self", NULL | |
1325 | }; | |
1326 | ||
1327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1329 | { | |
1330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1331 | result = wxObject_GetClassName(arg1); | |
1332 | ||
1333 | wxPyEndAllowThreads(__tstate); | |
1334 | if (PyErr_Occurred()) SWIG_fail; | |
1335 | } | |
1336 | { | |
1337 | #if wxUSE_UNICODE | |
1338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1339 | #else | |
1340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1341 | #endif | |
1342 | } | |
1343 | return resultobj; | |
1344 | fail: | |
1345 | return NULL; | |
1346 | } | |
1347 | ||
1348 | ||
1349 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1350 | PyObject *resultobj; | |
1351 | wxObject *arg1 = (wxObject *) 0 ; | |
1352 | PyObject * obj0 = 0 ; | |
1353 | char *kwnames[] = { | |
1354 | (char *) "self", NULL | |
1355 | }; | |
1356 | ||
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1359 | { | |
1360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1361 | wxObject_Destroy(arg1); | |
1362 | ||
1363 | wxPyEndAllowThreads(__tstate); | |
1364 | if (PyErr_Occurred()) SWIG_fail; | |
1365 | } | |
1366 | Py_INCREF(Py_None); resultobj = Py_None; | |
1367 | return resultobj; | |
1368 | fail: | |
1369 | return NULL; | |
1370 | } | |
1371 | ||
1372 | ||
1373 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1374 | PyObject *obj; | |
1375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1376 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1377 | Py_INCREF(obj); | |
1378 | return Py_BuildValue((char *)""); | |
1379 | } | |
1380 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject *resultobj; | |
1382 | wxSize *arg1 = (wxSize *) 0 ; | |
1383 | int arg2 ; | |
1384 | PyObject * obj0 = 0 ; | |
1385 | char *kwnames[] = { | |
1386 | (char *) "self",(char *) "x", NULL | |
1387 | }; | |
1388 | ||
1389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_width_set",kwnames,&obj0,&arg2)) goto fail; | |
1390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1391 | if (arg1) (arg1)->x = arg2; | |
1392 | ||
1393 | Py_INCREF(Py_None); resultobj = Py_None; | |
1394 | return resultobj; | |
1395 | fail: | |
1396 | return NULL; | |
1397 | } | |
1398 | ||
1399 | ||
1400 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1401 | PyObject *resultobj; | |
1402 | wxSize *arg1 = (wxSize *) 0 ; | |
1403 | int result; | |
1404 | PyObject * obj0 = 0 ; | |
1405 | char *kwnames[] = { | |
1406 | (char *) "self", NULL | |
1407 | }; | |
1408 | ||
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1411 | result = (int) ((arg1)->x); | |
1412 | ||
1413 | resultobj = PyInt_FromLong((long)result); | |
1414 | return resultobj; | |
1415 | fail: | |
1416 | return NULL; | |
1417 | } | |
1418 | ||
1419 | ||
1420 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject *resultobj; | |
1422 | wxSize *arg1 = (wxSize *) 0 ; | |
1423 | int arg2 ; | |
1424 | PyObject * obj0 = 0 ; | |
1425 | char *kwnames[] = { | |
1426 | (char *) "self",(char *) "y", NULL | |
1427 | }; | |
1428 | ||
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_height_set",kwnames,&obj0,&arg2)) goto fail; | |
1430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1431 | if (arg1) (arg1)->y = arg2; | |
1432 | ||
1433 | Py_INCREF(Py_None); resultobj = Py_None; | |
1434 | return resultobj; | |
1435 | fail: | |
1436 | return NULL; | |
1437 | } | |
1438 | ||
1439 | ||
1440 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject *resultobj; | |
1442 | wxSize *arg1 = (wxSize *) 0 ; | |
1443 | int result; | |
1444 | PyObject * obj0 = 0 ; | |
1445 | char *kwnames[] = { | |
1446 | (char *) "self", NULL | |
1447 | }; | |
1448 | ||
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1451 | result = (int) ((arg1)->y); | |
1452 | ||
1453 | resultobj = PyInt_FromLong((long)result); | |
1454 | return resultobj; | |
1455 | fail: | |
1456 | return NULL; | |
1457 | } | |
1458 | ||
1459 | ||
1460 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1461 | PyObject *resultobj; | |
1462 | int arg1 = (int) 0 ; | |
1463 | int arg2 = (int) 0 ; | |
1464 | wxSize *result; | |
1465 | char *kwnames[] = { | |
1466 | (char *) "w",(char *) "h", NULL | |
1467 | }; | |
1468 | ||
1469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Size",kwnames,&arg1,&arg2)) goto fail; | |
1470 | { | |
1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1472 | result = (wxSize *)new wxSize(arg1,arg2); | |
1473 | ||
1474 | wxPyEndAllowThreads(__tstate); | |
1475 | if (PyErr_Occurred()) SWIG_fail; | |
1476 | } | |
1477 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1478 | return resultobj; | |
1479 | fail: | |
1480 | return NULL; | |
1481 | } | |
1482 | ||
1483 | ||
1484 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1485 | PyObject *resultobj; | |
1486 | wxSize *arg1 = (wxSize *) 0 ; | |
1487 | PyObject * obj0 = 0 ; | |
1488 | char *kwnames[] = { | |
1489 | (char *) "self", NULL | |
1490 | }; | |
1491 | ||
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1494 | { | |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1496 | delete arg1; | |
1497 | ||
1498 | wxPyEndAllowThreads(__tstate); | |
1499 | if (PyErr_Occurred()) SWIG_fail; | |
1500 | } | |
1501 | Py_INCREF(Py_None); resultobj = Py_None; | |
1502 | return resultobj; | |
1503 | fail: | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
1508 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject *resultobj; | |
1510 | wxSize *arg1 = (wxSize *) 0 ; | |
1511 | wxSize *arg2 = 0 ; | |
1512 | bool result; | |
1513 | wxSize temp2 ; | |
1514 | PyObject * obj0 = 0 ; | |
1515 | PyObject * obj1 = 0 ; | |
1516 | char *kwnames[] = { | |
1517 | (char *) "self",(char *) "sz", NULL | |
1518 | }; | |
1519 | ||
1520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1522 | { | |
1523 | arg2 = &temp2; | |
1524 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1525 | } | |
1526 | { | |
1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1528 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1529 | |
1530 | wxPyEndAllowThreads(__tstate); | |
1531 | if (PyErr_Occurred()) SWIG_fail; | |
1532 | } | |
1533 | resultobj = PyInt_FromLong((long)result); | |
1534 | return resultobj; | |
1535 | fail: | |
1536 | return NULL; | |
1537 | } | |
1538 | ||
1539 | ||
1540 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1541 | PyObject *resultobj; | |
1542 | wxSize *arg1 = (wxSize *) 0 ; | |
1543 | wxSize *arg2 = 0 ; | |
1544 | bool result; | |
1545 | wxSize temp2 ; | |
1546 | PyObject * obj0 = 0 ; | |
1547 | PyObject * obj1 = 0 ; | |
1548 | char *kwnames[] = { | |
1549 | (char *) "self",(char *) "sz", NULL | |
1550 | }; | |
1551 | ||
1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1554 | { | |
1555 | arg2 = &temp2; | |
1556 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1557 | } | |
1558 | { | |
1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1560 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
1561 | |
1562 | wxPyEndAllowThreads(__tstate); | |
1563 | if (PyErr_Occurred()) SWIG_fail; | |
1564 | } | |
1565 | resultobj = PyInt_FromLong((long)result); | |
1566 | return resultobj; | |
1567 | fail: | |
1568 | return NULL; | |
1569 | } | |
1570 | ||
1571 | ||
1572 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1573 | PyObject *resultobj; | |
1574 | wxSize *arg1 = (wxSize *) 0 ; | |
1575 | wxSize *arg2 = 0 ; | |
1576 | wxSize result; | |
1577 | wxSize temp2 ; | |
1578 | PyObject * obj0 = 0 ; | |
1579 | PyObject * obj1 = 0 ; | |
1580 | char *kwnames[] = { | |
1581 | (char *) "self",(char *) "sz", NULL | |
1582 | }; | |
1583 | ||
1584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1586 | { | |
1587 | arg2 = &temp2; | |
1588 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1589 | } | |
1590 | { | |
1591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1592 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1593 | ||
1594 | wxPyEndAllowThreads(__tstate); | |
1595 | if (PyErr_Occurred()) SWIG_fail; | |
1596 | } | |
1597 | { | |
1598 | wxSize * resultptr; | |
1599 | resultptr = new wxSize((wxSize &) result); | |
1600 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1601 | } | |
1602 | return resultobj; | |
1603 | fail: | |
1604 | return NULL; | |
1605 | } | |
1606 | ||
1607 | ||
1608 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1609 | PyObject *resultobj; | |
1610 | wxSize *arg1 = (wxSize *) 0 ; | |
1611 | wxSize *arg2 = 0 ; | |
1612 | wxSize result; | |
1613 | wxSize temp2 ; | |
1614 | PyObject * obj0 = 0 ; | |
1615 | PyObject * obj1 = 0 ; | |
1616 | char *kwnames[] = { | |
1617 | (char *) "self",(char *) "sz", NULL | |
1618 | }; | |
1619 | ||
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1622 | { | |
1623 | arg2 = &temp2; | |
1624 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1625 | } | |
1626 | { | |
1627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1628 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1629 | ||
1630 | wxPyEndAllowThreads(__tstate); | |
1631 | if (PyErr_Occurred()) SWIG_fail; | |
1632 | } | |
1633 | { | |
1634 | wxSize * resultptr; | |
1635 | resultptr = new wxSize((wxSize &) result); | |
1636 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1637 | } | |
1638 | return resultobj; | |
1639 | fail: | |
1640 | return NULL; | |
1641 | } | |
1642 | ||
1643 | ||
1644 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject *resultobj; | |
1646 | wxSize *arg1 = (wxSize *) 0 ; | |
1647 | wxSize *arg2 = 0 ; | |
1648 | wxSize temp2 ; | |
1649 | PyObject * obj0 = 0 ; | |
1650 | PyObject * obj1 = 0 ; | |
1651 | char *kwnames[] = { | |
1652 | (char *) "self",(char *) "sz", NULL | |
1653 | }; | |
1654 | ||
1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1657 | { | |
1658 | arg2 = &temp2; | |
1659 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1660 | } | |
1661 | { | |
1662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1663 | (arg1)->IncTo((wxSize const &)*arg2); | |
1664 | ||
1665 | wxPyEndAllowThreads(__tstate); | |
1666 | if (PyErr_Occurred()) SWIG_fail; | |
1667 | } | |
1668 | Py_INCREF(Py_None); resultobj = Py_None; | |
1669 | return resultobj; | |
1670 | fail: | |
1671 | return NULL; | |
1672 | } | |
1673 | ||
1674 | ||
1675 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1676 | PyObject *resultobj; | |
1677 | wxSize *arg1 = (wxSize *) 0 ; | |
1678 | wxSize *arg2 = 0 ; | |
1679 | wxSize temp2 ; | |
1680 | PyObject * obj0 = 0 ; | |
1681 | PyObject * obj1 = 0 ; | |
1682 | char *kwnames[] = { | |
1683 | (char *) "self",(char *) "sz", NULL | |
1684 | }; | |
1685 | ||
1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1688 | { | |
1689 | arg2 = &temp2; | |
1690 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1691 | } | |
1692 | { | |
1693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1694 | (arg1)->DecTo((wxSize const &)*arg2); | |
1695 | ||
1696 | wxPyEndAllowThreads(__tstate); | |
1697 | if (PyErr_Occurred()) SWIG_fail; | |
1698 | } | |
1699 | Py_INCREF(Py_None); resultobj = Py_None; | |
1700 | return resultobj; | |
1701 | fail: | |
1702 | return NULL; | |
1703 | } | |
1704 | ||
1705 | ||
1706 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1707 | PyObject *resultobj; | |
1708 | wxSize *arg1 = (wxSize *) 0 ; | |
1709 | int arg2 ; | |
1710 | int arg3 ; | |
1711 | PyObject * obj0 = 0 ; | |
1712 | char *kwnames[] = { | |
423f194a | 1713 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
1714 | }; |
1715 | ||
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Size_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1718 | { | |
1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1720 | (arg1)->Set(arg2,arg3); | |
1721 | ||
1722 | wxPyEndAllowThreads(__tstate); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | Py_INCREF(Py_None); resultobj = Py_None; | |
1726 | return resultobj; | |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
1732 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject *resultobj; | |
1734 | wxSize *arg1 = (wxSize *) 0 ; | |
1735 | int arg2 ; | |
1736 | PyObject * obj0 = 0 ; | |
1737 | char *kwnames[] = { | |
1738 | (char *) "self",(char *) "w", NULL | |
1739 | }; | |
1740 | ||
1741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1743 | { | |
1744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1745 | (arg1)->SetWidth(arg2); | |
1746 | ||
1747 | wxPyEndAllowThreads(__tstate); | |
1748 | if (PyErr_Occurred()) SWIG_fail; | |
1749 | } | |
1750 | Py_INCREF(Py_None); resultobj = Py_None; | |
1751 | return resultobj; | |
1752 | fail: | |
1753 | return NULL; | |
1754 | } | |
1755 | ||
1756 | ||
1757 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1758 | PyObject *resultobj; | |
1759 | wxSize *arg1 = (wxSize *) 0 ; | |
1760 | int arg2 ; | |
1761 | PyObject * obj0 = 0 ; | |
1762 | char *kwnames[] = { | |
1763 | (char *) "self",(char *) "h", NULL | |
1764 | }; | |
1765 | ||
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Size_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
1767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1768 | { | |
1769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1770 | (arg1)->SetHeight(arg2); | |
1771 | ||
1772 | wxPyEndAllowThreads(__tstate); | |
1773 | if (PyErr_Occurred()) SWIG_fail; | |
1774 | } | |
1775 | Py_INCREF(Py_None); resultobj = Py_None; | |
1776 | return resultobj; | |
1777 | fail: | |
1778 | return NULL; | |
1779 | } | |
1780 | ||
1781 | ||
1782 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1783 | PyObject *resultobj; | |
1784 | wxSize *arg1 = (wxSize *) 0 ; | |
1785 | int result; | |
1786 | PyObject * obj0 = 0 ; | |
1787 | char *kwnames[] = { | |
1788 | (char *) "self", NULL | |
1789 | }; | |
1790 | ||
1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
1792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1793 | { | |
1794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1795 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
1796 | ||
1797 | wxPyEndAllowThreads(__tstate); | |
1798 | if (PyErr_Occurred()) SWIG_fail; | |
1799 | } | |
1800 | resultobj = PyInt_FromLong((long)result); | |
1801 | return resultobj; | |
1802 | fail: | |
1803 | return NULL; | |
1804 | } | |
1805 | ||
1806 | ||
1807 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1808 | PyObject *resultobj; | |
1809 | wxSize *arg1 = (wxSize *) 0 ; | |
1810 | int result; | |
1811 | PyObject * obj0 = 0 ; | |
1812 | char *kwnames[] = { | |
1813 | (char *) "self", NULL | |
1814 | }; | |
1815 | ||
1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
1817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1818 | { | |
1819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1820 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
1821 | ||
1822 | wxPyEndAllowThreads(__tstate); | |
1823 | if (PyErr_Occurred()) SWIG_fail; | |
1824 | } | |
1825 | resultobj = PyInt_FromLong((long)result); | |
1826 | return resultobj; | |
1827 | fail: | |
1828 | return NULL; | |
1829 | } | |
1830 | ||
1831 | ||
423f194a | 1832 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1833 | PyObject *resultobj; |
1834 | wxSize *arg1 = (wxSize *) 0 ; | |
1835 | PyObject *result; | |
1836 | PyObject * obj0 = 0 ; | |
1837 | char *kwnames[] = { | |
1838 | (char *) "self", NULL | |
1839 | }; | |
1840 | ||
423f194a | 1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
1842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1843 | { | |
1844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1845 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
1846 | |
1847 | wxPyEndAllowThreads(__tstate); | |
1848 | if (PyErr_Occurred()) SWIG_fail; | |
1849 | } | |
1850 | resultobj = result; | |
1851 | return resultobj; | |
1852 | fail: | |
1853 | return NULL; | |
1854 | } | |
1855 | ||
1856 | ||
1857 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
1858 | PyObject *obj; | |
1859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1860 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
1861 | Py_INCREF(obj); | |
1862 | return Py_BuildValue((char *)""); | |
1863 | } | |
1864 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject *resultobj; | |
1866 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1867 | double arg2 ; | |
1868 | PyObject * obj0 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self",(char *) "x", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_x_set",kwnames,&obj0,&arg2)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1875 | if (arg1) (arg1)->x = arg2; | |
1876 | ||
1877 | Py_INCREF(Py_None); resultobj = Py_None; | |
1878 | return resultobj; | |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1885 | PyObject *resultobj; | |
1886 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1887 | double result; | |
1888 | PyObject * obj0 = 0 ; | |
1889 | char *kwnames[] = { | |
1890 | (char *) "self", NULL | |
1891 | }; | |
1892 | ||
1893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
1894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1895 | result = (double) ((arg1)->x); | |
1896 | ||
1897 | resultobj = PyFloat_FromDouble(result); | |
1898 | return resultobj; | |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
1904 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1905 | PyObject *resultobj; | |
1906 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1907 | double arg2 ; | |
1908 | PyObject * obj0 = 0 ; | |
1909 | char *kwnames[] = { | |
1910 | (char *) "self",(char *) "y", NULL | |
1911 | }; | |
1912 | ||
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:RealPoint_y_set",kwnames,&obj0,&arg2)) goto fail; | |
1914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1915 | if (arg1) (arg1)->y = arg2; | |
1916 | ||
1917 | Py_INCREF(Py_None); resultobj = Py_None; | |
1918 | return resultobj; | |
1919 | fail: | |
1920 | return NULL; | |
1921 | } | |
1922 | ||
1923 | ||
1924 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1925 | PyObject *resultobj; | |
1926 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1927 | double result; | |
1928 | PyObject * obj0 = 0 ; | |
1929 | char *kwnames[] = { | |
1930 | (char *) "self", NULL | |
1931 | }; | |
1932 | ||
1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
1934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1935 | result = (double) ((arg1)->y); | |
1936 | ||
1937 | resultobj = PyFloat_FromDouble(result); | |
1938 | return resultobj; | |
1939 | fail: | |
1940 | return NULL; | |
1941 | } | |
1942 | ||
1943 | ||
1944 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1945 | PyObject *resultobj; | |
1946 | double arg1 = (double) 0.0 ; | |
1947 | double arg2 = (double) 0.0 ; | |
1948 | wxRealPoint *result; | |
1949 | char *kwnames[] = { | |
1950 | (char *) "x",(char *) "y", NULL | |
1951 | }; | |
1952 | ||
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_RealPoint",kwnames,&arg1,&arg2)) goto fail; | |
1954 | { | |
1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1956 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
1957 | ||
1958 | wxPyEndAllowThreads(__tstate); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
1960 | } | |
1961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
1962 | return resultobj; | |
1963 | fail: | |
1964 | return NULL; | |
1965 | } | |
1966 | ||
1967 | ||
1968 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject *resultobj; | |
1970 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1971 | PyObject * obj0 = 0 ; | |
1972 | char *kwnames[] = { | |
1973 | (char *) "self", NULL | |
1974 | }; | |
1975 | ||
1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
1977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | delete arg1; | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | Py_INCREF(Py_None); resultobj = Py_None; | |
1986 | return resultobj; | |
1987 | fail: | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
423f194a | 1992 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1993 | PyObject *resultobj; |
1994 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
1995 | wxRealPoint *arg2 = 0 ; | |
423f194a | 1996 | bool result; |
d14a1e28 RD |
1997 | wxRealPoint temp2 ; |
1998 | PyObject * obj0 = 0 ; | |
1999 | PyObject * obj1 = 0 ; | |
2000 | char *kwnames[] = { | |
2001 | (char *) "self",(char *) "pt", NULL | |
2002 | }; | |
2003 | ||
423f194a | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2006 | { | |
2007 | arg2 = &temp2; | |
2008 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2009 | } | |
2010 | { | |
2011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2012 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2013 | |
2014 | wxPyEndAllowThreads(__tstate); | |
2015 | if (PyErr_Occurred()) SWIG_fail; | |
2016 | } | |
423f194a | 2017 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
2018 | return resultobj; |
2019 | fail: | |
2020 | return NULL; | |
2021 | } | |
2022 | ||
2023 | ||
423f194a | 2024 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2025 | PyObject *resultobj; |
2026 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2027 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2028 | bool result; |
d14a1e28 RD |
2029 | wxRealPoint temp2 ; |
2030 | PyObject * obj0 = 0 ; | |
2031 | PyObject * obj1 = 0 ; | |
2032 | char *kwnames[] = { | |
2033 | (char *) "self",(char *) "pt", NULL | |
2034 | }; | |
2035 | ||
423f194a | 2036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2038 | { | |
2039 | arg2 = &temp2; | |
2040 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2041 | } | |
2042 | { | |
2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2044 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2045 | |
2046 | wxPyEndAllowThreads(__tstate); | |
2047 | if (PyErr_Occurred()) SWIG_fail; | |
2048 | } | |
423f194a | 2049 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
2050 | return resultobj; |
2051 | fail: | |
2052 | return NULL; | |
2053 | } | |
2054 | ||
2055 | ||
423f194a | 2056 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2057 | PyObject *resultobj; |
2058 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2059 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2060 | wxRealPoint result; |
d14a1e28 RD |
2061 | wxRealPoint temp2 ; |
2062 | PyObject * obj0 = 0 ; | |
2063 | PyObject * obj1 = 0 ; | |
2064 | char *kwnames[] = { | |
2065 | (char *) "self",(char *) "pt", NULL | |
2066 | }; | |
2067 | ||
423f194a | 2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2070 | { | |
2071 | arg2 = &temp2; | |
2072 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2073 | } | |
2074 | { | |
2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2076 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2077 | |
2078 | wxPyEndAllowThreads(__tstate); | |
2079 | if (PyErr_Occurred()) SWIG_fail; | |
2080 | } | |
423f194a RD |
2081 | { |
2082 | wxRealPoint * resultptr; | |
2083 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2084 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2085 | } | |
d14a1e28 RD |
2086 | return resultobj; |
2087 | fail: | |
2088 | return NULL; | |
2089 | } | |
2090 | ||
2091 | ||
423f194a | 2092 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2093 | PyObject *resultobj; |
2094 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2095 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2096 | wxRealPoint result; |
d14a1e28 RD |
2097 | wxRealPoint temp2 ; |
2098 | PyObject * obj0 = 0 ; | |
2099 | PyObject * obj1 = 0 ; | |
2100 | char *kwnames[] = { | |
2101 | (char *) "self",(char *) "pt", NULL | |
2102 | }; | |
2103 | ||
423f194a | 2104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2106 | { | |
2107 | arg2 = &temp2; | |
2108 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2109 | } | |
2110 | { | |
2111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2112 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2113 | |
2114 | wxPyEndAllowThreads(__tstate); | |
2115 | if (PyErr_Occurred()) SWIG_fail; | |
2116 | } | |
423f194a RD |
2117 | { |
2118 | wxRealPoint * resultptr; | |
2119 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2120 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2121 | } | |
d14a1e28 RD |
2122 | return resultobj; |
2123 | fail: | |
2124 | return NULL; | |
2125 | } | |
2126 | ||
2127 | ||
2128 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2129 | PyObject *resultobj; | |
2130 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2131 | double arg2 ; | |
2132 | double arg3 ; | |
2133 | PyObject * obj0 = 0 ; | |
2134 | char *kwnames[] = { | |
2135 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2136 | }; | |
2137 | ||
2138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:RealPoint_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2140 | { | |
2141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2142 | wxRealPoint_Set(arg1,arg2,arg3); | |
2143 | ||
2144 | wxPyEndAllowThreads(__tstate); | |
2145 | if (PyErr_Occurred()) SWIG_fail; | |
2146 | } | |
2147 | Py_INCREF(Py_None); resultobj = Py_None; | |
2148 | return resultobj; | |
2149 | fail: | |
2150 | return NULL; | |
2151 | } | |
2152 | ||
2153 | ||
423f194a | 2154 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2155 | PyObject *resultobj; |
2156 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2157 | PyObject *result; | |
2158 | PyObject * obj0 = 0 ; | |
2159 | char *kwnames[] = { | |
2160 | (char *) "self", NULL | |
2161 | }; | |
2162 | ||
423f194a | 2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2165 | { | |
2166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2167 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2168 | |
2169 | wxPyEndAllowThreads(__tstate); | |
2170 | if (PyErr_Occurred()) SWIG_fail; | |
2171 | } | |
2172 | resultobj = result; | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
2179 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2180 | PyObject *obj; | |
2181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2182 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2183 | Py_INCREF(obj); | |
2184 | return Py_BuildValue((char *)""); | |
2185 | } | |
2186 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject *resultobj; | |
2188 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2189 | int arg2 ; | |
2190 | PyObject * obj0 = 0 ; | |
2191 | char *kwnames[] = { | |
2192 | (char *) "self",(char *) "x", NULL | |
2193 | }; | |
2194 | ||
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_x_set",kwnames,&obj0,&arg2)) goto fail; | |
2196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2197 | if (arg1) (arg1)->x = arg2; | |
2198 | ||
2199 | Py_INCREF(Py_None); resultobj = Py_None; | |
2200 | return resultobj; | |
2201 | fail: | |
2202 | return NULL; | |
2203 | } | |
2204 | ||
2205 | ||
2206 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2207 | PyObject *resultobj; | |
2208 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2209 | int result; | |
2210 | PyObject * obj0 = 0 ; | |
2211 | char *kwnames[] = { | |
2212 | (char *) "self", NULL | |
2213 | }; | |
2214 | ||
2215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2217 | result = (int) ((arg1)->x); | |
2218 | ||
2219 | resultobj = PyInt_FromLong((long)result); | |
2220 | return resultobj; | |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
2226 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject *resultobj; | |
2228 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2229 | int arg2 ; | |
2230 | PyObject * obj0 = 0 ; | |
2231 | char *kwnames[] = { | |
2232 | (char *) "self",(char *) "y", NULL | |
2233 | }; | |
2234 | ||
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Point_y_set",kwnames,&obj0,&arg2)) goto fail; | |
2236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2237 | if (arg1) (arg1)->y = arg2; | |
2238 | ||
2239 | Py_INCREF(Py_None); resultobj = Py_None; | |
2240 | return resultobj; | |
2241 | fail: | |
2242 | return NULL; | |
2243 | } | |
2244 | ||
2245 | ||
2246 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2247 | PyObject *resultobj; | |
2248 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2249 | int result; | |
2250 | PyObject * obj0 = 0 ; | |
2251 | char *kwnames[] = { | |
2252 | (char *) "self", NULL | |
2253 | }; | |
2254 | ||
2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2257 | result = (int) ((arg1)->y); | |
2258 | ||
2259 | resultobj = PyInt_FromLong((long)result); | |
2260 | return resultobj; | |
2261 | fail: | |
2262 | return NULL; | |
2263 | } | |
2264 | ||
2265 | ||
2266 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject *resultobj; | |
2268 | int arg1 = (int) 0 ; | |
2269 | int arg2 = (int) 0 ; | |
2270 | wxPoint *result; | |
2271 | char *kwnames[] = { | |
2272 | (char *) "x",(char *) "y", NULL | |
2273 | }; | |
2274 | ||
2275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Point",kwnames,&arg1,&arg2)) goto fail; | |
2276 | { | |
2277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2278 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2279 | ||
2280 | wxPyEndAllowThreads(__tstate); | |
2281 | if (PyErr_Occurred()) SWIG_fail; | |
2282 | } | |
2283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2284 | return resultobj; | |
2285 | fail: | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
2290 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject *resultobj; | |
2292 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2293 | PyObject * obj0 = 0 ; | |
2294 | char *kwnames[] = { | |
2295 | (char *) "self", NULL | |
2296 | }; | |
2297 | ||
2298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2300 | { | |
2301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2302 | delete arg1; | |
2303 | ||
2304 | wxPyEndAllowThreads(__tstate); | |
2305 | if (PyErr_Occurred()) SWIG_fail; | |
2306 | } | |
2307 | Py_INCREF(Py_None); resultobj = Py_None; | |
2308 | return resultobj; | |
2309 | fail: | |
2310 | return NULL; | |
2311 | } | |
2312 | ||
2313 | ||
2314 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2315 | PyObject *resultobj; | |
2316 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2317 | wxPoint *arg2 = 0 ; | |
2318 | bool result; | |
2319 | wxPoint temp2 ; | |
2320 | PyObject * obj0 = 0 ; | |
2321 | PyObject * obj1 = 0 ; | |
2322 | char *kwnames[] = { | |
423f194a | 2323 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2324 | }; |
2325 | ||
2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2328 | { | |
2329 | arg2 = &temp2; | |
2330 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2331 | } | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2334 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2335 | |
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | resultobj = PyInt_FromLong((long)result); | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2346 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject *resultobj; | |
2348 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2349 | wxPoint *arg2 = 0 ; | |
2350 | bool result; | |
2351 | wxPoint temp2 ; | |
2352 | PyObject * obj0 = 0 ; | |
2353 | PyObject * obj1 = 0 ; | |
2354 | char *kwnames[] = { | |
423f194a | 2355 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2356 | }; |
2357 | ||
2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2360 | { | |
2361 | arg2 = &temp2; | |
2362 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2363 | } | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2366 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2367 | |
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) SWIG_fail; | |
2370 | } | |
2371 | resultobj = PyInt_FromLong((long)result); | |
2372 | return resultobj; | |
2373 | fail: | |
2374 | return NULL; | |
2375 | } | |
2376 | ||
2377 | ||
2378 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2379 | PyObject *resultobj; | |
2380 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2381 | wxPoint *arg2 = 0 ; | |
2382 | wxPoint result; | |
2383 | wxPoint temp2 ; | |
2384 | PyObject * obj0 = 0 ; | |
2385 | PyObject * obj1 = 0 ; | |
2386 | char *kwnames[] = { | |
423f194a | 2387 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2388 | }; |
2389 | ||
2390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2392 | { | |
2393 | arg2 = &temp2; | |
2394 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2395 | } | |
2396 | { | |
2397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2398 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2399 | |
2400 | wxPyEndAllowThreads(__tstate); | |
2401 | if (PyErr_Occurred()) SWIG_fail; | |
2402 | } | |
2403 | { | |
2404 | wxPoint * resultptr; | |
2405 | resultptr = new wxPoint((wxPoint &) result); | |
2406 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2407 | } | |
2408 | return resultobj; | |
2409 | fail: | |
2410 | return NULL; | |
2411 | } | |
2412 | ||
2413 | ||
2414 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2415 | PyObject *resultobj; | |
2416 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2417 | wxPoint *arg2 = 0 ; | |
2418 | wxPoint result; | |
2419 | wxPoint temp2 ; | |
2420 | PyObject * obj0 = 0 ; | |
2421 | PyObject * obj1 = 0 ; | |
2422 | char *kwnames[] = { | |
423f194a | 2423 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2424 | }; |
2425 | ||
2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2428 | { | |
2429 | arg2 = &temp2; | |
2430 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2431 | } | |
2432 | { | |
2433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2434 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2435 | |
2436 | wxPyEndAllowThreads(__tstate); | |
2437 | if (PyErr_Occurred()) SWIG_fail; | |
2438 | } | |
2439 | { | |
2440 | wxPoint * resultptr; | |
2441 | resultptr = new wxPoint((wxPoint &) result); | |
2442 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2443 | } | |
2444 | return resultobj; | |
2445 | fail: | |
2446 | return NULL; | |
2447 | } | |
2448 | ||
2449 | ||
2450 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject *resultobj; | |
2452 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2453 | wxPoint *arg2 = 0 ; | |
2454 | wxPoint *result; | |
2455 | wxPoint temp2 ; | |
2456 | PyObject * obj0 = 0 ; | |
2457 | PyObject * obj1 = 0 ; | |
2458 | char *kwnames[] = { | |
423f194a | 2459 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2460 | }; |
2461 | ||
2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2464 | { | |
2465 | arg2 = &temp2; | |
2466 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2467 | } | |
2468 | { | |
2469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2470 | { | |
2471 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2472 | result = (wxPoint *) &_result_ref; | |
2473 | } | |
2474 | ||
2475 | wxPyEndAllowThreads(__tstate); | |
2476 | if (PyErr_Occurred()) SWIG_fail; | |
2477 | } | |
2478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2479 | return resultobj; | |
2480 | fail: | |
2481 | return NULL; | |
2482 | } | |
2483 | ||
2484 | ||
2485 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2486 | PyObject *resultobj; | |
2487 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2488 | wxPoint *arg2 = 0 ; | |
2489 | wxPoint *result; | |
2490 | wxPoint temp2 ; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | PyObject * obj1 = 0 ; | |
2493 | char *kwnames[] = { | |
423f194a | 2494 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2495 | }; |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2499 | { | |
2500 | arg2 = &temp2; | |
2501 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2502 | } | |
2503 | { | |
2504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2505 | { | |
2506 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2507 | result = (wxPoint *) &_result_ref; | |
2508 | } | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
2513 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2514 | return resultobj; | |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
2520 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2521 | PyObject *resultobj; | |
2522 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2523 | long arg2 ; | |
2524 | long arg3 ; | |
2525 | PyObject * obj0 = 0 ; | |
2526 | char *kwnames[] = { | |
2527 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2528 | }; | |
2529 | ||
2530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:Point_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | wxPoint_Set(arg1,arg2,arg3); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | Py_INCREF(Py_None); resultobj = Py_None; | |
2540 | return resultobj; | |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
423f194a | 2546 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2547 | PyObject *resultobj; |
2548 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2549 | PyObject *result; | |
2550 | PyObject * obj0 = 0 ; | |
2551 | char *kwnames[] = { | |
2552 | (char *) "self", NULL | |
2553 | }; | |
2554 | ||
423f194a | 2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2559 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
2560 | |
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | resultobj = result; | |
2565 | return resultobj; | |
2566 | fail: | |
2567 | return NULL; | |
2568 | } | |
2569 | ||
2570 | ||
2571 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2572 | PyObject *obj; | |
2573 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2574 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2575 | Py_INCREF(obj); | |
2576 | return Py_BuildValue((char *)""); | |
2577 | } | |
2578 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2579 | PyObject *resultobj; | |
2580 | int arg1 = (int) 0 ; | |
2581 | int arg2 = (int) 0 ; | |
2582 | int arg3 = (int) 0 ; | |
2583 | int arg4 = (int) 0 ; | |
2584 | wxRect *result; | |
2585 | char *kwnames[] = { | |
2586 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2587 | }; | |
2588 | ||
2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Rect",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
2590 | { | |
2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2592 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2593 | ||
2594 | wxPyEndAllowThreads(__tstate); | |
2595 | if (PyErr_Occurred()) SWIG_fail; | |
2596 | } | |
2597 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2598 | return resultobj; | |
2599 | fail: | |
2600 | return NULL; | |
2601 | } | |
2602 | ||
2603 | ||
2604 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2605 | PyObject *resultobj; | |
2606 | wxPoint *arg1 = 0 ; | |
2607 | wxPoint *arg2 = 0 ; | |
2608 | wxRect *result; | |
2609 | wxPoint temp1 ; | |
2610 | wxPoint temp2 ; | |
2611 | PyObject * obj0 = 0 ; | |
2612 | PyObject * obj1 = 0 ; | |
2613 | char *kwnames[] = { | |
2614 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2618 | { | |
2619 | arg1 = &temp1; | |
2620 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2621 | } | |
2622 | { | |
2623 | arg2 = &temp2; | |
2624 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2625 | } | |
2626 | { | |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2628 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2629 | ||
2630 | wxPyEndAllowThreads(__tstate); | |
2631 | if (PyErr_Occurred()) SWIG_fail; | |
2632 | } | |
2633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2634 | return resultobj; | |
2635 | fail: | |
2636 | return NULL; | |
2637 | } | |
2638 | ||
2639 | ||
2640 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject *resultobj; | |
2642 | wxPoint *arg1 = 0 ; | |
2643 | wxSize *arg2 = 0 ; | |
2644 | wxRect *result; | |
2645 | wxPoint temp1 ; | |
2646 | wxSize temp2 ; | |
2647 | PyObject * obj0 = 0 ; | |
2648 | PyObject * obj1 = 0 ; | |
2649 | char *kwnames[] = { | |
2650 | (char *) "pos",(char *) "size", NULL | |
2651 | }; | |
2652 | ||
2653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2654 | { | |
2655 | arg1 = &temp1; | |
2656 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2657 | } | |
2658 | { | |
2659 | arg2 = &temp2; | |
2660 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2661 | } | |
2662 | { | |
2663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2664 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2665 | ||
2666 | wxPyEndAllowThreads(__tstate); | |
2667 | if (PyErr_Occurred()) SWIG_fail; | |
2668 | } | |
2669 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2670 | return resultobj; | |
2671 | fail: | |
2672 | return NULL; | |
2673 | } | |
2674 | ||
2675 | ||
2676 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject *resultobj; | |
2678 | wxRect *arg1 = (wxRect *) 0 ; | |
2679 | PyObject * obj0 = 0 ; | |
2680 | char *kwnames[] = { | |
2681 | (char *) "self", NULL | |
2682 | }; | |
2683 | ||
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2686 | { | |
2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2688 | delete arg1; | |
2689 | ||
2690 | wxPyEndAllowThreads(__tstate); | |
2691 | if (PyErr_Occurred()) SWIG_fail; | |
2692 | } | |
2693 | Py_INCREF(Py_None); resultobj = Py_None; | |
2694 | return resultobj; | |
2695 | fail: | |
2696 | return NULL; | |
2697 | } | |
2698 | ||
2699 | ||
2700 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2701 | PyObject *resultobj; | |
2702 | wxRect *arg1 = (wxRect *) 0 ; | |
2703 | int result; | |
2704 | PyObject * obj0 = 0 ; | |
2705 | char *kwnames[] = { | |
2706 | (char *) "self", NULL | |
2707 | }; | |
2708 | ||
2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2711 | { | |
2712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2713 | result = (int)((wxRect const *)arg1)->GetX(); | |
2714 | ||
2715 | wxPyEndAllowThreads(__tstate); | |
2716 | if (PyErr_Occurred()) SWIG_fail; | |
2717 | } | |
2718 | resultobj = PyInt_FromLong((long)result); | |
2719 | return resultobj; | |
2720 | fail: | |
2721 | return NULL; | |
2722 | } | |
2723 | ||
2724 | ||
2725 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2726 | PyObject *resultobj; | |
2727 | wxRect *arg1 = (wxRect *) 0 ; | |
2728 | int arg2 ; | |
2729 | PyObject * obj0 = 0 ; | |
2730 | char *kwnames[] = { | |
2731 | (char *) "self",(char *) "x", NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetX",kwnames,&obj0,&arg2)) goto fail; | |
2735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2736 | { | |
2737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2738 | (arg1)->SetX(arg2); | |
2739 | ||
2740 | wxPyEndAllowThreads(__tstate); | |
2741 | if (PyErr_Occurred()) SWIG_fail; | |
2742 | } | |
2743 | Py_INCREF(Py_None); resultobj = Py_None; | |
2744 | return resultobj; | |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
2750 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2751 | PyObject *resultobj; | |
2752 | wxRect *arg1 = (wxRect *) 0 ; | |
2753 | int result; | |
2754 | PyObject * obj0 = 0 ; | |
2755 | char *kwnames[] = { | |
2756 | (char *) "self", NULL | |
2757 | }; | |
2758 | ||
2759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2761 | { | |
2762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2763 | result = (int)(arg1)->GetY(); | |
2764 | ||
2765 | wxPyEndAllowThreads(__tstate); | |
2766 | if (PyErr_Occurred()) SWIG_fail; | |
2767 | } | |
2768 | resultobj = PyInt_FromLong((long)result); | |
2769 | return resultobj; | |
2770 | fail: | |
2771 | return NULL; | |
2772 | } | |
2773 | ||
2774 | ||
2775 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject *resultobj; | |
2777 | wxRect *arg1 = (wxRect *) 0 ; | |
2778 | int arg2 ; | |
2779 | PyObject * obj0 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "self",(char *) "y", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetY",kwnames,&obj0,&arg2)) goto fail; | |
2785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2786 | { | |
2787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2788 | (arg1)->SetY(arg2); | |
2789 | ||
2790 | wxPyEndAllowThreads(__tstate); | |
2791 | if (PyErr_Occurred()) SWIG_fail; | |
2792 | } | |
2793 | Py_INCREF(Py_None); resultobj = Py_None; | |
2794 | return resultobj; | |
2795 | fail: | |
2796 | return NULL; | |
2797 | } | |
2798 | ||
2799 | ||
2800 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject *resultobj; | |
2802 | wxRect *arg1 = (wxRect *) 0 ; | |
2803 | int result; | |
2804 | PyObject * obj0 = 0 ; | |
2805 | char *kwnames[] = { | |
2806 | (char *) "self", NULL | |
2807 | }; | |
2808 | ||
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2811 | { | |
2812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2813 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
2814 | ||
2815 | wxPyEndAllowThreads(__tstate); | |
2816 | if (PyErr_Occurred()) SWIG_fail; | |
2817 | } | |
2818 | resultobj = PyInt_FromLong((long)result); | |
2819 | return resultobj; | |
2820 | fail: | |
2821 | return NULL; | |
2822 | } | |
2823 | ||
2824 | ||
2825 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2826 | PyObject *resultobj; | |
2827 | wxRect *arg1 = (wxRect *) 0 ; | |
2828 | int arg2 ; | |
2829 | PyObject * obj0 = 0 ; | |
2830 | char *kwnames[] = { | |
2831 | (char *) "self",(char *) "w", NULL | |
2832 | }; | |
2833 | ||
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2836 | { | |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | (arg1)->SetWidth(arg2); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) SWIG_fail; | |
2842 | } | |
2843 | Py_INCREF(Py_None); resultobj = Py_None; | |
2844 | return resultobj; | |
2845 | fail: | |
2846 | return NULL; | |
2847 | } | |
2848 | ||
2849 | ||
2850 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2851 | PyObject *resultobj; | |
2852 | wxRect *arg1 = (wxRect *) 0 ; | |
2853 | int result; | |
2854 | PyObject * obj0 = 0 ; | |
2855 | char *kwnames[] = { | |
2856 | (char *) "self", NULL | |
2857 | }; | |
2858 | ||
2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2863 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
2864 | ||
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) SWIG_fail; | |
2867 | } | |
2868 | resultobj = PyInt_FromLong((long)result); | |
2869 | return resultobj; | |
2870 | fail: | |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
2875 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2876 | PyObject *resultobj; | |
2877 | wxRect *arg1 = (wxRect *) 0 ; | |
2878 | int arg2 ; | |
2879 | PyObject * obj0 = 0 ; | |
2880 | char *kwnames[] = { | |
2881 | (char *) "self",(char *) "h", NULL | |
2882 | }; | |
2883 | ||
2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2886 | { | |
2887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2888 | (arg1)->SetHeight(arg2); | |
2889 | ||
2890 | wxPyEndAllowThreads(__tstate); | |
2891 | if (PyErr_Occurred()) SWIG_fail; | |
2892 | } | |
2893 | Py_INCREF(Py_None); resultobj = Py_None; | |
2894 | return resultobj; | |
2895 | fail: | |
2896 | return NULL; | |
2897 | } | |
2898 | ||
2899 | ||
2900 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2901 | PyObject *resultobj; | |
2902 | wxRect *arg1 = (wxRect *) 0 ; | |
2903 | wxPoint result; | |
2904 | PyObject * obj0 = 0 ; | |
2905 | char *kwnames[] = { | |
2906 | (char *) "self", NULL | |
2907 | }; | |
2908 | ||
2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2911 | { | |
2912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2913 | result = ((wxRect const *)arg1)->GetPosition(); | |
2914 | ||
2915 | wxPyEndAllowThreads(__tstate); | |
2916 | if (PyErr_Occurred()) SWIG_fail; | |
2917 | } | |
2918 | { | |
2919 | wxPoint * resultptr; | |
2920 | resultptr = new wxPoint((wxPoint &) result); | |
2921 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2922 | } | |
2923 | return resultobj; | |
2924 | fail: | |
2925 | return NULL; | |
2926 | } | |
2927 | ||
2928 | ||
2929 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2930 | PyObject *resultobj; | |
2931 | wxRect *arg1 = (wxRect *) 0 ; | |
2932 | wxPoint *arg2 = 0 ; | |
2933 | wxPoint temp2 ; | |
2934 | PyObject * obj0 = 0 ; | |
2935 | PyObject * obj1 = 0 ; | |
2936 | char *kwnames[] = { | |
2937 | (char *) "self",(char *) "p", NULL | |
2938 | }; | |
2939 | ||
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2942 | { | |
2943 | arg2 = &temp2; | |
2944 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2945 | } | |
2946 | { | |
2947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2948 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
2949 | ||
2950 | wxPyEndAllowThreads(__tstate); | |
2951 | if (PyErr_Occurred()) SWIG_fail; | |
2952 | } | |
2953 | Py_INCREF(Py_None); resultobj = Py_None; | |
2954 | return resultobj; | |
2955 | fail: | |
2956 | return NULL; | |
2957 | } | |
2958 | ||
2959 | ||
2960 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2961 | PyObject *resultobj; | |
2962 | wxRect *arg1 = (wxRect *) 0 ; | |
2963 | wxSize result; | |
2964 | PyObject * obj0 = 0 ; | |
2965 | char *kwnames[] = { | |
2966 | (char *) "self", NULL | |
2967 | }; | |
2968 | ||
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
2970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2971 | { | |
2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2973 | result = ((wxRect const *)arg1)->GetSize(); | |
2974 | ||
2975 | wxPyEndAllowThreads(__tstate); | |
2976 | if (PyErr_Occurred()) SWIG_fail; | |
2977 | } | |
2978 | { | |
2979 | wxSize * resultptr; | |
2980 | resultptr = new wxSize((wxSize &) result); | |
2981 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
2982 | } | |
2983 | return resultobj; | |
2984 | fail: | |
2985 | return NULL; | |
2986 | } | |
2987 | ||
2988 | ||
2989 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject *resultobj; | |
2991 | wxRect *arg1 = (wxRect *) 0 ; | |
2992 | wxSize *arg2 = 0 ; | |
2993 | wxSize temp2 ; | |
2994 | PyObject * obj0 = 0 ; | |
2995 | PyObject * obj1 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "self",(char *) "s", NULL | |
2998 | }; | |
2999 | ||
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3002 | { | |
3003 | arg2 = &temp2; | |
3004 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3005 | } | |
3006 | { | |
3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3008 | (arg1)->SetSize((wxSize const &)*arg2); | |
3009 | ||
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
3013 | Py_INCREF(Py_None); resultobj = Py_None; | |
3014 | return resultobj; | |
3015 | fail: | |
3016 | return NULL; | |
3017 | } | |
3018 | ||
3019 | ||
9fd4be55 RD |
3020 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3021 | PyObject *resultobj; | |
3022 | wxRect *arg1 = (wxRect *) 0 ; | |
3023 | wxPoint result; | |
3024 | PyObject * obj0 = 0 ; | |
3025 | char *kwnames[] = { | |
3026 | (char *) "self", NULL | |
3027 | }; | |
3028 | ||
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3031 | { | |
3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3033 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3034 | ||
3035 | wxPyEndAllowThreads(__tstate); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | } | |
3038 | { | |
3039 | wxPoint * resultptr; | |
3040 | resultptr = new wxPoint((wxPoint &) result); | |
3041 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3042 | } | |
3043 | return resultobj; | |
3044 | fail: | |
3045 | return NULL; | |
3046 | } | |
3047 | ||
3048 | ||
3049 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3050 | PyObject *resultobj; | |
3051 | wxRect *arg1 = (wxRect *) 0 ; | |
3052 | wxPoint *arg2 = 0 ; | |
3053 | wxPoint temp2 ; | |
3054 | PyObject * obj0 = 0 ; | |
3055 | PyObject * obj1 = 0 ; | |
3056 | char *kwnames[] = { | |
3057 | (char *) "self",(char *) "p", NULL | |
3058 | }; | |
3059 | ||
3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3062 | { | |
3063 | arg2 = &temp2; | |
3064 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3065 | } | |
3066 | { | |
3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3068 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3069 | ||
3070 | wxPyEndAllowThreads(__tstate); | |
3071 | if (PyErr_Occurred()) SWIG_fail; | |
3072 | } | |
3073 | Py_INCREF(Py_None); resultobj = Py_None; | |
3074 | return resultobj; | |
3075 | fail: | |
3076 | return NULL; | |
3077 | } | |
3078 | ||
3079 | ||
3080 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3081 | PyObject *resultobj; | |
3082 | wxRect *arg1 = (wxRect *) 0 ; | |
3083 | wxPoint result; | |
3084 | PyObject * obj0 = 0 ; | |
3085 | char *kwnames[] = { | |
3086 | (char *) "self", NULL | |
3087 | }; | |
3088 | ||
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3091 | { | |
3092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3093 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3094 | ||
3095 | wxPyEndAllowThreads(__tstate); | |
3096 | if (PyErr_Occurred()) SWIG_fail; | |
3097 | } | |
3098 | { | |
3099 | wxPoint * resultptr; | |
3100 | resultptr = new wxPoint((wxPoint &) result); | |
3101 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3102 | } | |
3103 | return resultobj; | |
3104 | fail: | |
3105 | return NULL; | |
3106 | } | |
3107 | ||
3108 | ||
3109 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3110 | PyObject *resultobj; | |
3111 | wxRect *arg1 = (wxRect *) 0 ; | |
3112 | wxPoint *arg2 = 0 ; | |
3113 | wxPoint temp2 ; | |
3114 | PyObject * obj0 = 0 ; | |
3115 | PyObject * obj1 = 0 ; | |
3116 | char *kwnames[] = { | |
3117 | (char *) "self",(char *) "p", NULL | |
3118 | }; | |
3119 | ||
3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3122 | { | |
3123 | arg2 = &temp2; | |
3124 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3125 | } | |
3126 | { | |
3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3128 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3129 | ||
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) SWIG_fail; | |
3132 | } | |
3133 | Py_INCREF(Py_None); resultobj = Py_None; | |
3134 | return resultobj; | |
3135 | fail: | |
3136 | return NULL; | |
3137 | } | |
3138 | ||
3139 | ||
d14a1e28 RD |
3140 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3141 | PyObject *resultobj; | |
3142 | wxRect *arg1 = (wxRect *) 0 ; | |
3143 | int result; | |
3144 | PyObject * obj0 = 0 ; | |
3145 | char *kwnames[] = { | |
3146 | (char *) "self", NULL | |
3147 | }; | |
3148 | ||
3149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3151 | { | |
3152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3153 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3154 | ||
3155 | wxPyEndAllowThreads(__tstate); | |
3156 | if (PyErr_Occurred()) SWIG_fail; | |
3157 | } | |
3158 | resultobj = PyInt_FromLong((long)result); | |
3159 | return resultobj; | |
3160 | fail: | |
3161 | return NULL; | |
3162 | } | |
3163 | ||
3164 | ||
3165 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3166 | PyObject *resultobj; | |
3167 | wxRect *arg1 = (wxRect *) 0 ; | |
3168 | int result; | |
3169 | PyObject * obj0 = 0 ; | |
3170 | char *kwnames[] = { | |
3171 | (char *) "self", NULL | |
3172 | }; | |
3173 | ||
3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3176 | { | |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | resultobj = PyInt_FromLong((long)result); | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
3190 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject *resultobj; | |
3192 | wxRect *arg1 = (wxRect *) 0 ; | |
3193 | int result; | |
3194 | PyObject * obj0 = 0 ; | |
3195 | char *kwnames[] = { | |
3196 | (char *) "self", NULL | |
3197 | }; | |
3198 | ||
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3201 | { | |
3202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3203 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3204 | ||
3205 | wxPyEndAllowThreads(__tstate); | |
3206 | if (PyErr_Occurred()) SWIG_fail; | |
3207 | } | |
3208 | resultobj = PyInt_FromLong((long)result); | |
3209 | return resultobj; | |
3210 | fail: | |
3211 | return NULL; | |
3212 | } | |
3213 | ||
3214 | ||
3215 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3216 | PyObject *resultobj; | |
3217 | wxRect *arg1 = (wxRect *) 0 ; | |
3218 | int result; | |
3219 | PyObject * obj0 = 0 ; | |
3220 | char *kwnames[] = { | |
3221 | (char *) "self", NULL | |
3222 | }; | |
3223 | ||
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3226 | { | |
3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3228 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3229 | ||
3230 | wxPyEndAllowThreads(__tstate); | |
3231 | if (PyErr_Occurred()) SWIG_fail; | |
3232 | } | |
3233 | resultobj = PyInt_FromLong((long)result); | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | return NULL; | |
3237 | } | |
3238 | ||
3239 | ||
3240 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject *resultobj; | |
3242 | wxRect *arg1 = (wxRect *) 0 ; | |
3243 | int arg2 ; | |
3244 | PyObject * obj0 = 0 ; | |
3245 | char *kwnames[] = { | |
3246 | (char *) "self",(char *) "left", NULL | |
3247 | }; | |
3248 | ||
3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetLeft",kwnames,&obj0,&arg2)) goto fail; | |
3250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3251 | { | |
3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3253 | (arg1)->SetLeft(arg2); | |
3254 | ||
3255 | wxPyEndAllowThreads(__tstate); | |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
3257 | } | |
3258 | Py_INCREF(Py_None); resultobj = Py_None; | |
3259 | return resultobj; | |
3260 | fail: | |
3261 | return NULL; | |
3262 | } | |
3263 | ||
3264 | ||
3265 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3266 | PyObject *resultobj; | |
3267 | wxRect *arg1 = (wxRect *) 0 ; | |
3268 | int arg2 ; | |
3269 | PyObject * obj0 = 0 ; | |
3270 | char *kwnames[] = { | |
3271 | (char *) "self",(char *) "right", NULL | |
3272 | }; | |
3273 | ||
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetRight",kwnames,&obj0,&arg2)) goto fail; | |
3275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3276 | { | |
3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3278 | (arg1)->SetRight(arg2); | |
3279 | ||
3280 | wxPyEndAllowThreads(__tstate); | |
3281 | if (PyErr_Occurred()) SWIG_fail; | |
3282 | } | |
3283 | Py_INCREF(Py_None); resultobj = Py_None; | |
3284 | return resultobj; | |
3285 | fail: | |
3286 | return NULL; | |
3287 | } | |
3288 | ||
3289 | ||
3290 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3291 | PyObject *resultobj; | |
3292 | wxRect *arg1 = (wxRect *) 0 ; | |
3293 | int arg2 ; | |
3294 | PyObject * obj0 = 0 ; | |
3295 | char *kwnames[] = { | |
3296 | (char *) "self",(char *) "top", NULL | |
3297 | }; | |
3298 | ||
3299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetTop",kwnames,&obj0,&arg2)) goto fail; | |
3300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3301 | { | |
3302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3303 | (arg1)->SetTop(arg2); | |
3304 | ||
3305 | wxPyEndAllowThreads(__tstate); | |
3306 | if (PyErr_Occurred()) SWIG_fail; | |
3307 | } | |
3308 | Py_INCREF(Py_None); resultobj = Py_None; | |
3309 | return resultobj; | |
3310 | fail: | |
3311 | return NULL; | |
3312 | } | |
3313 | ||
3314 | ||
3315 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3316 | PyObject *resultobj; | |
3317 | wxRect *arg1 = (wxRect *) 0 ; | |
3318 | int arg2 ; | |
3319 | PyObject * obj0 = 0 ; | |
3320 | char *kwnames[] = { | |
3321 | (char *) "self",(char *) "bottom", NULL | |
3322 | }; | |
3323 | ||
3324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_SetBottom",kwnames,&obj0,&arg2)) goto fail; | |
3325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3326 | { | |
3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3328 | (arg1)->SetBottom(arg2); | |
3329 | ||
3330 | wxPyEndAllowThreads(__tstate); | |
3331 | if (PyErr_Occurred()) SWIG_fail; | |
3332 | } | |
3333 | Py_INCREF(Py_None); resultobj = Py_None; | |
3334 | return resultobj; | |
3335 | fail: | |
3336 | return NULL; | |
3337 | } | |
3338 | ||
3339 | ||
3340 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3341 | PyObject *resultobj; | |
3342 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3343 | int arg2 ; |
3344 | int arg3 ; | |
d14a1e28 RD |
3345 | wxRect *result; |
3346 | PyObject * obj0 = 0 ; | |
3347 | char *kwnames[] = { | |
3348 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3349 | }; | |
3350 | ||
3351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Inflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3353 | { | |
3354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3355 | { | |
3356 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3357 | result = (wxRect *) &_result_ref; | |
3358 | } | |
3359 | ||
3360 | wxPyEndAllowThreads(__tstate); | |
3361 | if (PyErr_Occurred()) SWIG_fail; | |
3362 | } | |
3363 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3364 | return resultobj; | |
3365 | fail: | |
3366 | return NULL; | |
3367 | } | |
3368 | ||
3369 | ||
3370 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3371 | PyObject *resultobj; | |
3372 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3373 | int arg2 ; |
3374 | int arg3 ; | |
d14a1e28 RD |
3375 | wxRect *result; |
3376 | PyObject * obj0 = 0 ; | |
3377 | char *kwnames[] = { | |
3378 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3379 | }; | |
3380 | ||
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_Deflate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3383 | { | |
3384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3385 | { | |
3386 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3387 | result = (wxRect *) &_result_ref; | |
3388 | } | |
3389 | ||
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) SWIG_fail; | |
3392 | } | |
3393 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3394 | return resultobj; | |
3395 | fail: | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
3400 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3401 | PyObject *resultobj; | |
3402 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3403 | int arg2 ; |
3404 | int arg3 ; | |
d14a1e28 RD |
3405 | PyObject * obj0 = 0 ; |
3406 | char *kwnames[] = { | |
3407 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3408 | }; | |
3409 | ||
3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_OffsetXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3412 | { | |
3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3414 | (arg1)->Offset(arg2,arg3); | |
3415 | ||
3416 | wxPyEndAllowThreads(__tstate); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
3418 | } | |
3419 | Py_INCREF(Py_None); resultobj = Py_None; | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | return NULL; | |
3423 | } | |
3424 | ||
3425 | ||
3426 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject *resultobj; | |
3428 | wxRect *arg1 = (wxRect *) 0 ; | |
3429 | wxPoint *arg2 = 0 ; | |
3430 | wxPoint temp2 ; | |
3431 | PyObject * obj0 = 0 ; | |
3432 | PyObject * obj1 = 0 ; | |
3433 | char *kwnames[] = { | |
3434 | (char *) "self",(char *) "pt", NULL | |
3435 | }; | |
3436 | ||
3437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3439 | { | |
3440 | arg2 = &temp2; | |
3441 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3442 | } | |
3443 | { | |
3444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3445 | (arg1)->Offset((wxPoint const &)*arg2); | |
3446 | ||
3447 | wxPyEndAllowThreads(__tstate); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
3449 | } | |
3450 | Py_INCREF(Py_None); resultobj = Py_None; | |
3451 | return resultobj; | |
3452 | fail: | |
3453 | return NULL; | |
3454 | } | |
3455 | ||
3456 | ||
3457 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3458 | PyObject *resultobj; | |
3459 | wxRect *arg1 = (wxRect *) 0 ; | |
3460 | wxRect *arg2 = 0 ; | |
3461 | wxRect *result; | |
3462 | wxRect temp2 ; | |
3463 | PyObject * obj0 = 0 ; | |
3464 | PyObject * obj1 = 0 ; | |
3465 | char *kwnames[] = { | |
3466 | (char *) "self",(char *) "rect", NULL | |
3467 | }; | |
3468 | ||
3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3471 | { | |
3472 | arg2 = &temp2; | |
3473 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3474 | } | |
3475 | { | |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | { | |
3478 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3479 | result = (wxRect *) &_result_ref; | |
3480 | } | |
3481 | ||
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
3492 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3493 | PyObject *resultobj; | |
3494 | wxRect *arg1 = (wxRect *) 0 ; | |
3495 | wxRect *arg2 = 0 ; | |
3496 | wxRect result; | |
3497 | wxRect temp2 ; | |
3498 | PyObject * obj0 = 0 ; | |
3499 | PyObject * obj1 = 0 ; | |
3500 | char *kwnames[] = { | |
3501 | (char *) "self",(char *) "rect", NULL | |
3502 | }; | |
3503 | ||
3504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3506 | { | |
3507 | arg2 = &temp2; | |
3508 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3509 | } | |
3510 | { | |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | { | |
3518 | wxRect * resultptr; | |
3519 | resultptr = new wxRect((wxRect &) result); | |
3520 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3521 | } | |
3522 | return resultobj; | |
3523 | fail: | |
3524 | return NULL; | |
3525 | } | |
3526 | ||
3527 | ||
3528 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3529 | PyObject *resultobj; | |
3530 | wxRect *arg1 = (wxRect *) 0 ; | |
3531 | wxRect *arg2 = 0 ; | |
3532 | wxRect *result; | |
3533 | wxRect temp2 ; | |
3534 | PyObject * obj0 = 0 ; | |
3535 | PyObject * obj1 = 0 ; | |
3536 | char *kwnames[] = { | |
3537 | (char *) "self",(char *) "rect", NULL | |
3538 | }; | |
3539 | ||
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3542 | { | |
3543 | arg2 = &temp2; | |
3544 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3545 | } | |
3546 | { | |
3547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3548 | { | |
3549 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3550 | result = (wxRect *) &_result_ref; | |
3551 | } | |
3552 | ||
3553 | wxPyEndAllowThreads(__tstate); | |
3554 | if (PyErr_Occurred()) SWIG_fail; | |
3555 | } | |
3556 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3557 | return resultobj; | |
3558 | fail: | |
3559 | return NULL; | |
3560 | } | |
3561 | ||
3562 | ||
3563 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3564 | PyObject *resultobj; | |
3565 | wxRect *arg1 = (wxRect *) 0 ; | |
3566 | wxRect *arg2 = 0 ; | |
3567 | bool result; | |
3568 | wxRect temp2 ; | |
3569 | PyObject * obj0 = 0 ; | |
3570 | PyObject * obj1 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "self",(char *) "rect", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3577 | { | |
3578 | arg2 = &temp2; | |
3579 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3580 | } | |
3581 | { | |
3582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3583 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3584 | ||
3585 | wxPyEndAllowThreads(__tstate); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | } | |
3588 | resultobj = PyInt_FromLong((long)result); | |
3589 | return resultobj; | |
3590 | fail: | |
3591 | return NULL; | |
3592 | } | |
3593 | ||
3594 | ||
3595 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject *resultobj; | |
3597 | wxRect *arg1 = (wxRect *) 0 ; | |
3598 | wxRect *arg2 = 0 ; | |
3599 | bool result; | |
3600 | wxRect temp2 ; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | PyObject * obj1 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "self",(char *) "rect", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3609 | { | |
3610 | arg2 = &temp2; | |
3611 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3612 | } | |
3613 | { | |
3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3615 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
3616 | ||
3617 | wxPyEndAllowThreads(__tstate); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
3620 | resultobj = PyInt_FromLong((long)result); | |
3621 | return resultobj; | |
3622 | fail: | |
3623 | return NULL; | |
3624 | } | |
3625 | ||
3626 | ||
3627 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3628 | PyObject *resultobj; | |
3629 | wxRect *arg1 = (wxRect *) 0 ; | |
3630 | int arg2 ; | |
3631 | int arg3 ; | |
3632 | bool result; | |
3633 | PyObject * obj0 = 0 ; | |
3634 | char *kwnames[] = { | |
3635 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3636 | }; | |
3637 | ||
3638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Rect_InsideXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3640 | { | |
3641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3642 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
3643 | ||
3644 | wxPyEndAllowThreads(__tstate); | |
3645 | if (PyErr_Occurred()) SWIG_fail; | |
3646 | } | |
3647 | resultobj = PyInt_FromLong((long)result); | |
3648 | return resultobj; | |
3649 | fail: | |
3650 | return NULL; | |
3651 | } | |
3652 | ||
3653 | ||
3654 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3655 | PyObject *resultobj; | |
3656 | wxRect *arg1 = (wxRect *) 0 ; | |
3657 | wxPoint *arg2 = 0 ; | |
3658 | bool result; | |
3659 | wxPoint temp2 ; | |
3660 | PyObject * obj0 = 0 ; | |
3661 | PyObject * obj1 = 0 ; | |
3662 | char *kwnames[] = { | |
3663 | (char *) "self",(char *) "pt", NULL | |
3664 | }; | |
3665 | ||
3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
3667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3668 | { | |
3669 | arg2 = &temp2; | |
3670 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3671 | } | |
3672 | { | |
3673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3674 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
3675 | ||
3676 | wxPyEndAllowThreads(__tstate); | |
3677 | if (PyErr_Occurred()) SWIG_fail; | |
3678 | } | |
3679 | resultobj = PyInt_FromLong((long)result); | |
3680 | return resultobj; | |
3681 | fail: | |
3682 | return NULL; | |
3683 | } | |
3684 | ||
3685 | ||
3686 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3687 | PyObject *resultobj; | |
3688 | wxRect *arg1 = (wxRect *) 0 ; | |
3689 | wxRect *arg2 = 0 ; | |
3690 | bool result; | |
3691 | wxRect temp2 ; | |
3692 | PyObject * obj0 = 0 ; | |
3693 | PyObject * obj1 = 0 ; | |
3694 | char *kwnames[] = { | |
3695 | (char *) "self",(char *) "rect", NULL | |
3696 | }; | |
3697 | ||
3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
3699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3700 | { | |
3701 | arg2 = &temp2; | |
3702 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3703 | } | |
3704 | { | |
3705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3706 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
3707 | ||
3708 | wxPyEndAllowThreads(__tstate); | |
3709 | if (PyErr_Occurred()) SWIG_fail; | |
3710 | } | |
3711 | resultobj = PyInt_FromLong((long)result); | |
3712 | return resultobj; | |
3713 | fail: | |
3714 | return NULL; | |
3715 | } | |
3716 | ||
3717 | ||
3718 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3719 | PyObject *resultobj; | |
3720 | wxRect *arg1 = (wxRect *) 0 ; | |
3721 | int arg2 ; | |
3722 | PyObject * obj0 = 0 ; | |
3723 | char *kwnames[] = { | |
3724 | (char *) "self",(char *) "x", NULL | |
3725 | }; | |
3726 | ||
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_x_set",kwnames,&obj0,&arg2)) goto fail; | |
3728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3729 | if (arg1) (arg1)->x = arg2; | |
3730 | ||
3731 | Py_INCREF(Py_None); resultobj = Py_None; | |
3732 | return resultobj; | |
3733 | fail: | |
3734 | return NULL; | |
3735 | } | |
3736 | ||
3737 | ||
3738 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3739 | PyObject *resultobj; | |
3740 | wxRect *arg1 = (wxRect *) 0 ; | |
3741 | int result; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | char *kwnames[] = { | |
3744 | (char *) "self", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
3748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3749 | result = (int) ((arg1)->x); | |
3750 | ||
3751 | resultobj = PyInt_FromLong((long)result); | |
3752 | return resultobj; | |
3753 | fail: | |
3754 | return NULL; | |
3755 | } | |
3756 | ||
3757 | ||
3758 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject *resultobj; | |
3760 | wxRect *arg1 = (wxRect *) 0 ; | |
3761 | int arg2 ; | |
3762 | PyObject * obj0 = 0 ; | |
3763 | char *kwnames[] = { | |
3764 | (char *) "self",(char *) "y", NULL | |
3765 | }; | |
3766 | ||
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_y_set",kwnames,&obj0,&arg2)) goto fail; | |
3768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3769 | if (arg1) (arg1)->y = arg2; | |
3770 | ||
3771 | Py_INCREF(Py_None); resultobj = Py_None; | |
3772 | return resultobj; | |
3773 | fail: | |
3774 | return NULL; | |
3775 | } | |
3776 | ||
3777 | ||
3778 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3779 | PyObject *resultobj; | |
3780 | wxRect *arg1 = (wxRect *) 0 ; | |
3781 | int result; | |
3782 | PyObject * obj0 = 0 ; | |
3783 | char *kwnames[] = { | |
3784 | (char *) "self", NULL | |
3785 | }; | |
3786 | ||
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
3788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3789 | result = (int) ((arg1)->y); | |
3790 | ||
3791 | resultobj = PyInt_FromLong((long)result); | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
3798 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3799 | PyObject *resultobj; | |
3800 | wxRect *arg1 = (wxRect *) 0 ; | |
3801 | int arg2 ; | |
3802 | PyObject * obj0 = 0 ; | |
3803 | char *kwnames[] = { | |
3804 | (char *) "self",(char *) "width", NULL | |
3805 | }; | |
3806 | ||
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_width_set",kwnames,&obj0,&arg2)) goto fail; | |
3808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3809 | if (arg1) (arg1)->width = arg2; | |
3810 | ||
3811 | Py_INCREF(Py_None); resultobj = Py_None; | |
3812 | return resultobj; | |
3813 | fail: | |
3814 | return NULL; | |
3815 | } | |
3816 | ||
3817 | ||
3818 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3819 | PyObject *resultobj; | |
3820 | wxRect *arg1 = (wxRect *) 0 ; | |
3821 | int result; | |
3822 | PyObject * obj0 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
3828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3829 | result = (int) ((arg1)->width); | |
3830 | ||
3831 | resultobj = PyInt_FromLong((long)result); | |
3832 | return resultobj; | |
3833 | fail: | |
3834 | return NULL; | |
3835 | } | |
3836 | ||
3837 | ||
3838 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3839 | PyObject *resultobj; | |
3840 | wxRect *arg1 = (wxRect *) 0 ; | |
3841 | int arg2 ; | |
3842 | PyObject * obj0 = 0 ; | |
3843 | char *kwnames[] = { | |
3844 | (char *) "self",(char *) "height", NULL | |
3845 | }; | |
3846 | ||
3847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Rect_height_set",kwnames,&obj0,&arg2)) goto fail; | |
3848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3849 | if (arg1) (arg1)->height = arg2; | |
3850 | ||
3851 | Py_INCREF(Py_None); resultobj = Py_None; | |
3852 | return resultobj; | |
3853 | fail: | |
3854 | return NULL; | |
3855 | } | |
3856 | ||
3857 | ||
3858 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3859 | PyObject *resultobj; | |
3860 | wxRect *arg1 = (wxRect *) 0 ; | |
3861 | int result; | |
3862 | PyObject * obj0 = 0 ; | |
3863 | char *kwnames[] = { | |
3864 | (char *) "self", NULL | |
3865 | }; | |
3866 | ||
3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
3868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3869 | result = (int) ((arg1)->height); | |
3870 | ||
3871 | resultobj = PyInt_FromLong((long)result); | |
3872 | return resultobj; | |
3873 | fail: | |
3874 | return NULL; | |
3875 | } | |
3876 | ||
3877 | ||
3878 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3879 | PyObject *resultobj; | |
3880 | wxRect *arg1 = (wxRect *) 0 ; | |
3881 | int arg2 = (int) 0 ; | |
3882 | int arg3 = (int) 0 ; | |
3883 | int arg4 = (int) 0 ; | |
3884 | int arg5 = (int) 0 ; | |
3885 | PyObject * obj0 = 0 ; | |
3886 | char *kwnames[] = { | |
3887 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3888 | }; | |
3889 | ||
3890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiii:Rect_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
3891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3892 | { | |
3893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3894 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
3895 | ||
3896 | wxPyEndAllowThreads(__tstate); | |
3897 | if (PyErr_Occurred()) SWIG_fail; | |
3898 | } | |
3899 | Py_INCREF(Py_None); resultobj = Py_None; | |
3900 | return resultobj; | |
3901 | fail: | |
3902 | return NULL; | |
3903 | } | |
3904 | ||
3905 | ||
423f194a | 3906 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3907 | PyObject *resultobj; |
3908 | wxRect *arg1 = (wxRect *) 0 ; | |
3909 | PyObject *result; | |
3910 | PyObject * obj0 = 0 ; | |
3911 | char *kwnames[] = { | |
3912 | (char *) "self", NULL | |
3913 | }; | |
3914 | ||
423f194a | 3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
3916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3917 | { | |
3918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3919 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
3920 | |
3921 | wxPyEndAllowThreads(__tstate); | |
3922 | if (PyErr_Occurred()) SWIG_fail; | |
3923 | } | |
3924 | resultobj = result; | |
3925 | return resultobj; | |
3926 | fail: | |
3927 | return NULL; | |
3928 | } | |
3929 | ||
3930 | ||
3931 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
3932 | PyObject *obj; | |
3933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3934 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
3935 | Py_INCREF(obj); | |
3936 | return Py_BuildValue((char *)""); | |
3937 | } | |
3938 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3939 | PyObject *resultobj; | |
3940 | wxRect *arg1 = (wxRect *) 0 ; | |
3941 | wxRect *arg2 = (wxRect *) 0 ; | |
3942 | PyObject *result; | |
3943 | PyObject * obj0 = 0 ; | |
3944 | PyObject * obj1 = 0 ; | |
3945 | char *kwnames[] = { | |
3946 | (char *) "r1",(char *) "r2", NULL | |
3947 | }; | |
3948 | ||
3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
3950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3951 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3952 | { | |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
3955 | ||
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
3959 | resultobj = result; | |
3960 | return resultobj; | |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
3966 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject *resultobj; | |
3968 | double arg1 = (double) 0.0 ; | |
3969 | double arg2 = (double) 0.0 ; | |
3970 | wxPoint2D *result; | |
3971 | char *kwnames[] = { | |
3972 | (char *) "x",(char *) "y", NULL | |
3973 | }; | |
3974 | ||
3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|dd:new_Point2D",kwnames,&arg1,&arg2)) goto fail; | |
3976 | { | |
3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3978 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
3979 | ||
3980 | wxPyEndAllowThreads(__tstate); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
3990 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj; | |
3992 | wxPoint2D *arg1 = 0 ; | |
3993 | wxPoint2D *result; | |
3994 | wxPoint2D temp1 ; | |
3995 | PyObject * obj0 = 0 ; | |
3996 | char *kwnames[] = { | |
3997 | (char *) "pt", NULL | |
3998 | }; | |
3999 | ||
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4001 | { | |
4002 | arg1 = &temp1; | |
4003 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4004 | } | |
4005 | { | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4008 | ||
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
4012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4013 | return resultobj; | |
4014 | fail: | |
4015 | return NULL; | |
4016 | } | |
4017 | ||
4018 | ||
4019 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4020 | PyObject *resultobj; | |
4021 | wxPoint *arg1 = 0 ; | |
4022 | wxPoint2D *result; | |
4023 | wxPoint temp1 ; | |
4024 | PyObject * obj0 = 0 ; | |
4025 | char *kwnames[] = { | |
4026 | (char *) "pt", NULL | |
4027 | }; | |
4028 | ||
4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4030 | { | |
4031 | arg1 = &temp1; | |
4032 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4033 | } | |
4034 | { | |
4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4036 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4037 | ||
4038 | wxPyEndAllowThreads(__tstate); | |
4039 | if (PyErr_Occurred()) SWIG_fail; | |
4040 | } | |
4041 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4042 | return resultobj; | |
4043 | fail: | |
4044 | return NULL; | |
4045 | } | |
4046 | ||
4047 | ||
4048 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4049 | PyObject *resultobj; | |
4050 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4051 | int *arg2 = (int *) 0 ; | |
4052 | int *arg3 = (int *) 0 ; | |
4053 | int temp2 ; | |
4054 | int temp3 ; | |
4055 | PyObject * obj0 = 0 ; | |
4056 | char *kwnames[] = { | |
4057 | (char *) "self", NULL | |
4058 | }; | |
4059 | ||
4060 | arg2 = &temp2; | |
4061 | arg3 = &temp3; | |
4062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4064 | { | |
4065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4066 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4067 | ||
4068 | wxPyEndAllowThreads(__tstate); | |
4069 | if (PyErr_Occurred()) SWIG_fail; | |
4070 | } | |
4071 | Py_INCREF(Py_None); resultobj = Py_None; | |
4072 | { | |
4073 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4074 | resultobj = t_output_helper(resultobj,o); | |
4075 | } | |
4076 | { | |
4077 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4078 | resultobj = t_output_helper(resultobj,o); | |
4079 | } | |
4080 | return resultobj; | |
4081 | fail: | |
4082 | return NULL; | |
4083 | } | |
4084 | ||
4085 | ||
4086 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4087 | PyObject *resultobj; | |
4088 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4089 | int *arg2 = (int *) 0 ; | |
4090 | int *arg3 = (int *) 0 ; | |
4091 | int temp2 ; | |
4092 | int temp3 ; | |
4093 | PyObject * obj0 = 0 ; | |
4094 | char *kwnames[] = { | |
4095 | (char *) "self", NULL | |
4096 | }; | |
4097 | ||
4098 | arg2 = &temp2; | |
4099 | arg3 = &temp3; | |
4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4102 | { | |
4103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4104 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4105 | ||
4106 | wxPyEndAllowThreads(__tstate); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | } | |
4109 | Py_INCREF(Py_None); resultobj = Py_None; | |
4110 | { | |
4111 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4112 | resultobj = t_output_helper(resultobj,o); | |
4113 | } | |
4114 | { | |
4115 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4116 | resultobj = t_output_helper(resultobj,o); | |
4117 | } | |
4118 | return resultobj; | |
4119 | fail: | |
4120 | return NULL; | |
4121 | } | |
4122 | ||
4123 | ||
4124 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject *resultobj; | |
4126 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4127 | double result; | |
4128 | PyObject * obj0 = 0 ; | |
4129 | char *kwnames[] = { | |
4130 | (char *) "self", NULL | |
4131 | }; | |
4132 | ||
4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4135 | { | |
4136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4137 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4138 | ||
4139 | wxPyEndAllowThreads(__tstate); | |
4140 | if (PyErr_Occurred()) SWIG_fail; | |
4141 | } | |
4142 | resultobj = PyFloat_FromDouble(result); | |
4143 | return resultobj; | |
4144 | fail: | |
4145 | return NULL; | |
4146 | } | |
4147 | ||
4148 | ||
4149 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4150 | PyObject *resultobj; | |
4151 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4152 | double result; | |
4153 | PyObject * obj0 = 0 ; | |
4154 | char *kwnames[] = { | |
4155 | (char *) "self", NULL | |
4156 | }; | |
4157 | ||
4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4160 | { | |
4161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4162 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4163 | ||
4164 | wxPyEndAllowThreads(__tstate); | |
4165 | if (PyErr_Occurred()) SWIG_fail; | |
4166 | } | |
4167 | resultobj = PyFloat_FromDouble(result); | |
4168 | return resultobj; | |
4169 | fail: | |
4170 | return NULL; | |
4171 | } | |
4172 | ||
4173 | ||
4174 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4175 | PyObject *resultobj; | |
4176 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4177 | double arg2 ; | |
4178 | PyObject * obj0 = 0 ; | |
4179 | char *kwnames[] = { | |
4180 | (char *) "self",(char *) "length", NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorLength",kwnames,&obj0,&arg2)) goto fail; | |
4184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4185 | { | |
4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4187 | (arg1)->SetVectorLength(arg2); | |
4188 | ||
4189 | wxPyEndAllowThreads(__tstate); | |
4190 | if (PyErr_Occurred()) SWIG_fail; | |
4191 | } | |
4192 | Py_INCREF(Py_None); resultobj = Py_None; | |
4193 | return resultobj; | |
4194 | fail: | |
4195 | return NULL; | |
4196 | } | |
4197 | ||
4198 | ||
4199 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject *resultobj; | |
4201 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4202 | double arg2 ; | |
4203 | PyObject * obj0 = 0 ; | |
4204 | char *kwnames[] = { | |
4205 | (char *) "self",(char *) "degrees", NULL | |
4206 | }; | |
4207 | ||
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_SetVectorAngle",kwnames,&obj0,&arg2)) goto fail; | |
4209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4210 | { | |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4212 | (arg1)->SetVectorAngle(arg2); | |
4213 | ||
4214 | wxPyEndAllowThreads(__tstate); | |
4215 | if (PyErr_Occurred()) SWIG_fail; | |
4216 | } | |
4217 | Py_INCREF(Py_None); resultobj = Py_None; | |
4218 | return resultobj; | |
4219 | fail: | |
4220 | return NULL; | |
4221 | } | |
4222 | ||
4223 | ||
4224 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4225 | PyObject *resultobj; | |
4226 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4227 | wxPoint2D *arg2 = 0 ; | |
4228 | double result; | |
4229 | wxPoint2D temp2 ; | |
4230 | PyObject * obj0 = 0 ; | |
4231 | PyObject * obj1 = 0 ; | |
4232 | char *kwnames[] = { | |
4233 | (char *) "self",(char *) "pt", NULL | |
4234 | }; | |
4235 | ||
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4238 | { | |
4239 | arg2 = &temp2; | |
4240 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4241 | } | |
4242 | { | |
4243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4244 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4245 | ||
4246 | wxPyEndAllowThreads(__tstate); | |
4247 | if (PyErr_Occurred()) SWIG_fail; | |
4248 | } | |
4249 | resultobj = PyFloat_FromDouble(result); | |
4250 | return resultobj; | |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
4256 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4257 | PyObject *resultobj; | |
4258 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4259 | wxPoint2D *arg2 = 0 ; | |
4260 | double result; | |
4261 | wxPoint2D temp2 ; | |
4262 | PyObject * obj0 = 0 ; | |
4263 | PyObject * obj1 = 0 ; | |
4264 | char *kwnames[] = { | |
4265 | (char *) "self",(char *) "pt", NULL | |
4266 | }; | |
4267 | ||
4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4270 | { | |
4271 | arg2 = &temp2; | |
4272 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4273 | } | |
4274 | { | |
4275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4277 | ||
4278 | wxPyEndAllowThreads(__tstate); | |
4279 | if (PyErr_Occurred()) SWIG_fail; | |
4280 | } | |
4281 | resultobj = PyFloat_FromDouble(result); | |
4282 | return resultobj; | |
4283 | fail: | |
4284 | return NULL; | |
4285 | } | |
4286 | ||
4287 | ||
4288 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject *resultobj; | |
4290 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4291 | wxPoint2D *arg2 = 0 ; | |
4292 | double result; | |
4293 | wxPoint2D temp2 ; | |
4294 | PyObject * obj0 = 0 ; | |
4295 | PyObject * obj1 = 0 ; | |
4296 | char *kwnames[] = { | |
4297 | (char *) "self",(char *) "vec", NULL | |
4298 | }; | |
4299 | ||
4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4302 | { | |
4303 | arg2 = &temp2; | |
4304 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4305 | } | |
4306 | { | |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4308 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4309 | ||
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
4313 | resultobj = PyFloat_FromDouble(result); | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
4320 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4321 | PyObject *resultobj; | |
4322 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4323 | wxPoint2D *arg2 = 0 ; | |
4324 | double result; | |
4325 | wxPoint2D temp2 ; | |
4326 | PyObject * obj0 = 0 ; | |
4327 | PyObject * obj1 = 0 ; | |
4328 | char *kwnames[] = { | |
4329 | (char *) "self",(char *) "vec", NULL | |
4330 | }; | |
4331 | ||
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4334 | { | |
4335 | arg2 = &temp2; | |
4336 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4337 | } | |
4338 | { | |
4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4340 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4341 | ||
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | resultobj = PyFloat_FromDouble(result); | |
4346 | return resultobj; | |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
4352 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj; | |
4354 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4355 | wxPoint2D result; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | char *kwnames[] = { | |
4358 | (char *) "self", NULL | |
4359 | }; | |
4360 | ||
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4363 | { | |
4364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4365 | result = (arg1)->operator -(); | |
4366 | ||
4367 | wxPyEndAllowThreads(__tstate); | |
4368 | if (PyErr_Occurred()) SWIG_fail; | |
4369 | } | |
4370 | { | |
4371 | wxPoint2D * resultptr; | |
4372 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4373 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4374 | } | |
4375 | return resultobj; | |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject *resultobj; | |
4383 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4384 | wxPoint2D *arg2 = 0 ; | |
4385 | wxPoint2D *result; | |
4386 | wxPoint2D temp2 ; | |
4387 | PyObject * obj0 = 0 ; | |
4388 | PyObject * obj1 = 0 ; | |
4389 | char *kwnames[] = { | |
4390 | (char *) "self",(char *) "pt", NULL | |
4391 | }; | |
4392 | ||
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4395 | { | |
4396 | arg2 = &temp2; | |
4397 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4398 | } | |
4399 | { | |
4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4401 | { | |
4402 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4403 | result = (wxPoint2D *) &_result_ref; | |
4404 | } | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4409 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4410 | return resultobj; | |
4411 | fail: | |
4412 | return NULL; | |
4413 | } | |
4414 | ||
4415 | ||
4416 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4417 | PyObject *resultobj; | |
4418 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4419 | wxPoint2D *arg2 = 0 ; | |
4420 | wxPoint2D *result; | |
4421 | wxPoint2D temp2 ; | |
4422 | PyObject * obj0 = 0 ; | |
4423 | PyObject * obj1 = 0 ; | |
4424 | char *kwnames[] = { | |
4425 | (char *) "self",(char *) "pt", NULL | |
4426 | }; | |
4427 | ||
4428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4430 | { | |
4431 | arg2 = &temp2; | |
4432 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4433 | } | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | { | |
4437 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4438 | result = (wxPoint2D *) &_result_ref; | |
4439 | } | |
4440 | ||
4441 | wxPyEndAllowThreads(__tstate); | |
4442 | if (PyErr_Occurred()) SWIG_fail; | |
4443 | } | |
4444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4445 | return resultobj; | |
4446 | fail: | |
4447 | return NULL; | |
4448 | } | |
4449 | ||
4450 | ||
4451 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4452 | PyObject *resultobj; | |
4453 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4454 | wxPoint2D *arg2 = 0 ; | |
4455 | wxPoint2D *result; | |
4456 | wxPoint2D temp2 ; | |
4457 | PyObject * obj0 = 0 ; | |
4458 | PyObject * obj1 = 0 ; | |
4459 | char *kwnames[] = { | |
4460 | (char *) "self",(char *) "pt", NULL | |
4461 | }; | |
4462 | ||
4463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4465 | { | |
4466 | arg2 = &temp2; | |
4467 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4468 | } | |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | { | |
4472 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4473 | result = (wxPoint2D *) &_result_ref; | |
4474 | } | |
4475 | ||
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4487 | PyObject *resultobj; | |
4488 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4489 | wxPoint2D *arg2 = 0 ; | |
4490 | wxPoint2D *result; | |
4491 | wxPoint2D temp2 ; | |
4492 | PyObject * obj0 = 0 ; | |
4493 | PyObject * obj1 = 0 ; | |
4494 | char *kwnames[] = { | |
4495 | (char *) "self",(char *) "pt", NULL | |
4496 | }; | |
4497 | ||
4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4500 | { | |
4501 | arg2 = &temp2; | |
4502 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4503 | } | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | { | |
4507 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4508 | result = (wxPoint2D *) &_result_ref; | |
4509 | } | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4514 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4515 | return resultobj; | |
4516 | fail: | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4522 | PyObject *resultobj; | |
4523 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4524 | wxPoint2D *arg2 = 0 ; | |
4525 | bool result; | |
4526 | wxPoint2D temp2 ; | |
4527 | PyObject * obj0 = 0 ; | |
4528 | PyObject * obj1 = 0 ; | |
4529 | char *kwnames[] = { | |
4530 | (char *) "self",(char *) "pt", NULL | |
4531 | }; | |
4532 | ||
4533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4535 | { | |
4536 | arg2 = &temp2; | |
4537 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4538 | } | |
4539 | { | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4541 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
4542 | ||
4543 | wxPyEndAllowThreads(__tstate); | |
4544 | if (PyErr_Occurred()) SWIG_fail; | |
4545 | } | |
4546 | resultobj = PyInt_FromLong((long)result); | |
4547 | return resultobj; | |
4548 | fail: | |
4549 | return NULL; | |
4550 | } | |
4551 | ||
4552 | ||
4553 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4554 | PyObject *resultobj; | |
4555 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4556 | wxPoint2D *arg2 = 0 ; | |
4557 | bool result; | |
4558 | wxPoint2D temp2 ; | |
4559 | PyObject * obj0 = 0 ; | |
4560 | PyObject * obj1 = 0 ; | |
4561 | char *kwnames[] = { | |
4562 | (char *) "self",(char *) "pt", NULL | |
4563 | }; | |
4564 | ||
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4567 | { | |
4568 | arg2 = &temp2; | |
4569 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4570 | } | |
4571 | { | |
4572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4573 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
4574 | ||
4575 | wxPyEndAllowThreads(__tstate); | |
4576 | if (PyErr_Occurred()) SWIG_fail; | |
4577 | } | |
4578 | resultobj = PyInt_FromLong((long)result); | |
4579 | return resultobj; | |
4580 | fail: | |
4581 | return NULL; | |
4582 | } | |
4583 | ||
4584 | ||
d14a1e28 RD |
4585 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
4586 | PyObject *resultobj; | |
4587 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4588 | double arg2 ; | |
4589 | PyObject * obj0 = 0 ; | |
4590 | char *kwnames[] = { | |
4591 | (char *) "self",(char *) "m_x", NULL | |
4592 | }; | |
4593 | ||
4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_x_set",kwnames,&obj0,&arg2)) goto fail; | |
4595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4596 | if (arg1) (arg1)->m_x = arg2; | |
4597 | ||
4598 | Py_INCREF(Py_None); resultobj = Py_None; | |
4599 | return resultobj; | |
4600 | fail: | |
4601 | return NULL; | |
4602 | } | |
4603 | ||
4604 | ||
4605 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4606 | PyObject *resultobj; | |
4607 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4608 | double result; | |
4609 | PyObject * obj0 = 0 ; | |
4610 | char *kwnames[] = { | |
4611 | (char *) "self", NULL | |
4612 | }; | |
4613 | ||
4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
4615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4616 | result = (double) ((arg1)->m_x); | |
4617 | ||
4618 | resultobj = PyFloat_FromDouble(result); | |
4619 | return resultobj; | |
4620 | fail: | |
4621 | return NULL; | |
4622 | } | |
4623 | ||
4624 | ||
4625 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4626 | PyObject *resultobj; | |
4627 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4628 | double arg2 ; | |
4629 | PyObject * obj0 = 0 ; | |
4630 | char *kwnames[] = { | |
4631 | (char *) "self",(char *) "m_y", NULL | |
4632 | }; | |
4633 | ||
4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:Point2D_y_set",kwnames,&obj0,&arg2)) goto fail; | |
4635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4636 | if (arg1) (arg1)->m_y = arg2; | |
4637 | ||
4638 | Py_INCREF(Py_None); resultobj = Py_None; | |
4639 | return resultobj; | |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
4645 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4646 | PyObject *resultobj; | |
4647 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4648 | double result; | |
4649 | PyObject * obj0 = 0 ; | |
4650 | char *kwnames[] = { | |
4651 | (char *) "self", NULL | |
4652 | }; | |
4653 | ||
4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
4655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4656 | result = (double) ((arg1)->m_y); | |
4657 | ||
4658 | resultobj = PyFloat_FromDouble(result); | |
4659 | return resultobj; | |
4660 | fail: | |
4661 | return NULL; | |
4662 | } | |
4663 | ||
4664 | ||
4665 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject *resultobj; | |
4667 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4668 | double arg2 = (double) 0 ; | |
4669 | double arg3 = (double) 0 ; | |
4670 | PyObject * obj0 = 0 ; | |
4671 | char *kwnames[] = { | |
4672 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4673 | }; | |
4674 | ||
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|dd:Point2D_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4677 | { | |
4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4679 | wxPoint2D_Set(arg1,arg2,arg3); | |
4680 | ||
4681 | wxPyEndAllowThreads(__tstate); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | } | |
4684 | Py_INCREF(Py_None); resultobj = Py_None; | |
4685 | return resultobj; | |
4686 | fail: | |
4687 | return NULL; | |
4688 | } | |
4689 | ||
4690 | ||
423f194a | 4691 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4692 | PyObject *resultobj; |
4693 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4694 | PyObject *result; | |
4695 | PyObject * obj0 = 0 ; | |
4696 | char *kwnames[] = { | |
4697 | (char *) "self", NULL | |
4698 | }; | |
4699 | ||
423f194a | 4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4702 | { | |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4704 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
4705 | |
4706 | wxPyEndAllowThreads(__tstate); | |
4707 | if (PyErr_Occurred()) SWIG_fail; | |
4708 | } | |
4709 | resultobj = result; | |
4710 | return resultobj; | |
4711 | fail: | |
4712 | return NULL; | |
4713 | } | |
4714 | ||
4715 | ||
4716 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
4717 | PyObject *obj; | |
4718 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4719 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
4720 | Py_INCREF(obj); | |
4721 | return Py_BuildValue((char *)""); | |
4722 | } | |
4723 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
4724 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
4725 | return 1; | |
4726 | } | |
4727 | ||
4728 | ||
4729 | static PyObject *_wrap_DefaultPosition_get() { | |
4730 | PyObject *pyobj; | |
4731 | ||
4732 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
4733 | return pyobj; | |
4734 | } | |
4735 | ||
4736 | ||
4737 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
4738 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
4739 | return 1; | |
4740 | } | |
4741 | ||
4742 | ||
4743 | static PyObject *_wrap_DefaultSize_get() { | |
4744 | PyObject *pyobj; | |
4745 | ||
4746 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
4747 | return pyobj; | |
4748 | } | |
4749 | ||
4750 | ||
4751 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject *resultobj; | |
4753 | PyObject *arg1 = (PyObject *) 0 ; | |
4754 | wxPyInputStream *result; | |
4755 | PyObject * obj0 = 0 ; | |
4756 | char *kwnames[] = { | |
4757 | (char *) "p", NULL | |
4758 | }; | |
4759 | ||
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
4761 | arg1 = obj0; | |
4762 | { | |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4764 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
4765 | ||
4766 | wxPyEndAllowThreads(__tstate); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
4770 | return resultobj; | |
4771 | fail: | |
4772 | return NULL; | |
4773 | } | |
4774 | ||
4775 | ||
4776 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4777 | PyObject *resultobj; | |
4778 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4779 | PyObject * obj0 = 0 ; | |
4780 | char *kwnames[] = { | |
4781 | (char *) "self", NULL | |
4782 | }; | |
4783 | ||
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
4785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | (arg1)->close(); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4793 | Py_INCREF(Py_None); resultobj = Py_None; | |
4794 | return resultobj; | |
4795 | fail: | |
4796 | return NULL; | |
4797 | } | |
4798 | ||
4799 | ||
4800 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject *resultobj; | |
4802 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4803 | PyObject * obj0 = 0 ; | |
4804 | char *kwnames[] = { | |
4805 | (char *) "self", NULL | |
4806 | }; | |
4807 | ||
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
4809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4810 | { | |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4812 | (arg1)->flush(); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
4817 | Py_INCREF(Py_None); resultobj = Py_None; | |
4818 | return resultobj; | |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
4824 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4825 | PyObject *resultobj; | |
4826 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4827 | bool result; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | char *kwnames[] = { | |
4830 | (char *) "self", NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
4834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4835 | { | |
4836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4837 | result = (bool)(arg1)->eof(); | |
4838 | ||
4839 | wxPyEndAllowThreads(__tstate); | |
4840 | if (PyErr_Occurred()) SWIG_fail; | |
4841 | } | |
4842 | resultobj = PyInt_FromLong((long)result); | |
4843 | return resultobj; | |
4844 | fail: | |
4845 | return NULL; | |
4846 | } | |
4847 | ||
4848 | ||
4849 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4850 | PyObject *resultobj; | |
4851 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4852 | int arg2 = (int) -1 ; | |
4853 | PyObject *result; | |
4854 | PyObject * obj0 = 0 ; | |
4855 | char *kwnames[] = { | |
4856 | (char *) "self",(char *) "size", NULL | |
4857 | }; | |
4858 | ||
4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_read",kwnames,&obj0,&arg2)) goto fail; | |
4860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4861 | { | |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | result = (PyObject *)(arg1)->read(arg2); | |
4864 | ||
4865 | wxPyEndAllowThreads(__tstate); | |
4866 | if (PyErr_Occurred()) SWIG_fail; | |
4867 | } | |
4868 | resultobj = result; | |
4869 | return resultobj; | |
4870 | fail: | |
4871 | return NULL; | |
4872 | } | |
4873 | ||
4874 | ||
4875 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4878 | int arg2 = (int) -1 ; | |
4879 | PyObject *result; | |
4880 | PyObject * obj0 = 0 ; | |
4881 | char *kwnames[] = { | |
4882 | (char *) "self",(char *) "size", NULL | |
4883 | }; | |
4884 | ||
4885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readline",kwnames,&obj0,&arg2)) goto fail; | |
4886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4887 | { | |
4888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4889 | result = (PyObject *)(arg1)->readline(arg2); | |
4890 | ||
4891 | wxPyEndAllowThreads(__tstate); | |
4892 | if (PyErr_Occurred()) SWIG_fail; | |
4893 | } | |
4894 | resultobj = result; | |
4895 | return resultobj; | |
4896 | fail: | |
4897 | return NULL; | |
4898 | } | |
4899 | ||
4900 | ||
4901 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4902 | PyObject *resultobj; | |
4903 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4904 | int arg2 = (int) -1 ; | |
4905 | PyObject *result; | |
4906 | PyObject * obj0 = 0 ; | |
4907 | char *kwnames[] = { | |
4908 | (char *) "self",(char *) "sizehint", NULL | |
4909 | }; | |
4910 | ||
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:InputStream_readlines",kwnames,&obj0,&arg2)) goto fail; | |
4912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4913 | { | |
4914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4915 | result = (PyObject *)(arg1)->readlines(arg2); | |
4916 | ||
4917 | wxPyEndAllowThreads(__tstate); | |
4918 | if (PyErr_Occurred()) SWIG_fail; | |
4919 | } | |
4920 | resultobj = result; | |
4921 | return resultobj; | |
4922 | fail: | |
4923 | return NULL; | |
4924 | } | |
4925 | ||
4926 | ||
4927 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4928 | PyObject *resultobj; | |
4929 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4930 | int arg2 ; | |
4931 | int arg3 = (int) 0 ; | |
4932 | PyObject * obj0 = 0 ; | |
4933 | char *kwnames[] = { | |
4934 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
4935 | }; | |
4936 | ||
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:InputStream_seek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | (arg1)->seek(arg2,arg3); | |
4942 | ||
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | Py_INCREF(Py_None); resultobj = Py_None; | |
4947 | return resultobj; | |
4948 | fail: | |
4949 | return NULL; | |
4950 | } | |
4951 | ||
4952 | ||
4953 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4954 | PyObject *resultobj; | |
4955 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4956 | int result; | |
4957 | PyObject * obj0 = 0 ; | |
4958 | char *kwnames[] = { | |
4959 | (char *) "self", NULL | |
4960 | }; | |
4961 | ||
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
4963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4964 | { | |
4965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4966 | result = (int)(arg1)->tell(); | |
4967 | ||
4968 | wxPyEndAllowThreads(__tstate); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4971 | resultobj = PyInt_FromLong((long)result); | |
4972 | return resultobj; | |
4973 | fail: | |
4974 | return NULL; | |
4975 | } | |
4976 | ||
4977 | ||
4978 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject *resultobj; | |
4980 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
4981 | char result; | |
4982 | PyObject * obj0 = 0 ; | |
4983 | char *kwnames[] = { | |
4984 | (char *) "self", NULL | |
4985 | }; | |
4986 | ||
4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
4988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4989 | { | |
4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4991 | result = (char)(arg1)->Peek(); | |
4992 | ||
4993 | wxPyEndAllowThreads(__tstate); | |
4994 | if (PyErr_Occurred()) SWIG_fail; | |
4995 | } | |
4996 | resultobj = Py_BuildValue((char*)"c",result); | |
4997 | return resultobj; | |
4998 | fail: | |
4999 | return NULL; | |
5000 | } | |
5001 | ||
5002 | ||
5003 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject *resultobj; | |
5005 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5006 | char result; | |
5007 | PyObject * obj0 = 0 ; | |
5008 | char *kwnames[] = { | |
5009 | (char *) "self", NULL | |
5010 | }; | |
5011 | ||
5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5014 | { | |
5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5016 | result = (char)(arg1)->GetC(); | |
5017 | ||
5018 | wxPyEndAllowThreads(__tstate); | |
5019 | if (PyErr_Occurred()) SWIG_fail; | |
5020 | } | |
5021 | resultobj = Py_BuildValue((char*)"c",result); | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
5028 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5029 | PyObject *resultobj; | |
5030 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5031 | size_t result; | |
5032 | PyObject * obj0 = 0 ; | |
5033 | char *kwnames[] = { | |
5034 | (char *) "self", NULL | |
5035 | }; | |
5036 | ||
5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5039 | { | |
5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5041 | result = (size_t)(arg1)->LastRead(); | |
5042 | ||
5043 | wxPyEndAllowThreads(__tstate); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
5046 | resultobj = PyInt_FromLong((long)result); | |
5047 | return resultobj; | |
5048 | fail: | |
5049 | return NULL; | |
5050 | } | |
5051 | ||
5052 | ||
5053 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5054 | PyObject *resultobj; | |
5055 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5056 | bool result; | |
5057 | PyObject * obj0 = 0 ; | |
5058 | char *kwnames[] = { | |
5059 | (char *) "self", NULL | |
5060 | }; | |
5061 | ||
5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | result = (bool)(arg1)->CanRead(); | |
5067 | ||
5068 | wxPyEndAllowThreads(__tstate); | |
5069 | if (PyErr_Occurred()) SWIG_fail; | |
5070 | } | |
5071 | resultobj = PyInt_FromLong((long)result); | |
5072 | return resultobj; | |
5073 | fail: | |
5074 | return NULL; | |
5075 | } | |
5076 | ||
5077 | ||
5078 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5079 | PyObject *resultobj; | |
5080 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5081 | bool result; | |
5082 | PyObject * obj0 = 0 ; | |
5083 | char *kwnames[] = { | |
5084 | (char *) "self", NULL | |
5085 | }; | |
5086 | ||
5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5089 | { | |
5090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5091 | result = (bool)(arg1)->Eof(); | |
5092 | ||
5093 | wxPyEndAllowThreads(__tstate); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | } | |
5096 | resultobj = PyInt_FromLong((long)result); | |
5097 | return resultobj; | |
5098 | fail: | |
5099 | return NULL; | |
5100 | } | |
5101 | ||
5102 | ||
5103 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5104 | PyObject *resultobj; | |
5105 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5106 | char arg2 ; | |
5107 | bool result; | |
5108 | PyObject * obj0 = 0 ; | |
5109 | char *kwnames[] = { | |
5110 | (char *) "self",(char *) "c", NULL | |
5111 | }; | |
5112 | ||
5113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oc:InputStream_Ungetch",kwnames,&obj0,&arg2)) goto fail; | |
5114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5115 | { | |
5116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5117 | result = (bool)(arg1)->Ungetch(arg2); | |
5118 | ||
5119 | wxPyEndAllowThreads(__tstate); | |
5120 | if (PyErr_Occurred()) SWIG_fail; | |
5121 | } | |
5122 | resultobj = PyInt_FromLong((long)result); | |
5123 | return resultobj; | |
5124 | fail: | |
5125 | return NULL; | |
5126 | } | |
5127 | ||
5128 | ||
5129 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5130 | PyObject *resultobj; | |
5131 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5132 | long arg2 ; | |
5133 | int arg3 = (int) wxFromStart ; | |
5134 | long result; | |
5135 | PyObject * obj0 = 0 ; | |
5136 | char *kwnames[] = { | |
5137 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5138 | }; | |
5139 | ||
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:InputStream_SeekI",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | resultobj = PyInt_FromLong((long)result); | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
5156 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5157 | PyObject *resultobj; | |
5158 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5159 | long result; | |
5160 | PyObject * obj0 = 0 ; | |
5161 | char *kwnames[] = { | |
5162 | (char *) "self", NULL | |
5163 | }; | |
5164 | ||
5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5167 | { | |
5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5169 | result = (long)(arg1)->TellI(); | |
5170 | ||
5171 | wxPyEndAllowThreads(__tstate); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
5174 | resultobj = PyInt_FromLong((long)result); | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
5181 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5182 | PyObject *obj; | |
5183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5184 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5185 | Py_INCREF(obj); | |
5186 | return Py_BuildValue((char *)""); | |
5187 | } | |
5188 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject *resultobj; | |
5190 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5191 | PyObject *arg2 = (PyObject *) 0 ; | |
5192 | PyObject * obj0 = 0 ; | |
5193 | PyObject * obj1 = 0 ; | |
5194 | char *kwnames[] = { | |
5195 | (char *) "self",(char *) "obj", NULL | |
5196 | }; | |
5197 | ||
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5200 | arg2 = obj1; | |
5201 | { | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | wxOutputStream_write(arg1,arg2); | |
5204 | ||
5205 | wxPyEndAllowThreads(__tstate); | |
5206 | if (PyErr_Occurred()) SWIG_fail; | |
5207 | } | |
5208 | Py_INCREF(Py_None); resultobj = Py_None; | |
5209 | return resultobj; | |
5210 | fail: | |
5211 | return NULL; | |
5212 | } | |
5213 | ||
5214 | ||
5215 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5216 | PyObject *obj; | |
5217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5218 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5219 | Py_INCREF(obj); | |
5220 | return Py_BuildValue((char *)""); | |
5221 | } | |
5222 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject *resultobj; | |
5224 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5225 | wxString *arg2 = 0 ; | |
5226 | wxString *arg3 = 0 ; | |
5227 | wxString *arg4 = 0 ; | |
5228 | wxDateTime arg5 ; | |
5229 | wxFSFile *result; | |
5230 | wxPyInputStream *temp1 ; | |
5231 | bool created1 ; | |
423f194a RD |
5232 | bool temp2 = False ; |
5233 | bool temp3 = False ; | |
5234 | bool temp4 = False ; | |
d14a1e28 RD |
5235 | wxDateTime *argp5 ; |
5236 | PyObject * obj0 = 0 ; | |
5237 | PyObject * obj1 = 0 ; | |
5238 | PyObject * obj2 = 0 ; | |
5239 | PyObject * obj3 = 0 ; | |
5240 | PyObject * obj4 = 0 ; | |
5241 | char *kwnames[] = { | |
5242 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5243 | }; | |
5244 | ||
5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5246 | { | |
5247 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5248 | arg1 = temp1->m_wxis; | |
423f194a | 5249 | created1 = False; |
d14a1e28 RD |
5250 | } else { |
5251 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 5252 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
5253 | if (arg1 == NULL) { |
5254 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5255 | SWIG_fail; | |
5256 | } | |
423f194a | 5257 | created1 = True; |
d14a1e28 RD |
5258 | } |
5259 | } | |
5260 | { | |
5261 | arg2 = wxString_in_helper(obj1); | |
5262 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5263 | temp2 = True; |
d14a1e28 RD |
5264 | } |
5265 | { | |
5266 | arg3 = wxString_in_helper(obj2); | |
5267 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5268 | temp3 = True; |
d14a1e28 RD |
5269 | } |
5270 | { | |
5271 | arg4 = wxString_in_helper(obj3); | |
5272 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5273 | temp4 = True; |
d14a1e28 RD |
5274 | } |
5275 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5276 | arg5 = *argp5; | |
5277 | { | |
5278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5279 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5280 | ||
5281 | wxPyEndAllowThreads(__tstate); | |
5282 | if (PyErr_Occurred()) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | resultobj = wxPyMake_wxObject(result); | |
5286 | } | |
5287 | { | |
5288 | if (created1) | |
5289 | delete arg1; | |
5290 | } | |
5291 | { | |
5292 | if (temp2) | |
5293 | delete arg2; | |
5294 | } | |
5295 | { | |
5296 | if (temp3) | |
5297 | delete arg3; | |
5298 | } | |
5299 | { | |
5300 | if (temp4) | |
5301 | delete arg4; | |
5302 | } | |
5303 | return resultobj; | |
5304 | fail: | |
5305 | { | |
5306 | if (created1) | |
5307 | delete arg1; | |
5308 | } | |
5309 | { | |
5310 | if (temp2) | |
5311 | delete arg2; | |
5312 | } | |
5313 | { | |
5314 | if (temp3) | |
5315 | delete arg3; | |
5316 | } | |
5317 | { | |
5318 | if (temp4) | |
5319 | delete arg4; | |
5320 | } | |
5321 | return NULL; | |
5322 | } | |
5323 | ||
5324 | ||
5325 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5326 | PyObject *resultobj; | |
5327 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5328 | PyObject * obj0 = 0 ; | |
5329 | char *kwnames[] = { | |
5330 | (char *) "self", NULL | |
5331 | }; | |
5332 | ||
5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | delete arg1; | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | Py_INCREF(Py_None); resultobj = Py_None; | |
5343 | return resultobj; | |
5344 | fail: | |
5345 | return NULL; | |
5346 | } | |
5347 | ||
5348 | ||
5349 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject *resultobj; | |
5351 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5352 | wxInputStream *result; | |
5353 | PyObject * obj0 = 0 ; | |
5354 | char *kwnames[] = { | |
5355 | (char *) "self", NULL | |
5356 | }; | |
5357 | ||
5358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5360 | { | |
5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5362 | result = (wxInputStream *)(arg1)->GetStream(); | |
5363 | ||
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | { | |
5368 | wxPyInputStream * _ptr = NULL; | |
5369 | ||
5370 | if (result) { | |
5371 | _ptr = new wxPyInputStream(result); | |
5372 | } | |
423f194a | 5373 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
5374 | } |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
5378 | } | |
5379 | ||
5380 | ||
5381 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5382 | PyObject *resultobj; | |
5383 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5384 | wxString *result; | |
5385 | PyObject * obj0 = 0 ; | |
5386 | char *kwnames[] = { | |
5387 | (char *) "self", NULL | |
5388 | }; | |
5389 | ||
5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5392 | { | |
5393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5394 | { | |
5395 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5396 | result = (wxString *) &_result_ref; | |
5397 | } | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
0f774bef RD |
5402 | { |
5403 | #if wxUSE_UNICODE | |
5404 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5405 | #else | |
5406 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5407 | #endif | |
5408 | } | |
d14a1e28 RD |
5409 | return resultobj; |
5410 | fail: | |
5411 | return NULL; | |
5412 | } | |
5413 | ||
5414 | ||
5415 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5416 | PyObject *resultobj; | |
5417 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5418 | wxString *result; | |
5419 | PyObject * obj0 = 0 ; | |
5420 | char *kwnames[] = { | |
5421 | (char *) "self", NULL | |
5422 | }; | |
5423 | ||
5424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5426 | { | |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | { | |
5429 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5430 | result = (wxString *) &_result_ref; | |
5431 | } | |
5432 | ||
5433 | wxPyEndAllowThreads(__tstate); | |
5434 | if (PyErr_Occurred()) SWIG_fail; | |
5435 | } | |
0f774bef RD |
5436 | { |
5437 | #if wxUSE_UNICODE | |
5438 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5439 | #else | |
5440 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5441 | #endif | |
5442 | } | |
d14a1e28 RD |
5443 | return resultobj; |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
5449 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject *resultobj; | |
5451 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5452 | wxString *result; | |
5453 | PyObject * obj0 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5460 | { | |
5461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5462 | { | |
5463 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
5464 | result = (wxString *) &_result_ref; | |
5465 | } | |
5466 | ||
5467 | wxPyEndAllowThreads(__tstate); | |
5468 | if (PyErr_Occurred()) SWIG_fail; | |
5469 | } | |
0f774bef RD |
5470 | { |
5471 | #if wxUSE_UNICODE | |
5472 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5473 | #else | |
5474 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5475 | #endif | |
5476 | } | |
d14a1e28 RD |
5477 | return resultobj; |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
5483 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject *resultobj; | |
5485 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5486 | wxDateTime result; | |
5487 | PyObject * obj0 = 0 ; | |
5488 | char *kwnames[] = { | |
5489 | (char *) "self", NULL | |
5490 | }; | |
5491 | ||
5492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
5493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5494 | { | |
5495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5496 | result = (arg1)->GetModificationTime(); | |
5497 | ||
5498 | wxPyEndAllowThreads(__tstate); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
5500 | } | |
5501 | { | |
5502 | wxDateTime * resultptr; | |
5503 | resultptr = new wxDateTime((wxDateTime &) result); | |
5504 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
5505 | } | |
5506 | return resultobj; | |
5507 | fail: | |
5508 | return NULL; | |
5509 | } | |
5510 | ||
5511 | ||
5512 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
5513 | PyObject *obj; | |
5514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5515 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
5516 | Py_INCREF(obj); | |
5517 | return Py_BuildValue((char *)""); | |
5518 | } | |
5519 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5520 | PyObject *obj; | |
5521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5522 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
5523 | Py_INCREF(obj); | |
5524 | return Py_BuildValue((char *)""); | |
5525 | } | |
5526 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5527 | PyObject *resultobj; | |
5528 | wxPyFileSystemHandler *result; | |
5529 | char *kwnames[] = { | |
5530 | NULL | |
5531 | }; | |
5532 | ||
5533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
5540 | } | |
5541 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
5542 | return resultobj; | |
5543 | fail: | |
5544 | return NULL; | |
5545 | } | |
5546 | ||
5547 | ||
5548 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5549 | PyObject *resultobj; | |
5550 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5551 | PyObject *arg2 = (PyObject *) 0 ; | |
5552 | PyObject *arg3 = (PyObject *) 0 ; | |
5553 | PyObject * obj0 = 0 ; | |
5554 | PyObject * obj1 = 0 ; | |
5555 | PyObject * obj2 = 0 ; | |
5556 | char *kwnames[] = { | |
5557 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5558 | }; | |
5559 | ||
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5562 | arg2 = obj1; | |
5563 | arg3 = obj2; | |
5564 | { | |
5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5566 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5567 | ||
5568 | wxPyEndAllowThreads(__tstate); | |
5569 | if (PyErr_Occurred()) SWIG_fail; | |
5570 | } | |
5571 | Py_INCREF(Py_None); resultobj = Py_None; | |
5572 | return resultobj; | |
5573 | fail: | |
5574 | return NULL; | |
5575 | } | |
5576 | ||
5577 | ||
5578 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5579 | PyObject *resultobj; | |
5580 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5581 | wxString *arg2 = 0 ; | |
5582 | bool result; | |
423f194a | 5583 | bool temp2 = False ; |
d14a1e28 RD |
5584 | PyObject * obj0 = 0 ; |
5585 | PyObject * obj1 = 0 ; | |
5586 | char *kwnames[] = { | |
5587 | (char *) "self",(char *) "location", NULL | |
5588 | }; | |
5589 | ||
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
5591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5592 | { | |
5593 | arg2 = wxString_in_helper(obj1); | |
5594 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5595 | temp2 = True; |
d14a1e28 RD |
5596 | } |
5597 | { | |
5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5599 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
5600 | ||
5601 | wxPyEndAllowThreads(__tstate); | |
5602 | if (PyErr_Occurred()) SWIG_fail; | |
5603 | } | |
5604 | resultobj = PyInt_FromLong((long)result); | |
5605 | { | |
5606 | if (temp2) | |
5607 | delete arg2; | |
5608 | } | |
5609 | return resultobj; | |
5610 | fail: | |
5611 | { | |
5612 | if (temp2) | |
5613 | delete arg2; | |
5614 | } | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
5619 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject *resultobj; | |
5621 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5622 | wxFileSystem *arg2 = 0 ; | |
5623 | wxString *arg3 = 0 ; | |
5624 | wxFSFile *result; | |
423f194a | 5625 | bool temp3 = False ; |
d14a1e28 RD |
5626 | PyObject * obj0 = 0 ; |
5627 | PyObject * obj1 = 0 ; | |
5628 | PyObject * obj2 = 0 ; | |
5629 | char *kwnames[] = { | |
5630 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
5631 | }; | |
5632 | ||
5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5635 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5636 | if (arg2 == NULL) { | |
5637 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5638 | } | |
5639 | { | |
5640 | arg3 = wxString_in_helper(obj2); | |
5641 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5642 | temp3 = True; |
d14a1e28 RD |
5643 | } |
5644 | { | |
5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5646 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
5647 | ||
5648 | wxPyEndAllowThreads(__tstate); | |
5649 | if (PyErr_Occurred()) SWIG_fail; | |
5650 | } | |
5651 | { | |
5652 | resultobj = wxPyMake_wxObject(result); | |
5653 | } | |
5654 | { | |
5655 | if (temp3) | |
5656 | delete arg3; | |
5657 | } | |
5658 | return resultobj; | |
5659 | fail: | |
5660 | { | |
5661 | if (temp3) | |
5662 | delete arg3; | |
5663 | } | |
5664 | return NULL; | |
5665 | } | |
5666 | ||
5667 | ||
5668 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5669 | PyObject *resultobj; | |
5670 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5671 | wxString *arg2 = 0 ; | |
5672 | int arg3 = (int) 0 ; | |
5673 | wxString result; | |
423f194a | 5674 | bool temp2 = False ; |
d14a1e28 RD |
5675 | PyObject * obj0 = 0 ; |
5676 | PyObject * obj1 = 0 ; | |
5677 | char *kwnames[] = { | |
5678 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5683 | { | |
5684 | arg2 = wxString_in_helper(obj1); | |
5685 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5686 | temp2 = True; |
d14a1e28 RD |
5687 | } |
5688 | { | |
5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5690 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
5691 | ||
5692 | wxPyEndAllowThreads(__tstate); | |
5693 | if (PyErr_Occurred()) SWIG_fail; | |
5694 | } | |
5695 | { | |
5696 | #if wxUSE_UNICODE | |
5697 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5698 | #else | |
5699 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5700 | #endif | |
5701 | } | |
5702 | { | |
5703 | if (temp2) | |
5704 | delete arg2; | |
5705 | } | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | { | |
5709 | if (temp2) | |
5710 | delete arg2; | |
5711 | } | |
5712 | return NULL; | |
5713 | } | |
5714 | ||
5715 | ||
5716 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject *resultobj; | |
5718 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5719 | wxString result; | |
5720 | PyObject * obj0 = 0 ; | |
5721 | char *kwnames[] = { | |
5722 | (char *) "self", NULL | |
5723 | }; | |
5724 | ||
5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
5726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5727 | { | |
5728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5729 | result = (arg1)->FindNext(); | |
5730 | ||
5731 | wxPyEndAllowThreads(__tstate); | |
5732 | if (PyErr_Occurred()) SWIG_fail; | |
5733 | } | |
5734 | { | |
5735 | #if wxUSE_UNICODE | |
5736 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5737 | #else | |
5738 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5739 | #endif | |
5740 | } | |
5741 | return resultobj; | |
5742 | fail: | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
5747 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5748 | PyObject *resultobj; | |
5749 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5750 | wxString *arg2 = 0 ; | |
5751 | wxString result; | |
423f194a | 5752 | bool temp2 = False ; |
d14a1e28 RD |
5753 | PyObject * obj0 = 0 ; |
5754 | PyObject * obj1 = 0 ; | |
5755 | char *kwnames[] = { | |
5756 | (char *) "self",(char *) "location", NULL | |
5757 | }; | |
5758 | ||
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
5760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5761 | { | |
5762 | arg2 = wxString_in_helper(obj1); | |
5763 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5764 | temp2 = True; |
d14a1e28 RD |
5765 | } |
5766 | { | |
5767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5768 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
5769 | ||
5770 | wxPyEndAllowThreads(__tstate); | |
5771 | if (PyErr_Occurred()) SWIG_fail; | |
5772 | } | |
5773 | { | |
5774 | #if wxUSE_UNICODE | |
5775 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5776 | #else | |
5777 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5778 | #endif | |
5779 | } | |
5780 | { | |
5781 | if (temp2) | |
5782 | delete arg2; | |
5783 | } | |
5784 | return resultobj; | |
5785 | fail: | |
5786 | { | |
5787 | if (temp2) | |
5788 | delete arg2; | |
5789 | } | |
5790 | return NULL; | |
5791 | } | |
5792 | ||
5793 | ||
5794 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject *resultobj; | |
5796 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5797 | wxString *arg2 = 0 ; | |
5798 | wxString result; | |
423f194a | 5799 | bool temp2 = False ; |
d14a1e28 RD |
5800 | PyObject * obj0 = 0 ; |
5801 | PyObject * obj1 = 0 ; | |
5802 | char *kwnames[] = { | |
5803 | (char *) "self",(char *) "location", NULL | |
5804 | }; | |
5805 | ||
5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
5807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5808 | { | |
5809 | arg2 = wxString_in_helper(obj1); | |
5810 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5811 | temp2 = True; |
d14a1e28 RD |
5812 | } |
5813 | { | |
5814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5815 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
5816 | ||
5817 | wxPyEndAllowThreads(__tstate); | |
5818 | if (PyErr_Occurred()) SWIG_fail; | |
5819 | } | |
5820 | { | |
5821 | #if wxUSE_UNICODE | |
5822 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5823 | #else | |
5824 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5825 | #endif | |
5826 | } | |
5827 | { | |
5828 | if (temp2) | |
5829 | delete arg2; | |
5830 | } | |
5831 | return resultobj; | |
5832 | fail: | |
5833 | { | |
5834 | if (temp2) | |
5835 | delete arg2; | |
5836 | } | |
5837 | return NULL; | |
5838 | } | |
5839 | ||
5840 | ||
5841 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5842 | PyObject *resultobj; | |
5843 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5844 | wxString *arg2 = 0 ; | |
5845 | wxString result; | |
423f194a | 5846 | bool temp2 = False ; |
d14a1e28 RD |
5847 | PyObject * obj0 = 0 ; |
5848 | PyObject * obj1 = 0 ; | |
5849 | char *kwnames[] = { | |
5850 | (char *) "self",(char *) "location", NULL | |
5851 | }; | |
5852 | ||
5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
5854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5855 | { | |
5856 | arg2 = wxString_in_helper(obj1); | |
5857 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5858 | temp2 = True; |
d14a1e28 RD |
5859 | } |
5860 | { | |
5861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5862 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
5863 | ||
5864 | wxPyEndAllowThreads(__tstate); | |
5865 | if (PyErr_Occurred()) SWIG_fail; | |
5866 | } | |
5867 | { | |
5868 | #if wxUSE_UNICODE | |
5869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5870 | #else | |
5871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5872 | #endif | |
5873 | } | |
5874 | { | |
5875 | if (temp2) | |
5876 | delete arg2; | |
5877 | } | |
5878 | return resultobj; | |
5879 | fail: | |
5880 | { | |
5881 | if (temp2) | |
5882 | delete arg2; | |
5883 | } | |
5884 | return NULL; | |
5885 | } | |
5886 | ||
5887 | ||
5888 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5889 | PyObject *resultobj; | |
5890 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5891 | wxString *arg2 = 0 ; | |
5892 | wxString result; | |
423f194a | 5893 | bool temp2 = False ; |
d14a1e28 RD |
5894 | PyObject * obj0 = 0 ; |
5895 | PyObject * obj1 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self",(char *) "location", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
5901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5902 | { | |
5903 | arg2 = wxString_in_helper(obj1); | |
5904 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5905 | temp2 = True; |
d14a1e28 RD |
5906 | } |
5907 | { | |
5908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5909 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
5910 | ||
5911 | wxPyEndAllowThreads(__tstate); | |
5912 | if (PyErr_Occurred()) SWIG_fail; | |
5913 | } | |
5914 | { | |
5915 | #if wxUSE_UNICODE | |
5916 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5917 | #else | |
5918 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5919 | #endif | |
5920 | } | |
5921 | { | |
5922 | if (temp2) | |
5923 | delete arg2; | |
5924 | } | |
5925 | return resultobj; | |
5926 | fail: | |
5927 | { | |
5928 | if (temp2) | |
5929 | delete arg2; | |
5930 | } | |
5931 | return NULL; | |
5932 | } | |
5933 | ||
5934 | ||
5935 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5936 | PyObject *resultobj; | |
5937 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
5938 | wxString *arg2 = 0 ; | |
5939 | wxString result; | |
423f194a | 5940 | bool temp2 = False ; |
d14a1e28 RD |
5941 | PyObject * obj0 = 0 ; |
5942 | PyObject * obj1 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self",(char *) "location", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
5948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5949 | { | |
5950 | arg2 = wxString_in_helper(obj1); | |
5951 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5952 | temp2 = True; |
d14a1e28 RD |
5953 | } |
5954 | { | |
5955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5956 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
5957 | ||
5958 | wxPyEndAllowThreads(__tstate); | |
5959 | if (PyErr_Occurred()) SWIG_fail; | |
5960 | } | |
5961 | { | |
5962 | #if wxUSE_UNICODE | |
5963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5964 | #else | |
5965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5966 | #endif | |
5967 | } | |
5968 | { | |
5969 | if (temp2) | |
5970 | delete arg2; | |
5971 | } | |
5972 | return resultobj; | |
5973 | fail: | |
5974 | { | |
5975 | if (temp2) | |
5976 | delete arg2; | |
5977 | } | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
5982 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
5983 | PyObject *obj; | |
5984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5985 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
5986 | Py_INCREF(obj); | |
5987 | return Py_BuildValue((char *)""); | |
5988 | } | |
5989 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject *resultobj; | |
5991 | wxFileSystem *result; | |
5992 | char *kwnames[] = { | |
5993 | NULL | |
5994 | }; | |
5995 | ||
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
5997 | { | |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | result = (wxFileSystem *)new wxFileSystem(); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
6002 | if (PyErr_Occurred()) SWIG_fail; | |
6003 | } | |
6004 | { | |
6005 | resultobj = wxPyMake_wxObject(result); | |
6006 | } | |
6007 | return resultobj; | |
6008 | fail: | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
6013 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6014 | PyObject *resultobj; | |
6015 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6016 | PyObject * obj0 = 0 ; | |
6017 | char *kwnames[] = { | |
6018 | (char *) "self", NULL | |
6019 | }; | |
6020 | ||
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6023 | { | |
6024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6025 | delete arg1; | |
6026 | ||
6027 | wxPyEndAllowThreads(__tstate); | |
6028 | if (PyErr_Occurred()) SWIG_fail; | |
6029 | } | |
6030 | Py_INCREF(Py_None); resultobj = Py_None; | |
6031 | return resultobj; | |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
6037 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject *resultobj; | |
6039 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6040 | wxString *arg2 = 0 ; | |
423f194a RD |
6041 | bool arg3 = (bool) False ; |
6042 | bool temp2 = False ; | |
d14a1e28 RD |
6043 | PyObject * obj0 = 0 ; |
6044 | PyObject * obj1 = 0 ; | |
6045 | PyObject * obj2 = 0 ; | |
6046 | char *kwnames[] = { | |
6047 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6048 | }; | |
6049 | ||
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6052 | { | |
6053 | arg2 = wxString_in_helper(obj1); | |
6054 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6055 | temp2 = True; |
d14a1e28 RD |
6056 | } |
6057 | if (obj2) { | |
6058 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
6061 | { | |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | Py_INCREF(Py_None); resultobj = Py_None; | |
6069 | { | |
6070 | if (temp2) | |
6071 | delete arg2; | |
6072 | } | |
6073 | return resultobj; | |
6074 | fail: | |
6075 | { | |
6076 | if (temp2) | |
6077 | delete arg2; | |
6078 | } | |
6079 | return NULL; | |
6080 | } | |
6081 | ||
6082 | ||
6083 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6084 | PyObject *resultobj; | |
6085 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6086 | wxString result; | |
6087 | PyObject * obj0 = 0 ; | |
6088 | char *kwnames[] = { | |
6089 | (char *) "self", NULL | |
6090 | }; | |
6091 | ||
6092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | result = (arg1)->GetPath(); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | { | |
6102 | #if wxUSE_UNICODE | |
6103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6104 | #else | |
6105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6106 | #endif | |
6107 | } | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
6114 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject *resultobj; | |
6116 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6117 | wxString *arg2 = 0 ; | |
6118 | wxFSFile *result; | |
423f194a | 6119 | bool temp2 = False ; |
d14a1e28 RD |
6120 | PyObject * obj0 = 0 ; |
6121 | PyObject * obj1 = 0 ; | |
6122 | char *kwnames[] = { | |
6123 | (char *) "self",(char *) "location", NULL | |
6124 | }; | |
6125 | ||
6126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6128 | { | |
6129 | arg2 = wxString_in_helper(obj1); | |
6130 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6131 | temp2 = True; |
d14a1e28 RD |
6132 | } |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | { | |
6141 | resultobj = wxPyMake_wxObject(result); | |
6142 | } | |
6143 | { | |
6144 | if (temp2) | |
6145 | delete arg2; | |
6146 | } | |
6147 | return resultobj; | |
6148 | fail: | |
6149 | { | |
6150 | if (temp2) | |
6151 | delete arg2; | |
6152 | } | |
6153 | return NULL; | |
6154 | } | |
6155 | ||
6156 | ||
6157 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6158 | PyObject *resultobj; | |
6159 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6160 | wxString *arg2 = 0 ; | |
6161 | int arg3 = (int) 0 ; | |
6162 | wxString result; | |
423f194a | 6163 | bool temp2 = False ; |
d14a1e28 RD |
6164 | PyObject * obj0 = 0 ; |
6165 | PyObject * obj1 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileSystem_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6172 | { | |
6173 | arg2 = wxString_in_helper(obj1); | |
6174 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6175 | temp2 = True; |
d14a1e28 RD |
6176 | } |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | { | |
6185 | #if wxUSE_UNICODE | |
6186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6187 | #else | |
6188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6189 | #endif | |
6190 | } | |
6191 | { | |
6192 | if (temp2) | |
6193 | delete arg2; | |
6194 | } | |
6195 | return resultobj; | |
6196 | fail: | |
6197 | { | |
6198 | if (temp2) | |
6199 | delete arg2; | |
6200 | } | |
6201 | return NULL; | |
6202 | } | |
6203 | ||
6204 | ||
6205 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6206 | PyObject *resultobj; | |
6207 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6208 | wxString result; | |
6209 | PyObject * obj0 = 0 ; | |
6210 | char *kwnames[] = { | |
6211 | (char *) "self", NULL | |
6212 | }; | |
6213 | ||
6214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6216 | { | |
6217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6218 | result = (arg1)->FindNext(); | |
6219 | ||
6220 | wxPyEndAllowThreads(__tstate); | |
6221 | if (PyErr_Occurred()) SWIG_fail; | |
6222 | } | |
6223 | { | |
6224 | #if wxUSE_UNICODE | |
6225 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6226 | #else | |
6227 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6228 | #endif | |
6229 | } | |
6230 | return resultobj; | |
6231 | fail: | |
6232 | return NULL; | |
6233 | } | |
6234 | ||
6235 | ||
6236 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject *resultobj; | |
6238 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6239 | PyObject * obj0 = 0 ; | |
6240 | char *kwnames[] = { | |
6241 | (char *) "handler", NULL | |
6242 | }; | |
6243 | ||
6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6246 | { | |
6247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6248 | wxFileSystem::AddHandler(arg1); | |
6249 | ||
6250 | wxPyEndAllowThreads(__tstate); | |
6251 | if (PyErr_Occurred()) SWIG_fail; | |
6252 | } | |
6253 | Py_INCREF(Py_None); resultobj = Py_None; | |
6254 | return resultobj; | |
6255 | fail: | |
6256 | return NULL; | |
6257 | } | |
6258 | ||
6259 | ||
6260 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6261 | PyObject *resultobj; | |
6262 | char *kwnames[] = { | |
6263 | NULL | |
6264 | }; | |
6265 | ||
6266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6267 | { | |
6268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6269 | wxFileSystem::CleanUpHandlers(); | |
6270 | ||
6271 | wxPyEndAllowThreads(__tstate); | |
6272 | if (PyErr_Occurred()) SWIG_fail; | |
6273 | } | |
6274 | Py_INCREF(Py_None); resultobj = Py_None; | |
6275 | return resultobj; | |
6276 | fail: | |
6277 | return NULL; | |
6278 | } | |
6279 | ||
6280 | ||
6281 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6282 | PyObject *resultobj; | |
6283 | wxString *arg1 = 0 ; | |
6284 | wxString result; | |
423f194a | 6285 | bool temp1 = False ; |
d14a1e28 RD |
6286 | PyObject * obj0 = 0 ; |
6287 | char *kwnames[] = { | |
6288 | (char *) "filename", NULL | |
6289 | }; | |
6290 | ||
6291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6292 | { | |
6293 | arg1 = wxString_in_helper(obj0); | |
6294 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6295 | temp1 = True; |
d14a1e28 RD |
6296 | } |
6297 | { | |
6298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6299 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6300 | ||
6301 | wxPyEndAllowThreads(__tstate); | |
6302 | if (PyErr_Occurred()) SWIG_fail; | |
6303 | } | |
6304 | { | |
6305 | #if wxUSE_UNICODE | |
6306 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6307 | #else | |
6308 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6309 | #endif | |
6310 | } | |
6311 | { | |
6312 | if (temp1) | |
6313 | delete arg1; | |
6314 | } | |
6315 | return resultobj; | |
6316 | fail: | |
6317 | { | |
6318 | if (temp1) | |
6319 | delete arg1; | |
6320 | } | |
6321 | return NULL; | |
6322 | } | |
6323 | ||
6324 | ||
6325 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6326 | PyObject *obj; | |
6327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6328 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6329 | Py_INCREF(obj); | |
6330 | return Py_BuildValue((char *)""); | |
6331 | } | |
6332 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6333 | PyObject *resultobj; | |
6334 | wxString *arg1 = 0 ; | |
6335 | wxString result; | |
423f194a | 6336 | bool temp1 = False ; |
d14a1e28 RD |
6337 | PyObject * obj0 = 0 ; |
6338 | char *kwnames[] = { | |
6339 | (char *) "url", NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6343 | { | |
6344 | arg1 = wxString_in_helper(obj0); | |
6345 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6346 | temp1 = True; |
d14a1e28 RD |
6347 | } |
6348 | { | |
6349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6350 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6351 | ||
6352 | wxPyEndAllowThreads(__tstate); | |
6353 | if (PyErr_Occurred()) SWIG_fail; | |
6354 | } | |
6355 | { | |
6356 | #if wxUSE_UNICODE | |
6357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6358 | #else | |
6359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6360 | #endif | |
6361 | } | |
6362 | { | |
6363 | if (temp1) | |
6364 | delete arg1; | |
6365 | } | |
6366 | return resultobj; | |
6367 | fail: | |
6368 | { | |
6369 | if (temp1) | |
6370 | delete arg1; | |
6371 | } | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
6376 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject *resultobj; | |
6378 | wxInternetFSHandler *result; | |
6379 | char *kwnames[] = { | |
6380 | NULL | |
6381 | }; | |
6382 | ||
6383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6384 | { | |
6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6386 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6387 | ||
6388 | wxPyEndAllowThreads(__tstate); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6392 | return resultobj; | |
6393 | fail: | |
6394 | return NULL; | |
6395 | } | |
6396 | ||
6397 | ||
6398 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject *resultobj; | |
6400 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6401 | wxString *arg2 = 0 ; | |
6402 | bool result; | |
423f194a | 6403 | bool temp2 = False ; |
d14a1e28 RD |
6404 | PyObject * obj0 = 0 ; |
6405 | PyObject * obj1 = 0 ; | |
6406 | char *kwnames[] = { | |
6407 | (char *) "self",(char *) "location", NULL | |
6408 | }; | |
6409 | ||
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6412 | { | |
6413 | arg2 = wxString_in_helper(obj1); | |
6414 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6415 | temp2 = True; |
d14a1e28 RD |
6416 | } |
6417 | { | |
6418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6419 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6420 | ||
6421 | wxPyEndAllowThreads(__tstate); | |
6422 | if (PyErr_Occurred()) SWIG_fail; | |
6423 | } | |
6424 | resultobj = PyInt_FromLong((long)result); | |
6425 | { | |
6426 | if (temp2) | |
6427 | delete arg2; | |
6428 | } | |
6429 | return resultobj; | |
6430 | fail: | |
6431 | { | |
6432 | if (temp2) | |
6433 | delete arg2; | |
6434 | } | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6440 | PyObject *resultobj; | |
6441 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6442 | wxFileSystem *arg2 = 0 ; | |
6443 | wxString *arg3 = 0 ; | |
6444 | wxFSFile *result; | |
423f194a | 6445 | bool temp3 = False ; |
d14a1e28 RD |
6446 | PyObject * obj0 = 0 ; |
6447 | PyObject * obj1 = 0 ; | |
6448 | PyObject * obj2 = 0 ; | |
6449 | char *kwnames[] = { | |
6450 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6451 | }; | |
6452 | ||
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6455 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6456 | if (arg2 == NULL) { | |
6457 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6458 | } | |
6459 | { | |
6460 | arg3 = wxString_in_helper(obj2); | |
6461 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6462 | temp3 = True; |
d14a1e28 RD |
6463 | } |
6464 | { | |
6465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6466 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6467 | ||
6468 | wxPyEndAllowThreads(__tstate); | |
6469 | if (PyErr_Occurred()) SWIG_fail; | |
6470 | } | |
6471 | { | |
6472 | resultobj = wxPyMake_wxObject(result); | |
6473 | } | |
6474 | { | |
6475 | if (temp3) | |
6476 | delete arg3; | |
6477 | } | |
6478 | return resultobj; | |
6479 | fail: | |
6480 | { | |
6481 | if (temp3) | |
6482 | delete arg3; | |
6483 | } | |
6484 | return NULL; | |
6485 | } | |
6486 | ||
6487 | ||
6488 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6489 | PyObject *obj; | |
6490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6491 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
6492 | Py_INCREF(obj); | |
6493 | return Py_BuildValue((char *)""); | |
6494 | } | |
6495 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6496 | PyObject *resultobj; | |
6497 | wxZipFSHandler *result; | |
6498 | char *kwnames[] = { | |
6499 | NULL | |
6500 | }; | |
6501 | ||
6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
6506 | ||
6507 | wxPyEndAllowThreads(__tstate); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | } | |
6510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
6511 | return resultobj; | |
6512 | fail: | |
6513 | return NULL; | |
6514 | } | |
6515 | ||
6516 | ||
6517 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6518 | PyObject *resultobj; | |
6519 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6520 | wxString *arg2 = 0 ; | |
6521 | bool result; | |
423f194a | 6522 | bool temp2 = False ; |
d14a1e28 RD |
6523 | PyObject * obj0 = 0 ; |
6524 | PyObject * obj1 = 0 ; | |
6525 | char *kwnames[] = { | |
6526 | (char *) "self",(char *) "location", NULL | |
6527 | }; | |
6528 | ||
6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6531 | { | |
6532 | arg2 = wxString_in_helper(obj1); | |
6533 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6534 | temp2 = True; |
d14a1e28 RD |
6535 | } |
6536 | { | |
6537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6538 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6539 | ||
6540 | wxPyEndAllowThreads(__tstate); | |
6541 | if (PyErr_Occurred()) SWIG_fail; | |
6542 | } | |
6543 | resultobj = PyInt_FromLong((long)result); | |
6544 | { | |
6545 | if (temp2) | |
6546 | delete arg2; | |
6547 | } | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | { | |
6551 | if (temp2) | |
6552 | delete arg2; | |
6553 | } | |
6554 | return NULL; | |
6555 | } | |
6556 | ||
6557 | ||
6558 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject *resultobj; | |
6560 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6561 | wxFileSystem *arg2 = 0 ; | |
6562 | wxString *arg3 = 0 ; | |
6563 | wxFSFile *result; | |
423f194a | 6564 | bool temp3 = False ; |
d14a1e28 RD |
6565 | PyObject * obj0 = 0 ; |
6566 | PyObject * obj1 = 0 ; | |
6567 | PyObject * obj2 = 0 ; | |
6568 | char *kwnames[] = { | |
6569 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6570 | }; | |
6571 | ||
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6575 | if (arg2 == NULL) { | |
6576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6577 | } | |
6578 | { | |
6579 | arg3 = wxString_in_helper(obj2); | |
6580 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6581 | temp3 = True; |
d14a1e28 RD |
6582 | } |
6583 | { | |
6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6585 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6586 | ||
6587 | wxPyEndAllowThreads(__tstate); | |
6588 | if (PyErr_Occurred()) SWIG_fail; | |
6589 | } | |
6590 | { | |
6591 | resultobj = wxPyMake_wxObject(result); | |
6592 | } | |
6593 | { | |
6594 | if (temp3) | |
6595 | delete arg3; | |
6596 | } | |
6597 | return resultobj; | |
6598 | fail: | |
6599 | { | |
6600 | if (temp3) | |
6601 | delete arg3; | |
6602 | } | |
6603 | return NULL; | |
6604 | } | |
6605 | ||
6606 | ||
6607 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6608 | PyObject *resultobj; | |
6609 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6610 | wxString *arg2 = 0 ; | |
6611 | int arg3 = (int) 0 ; | |
6612 | wxString result; | |
423f194a | 6613 | bool temp2 = False ; |
d14a1e28 RD |
6614 | PyObject * obj0 = 0 ; |
6615 | PyObject * obj1 = 0 ; | |
6616 | char *kwnames[] = { | |
6617 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6618 | }; | |
6619 | ||
6620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6622 | { | |
6623 | arg2 = wxString_in_helper(obj1); | |
6624 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6625 | temp2 = True; |
d14a1e28 RD |
6626 | } |
6627 | { | |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
6634 | { | |
6635 | #if wxUSE_UNICODE | |
6636 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6637 | #else | |
6638 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6639 | #endif | |
6640 | } | |
6641 | { | |
6642 | if (temp2) | |
6643 | delete arg2; | |
6644 | } | |
6645 | return resultobj; | |
6646 | fail: | |
6647 | { | |
6648 | if (temp2) | |
6649 | delete arg2; | |
6650 | } | |
6651 | return NULL; | |
6652 | } | |
6653 | ||
6654 | ||
6655 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6656 | PyObject *resultobj; | |
6657 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
6658 | wxString result; | |
6659 | PyObject * obj0 = 0 ; | |
6660 | char *kwnames[] = { | |
6661 | (char *) "self", NULL | |
6662 | }; | |
6663 | ||
6664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
6665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6666 | { | |
6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6668 | result = (arg1)->FindNext(); | |
6669 | ||
6670 | wxPyEndAllowThreads(__tstate); | |
6671 | if (PyErr_Occurred()) SWIG_fail; | |
6672 | } | |
6673 | { | |
6674 | #if wxUSE_UNICODE | |
6675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6676 | #else | |
6677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6678 | #endif | |
6679 | } | |
6680 | return resultobj; | |
6681 | fail: | |
6682 | return NULL; | |
6683 | } | |
6684 | ||
6685 | ||
6686 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
6687 | PyObject *obj; | |
6688 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6689 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
6690 | Py_INCREF(obj); | |
6691 | return Py_BuildValue((char *)""); | |
6692 | } | |
6693 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6694 | PyObject *resultobj; | |
6695 | wxString *arg1 = 0 ; | |
6696 | wxImage *arg2 = 0 ; | |
6697 | long arg3 ; | |
423f194a | 6698 | bool temp1 = False ; |
d14a1e28 RD |
6699 | PyObject * obj0 = 0 ; |
6700 | PyObject * obj1 = 0 ; | |
6701 | char *kwnames[] = { | |
6702 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
6703 | }; | |
6704 | ||
6705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6706 | { | |
6707 | arg1 = wxString_in_helper(obj0); | |
6708 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6709 | temp1 = True; |
d14a1e28 RD |
6710 | } |
6711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6712 | if (arg2 == NULL) { | |
6713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6714 | } | |
6715 | { | |
6716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6717 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
6718 | ||
6719 | wxPyEndAllowThreads(__tstate); | |
6720 | if (PyErr_Occurred()) SWIG_fail; | |
6721 | } | |
6722 | Py_INCREF(Py_None); resultobj = Py_None; | |
6723 | { | |
6724 | if (temp1) | |
6725 | delete arg1; | |
6726 | } | |
6727 | return resultobj; | |
6728 | fail: | |
6729 | { | |
6730 | if (temp1) | |
6731 | delete arg1; | |
6732 | } | |
6733 | return NULL; | |
6734 | } | |
6735 | ||
6736 | ||
6737 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6738 | PyObject *resultobj; | |
6739 | wxString *arg1 = 0 ; | |
6740 | wxBitmap *arg2 = 0 ; | |
6741 | long arg3 ; | |
423f194a | 6742 | bool temp1 = False ; |
d14a1e28 RD |
6743 | PyObject * obj0 = 0 ; |
6744 | PyObject * obj1 = 0 ; | |
6745 | char *kwnames[] = { | |
6746 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
6747 | }; | |
6748 | ||
6749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6750 | { | |
6751 | arg1 = wxString_in_helper(obj0); | |
6752 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6753 | temp1 = True; |
d14a1e28 RD |
6754 | } |
6755 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6756 | if (arg2 == NULL) { | |
6757 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6758 | } | |
6759 | { | |
6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6761 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
6762 | ||
6763 | wxPyEndAllowThreads(__tstate); | |
6764 | if (PyErr_Occurred()) SWIG_fail; | |
6765 | } | |
6766 | Py_INCREF(Py_None); resultobj = Py_None; | |
6767 | { | |
6768 | if (temp1) | |
6769 | delete arg1; | |
6770 | } | |
6771 | return resultobj; | |
6772 | fail: | |
6773 | { | |
6774 | if (temp1) | |
6775 | delete arg1; | |
6776 | } | |
6777 | return NULL; | |
6778 | } | |
6779 | ||
6780 | ||
6781 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6782 | PyObject *resultobj; | |
6783 | wxString *arg1 = 0 ; | |
6784 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 6785 | bool temp1 = False ; |
d14a1e28 RD |
6786 | PyObject * obj0 = 0 ; |
6787 | PyObject * obj1 = 0 ; | |
6788 | char *kwnames[] = { | |
6789 | (char *) "filename",(char *) "data", NULL | |
6790 | }; | |
6791 | ||
6792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
6793 | { | |
6794 | arg1 = wxString_in_helper(obj0); | |
6795 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6796 | temp1 = True; |
d14a1e28 RD |
6797 | } |
6798 | arg2 = obj1; | |
6799 | { | |
6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6801 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
6802 | ||
6803 | wxPyEndAllowThreads(__tstate); | |
6804 | if (PyErr_Occurred()) SWIG_fail; | |
6805 | } | |
6806 | Py_INCREF(Py_None); resultobj = Py_None; | |
6807 | { | |
6808 | if (temp1) | |
6809 | delete arg1; | |
6810 | } | |
6811 | return resultobj; | |
6812 | fail: | |
6813 | { | |
6814 | if (temp1) | |
6815 | delete arg1; | |
6816 | } | |
6817 | return NULL; | |
6818 | } | |
6819 | ||
6820 | ||
6821 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject *resultobj; | |
6823 | wxMemoryFSHandler *result; | |
6824 | char *kwnames[] = { | |
6825 | NULL | |
6826 | }; | |
6827 | ||
6828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
6829 | { | |
6830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6831 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
6832 | ||
6833 | wxPyEndAllowThreads(__tstate); | |
6834 | if (PyErr_Occurred()) SWIG_fail; | |
6835 | } | |
6836 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
6837 | return resultobj; | |
6838 | fail: | |
6839 | return NULL; | |
6840 | } | |
6841 | ||
6842 | ||
6843 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6844 | PyObject *resultobj; | |
6845 | wxString *arg1 = 0 ; | |
423f194a | 6846 | bool temp1 = False ; |
d14a1e28 RD |
6847 | PyObject * obj0 = 0 ; |
6848 | char *kwnames[] = { | |
6849 | (char *) "filename", NULL | |
6850 | }; | |
6851 | ||
6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
6853 | { | |
6854 | arg1 = wxString_in_helper(obj0); | |
6855 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6856 | temp1 = True; |
d14a1e28 RD |
6857 | } |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
6861 | ||
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
6865 | Py_INCREF(Py_None); resultobj = Py_None; | |
6866 | { | |
6867 | if (temp1) | |
6868 | delete arg1; | |
6869 | } | |
6870 | return resultobj; | |
6871 | fail: | |
6872 | { | |
6873 | if (temp1) | |
6874 | delete arg1; | |
6875 | } | |
6876 | return NULL; | |
6877 | } | |
6878 | ||
6879 | ||
6880 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6881 | PyObject *resultobj; | |
6882 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6883 | wxString *arg2 = 0 ; | |
6884 | bool result; | |
423f194a | 6885 | bool temp2 = False ; |
d14a1e28 RD |
6886 | PyObject * obj0 = 0 ; |
6887 | PyObject * obj1 = 0 ; | |
6888 | char *kwnames[] = { | |
6889 | (char *) "self",(char *) "location", NULL | |
6890 | }; | |
6891 | ||
6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6894 | { | |
6895 | arg2 = wxString_in_helper(obj1); | |
6896 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6897 | temp2 = True; |
d14a1e28 RD |
6898 | } |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | resultobj = PyInt_FromLong((long)result); | |
6907 | { | |
6908 | if (temp2) | |
6909 | delete arg2; | |
6910 | } | |
6911 | return resultobj; | |
6912 | fail: | |
6913 | { | |
6914 | if (temp2) | |
6915 | delete arg2; | |
6916 | } | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj; | |
6923 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6924 | wxFileSystem *arg2 = 0 ; | |
6925 | wxString *arg3 = 0 ; | |
6926 | wxFSFile *result; | |
423f194a | 6927 | bool temp3 = False ; |
d14a1e28 RD |
6928 | PyObject * obj0 = 0 ; |
6929 | PyObject * obj1 = 0 ; | |
6930 | PyObject * obj2 = 0 ; | |
6931 | char *kwnames[] = { | |
6932 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6933 | }; | |
6934 | ||
6935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6937 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6938 | if (arg2 == NULL) { | |
6939 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6940 | } | |
6941 | { | |
6942 | arg3 = wxString_in_helper(obj2); | |
6943 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6944 | temp3 = True; |
d14a1e28 RD |
6945 | } |
6946 | { | |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6948 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6949 | ||
6950 | wxPyEndAllowThreads(__tstate); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
6953 | { | |
6954 | resultobj = wxPyMake_wxObject(result); | |
6955 | } | |
6956 | { | |
6957 | if (temp3) | |
6958 | delete arg3; | |
6959 | } | |
6960 | return resultobj; | |
6961 | fail: | |
6962 | { | |
6963 | if (temp3) | |
6964 | delete arg3; | |
6965 | } | |
6966 | return NULL; | |
6967 | } | |
6968 | ||
6969 | ||
6970 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6971 | PyObject *resultobj; | |
6972 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
6973 | wxString *arg2 = 0 ; | |
6974 | int arg3 = (int) 0 ; | |
6975 | wxString result; | |
423f194a | 6976 | bool temp2 = False ; |
d14a1e28 RD |
6977 | PyObject * obj0 = 0 ; |
6978 | PyObject * obj1 = 0 ; | |
6979 | char *kwnames[] = { | |
6980 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6981 | }; | |
6982 | ||
6983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
6984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6985 | { | |
6986 | arg2 = wxString_in_helper(obj1); | |
6987 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6988 | temp2 = True; |
d14a1e28 RD |
6989 | } |
6990 | { | |
6991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6992 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6993 | ||
6994 | wxPyEndAllowThreads(__tstate); | |
6995 | if (PyErr_Occurred()) SWIG_fail; | |
6996 | } | |
6997 | { | |
6998 | #if wxUSE_UNICODE | |
6999 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7000 | #else | |
7001 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7002 | #endif | |
7003 | } | |
7004 | { | |
7005 | if (temp2) | |
7006 | delete arg2; | |
7007 | } | |
7008 | return resultobj; | |
7009 | fail: | |
7010 | { | |
7011 | if (temp2) | |
7012 | delete arg2; | |
7013 | } | |
7014 | return NULL; | |
7015 | } | |
7016 | ||
7017 | ||
7018 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7019 | PyObject *resultobj; | |
7020 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7021 | wxString result; | |
7022 | PyObject * obj0 = 0 ; | |
7023 | char *kwnames[] = { | |
7024 | (char *) "self", NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7029 | { | |
7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7031 | result = (arg1)->FindNext(); | |
7032 | ||
7033 | wxPyEndAllowThreads(__tstate); | |
7034 | if (PyErr_Occurred()) SWIG_fail; | |
7035 | } | |
7036 | { | |
7037 | #if wxUSE_UNICODE | |
7038 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7039 | #else | |
7040 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7041 | #endif | |
7042 | } | |
7043 | return resultobj; | |
7044 | fail: | |
7045 | return NULL; | |
7046 | } | |
7047 | ||
7048 | ||
7049 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7050 | PyObject *obj; | |
7051 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7052 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7053 | Py_INCREF(obj); | |
7054 | return Py_BuildValue((char *)""); | |
7055 | } | |
7056 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7057 | PyObject *resultobj; | |
7058 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7059 | wxString result; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | char *kwnames[] = { | |
7062 | (char *) "self", NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (arg1)->GetName(); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | { | |
7075 | #if wxUSE_UNICODE | |
7076 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7077 | #else | |
7078 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7079 | #endif | |
7080 | } | |
7081 | return resultobj; | |
7082 | fail: | |
7083 | return NULL; | |
7084 | } | |
7085 | ||
7086 | ||
7087 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7088 | PyObject *resultobj; | |
7089 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7090 | wxString result; | |
7091 | PyObject * obj0 = 0 ; | |
7092 | char *kwnames[] = { | |
7093 | (char *) "self", NULL | |
7094 | }; | |
7095 | ||
7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = (arg1)->GetExtension(); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | { | |
7106 | #if wxUSE_UNICODE | |
7107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7108 | #else | |
7109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7110 | #endif | |
7111 | } | |
7112 | return resultobj; | |
7113 | fail: | |
7114 | return NULL; | |
7115 | } | |
7116 | ||
7117 | ||
7118 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7119 | PyObject *resultobj; | |
7120 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7121 | long result; | |
7122 | PyObject * obj0 = 0 ; | |
7123 | char *kwnames[] = { | |
7124 | (char *) "self", NULL | |
7125 | }; | |
7126 | ||
7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7129 | { | |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | result = (long)(arg1)->GetType(); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | resultobj = PyInt_FromLong((long)result); | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj; | |
7145 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7146 | wxString result; | |
7147 | PyObject * obj0 = 0 ; | |
7148 | char *kwnames[] = { | |
7149 | (char *) "self", NULL | |
7150 | }; | |
7151 | ||
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7154 | { | |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7156 | result = (arg1)->GetMimeType(); | |
7157 | ||
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
7161 | { | |
7162 | #if wxUSE_UNICODE | |
7163 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7164 | #else | |
7165 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7166 | #endif | |
7167 | } | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7177 | wxString *arg2 = 0 ; | |
7178 | bool result; | |
423f194a | 7179 | bool temp2 = False ; |
d14a1e28 RD |
7180 | PyObject * obj0 = 0 ; |
7181 | PyObject * obj1 = 0 ; | |
7182 | char *kwnames[] = { | |
7183 | (char *) "self",(char *) "name", NULL | |
7184 | }; | |
7185 | ||
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7188 | { | |
7189 | arg2 = wxString_in_helper(obj1); | |
7190 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7191 | temp2 = True; |
d14a1e28 RD |
7192 | } |
7193 | { | |
7194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7195 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7196 | ||
7197 | wxPyEndAllowThreads(__tstate); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | } | |
7200 | resultobj = PyInt_FromLong((long)result); | |
7201 | { | |
7202 | if (temp2) | |
7203 | delete arg2; | |
7204 | } | |
7205 | return resultobj; | |
7206 | fail: | |
7207 | { | |
7208 | if (temp2) | |
7209 | delete arg2; | |
7210 | } | |
7211 | return NULL; | |
7212 | } | |
7213 | ||
7214 | ||
7215 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7216 | PyObject *resultobj; | |
7217 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7218 | wxString *arg2 = 0 ; | |
423f194a | 7219 | bool temp2 = False ; |
d14a1e28 RD |
7220 | PyObject * obj0 = 0 ; |
7221 | PyObject * obj1 = 0 ; | |
7222 | char *kwnames[] = { | |
7223 | (char *) "self",(char *) "name", NULL | |
7224 | }; | |
7225 | ||
7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7228 | { | |
7229 | arg2 = wxString_in_helper(obj1); | |
7230 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7231 | temp2 = True; |
d14a1e28 RD |
7232 | } |
7233 | { | |
7234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7235 | (arg1)->SetName((wxString const &)*arg2); | |
7236 | ||
7237 | wxPyEndAllowThreads(__tstate); | |
7238 | if (PyErr_Occurred()) SWIG_fail; | |
7239 | } | |
7240 | Py_INCREF(Py_None); resultobj = Py_None; | |
7241 | { | |
7242 | if (temp2) | |
7243 | delete arg2; | |
7244 | } | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | { | |
7248 | if (temp2) | |
7249 | delete arg2; | |
7250 | } | |
7251 | return NULL; | |
7252 | } | |
7253 | ||
7254 | ||
7255 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7256 | PyObject *resultobj; | |
7257 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7258 | wxString *arg2 = 0 ; | |
423f194a | 7259 | bool temp2 = False ; |
d14a1e28 RD |
7260 | PyObject * obj0 = 0 ; |
7261 | PyObject * obj1 = 0 ; | |
7262 | char *kwnames[] = { | |
7263 | (char *) "self",(char *) "extension", NULL | |
7264 | }; | |
7265 | ||
7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7268 | { | |
7269 | arg2 = wxString_in_helper(obj1); | |
7270 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7271 | temp2 = True; |
d14a1e28 RD |
7272 | } |
7273 | { | |
7274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7275 | (arg1)->SetExtension((wxString const &)*arg2); | |
7276 | ||
7277 | wxPyEndAllowThreads(__tstate); | |
7278 | if (PyErr_Occurred()) SWIG_fail; | |
7279 | } | |
7280 | Py_INCREF(Py_None); resultobj = Py_None; | |
7281 | { | |
7282 | if (temp2) | |
7283 | delete arg2; | |
7284 | } | |
7285 | return resultobj; | |
7286 | fail: | |
7287 | { | |
7288 | if (temp2) | |
7289 | delete arg2; | |
7290 | } | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
7295 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7296 | PyObject *resultobj; | |
7297 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7298 | long arg2 ; | |
7299 | PyObject * obj0 = 0 ; | |
7300 | char *kwnames[] = { | |
7301 | (char *) "self",(char *) "type", NULL | |
7302 | }; | |
7303 | ||
7304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ImageHandler_SetType",kwnames,&obj0,&arg2)) goto fail; | |
7305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7306 | { | |
7307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7308 | (arg1)->SetType(arg2); | |
7309 | ||
7310 | wxPyEndAllowThreads(__tstate); | |
7311 | if (PyErr_Occurred()) SWIG_fail; | |
7312 | } | |
7313 | Py_INCREF(Py_None); resultobj = Py_None; | |
7314 | return resultobj; | |
7315 | fail: | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
7320 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject *resultobj; | |
7322 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7323 | wxString *arg2 = 0 ; | |
423f194a | 7324 | bool temp2 = False ; |
d14a1e28 RD |
7325 | PyObject * obj0 = 0 ; |
7326 | PyObject * obj1 = 0 ; | |
7327 | char *kwnames[] = { | |
7328 | (char *) "self",(char *) "mimetype", NULL | |
7329 | }; | |
7330 | ||
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7333 | { | |
7334 | arg2 = wxString_in_helper(obj1); | |
7335 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7336 | temp2 = True; |
d14a1e28 RD |
7337 | } |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | Py_INCREF(Py_None); resultobj = Py_None; | |
7346 | { | |
7347 | if (temp2) | |
7348 | delete arg2; | |
7349 | } | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | { | |
7353 | if (temp2) | |
7354 | delete arg2; | |
7355 | } | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
7360 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7361 | PyObject *obj; | |
7362 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7363 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7364 | Py_INCREF(obj); | |
7365 | return Py_BuildValue((char *)""); | |
7366 | } | |
7367 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7368 | PyObject *resultobj; | |
7369 | wxImageHistogram *result; | |
7370 | char *kwnames[] = { | |
7371 | NULL | |
7372 | }; | |
7373 | ||
7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7375 | { | |
7376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7377 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7378 | ||
7379 | wxPyEndAllowThreads(__tstate); | |
7380 | if (PyErr_Occurred()) SWIG_fail; | |
7381 | } | |
7382 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7383 | return resultobj; | |
7384 | fail: | |
7385 | return NULL; | |
7386 | } | |
7387 | ||
7388 | ||
7389 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7390 | PyObject *resultobj; | |
7391 | unsigned char arg1 ; | |
7392 | unsigned char arg2 ; | |
7393 | unsigned char arg3 ; | |
7394 | unsigned long result; | |
7395 | PyObject * obj0 = 0 ; | |
7396 | PyObject * obj1 = 0 ; | |
7397 | PyObject * obj2 = 0 ; | |
7398 | char *kwnames[] = { | |
7399 | (char *) "r",(char *) "g",(char *) "b", NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7403 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
7404 | if (PyErr_Occurred()) SWIG_fail; | |
7405 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
7406 | if (PyErr_Occurred()) SWIG_fail; | |
7407 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | { | |
7410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7411 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
7412 | ||
7413 | wxPyEndAllowThreads(__tstate); | |
7414 | if (PyErr_Occurred()) SWIG_fail; | |
7415 | } | |
7416 | resultobj = PyInt_FromLong((long)result); | |
7417 | return resultobj; | |
7418 | fail: | |
7419 | return NULL; | |
7420 | } | |
7421 | ||
7422 | ||
7423 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7424 | PyObject *resultobj; | |
7425 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
7426 | unsigned char *arg2 = (unsigned char *) 0 ; | |
7427 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7428 | unsigned char *arg4 = (unsigned char *) 0 ; | |
7429 | unsigned char arg5 = (unsigned char) 1 ; | |
7430 | unsigned char arg6 = (unsigned char) 0 ; | |
7431 | unsigned char arg7 = (unsigned char) 0 ; | |
7432 | bool result; | |
7433 | unsigned char temp2 ; | |
7434 | unsigned char temp3 ; | |
7435 | unsigned char temp4 ; | |
7436 | PyObject * obj0 = 0 ; | |
7437 | PyObject * obj1 = 0 ; | |
7438 | PyObject * obj2 = 0 ; | |
7439 | PyObject * obj3 = 0 ; | |
7440 | char *kwnames[] = { | |
7441 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
7442 | }; | |
7443 | ||
7444 | arg2 = &temp2; | |
7445 | arg3 = &temp3; | |
7446 | arg4 = &temp4; | |
7447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7449 | if (obj1) { | |
7450 | arg5 = (unsigned char) PyInt_AsLong(obj1); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | } | |
7453 | if (obj2) { | |
7454 | arg6 = (unsigned char) PyInt_AsLong(obj2); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
7457 | if (obj3) { | |
7458 | arg7 = (unsigned char) PyInt_AsLong(obj3); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
7461 | { | |
7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7463 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
7464 | ||
7465 | wxPyEndAllowThreads(__tstate); | |
7466 | if (PyErr_Occurred()) SWIG_fail; | |
7467 | } | |
7468 | resultobj = PyInt_FromLong((long)result); | |
7469 | { | |
7470 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7471 | resultobj = t_output_helper(resultobj,o); | |
7472 | } | |
7473 | { | |
7474 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7475 | resultobj = t_output_helper(resultobj,o); | |
7476 | } | |
7477 | { | |
7478 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7479 | resultobj = t_output_helper(resultobj,o); | |
7480 | } | |
7481 | return resultobj; | |
7482 | fail: | |
7483 | return NULL; | |
7484 | } | |
7485 | ||
7486 | ||
7487 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
7488 | PyObject *obj; | |
7489 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7490 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
7491 | Py_INCREF(obj); | |
7492 | return Py_BuildValue((char *)""); | |
7493 | } | |
7494 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7495 | PyObject *resultobj; | |
7496 | wxString *arg1 = 0 ; | |
7497 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7498 | int arg3 = (int) -1 ; | |
7499 | wxImage *result; | |
423f194a | 7500 | bool temp1 = False ; |
d14a1e28 RD |
7501 | PyObject * obj0 = 0 ; |
7502 | char *kwnames[] = { | |
7503 | (char *) "name",(char *) "type",(char *) "index", NULL | |
7504 | }; | |
7505 | ||
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_Image",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7507 | { | |
7508 | arg1 = wxString_in_helper(obj0); | |
7509 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7510 | temp1 = True; |
d14a1e28 RD |
7511 | } |
7512 | { | |
7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7514 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
7515 | ||
7516 | wxPyEndAllowThreads(__tstate); | |
7517 | if (PyErr_Occurred()) SWIG_fail; | |
7518 | } | |
7519 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7520 | { | |
7521 | if (temp1) | |
7522 | delete arg1; | |
7523 | } | |
7524 | return resultobj; | |
7525 | fail: | |
7526 | { | |
7527 | if (temp1) | |
7528 | delete arg1; | |
7529 | } | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7535 | PyObject *resultobj; | |
7536 | wxImage *arg1 = (wxImage *) 0 ; | |
7537 | PyObject * obj0 = 0 ; | |
7538 | char *kwnames[] = { | |
7539 | (char *) "self", NULL | |
7540 | }; | |
7541 | ||
7542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
7543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7544 | { | |
7545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7546 | delete arg1; | |
7547 | ||
7548 | wxPyEndAllowThreads(__tstate); | |
7549 | if (PyErr_Occurred()) SWIG_fail; | |
7550 | } | |
7551 | Py_INCREF(Py_None); resultobj = Py_None; | |
7552 | return resultobj; | |
7553 | fail: | |
7554 | return NULL; | |
7555 | } | |
7556 | ||
7557 | ||
7558 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7559 | PyObject *resultobj; | |
7560 | wxString *arg1 = 0 ; | |
7561 | wxString *arg2 = 0 ; | |
7562 | int arg3 = (int) -1 ; | |
7563 | wxImage *result; | |
423f194a RD |
7564 | bool temp1 = False ; |
7565 | bool temp2 = False ; | |
d14a1e28 RD |
7566 | PyObject * obj0 = 0 ; |
7567 | PyObject * obj1 = 0 ; | |
7568 | char *kwnames[] = { | |
7569 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
7570 | }; | |
7571 | ||
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7573 | { | |
7574 | arg1 = wxString_in_helper(obj0); | |
7575 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7576 | temp1 = True; |
d14a1e28 RD |
7577 | } |
7578 | { | |
7579 | arg2 = wxString_in_helper(obj1); | |
7580 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7581 | temp2 = True; |
d14a1e28 RD |
7582 | } |
7583 | { | |
7584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7585 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
7586 | ||
7587 | wxPyEndAllowThreads(__tstate); | |
7588 | if (PyErr_Occurred()) SWIG_fail; | |
7589 | } | |
7590 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7591 | { | |
7592 | if (temp1) | |
7593 | delete arg1; | |
7594 | } | |
7595 | { | |
7596 | if (temp2) | |
7597 | delete arg2; | |
7598 | } | |
7599 | return resultobj; | |
7600 | fail: | |
7601 | { | |
7602 | if (temp1) | |
7603 | delete arg1; | |
7604 | } | |
7605 | { | |
7606 | if (temp2) | |
7607 | delete arg2; | |
7608 | } | |
7609 | return NULL; | |
7610 | } | |
7611 | ||
7612 | ||
7613 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7614 | PyObject *resultobj; | |
7615 | wxInputStream *arg1 = 0 ; | |
7616 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
7617 | int arg3 = (int) -1 ; | |
7618 | wxImage *result; | |
7619 | wxPyInputStream *temp1 ; | |
7620 | bool created1 ; | |
7621 | PyObject * obj0 = 0 ; | |
7622 | char *kwnames[] = { | |
7623 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|li:new_ImageFromStream",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7627 | { | |
7628 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7629 | arg1 = temp1->m_wxis; | |
423f194a | 7630 | created1 = False; |
d14a1e28 RD |
7631 | } else { |
7632 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 7633 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
7634 | if (arg1 == NULL) { |
7635 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7636 | SWIG_fail; | |
7637 | } | |
423f194a | 7638 | created1 = True; |
d14a1e28 RD |
7639 | } |
7640 | } | |
7641 | { | |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
7644 | ||
7645 | wxPyEndAllowThreads(__tstate); | |
7646 | if (PyErr_Occurred()) SWIG_fail; | |
7647 | } | |
7648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7649 | { | |
7650 | if (created1) | |
7651 | delete arg1; | |
7652 | } | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | { | |
7656 | if (created1) | |
7657 | delete arg1; | |
7658 | } | |
7659 | return NULL; | |
7660 | } | |
7661 | ||
7662 | ||
7663 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7664 | PyObject *resultobj; | |
7665 | wxInputStream *arg1 = 0 ; | |
7666 | wxString *arg2 = 0 ; | |
7667 | int arg3 = (int) -1 ; | |
7668 | wxImage *result; | |
7669 | wxPyInputStream *temp1 ; | |
7670 | bool created1 ; | |
423f194a | 7671 | bool temp2 = False ; |
d14a1e28 RD |
7672 | PyObject * obj0 = 0 ; |
7673 | PyObject * obj1 = 0 ; | |
7674 | char *kwnames[] = { | |
7675 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
7676 | }; | |
7677 | ||
7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
7679 | { | |
7680 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
7681 | arg1 = temp1->m_wxis; | |
423f194a | 7682 | created1 = False; |
d14a1e28 RD |
7683 | } else { |
7684 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 7685 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
7686 | if (arg1 == NULL) { |
7687 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
7688 | SWIG_fail; | |
7689 | } | |
423f194a | 7690 | created1 = True; |
d14a1e28 RD |
7691 | } |
7692 | } | |
7693 | { | |
7694 | arg2 = wxString_in_helper(obj1); | |
7695 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7696 | temp2 = True; |
d14a1e28 RD |
7697 | } |
7698 | { | |
7699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7700 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
7701 | ||
7702 | wxPyEndAllowThreads(__tstate); | |
7703 | if (PyErr_Occurred()) SWIG_fail; | |
7704 | } | |
7705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7706 | { | |
7707 | if (created1) | |
7708 | delete arg1; | |
7709 | } | |
7710 | { | |
7711 | if (temp2) | |
7712 | delete arg2; | |
7713 | } | |
7714 | return resultobj; | |
7715 | fail: | |
7716 | { | |
7717 | if (created1) | |
7718 | delete arg1; | |
7719 | } | |
7720 | { | |
7721 | if (temp2) | |
7722 | delete arg2; | |
7723 | } | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | int arg1 = (int) 0 ; | |
7731 | int arg2 = (int) 0 ; | |
423f194a | 7732 | bool arg3 = (bool) True ; |
d14a1e28 RD |
7733 | wxImage *result; |
7734 | PyObject * obj2 = 0 ; | |
7735 | char *kwnames[] = { | |
7736 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
7737 | }; | |
7738 | ||
7739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_EmptyImage",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7740 | if (obj2) { | |
7741 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | } | |
7744 | { | |
7745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7746 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7747 | ||
7748 | wxPyEndAllowThreads(__tstate); | |
7749 | if (PyErr_Occurred()) SWIG_fail; | |
7750 | } | |
7751 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7752 | return resultobj; | |
7753 | fail: | |
7754 | return NULL; | |
7755 | } | |
7756 | ||
7757 | ||
7758 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7759 | PyObject *resultobj; | |
7760 | wxBitmap *arg1 = 0 ; | |
7761 | wxImage *result; | |
7762 | PyObject * obj0 = 0 ; | |
7763 | char *kwnames[] = { | |
7764 | (char *) "bitmap", NULL | |
7765 | }; | |
7766 | ||
7767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
7768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7769 | if (arg1 == NULL) { | |
7770 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7771 | } | |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
7779 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7780 | return resultobj; | |
7781 | fail: | |
7782 | return NULL; | |
7783 | } | |
7784 | ||
7785 | ||
7786 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7787 | PyObject *resultobj; | |
7788 | int arg1 ; | |
7789 | int arg2 ; | |
7790 | unsigned char *arg3 = (unsigned char *) 0 ; | |
7791 | wxImage *result; | |
7792 | PyObject * obj2 = 0 ; | |
7793 | char *kwnames[] = { | |
7794 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7795 | }; | |
7796 | ||
7797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO:new_ImageFromData",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
7798 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject *resultobj; | |
7815 | wxImage *arg1 = (wxImage *) 0 ; | |
7816 | int arg2 ; | |
7817 | int arg3 ; | |
7818 | PyObject * obj0 = 0 ; | |
7819 | char *kwnames[] = { | |
7820 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7821 | }; | |
7822 | ||
7823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Create",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7825 | { | |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | (arg1)->Create(arg2,arg3); | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
7832 | Py_INCREF(Py_None); resultobj = Py_None; | |
7833 | return resultobj; | |
7834 | fail: | |
7835 | return NULL; | |
7836 | } | |
7837 | ||
7838 | ||
7839 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7840 | PyObject *resultobj; | |
7841 | wxImage *arg1 = (wxImage *) 0 ; | |
7842 | PyObject * obj0 = 0 ; | |
7843 | char *kwnames[] = { | |
7844 | (char *) "self", NULL | |
7845 | }; | |
7846 | ||
7847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
7848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7849 | { | |
7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7851 | (arg1)->Destroy(); | |
7852 | ||
7853 | wxPyEndAllowThreads(__tstate); | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | } | |
7856 | Py_INCREF(Py_None); resultobj = Py_None; | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | return NULL; | |
7860 | } | |
7861 | ||
7862 | ||
7863 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7864 | PyObject *resultobj; | |
7865 | wxImage *arg1 = (wxImage *) 0 ; | |
7866 | int arg2 ; | |
7867 | int arg3 ; | |
7868 | SwigValueWrapper< wxImage > result; | |
7869 | PyObject * obj0 = 0 ; | |
7870 | char *kwnames[] = { | |
7871 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7872 | }; | |
7873 | ||
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Scale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7876 | { | |
7877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7878 | result = (arg1)->Scale(arg2,arg3); | |
7879 | ||
7880 | wxPyEndAllowThreads(__tstate); | |
7881 | if (PyErr_Occurred()) SWIG_fail; | |
7882 | } | |
7883 | { | |
7884 | wxImage * resultptr; | |
7885 | resultptr = new wxImage((wxImage &) result); | |
7886 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
7887 | } | |
7888 | return resultobj; | |
7889 | fail: | |
7890 | return NULL; | |
7891 | } | |
7892 | ||
7893 | ||
7894 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7895 | PyObject *resultobj; | |
7896 | wxImage *arg1 = (wxImage *) 0 ; | |
7897 | int arg2 ; | |
7898 | int arg3 ; | |
7899 | SwigValueWrapper< wxImage > result; | |
7900 | PyObject * obj0 = 0 ; | |
7901 | char *kwnames[] = { | |
7902 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
7903 | }; | |
7904 | ||
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_ShrinkBy",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7907 | { | |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
7910 | ||
7911 | wxPyEndAllowThreads(__tstate); | |
7912 | if (PyErr_Occurred()) SWIG_fail; | |
7913 | } | |
7914 | { | |
7915 | wxImage * resultptr; | |
7916 | resultptr = new wxImage((wxImage &) result); | |
7917 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
7918 | } | |
7919 | return resultobj; | |
7920 | fail: | |
7921 | return NULL; | |
7922 | } | |
7923 | ||
7924 | ||
7925 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7926 | PyObject *resultobj; | |
7927 | wxImage *arg1 = (wxImage *) 0 ; | |
7928 | int arg2 ; | |
7929 | int arg3 ; | |
7930 | wxImage *result; | |
7931 | PyObject * obj0 = 0 ; | |
7932 | char *kwnames[] = { | |
7933 | (char *) "self",(char *) "width",(char *) "height", NULL | |
7934 | }; | |
7935 | ||
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_Rescale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | { | |
7941 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
7942 | result = (wxImage *) &_result_ref; | |
7943 | } | |
7944 | ||
7945 | wxPyEndAllowThreads(__tstate); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
7948 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
7949 | return resultobj; | |
7950 | fail: | |
7951 | return NULL; | |
7952 | } | |
7953 | ||
7954 | ||
7955 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7956 | PyObject *resultobj; | |
7957 | wxImage *arg1 = (wxImage *) 0 ; | |
7958 | int arg2 ; | |
7959 | int arg3 ; | |
7960 | unsigned char arg4 ; | |
7961 | unsigned char arg5 ; | |
7962 | unsigned char arg6 ; | |
7963 | PyObject * obj0 = 0 ; | |
7964 | PyObject * obj3 = 0 ; | |
7965 | PyObject * obj4 = 0 ; | |
7966 | PyObject * obj5 = 0 ; | |
7967 | char *kwnames[] = { | |
7968 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiOOO:Image_SetRGB",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
7972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7973 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | arg5 = (unsigned char) PyInt_AsLong(obj4); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | arg6 = (unsigned char) PyInt_AsLong(obj5); | |
7978 | if (PyErr_Occurred()) SWIG_fail; | |
7979 | { | |
7980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7981 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
7982 | ||
7983 | wxPyEndAllowThreads(__tstate); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
7986 | Py_INCREF(Py_None); resultobj = Py_None; | |
7987 | return resultobj; | |
7988 | fail: | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
7993 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject *resultobj; | |
7995 | wxImage *arg1 = (wxImage *) 0 ; | |
7996 | int arg2 ; | |
7997 | int arg3 ; | |
7998 | unsigned char result; | |
7999 | PyObject * obj0 = 0 ; | |
8000 | char *kwnames[] = { | |
8001 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8002 | }; | |
8003 | ||
8004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetRed",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8006 | { | |
8007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8008 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8009 | ||
8010 | wxPyEndAllowThreads(__tstate); | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | } | |
8013 | resultobj = PyInt_FromLong((long)result); | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8021 | PyObject *resultobj; | |
8022 | wxImage *arg1 = (wxImage *) 0 ; | |
8023 | int arg2 ; | |
8024 | int arg3 ; | |
8025 | unsigned char result; | |
8026 | PyObject * obj0 = 0 ; | |
8027 | char *kwnames[] = { | |
8028 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8029 | }; | |
8030 | ||
8031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetGreen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8033 | { | |
8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8035 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8036 | ||
8037 | wxPyEndAllowThreads(__tstate); | |
8038 | if (PyErr_Occurred()) SWIG_fail; | |
8039 | } | |
8040 | resultobj = PyInt_FromLong((long)result); | |
8041 | return resultobj; | |
8042 | fail: | |
8043 | return NULL; | |
8044 | } | |
8045 | ||
8046 | ||
8047 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8048 | PyObject *resultobj; | |
8049 | wxImage *arg1 = (wxImage *) 0 ; | |
8050 | int arg2 ; | |
8051 | int arg3 ; | |
8052 | unsigned char result; | |
8053 | PyObject * obj0 = 0 ; | |
8054 | char *kwnames[] = { | |
8055 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8056 | }; | |
8057 | ||
8058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetBlue",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8060 | { | |
8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8062 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8063 | ||
8064 | wxPyEndAllowThreads(__tstate); | |
8065 | if (PyErr_Occurred()) SWIG_fail; | |
8066 | } | |
8067 | resultobj = PyInt_FromLong((long)result); | |
8068 | return resultobj; | |
8069 | fail: | |
8070 | return NULL; | |
8071 | } | |
8072 | ||
8073 | ||
8074 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8075 | PyObject *resultobj; | |
8076 | wxImage *arg1 = (wxImage *) 0 ; | |
8077 | int arg2 ; | |
8078 | int arg3 ; | |
8079 | unsigned char arg4 ; | |
8080 | PyObject * obj0 = 0 ; | |
8081 | PyObject * obj3 = 0 ; | |
8082 | char *kwnames[] = { | |
8083 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8084 | }; | |
8085 | ||
8086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Image_SetAlpha",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
8087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8088 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
8089 | if (PyErr_Occurred()) SWIG_fail; | |
8090 | { | |
8091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8092 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8093 | ||
8094 | wxPyEndAllowThreads(__tstate); | |
8095 | if (PyErr_Occurred()) SWIG_fail; | |
8096 | } | |
8097 | Py_INCREF(Py_None); resultobj = Py_None; | |
8098 | return resultobj; | |
8099 | fail: | |
8100 | return NULL; | |
8101 | } | |
8102 | ||
8103 | ||
8104 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8105 | PyObject *resultobj; | |
8106 | wxImage *arg1 = (wxImage *) 0 ; | |
8107 | int arg2 ; | |
8108 | int arg3 ; | |
8109 | unsigned char result; | |
8110 | PyObject * obj0 = 0 ; | |
8111 | char *kwnames[] = { | |
8112 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8113 | }; | |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Image_GetAlpha",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8117 | { | |
8118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8119 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8120 | ||
8121 | wxPyEndAllowThreads(__tstate); | |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
8123 | } | |
8124 | resultobj = PyInt_FromLong((long)result); | |
8125 | return resultobj; | |
8126 | fail: | |
8127 | return NULL; | |
8128 | } | |
8129 | ||
8130 | ||
8131 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8132 | PyObject *resultobj; | |
8133 | wxImage *arg1 = (wxImage *) 0 ; | |
8134 | bool result; | |
8135 | PyObject * obj0 = 0 ; | |
8136 | char *kwnames[] = { | |
8137 | (char *) "self", NULL | |
8138 | }; | |
8139 | ||
8140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8142 | { | |
8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8144 | result = (bool)(arg1)->HasAlpha(); | |
8145 | ||
8146 | wxPyEndAllowThreads(__tstate); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | resultobj = PyInt_FromLong((long)result); | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
8156 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8157 | PyObject *resultobj; | |
8158 | wxImage *arg1 = (wxImage *) 0 ; | |
8159 | byte *arg2 = (byte *) 0 ; | |
8160 | byte *arg3 = (byte *) 0 ; | |
8161 | byte *arg4 = (byte *) 0 ; | |
8162 | byte arg5 = (byte) 0 ; | |
8163 | byte arg6 = (byte) 0 ; | |
8164 | byte arg7 = (byte) 0 ; | |
8165 | bool result; | |
8166 | byte temp2 ; | |
8167 | byte temp3 ; | |
8168 | byte temp4 ; | |
8169 | PyObject * obj0 = 0 ; | |
8170 | PyObject * obj1 = 0 ; | |
8171 | PyObject * obj2 = 0 ; | |
8172 | PyObject * obj3 = 0 ; | |
8173 | char *kwnames[] = { | |
8174 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8175 | }; | |
8176 | ||
8177 | arg2 = &temp2; | |
8178 | arg3 = &temp3; | |
8179 | arg4 = &temp4; | |
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8182 | if (obj1) { | |
8183 | arg5 = (byte) PyInt_AsLong(obj1); | |
8184 | if (PyErr_Occurred()) SWIG_fail; | |
8185 | } | |
8186 | if (obj2) { | |
8187 | arg6 = (byte) PyInt_AsLong(obj2); | |
8188 | if (PyErr_Occurred()) SWIG_fail; | |
8189 | } | |
8190 | if (obj3) { | |
8191 | arg7 = (byte) PyInt_AsLong(obj3); | |
8192 | if (PyErr_Occurred()) SWIG_fail; | |
8193 | } | |
8194 | { | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
8201 | resultobj = PyInt_FromLong((long)result); | |
8202 | { | |
8203 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8204 | resultobj = t_output_helper(resultobj,o); | |
8205 | } | |
8206 | { | |
8207 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8208 | resultobj = t_output_helper(resultobj,o); | |
8209 | } | |
8210 | { | |
8211 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8212 | resultobj = t_output_helper(resultobj,o); | |
8213 | } | |
8214 | return resultobj; | |
8215 | fail: | |
8216 | return NULL; | |
8217 | } | |
8218 | ||
8219 | ||
8220 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8221 | PyObject *resultobj; | |
8222 | wxImage *arg1 = (wxImage *) 0 ; | |
8223 | wxImage *arg2 = 0 ; | |
8224 | byte arg3 ; | |
8225 | byte arg4 ; | |
8226 | byte arg5 ; | |
8227 | bool result; | |
8228 | PyObject * obj0 = 0 ; | |
8229 | PyObject * obj1 = 0 ; | |
8230 | PyObject * obj2 = 0 ; | |
8231 | PyObject * obj3 = 0 ; | |
8232 | PyObject * obj4 = 0 ; | |
8233 | char *kwnames[] = { | |
8234 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
8235 | }; | |
8236 | ||
8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8239 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8240 | if (arg2 == NULL) { | |
8241 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8242 | } | |
8243 | arg3 = (byte) PyInt_AsLong(obj2); | |
8244 | if (PyErr_Occurred()) SWIG_fail; | |
8245 | arg4 = (byte) PyInt_AsLong(obj3); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | arg5 = (byte) PyInt_AsLong(obj4); | |
8248 | if (PyErr_Occurred()) SWIG_fail; | |
8249 | { | |
8250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8251 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
8252 | ||
8253 | wxPyEndAllowThreads(__tstate); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
8256 | resultobj = PyInt_FromLong((long)result); | |
8257 | return resultobj; | |
8258 | fail: | |
8259 | return NULL; | |
8260 | } | |
8261 | ||
8262 | ||
8263 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject *resultobj; | |
8265 | wxString *arg1 = 0 ; | |
8266 | bool result; | |
423f194a | 8267 | bool temp1 = False ; |
d14a1e28 RD |
8268 | PyObject * obj0 = 0 ; |
8269 | char *kwnames[] = { | |
8270 | (char *) "name", NULL | |
8271 | }; | |
8272 | ||
8273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
8274 | { | |
8275 | arg1 = wxString_in_helper(obj0); | |
8276 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8277 | temp1 = True; |
d14a1e28 RD |
8278 | } |
8279 | { | |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8281 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | resultobj = PyInt_FromLong((long)result); | |
8287 | { | |
8288 | if (temp1) | |
8289 | delete arg1; | |
8290 | } | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | { | |
8294 | if (temp1) | |
8295 | delete arg1; | |
8296 | } | |
8297 | return NULL; | |
8298 | } | |
8299 | ||
8300 | ||
8301 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8302 | PyObject *resultobj; | |
8303 | wxString *arg1 = 0 ; | |
8304 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8305 | int result; | |
423f194a | 8306 | bool temp1 = False ; |
d14a1e28 RD |
8307 | PyObject * obj0 = 0 ; |
8308 | char *kwnames[] = { | |
8309 | (char *) "name",(char *) "type", NULL | |
8310 | }; | |
8311 | ||
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Image_GetImageCount",kwnames,&obj0,&arg2)) goto fail; | |
8313 | { | |
8314 | arg1 = wxString_in_helper(obj0); | |
8315 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8316 | temp1 = True; |
d14a1e28 RD |
8317 | } |
8318 | { | |
8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8320 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
8321 | ||
8322 | wxPyEndAllowThreads(__tstate); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | resultobj = PyInt_FromLong((long)result); | |
8326 | { | |
8327 | if (temp1) | |
8328 | delete arg1; | |
8329 | } | |
8330 | return resultobj; | |
8331 | fail: | |
8332 | { | |
8333 | if (temp1) | |
8334 | delete arg1; | |
8335 | } | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8341 | PyObject *resultobj; | |
8342 | wxImage *arg1 = (wxImage *) 0 ; | |
8343 | wxString *arg2 = 0 ; | |
8344 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8345 | int arg4 = (int) -1 ; | |
8346 | bool result; | |
423f194a | 8347 | bool temp2 = False ; |
d14a1e28 RD |
8348 | PyObject * obj0 = 0 ; |
8349 | PyObject * obj1 = 0 ; | |
8350 | char *kwnames[] = { | |
8351 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
8352 | }; | |
8353 | ||
8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadFile",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8356 | { | |
8357 | arg2 = wxString_in_helper(obj1); | |
8358 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8359 | temp2 = True; |
d14a1e28 RD |
8360 | } |
8361 | { | |
8362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8363 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
8364 | ||
8365 | wxPyEndAllowThreads(__tstate); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | } | |
8368 | resultobj = PyInt_FromLong((long)result); | |
8369 | { | |
8370 | if (temp2) | |
8371 | delete arg2; | |
8372 | } | |
8373 | return resultobj; | |
8374 | fail: | |
8375 | { | |
8376 | if (temp2) | |
8377 | delete arg2; | |
8378 | } | |
8379 | return NULL; | |
8380 | } | |
8381 | ||
8382 | ||
8383 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8384 | PyObject *resultobj; | |
8385 | wxImage *arg1 = (wxImage *) 0 ; | |
8386 | wxString *arg2 = 0 ; | |
8387 | wxString *arg3 = 0 ; | |
8388 | int arg4 = (int) -1 ; | |
8389 | bool result; | |
423f194a RD |
8390 | bool temp2 = False ; |
8391 | bool temp3 = False ; | |
d14a1e28 RD |
8392 | PyObject * obj0 = 0 ; |
8393 | PyObject * obj1 = 0 ; | |
8394 | PyObject * obj2 = 0 ; | |
8395 | char *kwnames[] = { | |
8396 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8397 | }; | |
8398 | ||
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8401 | { | |
8402 | arg2 = wxString_in_helper(obj1); | |
8403 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8404 | temp2 = True; |
d14a1e28 RD |
8405 | } |
8406 | { | |
8407 | arg3 = wxString_in_helper(obj2); | |
8408 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8409 | temp3 = True; |
d14a1e28 RD |
8410 | } |
8411 | { | |
8412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8413 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
8414 | ||
8415 | wxPyEndAllowThreads(__tstate); | |
8416 | if (PyErr_Occurred()) SWIG_fail; | |
8417 | } | |
8418 | resultobj = PyInt_FromLong((long)result); | |
8419 | { | |
8420 | if (temp2) | |
8421 | delete arg2; | |
8422 | } | |
8423 | { | |
8424 | if (temp3) | |
8425 | delete arg3; | |
8426 | } | |
8427 | return resultobj; | |
8428 | fail: | |
8429 | { | |
8430 | if (temp2) | |
8431 | delete arg2; | |
8432 | } | |
8433 | { | |
8434 | if (temp3) | |
8435 | delete arg3; | |
8436 | } | |
8437 | return NULL; | |
8438 | } | |
8439 | ||
8440 | ||
8441 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8442 | PyObject *resultobj; | |
8443 | wxImage *arg1 = (wxImage *) 0 ; | |
8444 | wxString *arg2 = 0 ; | |
8445 | int arg3 ; | |
8446 | bool result; | |
423f194a | 8447 | bool temp2 = False ; |
d14a1e28 RD |
8448 | PyObject * obj0 = 0 ; |
8449 | PyObject * obj1 = 0 ; | |
8450 | char *kwnames[] = { | |
8451 | (char *) "self",(char *) "name",(char *) "type", NULL | |
8452 | }; | |
8453 | ||
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SaveFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
8455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8456 | { | |
8457 | arg2 = wxString_in_helper(obj1); | |
8458 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8459 | temp2 = True; |
d14a1e28 RD |
8460 | } |
8461 | { | |
8462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8463 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
8464 | ||
8465 | wxPyEndAllowThreads(__tstate); | |
8466 | if (PyErr_Occurred()) SWIG_fail; | |
8467 | } | |
8468 | resultobj = PyInt_FromLong((long)result); | |
8469 | { | |
8470 | if (temp2) | |
8471 | delete arg2; | |
8472 | } | |
8473 | return resultobj; | |
8474 | fail: | |
8475 | { | |
8476 | if (temp2) | |
8477 | delete arg2; | |
8478 | } | |
8479 | return NULL; | |
8480 | } | |
8481 | ||
8482 | ||
8483 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8484 | PyObject *resultobj; | |
8485 | wxImage *arg1 = (wxImage *) 0 ; | |
8486 | wxString *arg2 = 0 ; | |
8487 | wxString *arg3 = 0 ; | |
8488 | bool result; | |
423f194a RD |
8489 | bool temp2 = False ; |
8490 | bool temp3 = False ; | |
d14a1e28 RD |
8491 | PyObject * obj0 = 0 ; |
8492 | PyObject * obj1 = 0 ; | |
8493 | PyObject * obj2 = 0 ; | |
8494 | char *kwnames[] = { | |
8495 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
8496 | }; | |
8497 | ||
8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8500 | { | |
8501 | arg2 = wxString_in_helper(obj1); | |
8502 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8503 | temp2 = True; |
d14a1e28 RD |
8504 | } |
8505 | { | |
8506 | arg3 = wxString_in_helper(obj2); | |
8507 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8508 | temp3 = True; |
d14a1e28 RD |
8509 | } |
8510 | { | |
8511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8512 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
8513 | ||
8514 | wxPyEndAllowThreads(__tstate); | |
8515 | if (PyErr_Occurred()) SWIG_fail; | |
8516 | } | |
8517 | resultobj = PyInt_FromLong((long)result); | |
8518 | { | |
8519 | if (temp2) | |
8520 | delete arg2; | |
8521 | } | |
8522 | { | |
8523 | if (temp3) | |
8524 | delete arg3; | |
8525 | } | |
8526 | return resultobj; | |
8527 | fail: | |
8528 | { | |
8529 | if (temp2) | |
8530 | delete arg2; | |
8531 | } | |
8532 | { | |
8533 | if (temp3) | |
8534 | delete arg3; | |
8535 | } | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8541 | PyObject *resultobj; | |
8542 | wxInputStream *arg1 = 0 ; | |
8543 | bool result; | |
8544 | wxPyInputStream *temp1 ; | |
8545 | bool created1 ; | |
8546 | PyObject * obj0 = 0 ; | |
8547 | char *kwnames[] = { | |
8548 | (char *) "stream", NULL | |
8549 | }; | |
8550 | ||
8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
8552 | { | |
8553 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8554 | arg1 = temp1->m_wxis; | |
423f194a | 8555 | created1 = False; |
d14a1e28 RD |
8556 | } else { |
8557 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8558 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8559 | if (arg1 == NULL) { |
8560 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8561 | SWIG_fail; | |
8562 | } | |
423f194a | 8563 | created1 = True; |
d14a1e28 RD |
8564 | } |
8565 | } | |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | result = (bool)wxImage::CanRead(*arg1); | |
8569 | ||
8570 | wxPyEndAllowThreads(__tstate); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
8573 | resultobj = PyInt_FromLong((long)result); | |
8574 | { | |
8575 | if (created1) | |
8576 | delete arg1; | |
8577 | } | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | { | |
8581 | if (created1) | |
8582 | delete arg1; | |
8583 | } | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj; | |
8590 | wxImage *arg1 = (wxImage *) 0 ; | |
8591 | wxInputStream *arg2 = 0 ; | |
8592 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
8593 | int arg4 = (int) -1 ; | |
8594 | bool result; | |
8595 | wxPyInputStream *temp2 ; | |
8596 | bool created2 ; | |
8597 | PyObject * obj0 = 0 ; | |
8598 | PyObject * obj1 = 0 ; | |
8599 | char *kwnames[] = { | |
8600 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
8601 | }; | |
8602 | ||
8603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|li:Image_LoadStream",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8605 | { | |
8606 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8607 | arg2 = temp2->m_wxis; | |
423f194a | 8608 | created2 = False; |
d14a1e28 RD |
8609 | } else { |
8610 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8611 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
8612 | if (arg2 == NULL) { |
8613 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8614 | SWIG_fail; | |
8615 | } | |
423f194a | 8616 | created2 = True; |
d14a1e28 RD |
8617 | } |
8618 | } | |
8619 | { | |
8620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8621 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
8622 | ||
8623 | wxPyEndAllowThreads(__tstate); | |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8625 | } | |
8626 | resultobj = PyInt_FromLong((long)result); | |
8627 | { | |
8628 | if (created2) | |
8629 | delete arg2; | |
8630 | } | |
8631 | return resultobj; | |
8632 | fail: | |
8633 | { | |
8634 | if (created2) | |
8635 | delete arg2; | |
8636 | } | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
8641 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8642 | PyObject *resultobj; | |
8643 | wxImage *arg1 = (wxImage *) 0 ; | |
8644 | wxInputStream *arg2 = 0 ; | |
8645 | wxString *arg3 = 0 ; | |
8646 | int arg4 = (int) -1 ; | |
8647 | bool result; | |
8648 | wxPyInputStream *temp2 ; | |
8649 | bool created2 ; | |
423f194a | 8650 | bool temp3 = False ; |
d14a1e28 RD |
8651 | PyObject * obj0 = 0 ; |
8652 | PyObject * obj1 = 0 ; | |
8653 | PyObject * obj2 = 0 ; | |
8654 | char *kwnames[] = { | |
8655 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8656 | }; | |
8657 | ||
8658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
8659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8660 | { | |
8661 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
8662 | arg2 = temp2->m_wxis; | |
423f194a | 8663 | created2 = False; |
d14a1e28 RD |
8664 | } else { |
8665 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8666 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
8667 | if (arg2 == NULL) { |
8668 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8669 | SWIG_fail; | |
8670 | } | |
423f194a | 8671 | created2 = True; |
d14a1e28 RD |
8672 | } |
8673 | } | |
8674 | { | |
8675 | arg3 = wxString_in_helper(obj2); | |
8676 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8677 | temp3 = True; |
d14a1e28 RD |
8678 | } |
8679 | { | |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | resultobj = PyInt_FromLong((long)result); | |
8687 | { | |
8688 | if (created2) | |
8689 | delete arg2; | |
8690 | } | |
8691 | { | |
8692 | if (temp3) | |
8693 | delete arg3; | |
8694 | } | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | { | |
8698 | if (created2) | |
8699 | delete arg2; | |
8700 | } | |
8701 | { | |
8702 | if (temp3) | |
8703 | delete arg3; | |
8704 | } | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
8709 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8710 | PyObject *resultobj; | |
8711 | wxImage *arg1 = (wxImage *) 0 ; | |
8712 | bool result; | |
8713 | PyObject * obj0 = 0 ; | |
8714 | char *kwnames[] = { | |
8715 | (char *) "self", NULL | |
8716 | }; | |
8717 | ||
8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
8719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8720 | { | |
8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8722 | result = (bool)(arg1)->Ok(); | |
8723 | ||
8724 | wxPyEndAllowThreads(__tstate); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
8726 | } | |
8727 | resultobj = PyInt_FromLong((long)result); | |
8728 | return resultobj; | |
8729 | fail: | |
8730 | return NULL; | |
8731 | } | |
8732 | ||
8733 | ||
8734 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj; | |
8736 | wxImage *arg1 = (wxImage *) 0 ; | |
8737 | int result; | |
8738 | PyObject * obj0 = 0 ; | |
8739 | char *kwnames[] = { | |
8740 | (char *) "self", NULL | |
8741 | }; | |
8742 | ||
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
8744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8745 | { | |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | result = (int)(arg1)->GetWidth(); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | resultobj = PyInt_FromLong((long)result); | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
8759 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8760 | PyObject *resultobj; | |
8761 | wxImage *arg1 = (wxImage *) 0 ; | |
8762 | int result; | |
8763 | PyObject * obj0 = 0 ; | |
8764 | char *kwnames[] = { | |
8765 | (char *) "self", NULL | |
8766 | }; | |
8767 | ||
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
8769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8770 | { | |
8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8772 | result = (int)(arg1)->GetHeight(); | |
8773 | ||
8774 | wxPyEndAllowThreads(__tstate); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | } | |
8777 | resultobj = PyInt_FromLong((long)result); | |
8778 | return resultobj; | |
8779 | fail: | |
8780 | return NULL; | |
8781 | } | |
8782 | ||
8783 | ||
8784 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8785 | PyObject *resultobj; | |
8786 | wxImage *arg1 = (wxImage *) 0 ; | |
8787 | wxRect *arg2 = 0 ; | |
8788 | SwigValueWrapper< wxImage > result; | |
8789 | wxRect temp2 ; | |
8790 | PyObject * obj0 = 0 ; | |
8791 | PyObject * obj1 = 0 ; | |
8792 | char *kwnames[] = { | |
8793 | (char *) "self",(char *) "rect", NULL | |
8794 | }; | |
8795 | ||
8796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
8797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8798 | { | |
8799 | arg2 = &temp2; | |
8800 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8801 | } | |
8802 | { | |
8803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8804 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
8805 | ||
8806 | wxPyEndAllowThreads(__tstate); | |
8807 | if (PyErr_Occurred()) SWIG_fail; | |
8808 | } | |
8809 | { | |
8810 | wxImage * resultptr; | |
8811 | resultptr = new wxImage((wxImage &) result); | |
8812 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8813 | } | |
8814 | return resultobj; | |
8815 | fail: | |
8816 | return NULL; | |
8817 | } | |
8818 | ||
8819 | ||
8820 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8821 | PyObject *resultobj; | |
8822 | wxImage *arg1 = (wxImage *) 0 ; | |
8823 | SwigValueWrapper< wxImage > result; | |
8824 | PyObject * obj0 = 0 ; | |
8825 | char *kwnames[] = { | |
8826 | (char *) "self", NULL | |
8827 | }; | |
8828 | ||
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
8830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8831 | { | |
8832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8833 | result = (arg1)->Copy(); | |
8834 | ||
8835 | wxPyEndAllowThreads(__tstate); | |
8836 | if (PyErr_Occurred()) SWIG_fail; | |
8837 | } | |
8838 | { | |
8839 | wxImage * resultptr; | |
8840 | resultptr = new wxImage((wxImage &) result); | |
8841 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8842 | } | |
8843 | return resultobj; | |
8844 | fail: | |
8845 | return NULL; | |
8846 | } | |
8847 | ||
8848 | ||
8849 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8850 | PyObject *resultobj; | |
8851 | wxImage *arg1 = (wxImage *) 0 ; | |
8852 | wxImage *arg2 = 0 ; | |
8853 | int arg3 ; | |
8854 | int arg4 ; | |
8855 | PyObject * obj0 = 0 ; | |
8856 | PyObject * obj1 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
8859 | }; | |
8860 | ||
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Image_Paste",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
8862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8863 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8864 | if (arg2 == NULL) { | |
8865 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8866 | } | |
8867 | { | |
8868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8869 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
8870 | ||
8871 | wxPyEndAllowThreads(__tstate); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | } | |
8874 | Py_INCREF(Py_None); resultobj = Py_None; | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | return NULL; | |
8878 | } | |
8879 | ||
8880 | ||
8881 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8882 | PyObject *resultobj; | |
8883 | wxImage *arg1 = (wxImage *) 0 ; | |
8884 | PyObject *result; | |
8885 | PyObject * obj0 = 0 ; | |
8886 | char *kwnames[] = { | |
8887 | (char *) "self", NULL | |
8888 | }; | |
8889 | ||
8890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
8891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8892 | { | |
8893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8894 | result = (PyObject *)wxImage_GetData(arg1); | |
8895 | ||
8896 | wxPyEndAllowThreads(__tstate); | |
8897 | if (PyErr_Occurred()) SWIG_fail; | |
8898 | } | |
8899 | resultobj = result; | |
8900 | return resultobj; | |
8901 | fail: | |
8902 | return NULL; | |
8903 | } | |
8904 | ||
8905 | ||
8906 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8907 | PyObject *resultobj; | |
8908 | wxImage *arg1 = (wxImage *) 0 ; | |
8909 | PyObject *arg2 = (PyObject *) 0 ; | |
8910 | PyObject * obj0 = 0 ; | |
8911 | PyObject * obj1 = 0 ; | |
8912 | char *kwnames[] = { | |
8913 | (char *) "self",(char *) "data", NULL | |
8914 | }; | |
8915 | ||
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
8917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8918 | arg2 = obj1; | |
8919 | { | |
8920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8921 | wxImage_SetData(arg1,arg2); | |
8922 | ||
8923 | wxPyEndAllowThreads(__tstate); | |
8924 | if (PyErr_Occurred()) SWIG_fail; | |
8925 | } | |
8926 | Py_INCREF(Py_None); resultobj = Py_None; | |
8927 | return resultobj; | |
8928 | fail: | |
8929 | return NULL; | |
8930 | } | |
8931 | ||
8932 | ||
8933 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8934 | PyObject *resultobj; | |
8935 | wxImage *arg1 = (wxImage *) 0 ; | |
8936 | PyObject *result; | |
8937 | PyObject * obj0 = 0 ; | |
8938 | char *kwnames[] = { | |
8939 | (char *) "self", NULL | |
8940 | }; | |
8941 | ||
8942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
8943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8944 | { | |
8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8946 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
8947 | ||
8948 | wxPyEndAllowThreads(__tstate); | |
8949 | if (PyErr_Occurred()) SWIG_fail; | |
8950 | } | |
8951 | resultobj = result; | |
8952 | return resultobj; | |
8953 | fail: | |
8954 | return NULL; | |
8955 | } | |
8956 | ||
8957 | ||
8958 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8959 | PyObject *resultobj; | |
8960 | wxImage *arg1 = (wxImage *) 0 ; | |
8961 | PyObject *arg2 = (PyObject *) 0 ; | |
8962 | PyObject * obj0 = 0 ; | |
8963 | PyObject * obj1 = 0 ; | |
8964 | char *kwnames[] = { | |
8965 | (char *) "self",(char *) "data", NULL | |
8966 | }; | |
8967 | ||
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
8969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8970 | arg2 = obj1; | |
8971 | { | |
8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8973 | wxImage_SetDataBuffer(arg1,arg2); | |
8974 | ||
8975 | wxPyEndAllowThreads(__tstate); | |
8976 | if (PyErr_Occurred()) SWIG_fail; | |
8977 | } | |
8978 | Py_INCREF(Py_None); resultobj = Py_None; | |
8979 | return resultobj; | |
8980 | fail: | |
8981 | return NULL; | |
8982 | } | |
8983 | ||
8984 | ||
8985 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8986 | PyObject *resultobj; | |
8987 | wxImage *arg1 = (wxImage *) 0 ; | |
8988 | PyObject *result; | |
8989 | PyObject * obj0 = 0 ; | |
8990 | char *kwnames[] = { | |
8991 | (char *) "self", NULL | |
8992 | }; | |
8993 | ||
8994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
8995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8996 | { | |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | resultobj = result; | |
9004 | return resultobj; | |
9005 | fail: | |
9006 | return NULL; | |
9007 | } | |
9008 | ||
9009 | ||
9010 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9011 | PyObject *resultobj; | |
9012 | wxImage *arg1 = (wxImage *) 0 ; | |
9013 | PyObject *arg2 = (PyObject *) 0 ; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | PyObject * obj1 = 0 ; | |
9016 | char *kwnames[] = { | |
9017 | (char *) "self",(char *) "data", NULL | |
9018 | }; | |
9019 | ||
9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9022 | arg2 = obj1; | |
9023 | { | |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9025 | wxImage_SetAlphaData(arg1,arg2); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
9029 | } | |
9030 | Py_INCREF(Py_None); resultobj = Py_None; | |
9031 | return resultobj; | |
9032 | fail: | |
9033 | return NULL; | |
9034 | } | |
9035 | ||
9036 | ||
9037 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9038 | PyObject *resultobj; | |
9039 | wxImage *arg1 = (wxImage *) 0 ; | |
9040 | PyObject *result; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9048 | { | |
9049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9050 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9051 | ||
9052 | wxPyEndAllowThreads(__tstate); | |
9053 | if (PyErr_Occurred()) SWIG_fail; | |
9054 | } | |
9055 | resultobj = result; | |
9056 | return resultobj; | |
9057 | fail: | |
9058 | return NULL; | |
9059 | } | |
9060 | ||
9061 | ||
9062 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9063 | PyObject *resultobj; | |
9064 | wxImage *arg1 = (wxImage *) 0 ; | |
9065 | PyObject *arg2 = (PyObject *) 0 ; | |
9066 | PyObject * obj0 = 0 ; | |
9067 | PyObject * obj1 = 0 ; | |
9068 | char *kwnames[] = { | |
9069 | (char *) "self",(char *) "data", NULL | |
9070 | }; | |
9071 | ||
9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9074 | arg2 = obj1; | |
9075 | { | |
9076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9077 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9078 | ||
9079 | wxPyEndAllowThreads(__tstate); | |
9080 | if (PyErr_Occurred()) SWIG_fail; | |
9081 | } | |
9082 | Py_INCREF(Py_None); resultobj = Py_None; | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxImage *arg1 = (wxImage *) 0 ; | |
9092 | unsigned char arg2 ; | |
9093 | unsigned char arg3 ; | |
9094 | unsigned char arg4 ; | |
9095 | PyObject * obj0 = 0 ; | |
9096 | PyObject * obj1 = 0 ; | |
9097 | PyObject * obj2 = 0 ; | |
9098 | PyObject * obj3 = 0 ; | |
9099 | char *kwnames[] = { | |
9100 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9101 | }; | |
9102 | ||
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9105 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9106 | if (PyErr_Occurred()) SWIG_fail; | |
9107 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9110 | if (PyErr_Occurred()) SWIG_fail; | |
9111 | { | |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
9118 | Py_INCREF(Py_None); resultobj = Py_None; | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
9125 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj; | |
9127 | wxImage *arg1 = (wxImage *) 0 ; | |
9128 | unsigned char result; | |
9129 | PyObject * obj0 = 0 ; | |
9130 | char *kwnames[] = { | |
9131 | (char *) "self", NULL | |
9132 | }; | |
9133 | ||
9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
9135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9136 | { | |
9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9138 | result = (unsigned char)(arg1)->GetMaskRed(); | |
9139 | ||
9140 | wxPyEndAllowThreads(__tstate); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
9143 | resultobj = PyInt_FromLong((long)result); | |
9144 | return resultobj; | |
9145 | fail: | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
9150 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxImage *arg1 = (wxImage *) 0 ; | |
9153 | unsigned char result; | |
9154 | PyObject * obj0 = 0 ; | |
9155 | char *kwnames[] = { | |
9156 | (char *) "self", NULL | |
9157 | }; | |
9158 | ||
9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
9160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9161 | { | |
9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9163 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
9164 | ||
9165 | wxPyEndAllowThreads(__tstate); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
9168 | resultobj = PyInt_FromLong((long)result); | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxImage *arg1 = (wxImage *) 0 ; | |
9178 | unsigned char result; | |
9179 | PyObject * obj0 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self", NULL | |
9182 | }; | |
9183 | ||
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
9185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9186 | { | |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9188 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
9189 | ||
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | resultobj = PyInt_FromLong((long)result); | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
9200 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9201 | PyObject *resultobj; | |
9202 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 9203 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9204 | PyObject * obj0 = 0 ; |
9205 | PyObject * obj1 = 0 ; | |
9206 | char *kwnames[] = { | |
9207 | (char *) "self",(char *) "mask", NULL | |
9208 | }; | |
9209 | ||
9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
9211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9212 | if (obj1) { | |
9213 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9214 | if (PyErr_Occurred()) SWIG_fail; | |
9215 | } | |
9216 | { | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | (arg1)->SetMask(arg2); | |
9219 | ||
9220 | wxPyEndAllowThreads(__tstate); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | } | |
9223 | Py_INCREF(Py_None); resultobj = Py_None; | |
9224 | return resultobj; | |
9225 | fail: | |
9226 | return NULL; | |
9227 | } | |
9228 | ||
9229 | ||
9230 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject *resultobj; | |
9232 | wxImage *arg1 = (wxImage *) 0 ; | |
9233 | bool result; | |
9234 | PyObject * obj0 = 0 ; | |
9235 | char *kwnames[] = { | |
9236 | (char *) "self", NULL | |
9237 | }; | |
9238 | ||
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
9240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9241 | { | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | result = (bool)(arg1)->HasMask(); | |
9244 | ||
9245 | wxPyEndAllowThreads(__tstate); | |
9246 | if (PyErr_Occurred()) SWIG_fail; | |
9247 | } | |
9248 | resultobj = PyInt_FromLong((long)result); | |
9249 | return resultobj; | |
9250 | fail: | |
9251 | return NULL; | |
9252 | } | |
9253 | ||
9254 | ||
9255 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9256 | PyObject *resultobj; | |
9257 | wxImage *arg1 = (wxImage *) 0 ; | |
9258 | double arg2 ; | |
9259 | wxPoint *arg3 = 0 ; | |
423f194a | 9260 | bool arg4 = (bool) True ; |
d14a1e28 RD |
9261 | wxPoint *arg5 = (wxPoint *) NULL ; |
9262 | SwigValueWrapper< wxImage > result; | |
9263 | wxPoint temp3 ; | |
9264 | PyObject * obj0 = 0 ; | |
9265 | PyObject * obj2 = 0 ; | |
9266 | PyObject * obj3 = 0 ; | |
9267 | PyObject * obj4 = 0 ; | |
9268 | char *kwnames[] = { | |
9269 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
9270 | }; | |
9271 | ||
9272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OdO|OO:Image_Rotate",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
9273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9274 | { | |
9275 | arg3 = &temp3; | |
9276 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9277 | } | |
9278 | if (obj3) { | |
9279 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
9280 | if (PyErr_Occurred()) SWIG_fail; | |
9281 | } | |
9282 | if (obj4) { | |
9283 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9284 | } | |
9285 | { | |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
9288 | ||
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
9292 | { | |
9293 | wxImage * resultptr; | |
9294 | resultptr = new wxImage((wxImage &) result); | |
9295 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9296 | } | |
9297 | return resultobj; | |
9298 | fail: | |
9299 | return NULL; | |
9300 | } | |
9301 | ||
9302 | ||
9303 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9304 | PyObject *resultobj; | |
9305 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 9306 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9307 | SwigValueWrapper< wxImage > result; |
9308 | PyObject * obj0 = 0 ; | |
9309 | PyObject * obj1 = 0 ; | |
9310 | char *kwnames[] = { | |
9311 | (char *) "self",(char *) "clockwise", NULL | |
9312 | }; | |
9313 | ||
9314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
9315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9316 | if (obj1) { | |
9317 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | { | |
9321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9322 | result = (arg1)->Rotate90(arg2); | |
9323 | ||
9324 | wxPyEndAllowThreads(__tstate); | |
9325 | if (PyErr_Occurred()) SWIG_fail; | |
9326 | } | |
9327 | { | |
9328 | wxImage * resultptr; | |
9329 | resultptr = new wxImage((wxImage &) result); | |
9330 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9331 | } | |
9332 | return resultobj; | |
9333 | fail: | |
9334 | return NULL; | |
9335 | } | |
9336 | ||
9337 | ||
9338 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9339 | PyObject *resultobj; | |
9340 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 9341 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9342 | SwigValueWrapper< wxImage > result; |
9343 | PyObject * obj0 = 0 ; | |
9344 | PyObject * obj1 = 0 ; | |
9345 | char *kwnames[] = { | |
9346 | (char *) "self",(char *) "horizontally", NULL | |
9347 | }; | |
9348 | ||
9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
9350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9351 | if (obj1) { | |
9352 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | } | |
9355 | { | |
9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9357 | result = (arg1)->Mirror(arg2); | |
9358 | ||
9359 | wxPyEndAllowThreads(__tstate); | |
9360 | if (PyErr_Occurred()) SWIG_fail; | |
9361 | } | |
9362 | { | |
9363 | wxImage * resultptr; | |
9364 | resultptr = new wxImage((wxImage &) result); | |
9365 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9366 | } | |
9367 | return resultobj; | |
9368 | fail: | |
9369 | return NULL; | |
9370 | } | |
9371 | ||
9372 | ||
9373 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9374 | PyObject *resultobj; | |
9375 | wxImage *arg1 = (wxImage *) 0 ; | |
9376 | unsigned char arg2 ; | |
9377 | unsigned char arg3 ; | |
9378 | unsigned char arg4 ; | |
9379 | unsigned char arg5 ; | |
9380 | unsigned char arg6 ; | |
9381 | unsigned char arg7 ; | |
9382 | PyObject * obj0 = 0 ; | |
9383 | PyObject * obj1 = 0 ; | |
9384 | PyObject * obj2 = 0 ; | |
9385 | PyObject * obj3 = 0 ; | |
9386 | PyObject * obj4 = 0 ; | |
9387 | PyObject * obj5 = 0 ; | |
9388 | PyObject * obj6 = 0 ; | |
9389 | char *kwnames[] = { | |
9390 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
9391 | }; | |
9392 | ||
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9395 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
9397 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | arg5 = (unsigned char) PyInt_AsLong(obj4); | |
9402 | if (PyErr_Occurred()) SWIG_fail; | |
9403 | arg6 = (unsigned char) PyInt_AsLong(obj5); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | arg7 = (unsigned char) PyInt_AsLong(obj6); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | Py_INCREF(Py_None); resultobj = Py_None; | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
9421 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject *resultobj; | |
9423 | wxImage *arg1 = (wxImage *) 0 ; | |
9424 | unsigned char arg2 ; | |
9425 | unsigned char arg3 ; | |
9426 | unsigned char arg4 ; | |
9427 | SwigValueWrapper< wxImage > result; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | PyObject * obj1 = 0 ; | |
9430 | PyObject * obj2 = 0 ; | |
9431 | PyObject * obj3 = 0 ; | |
9432 | char *kwnames[] = { | |
9433 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9434 | }; | |
9435 | ||
9436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9438 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9439 | if (PyErr_Occurred()) SWIG_fail; | |
9440 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | { | |
9452 | wxImage * resultptr; | |
9453 | resultptr = new wxImage((wxImage &) result); | |
9454 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9455 | } | |
9456 | return resultobj; | |
9457 | fail: | |
9458 | return NULL; | |
9459 | } | |
9460 | ||
9461 | ||
9462 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9463 | PyObject *resultobj; | |
9464 | wxImage *arg1 = (wxImage *) 0 ; | |
9465 | wxString *arg2 = 0 ; | |
9466 | wxString *arg3 = 0 ; | |
423f194a RD |
9467 | bool temp2 = False ; |
9468 | bool temp3 = False ; | |
d14a1e28 RD |
9469 | PyObject * obj0 = 0 ; |
9470 | PyObject * obj1 = 0 ; | |
9471 | PyObject * obj2 = 0 ; | |
9472 | char *kwnames[] = { | |
9473 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9474 | }; | |
9475 | ||
9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9478 | { | |
9479 | arg2 = wxString_in_helper(obj1); | |
9480 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9481 | temp2 = True; |
d14a1e28 RD |
9482 | } |
9483 | { | |
9484 | arg3 = wxString_in_helper(obj2); | |
9485 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9486 | temp3 = True; |
d14a1e28 RD |
9487 | } |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | } | |
9495 | Py_INCREF(Py_None); resultobj = Py_None; | |
9496 | { | |
9497 | if (temp2) | |
9498 | delete arg2; | |
9499 | } | |
9500 | { | |
9501 | if (temp3) | |
9502 | delete arg3; | |
9503 | } | |
9504 | return resultobj; | |
9505 | fail: | |
9506 | { | |
9507 | if (temp2) | |
9508 | delete arg2; | |
9509 | } | |
9510 | { | |
9511 | if (temp3) | |
9512 | delete arg3; | |
9513 | } | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
9518 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9519 | PyObject *resultobj; | |
9520 | wxImage *arg1 = (wxImage *) 0 ; | |
9521 | wxString *arg2 = 0 ; | |
9522 | int arg3 ; | |
423f194a | 9523 | bool temp2 = False ; |
d14a1e28 RD |
9524 | PyObject * obj0 = 0 ; |
9525 | PyObject * obj1 = 0 ; | |
9526 | char *kwnames[] = { | |
9527 | (char *) "self",(char *) "name",(char *) "value", NULL | |
9528 | }; | |
9529 | ||
9530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Image_SetOptionInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9532 | { | |
9533 | arg2 = wxString_in_helper(obj1); | |
9534 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9535 | temp2 = True; |
d14a1e28 RD |
9536 | } |
9537 | { | |
9538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9539 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
9540 | ||
9541 | wxPyEndAllowThreads(__tstate); | |
9542 | if (PyErr_Occurred()) SWIG_fail; | |
9543 | } | |
9544 | Py_INCREF(Py_None); resultobj = Py_None; | |
9545 | { | |
9546 | if (temp2) | |
9547 | delete arg2; | |
9548 | } | |
9549 | return resultobj; | |
9550 | fail: | |
9551 | { | |
9552 | if (temp2) | |
9553 | delete arg2; | |
9554 | } | |
9555 | return NULL; | |
9556 | } | |
9557 | ||
9558 | ||
9559 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9560 | PyObject *resultobj; | |
9561 | wxImage *arg1 = (wxImage *) 0 ; | |
9562 | wxString *arg2 = 0 ; | |
9563 | wxString result; | |
423f194a | 9564 | bool temp2 = False ; |
d14a1e28 RD |
9565 | PyObject * obj0 = 0 ; |
9566 | PyObject * obj1 = 0 ; | |
9567 | char *kwnames[] = { | |
9568 | (char *) "self",(char *) "name", NULL | |
9569 | }; | |
9570 | ||
9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
9572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9573 | { | |
9574 | arg2 = wxString_in_helper(obj1); | |
9575 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9576 | temp2 = True; |
d14a1e28 RD |
9577 | } |
9578 | { | |
9579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9580 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
9581 | ||
9582 | wxPyEndAllowThreads(__tstate); | |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
9584 | } | |
9585 | { | |
9586 | #if wxUSE_UNICODE | |
9587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9588 | #else | |
9589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9590 | #endif | |
9591 | } | |
9592 | { | |
9593 | if (temp2) | |
9594 | delete arg2; | |
9595 | } | |
9596 | return resultobj; | |
9597 | fail: | |
9598 | { | |
9599 | if (temp2) | |
9600 | delete arg2; | |
9601 | } | |
9602 | return NULL; | |
9603 | } | |
9604 | ||
9605 | ||
9606 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9607 | PyObject *resultobj; | |
9608 | wxImage *arg1 = (wxImage *) 0 ; | |
9609 | wxString *arg2 = 0 ; | |
9610 | int result; | |
423f194a | 9611 | bool temp2 = False ; |
d14a1e28 RD |
9612 | PyObject * obj0 = 0 ; |
9613 | PyObject * obj1 = 0 ; | |
9614 | char *kwnames[] = { | |
9615 | (char *) "self",(char *) "name", NULL | |
9616 | }; | |
9617 | ||
9618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
9619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9620 | { | |
9621 | arg2 = wxString_in_helper(obj1); | |
9622 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9623 | temp2 = True; |
d14a1e28 RD |
9624 | } |
9625 | { | |
9626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9627 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
9628 | ||
9629 | wxPyEndAllowThreads(__tstate); | |
9630 | if (PyErr_Occurred()) SWIG_fail; | |
9631 | } | |
9632 | resultobj = PyInt_FromLong((long)result); | |
9633 | { | |
9634 | if (temp2) | |
9635 | delete arg2; | |
9636 | } | |
9637 | return resultobj; | |
9638 | fail: | |
9639 | { | |
9640 | if (temp2) | |
9641 | delete arg2; | |
9642 | } | |
9643 | return NULL; | |
9644 | } | |
9645 | ||
9646 | ||
9647 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9648 | PyObject *resultobj; | |
9649 | wxImage *arg1 = (wxImage *) 0 ; | |
9650 | wxString *arg2 = 0 ; | |
9651 | bool result; | |
423f194a | 9652 | bool temp2 = False ; |
d14a1e28 RD |
9653 | PyObject * obj0 = 0 ; |
9654 | PyObject * obj1 = 0 ; | |
9655 | char *kwnames[] = { | |
9656 | (char *) "self",(char *) "name", NULL | |
9657 | }; | |
9658 | ||
9659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
9660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9661 | { | |
9662 | arg2 = wxString_in_helper(obj1); | |
9663 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9664 | temp2 = True; |
d14a1e28 RD |
9665 | } |
9666 | { | |
9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9668 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
9669 | ||
9670 | wxPyEndAllowThreads(__tstate); | |
9671 | if (PyErr_Occurred()) SWIG_fail; | |
9672 | } | |
9673 | resultobj = PyInt_FromLong((long)result); | |
9674 | { | |
9675 | if (temp2) | |
9676 | delete arg2; | |
9677 | } | |
9678 | return resultobj; | |
9679 | fail: | |
9680 | { | |
9681 | if (temp2) | |
9682 | delete arg2; | |
9683 | } | |
9684 | return NULL; | |
9685 | } | |
9686 | ||
9687 | ||
9688 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9689 | PyObject *resultobj; | |
9690 | wxImage *arg1 = (wxImage *) 0 ; | |
9691 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
9692 | unsigned long result; | |
9693 | PyObject * obj0 = 0 ; | |
9694 | PyObject * obj1 = 0 ; | |
9695 | char *kwnames[] = { | |
9696 | (char *) "self",(char *) "stopafter", NULL | |
9697 | }; | |
9698 | ||
9699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
9700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9701 | if (obj1) { | |
9702 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (unsigned long)(arg1)->CountColours(arg2); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | resultobj = PyInt_FromLong((long)result); | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj; | |
9721 | wxImage *arg1 = (wxImage *) 0 ; | |
9722 | wxImageHistogram *arg2 = 0 ; | |
9723 | unsigned long result; | |
9724 | PyObject * obj0 = 0 ; | |
9725 | PyObject * obj1 = 0 ; | |
9726 | char *kwnames[] = { | |
9727 | (char *) "self",(char *) "h", NULL | |
9728 | }; | |
9729 | ||
9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
9731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9733 | if (arg2 == NULL) { | |
9734 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9735 | } | |
9736 | { | |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9738 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
9741 | if (PyErr_Occurred()) SWIG_fail; | |
9742 | } | |
9743 | resultobj = PyInt_FromLong((long)result); | |
9744 | return resultobj; | |
9745 | fail: | |
9746 | return NULL; | |
9747 | } | |
9748 | ||
9749 | ||
9750 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject *resultobj; | |
9752 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9753 | PyObject * obj0 = 0 ; | |
9754 | char *kwnames[] = { | |
9755 | (char *) "handler", NULL | |
9756 | }; | |
9757 | ||
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
9759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9760 | { | |
9761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9762 | wxImage::AddHandler(arg1); | |
9763 | ||
9764 | wxPyEndAllowThreads(__tstate); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | } | |
9767 | Py_INCREF(Py_None); resultobj = Py_None; | |
9768 | return resultobj; | |
9769 | fail: | |
9770 | return NULL; | |
9771 | } | |
9772 | ||
9773 | ||
9774 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject *resultobj; | |
9776 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
9777 | PyObject * obj0 = 0 ; | |
9778 | char *kwnames[] = { | |
9779 | (char *) "handler", NULL | |
9780 | }; | |
9781 | ||
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
9783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9784 | { | |
9785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9786 | wxImage::InsertHandler(arg1); | |
9787 | ||
9788 | wxPyEndAllowThreads(__tstate); | |
9789 | if (PyErr_Occurred()) SWIG_fail; | |
9790 | } | |
9791 | Py_INCREF(Py_None); resultobj = Py_None; | |
9792 | return resultobj; | |
9793 | fail: | |
9794 | return NULL; | |
9795 | } | |
9796 | ||
9797 | ||
9798 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9799 | PyObject *resultobj; | |
9800 | wxString *arg1 = 0 ; | |
9801 | bool result; | |
423f194a | 9802 | bool temp1 = False ; |
d14a1e28 RD |
9803 | PyObject * obj0 = 0 ; |
9804 | char *kwnames[] = { | |
9805 | (char *) "name", NULL | |
9806 | }; | |
9807 | ||
9808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
9809 | { | |
9810 | arg1 = wxString_in_helper(obj0); | |
9811 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9812 | temp1 = True; |
d14a1e28 RD |
9813 | } |
9814 | { | |
9815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9816 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
9817 | ||
9818 | wxPyEndAllowThreads(__tstate); | |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | } | |
9821 | resultobj = PyInt_FromLong((long)result); | |
9822 | { | |
9823 | if (temp1) | |
9824 | delete arg1; | |
9825 | } | |
9826 | return resultobj; | |
9827 | fail: | |
9828 | { | |
9829 | if (temp1) | |
9830 | delete arg1; | |
9831 | } | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
9836 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject *resultobj; | |
9838 | wxString result; | |
9839 | char *kwnames[] = { | |
9840 | NULL | |
9841 | }; | |
9842 | ||
9843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
9844 | { | |
9845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9846 | result = wxImage::GetImageExtWildcard(); | |
9847 | ||
9848 | wxPyEndAllowThreads(__tstate); | |
9849 | if (PyErr_Occurred()) SWIG_fail; | |
9850 | } | |
9851 | { | |
9852 | #if wxUSE_UNICODE | |
9853 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9854 | #else | |
9855 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9856 | #endif | |
9857 | } | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
9864 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj; | |
9866 | wxImage *arg1 = (wxImage *) 0 ; | |
9867 | wxBitmap result; | |
9868 | PyObject * obj0 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "self", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
9874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9875 | { | |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | result = wxImage_ConvertToBitmap(arg1); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | wxBitmap * resultptr; | |
9884 | resultptr = new wxBitmap((wxBitmap &) result); | |
9885 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
9886 | } | |
9887 | return resultobj; | |
9888 | fail: | |
9889 | return NULL; | |
9890 | } | |
9891 | ||
9892 | ||
9893 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9894 | PyObject *resultobj; | |
9895 | wxImage *arg1 = (wxImage *) 0 ; | |
9896 | unsigned char arg2 ; | |
9897 | unsigned char arg3 ; | |
9898 | unsigned char arg4 ; | |
9899 | wxBitmap result; | |
9900 | PyObject * obj0 = 0 ; | |
9901 | PyObject * obj1 = 0 ; | |
9902 | PyObject * obj2 = 0 ; | |
9903 | PyObject * obj3 = 0 ; | |
9904 | char *kwnames[] = { | |
9905 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
9906 | }; | |
9907 | ||
9908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9910 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
9911 | if (PyErr_Occurred()) SWIG_fail; | |
9912 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
9913 | if (PyErr_Occurred()) SWIG_fail; | |
9914 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
9915 | if (PyErr_Occurred()) SWIG_fail; | |
9916 | { | |
9917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9918 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
9919 | ||
9920 | wxPyEndAllowThreads(__tstate); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | } | |
9923 | { | |
9924 | wxBitmap * resultptr; | |
9925 | resultptr = new wxBitmap((wxBitmap &) result); | |
9926 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
9927 | } | |
9928 | return resultobj; | |
9929 | fail: | |
9930 | return NULL; | |
9931 | } | |
9932 | ||
9933 | ||
9934 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
9935 | PyObject *obj; | |
9936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9937 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
9938 | Py_INCREF(obj); | |
9939 | return Py_BuildValue((char *)""); | |
9940 | } | |
9941 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj; | |
9943 | char *kwnames[] = { | |
9944 | NULL | |
9945 | }; | |
9946 | ||
9947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
9948 | { | |
9949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9950 | wxInitAllImageHandlers(); | |
9951 | ||
9952 | wxPyEndAllowThreads(__tstate); | |
9953 | if (PyErr_Occurred()) SWIG_fail; | |
9954 | } | |
9955 | Py_INCREF(Py_None); resultobj = Py_None; | |
9956 | return resultobj; | |
9957 | fail: | |
9958 | return NULL; | |
9959 | } | |
9960 | ||
9961 | ||
9962 | static int _wrap_NullImage_set(PyObject *_val) { | |
9963 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
9964 | return 1; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_NullImage_get() { | |
9969 | PyObject *pyobj; | |
9970 | ||
9971 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
9972 | return pyobj; | |
9973 | } | |
9974 | ||
9975 | ||
9976 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
9977 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
9978 | return 1; | |
9979 | } | |
9980 | ||
9981 | ||
9982 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
9983 | PyObject *pyobj; | |
9984 | ||
9985 | { | |
9986 | #if wxUSE_UNICODE | |
9987 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
9988 | #else | |
9989 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
9990 | #endif | |
9991 | } | |
9992 | return pyobj; | |
9993 | } | |
9994 | ||
9995 | ||
9996 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
9997 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
9998 | return 1; | |
9999 | } | |
10000 | ||
10001 | ||
10002 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10003 | PyObject *pyobj; | |
10004 | ||
10005 | { | |
10006 | #if wxUSE_UNICODE | |
10007 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10008 | #else | |
10009 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10010 | #endif | |
10011 | } | |
10012 | return pyobj; | |
10013 | } | |
10014 | ||
10015 | ||
10016 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
10017 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
10018 | return 1; | |
10019 | } | |
10020 | ||
10021 | ||
10022 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10023 | PyObject *pyobj; | |
10024 | ||
10025 | { | |
10026 | #if wxUSE_UNICODE | |
10027 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10028 | #else | |
10029 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10030 | #endif | |
10031 | } | |
10032 | return pyobj; | |
10033 | } | |
10034 | ||
10035 | ||
10036 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
10037 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
10038 | return 1; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10043 | PyObject *pyobj; | |
10044 | ||
10045 | { | |
10046 | #if wxUSE_UNICODE | |
10047 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10048 | #else | |
10049 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10050 | #endif | |
10051 | } | |
10052 | return pyobj; | |
10053 | } | |
10054 | ||
10055 | ||
10056 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
10057 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
10058 | return 1; | |
10059 | } | |
10060 | ||
10061 | ||
10062 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10063 | PyObject *pyobj; | |
10064 | ||
10065 | { | |
10066 | #if wxUSE_UNICODE | |
10067 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10068 | #else | |
10069 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10070 | #endif | |
10071 | } | |
10072 | return pyobj; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj; | |
10078 | wxBMPHandler *result; | |
10079 | char *kwnames[] = { | |
10080 | NULL | |
10081 | }; | |
10082 | ||
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
10084 | { | |
10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10086 | result = (wxBMPHandler *)new wxBMPHandler(); | |
10087 | ||
10088 | wxPyEndAllowThreads(__tstate); | |
10089 | if (PyErr_Occurred()) SWIG_fail; | |
10090 | } | |
10091 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
10092 | return resultobj; | |
10093 | fail: | |
10094 | return NULL; | |
10095 | } | |
10096 | ||
10097 | ||
10098 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
10099 | PyObject *obj; | |
10100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10101 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
10102 | Py_INCREF(obj); | |
10103 | return Py_BuildValue((char *)""); | |
10104 | } | |
10105 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10106 | PyObject *resultobj; | |
10107 | wxICOHandler *result; | |
10108 | char *kwnames[] = { | |
10109 | NULL | |
10110 | }; | |
10111 | ||
10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
10113 | { | |
10114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10115 | result = (wxICOHandler *)new wxICOHandler(); | |
10116 | ||
10117 | wxPyEndAllowThreads(__tstate); | |
10118 | if (PyErr_Occurred()) SWIG_fail; | |
10119 | } | |
10120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
10121 | return resultobj; | |
10122 | fail: | |
10123 | return NULL; | |
10124 | } | |
10125 | ||
10126 | ||
10127 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
10128 | PyObject *obj; | |
10129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10130 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
10131 | Py_INCREF(obj); | |
10132 | return Py_BuildValue((char *)""); | |
10133 | } | |
10134 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxCURHandler *result; | |
10137 | char *kwnames[] = { | |
10138 | NULL | |
10139 | }; | |
10140 | ||
10141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
10142 | { | |
10143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10144 | result = (wxCURHandler *)new wxCURHandler(); | |
10145 | ||
10146 | wxPyEndAllowThreads(__tstate); | |
10147 | if (PyErr_Occurred()) SWIG_fail; | |
10148 | } | |
10149 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
10150 | return resultobj; | |
10151 | fail: | |
10152 | return NULL; | |
10153 | } | |
10154 | ||
10155 | ||
10156 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
10157 | PyObject *obj; | |
10158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10159 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
10160 | Py_INCREF(obj); | |
10161 | return Py_BuildValue((char *)""); | |
10162 | } | |
10163 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10164 | PyObject *resultobj; | |
10165 | wxANIHandler *result; | |
10166 | char *kwnames[] = { | |
10167 | NULL | |
10168 | }; | |
10169 | ||
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
10171 | { | |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | result = (wxANIHandler *)new wxANIHandler(); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
10178 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
10179 | return resultobj; | |
10180 | fail: | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
10186 | PyObject *obj; | |
10187 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10188 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
10189 | Py_INCREF(obj); | |
10190 | return Py_BuildValue((char *)""); | |
10191 | } | |
10192 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10193 | PyObject *resultobj; | |
10194 | wxPNGHandler *result; | |
10195 | char *kwnames[] = { | |
10196 | NULL | |
10197 | }; | |
10198 | ||
10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
10200 | { | |
10201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10202 | result = (wxPNGHandler *)new wxPNGHandler(); | |
10203 | ||
10204 | wxPyEndAllowThreads(__tstate); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
10207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
10208 | return resultobj; | |
10209 | fail: | |
10210 | return NULL; | |
10211 | } | |
10212 | ||
10213 | ||
10214 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
10215 | PyObject *obj; | |
10216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10217 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
10218 | Py_INCREF(obj); | |
10219 | return Py_BuildValue((char *)""); | |
10220 | } | |
10221 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10222 | PyObject *resultobj; | |
10223 | wxGIFHandler *result; | |
10224 | char *kwnames[] = { | |
10225 | NULL | |
10226 | }; | |
10227 | ||
10228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
10229 | { | |
10230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10231 | result = (wxGIFHandler *)new wxGIFHandler(); | |
10232 | ||
10233 | wxPyEndAllowThreads(__tstate); | |
10234 | if (PyErr_Occurred()) SWIG_fail; | |
10235 | } | |
10236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | return NULL; | |
10240 | } | |
10241 | ||
10242 | ||
10243 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
10244 | PyObject *obj; | |
10245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10246 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
10247 | Py_INCREF(obj); | |
10248 | return Py_BuildValue((char *)""); | |
10249 | } | |
10250 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxPCXHandler *result; | |
10253 | char *kwnames[] = { | |
10254 | NULL | |
10255 | }; | |
10256 | ||
10257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
10258 | { | |
10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10260 | result = (wxPCXHandler *)new wxPCXHandler(); | |
10261 | ||
10262 | wxPyEndAllowThreads(__tstate); | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | } | |
10265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
10266 | return resultobj; | |
10267 | fail: | |
10268 | return NULL; | |
10269 | } | |
10270 | ||
10271 | ||
10272 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
10273 | PyObject *obj; | |
10274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10275 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
10276 | Py_INCREF(obj); | |
10277 | return Py_BuildValue((char *)""); | |
10278 | } | |
10279 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject *resultobj; | |
10281 | wxJPEGHandler *result; | |
10282 | char *kwnames[] = { | |
10283 | NULL | |
10284 | }; | |
10285 | ||
10286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
10287 | { | |
10288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10289 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
10290 | ||
10291 | wxPyEndAllowThreads(__tstate); | |
10292 | if (PyErr_Occurred()) SWIG_fail; | |
10293 | } | |
10294 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
10295 | return resultobj; | |
10296 | fail: | |
10297 | return NULL; | |
10298 | } | |
10299 | ||
10300 | ||
10301 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
10302 | PyObject *obj; | |
10303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10304 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
10305 | Py_INCREF(obj); | |
10306 | return Py_BuildValue((char *)""); | |
10307 | } | |
10308 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10309 | PyObject *resultobj; | |
10310 | wxPNMHandler *result; | |
10311 | char *kwnames[] = { | |
10312 | NULL | |
10313 | }; | |
10314 | ||
10315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
10316 | { | |
10317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10318 | result = (wxPNMHandler *)new wxPNMHandler(); | |
10319 | ||
10320 | wxPyEndAllowThreads(__tstate); | |
10321 | if (PyErr_Occurred()) SWIG_fail; | |
10322 | } | |
10323 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
10324 | return resultobj; | |
10325 | fail: | |
10326 | return NULL; | |
10327 | } | |
10328 | ||
10329 | ||
10330 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
10331 | PyObject *obj; | |
10332 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10333 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
10334 | Py_INCREF(obj); | |
10335 | return Py_BuildValue((char *)""); | |
10336 | } | |
10337 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10338 | PyObject *resultobj; | |
10339 | wxXPMHandler *result; | |
10340 | char *kwnames[] = { | |
10341 | NULL | |
10342 | }; | |
10343 | ||
10344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
10345 | { | |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | result = (wxXPMHandler *)new wxXPMHandler(); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
10360 | PyObject *obj; | |
10361 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10362 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
10363 | Py_INCREF(obj); | |
10364 | return Py_BuildValue((char *)""); | |
10365 | } | |
10366 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10367 | PyObject *resultobj; | |
10368 | wxTIFFHandler *result; | |
10369 | char *kwnames[] = { | |
10370 | NULL | |
10371 | }; | |
10372 | ||
10373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
10374 | { | |
10375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10376 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
10377 | ||
10378 | wxPyEndAllowThreads(__tstate); | |
10379 | if (PyErr_Occurred()) SWIG_fail; | |
10380 | } | |
10381 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
10382 | return resultobj; | |
10383 | fail: | |
10384 | return NULL; | |
10385 | } | |
10386 | ||
10387 | ||
10388 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
10389 | PyObject *obj; | |
10390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10391 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
10392 | Py_INCREF(obj); | |
10393 | return Py_BuildValue((char *)""); | |
10394 | } | |
10395 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10396 | PyObject *resultobj; | |
10397 | wxEvtHandler *result; | |
10398 | char *kwnames[] = { | |
10399 | NULL | |
10400 | }; | |
10401 | ||
10402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
10403 | { | |
10404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10405 | result = (wxEvtHandler *)new wxEvtHandler(); | |
10406 | ||
10407 | wxPyEndAllowThreads(__tstate); | |
10408 | if (PyErr_Occurred()) SWIG_fail; | |
10409 | } | |
10410 | { | |
10411 | resultobj = wxPyMake_wxObject(result); | |
10412 | } | |
10413 | return resultobj; | |
10414 | fail: | |
10415 | return NULL; | |
10416 | } | |
10417 | ||
10418 | ||
10419 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10420 | PyObject *resultobj; | |
10421 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10422 | wxEvtHandler *result; | |
10423 | PyObject * obj0 = 0 ; | |
10424 | char *kwnames[] = { | |
10425 | (char *) "self", NULL | |
10426 | }; | |
10427 | ||
10428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
10429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
10437 | { | |
10438 | resultobj = wxPyMake_wxObject(result); | |
10439 | } | |
10440 | return resultobj; | |
10441 | fail: | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
10446 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject *resultobj; | |
10448 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10449 | wxEvtHandler *result; | |
10450 | PyObject * obj0 = 0 ; | |
10451 | char *kwnames[] = { | |
10452 | (char *) "self", NULL | |
10453 | }; | |
10454 | ||
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
10456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10457 | { | |
10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10459 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
10460 | ||
10461 | wxPyEndAllowThreads(__tstate); | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
10464 | { | |
10465 | resultobj = wxPyMake_wxObject(result); | |
10466 | } | |
10467 | return resultobj; | |
10468 | fail: | |
10469 | return NULL; | |
10470 | } | |
10471 | ||
10472 | ||
10473 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10474 | PyObject *resultobj; | |
10475 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10476 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10477 | PyObject * obj0 = 0 ; | |
10478 | PyObject * obj1 = 0 ; | |
10479 | char *kwnames[] = { | |
10480 | (char *) "self",(char *) "handler", NULL | |
10481 | }; | |
10482 | ||
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
10484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10485 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10486 | { | |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | (arg1)->SetNextHandler(arg2); | |
10489 | ||
10490 | wxPyEndAllowThreads(__tstate); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
10493 | Py_INCREF(Py_None); resultobj = Py_None; | |
10494 | return resultobj; | |
10495 | fail: | |
10496 | return NULL; | |
10497 | } | |
10498 | ||
10499 | ||
10500 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10501 | PyObject *resultobj; | |
10502 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10503 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
10504 | PyObject * obj0 = 0 ; | |
10505 | PyObject * obj1 = 0 ; | |
10506 | char *kwnames[] = { | |
10507 | (char *) "self",(char *) "handler", NULL | |
10508 | }; | |
10509 | ||
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
10511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10513 | { | |
10514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10515 | (arg1)->SetPreviousHandler(arg2); | |
10516 | ||
10517 | wxPyEndAllowThreads(__tstate); | |
10518 | if (PyErr_Occurred()) SWIG_fail; | |
10519 | } | |
10520 | Py_INCREF(Py_None); resultobj = Py_None; | |
10521 | return resultobj; | |
10522 | fail: | |
10523 | return NULL; | |
10524 | } | |
10525 | ||
10526 | ||
10527 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10528 | PyObject *resultobj; | |
10529 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10530 | bool result; | |
10531 | PyObject * obj0 = 0 ; | |
10532 | char *kwnames[] = { | |
10533 | (char *) "self", NULL | |
10534 | }; | |
10535 | ||
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
10537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10538 | { | |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10540 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
10541 | ||
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | resultobj = PyInt_FromLong((long)result); | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj; | |
10554 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10555 | bool arg2 ; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | PyObject * obj1 = 0 ; | |
10558 | char *kwnames[] = { | |
10559 | (char *) "self",(char *) "enabled", NULL | |
10560 | }; | |
10561 | ||
10562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
10563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10564 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10565 | if (PyErr_Occurred()) SWIG_fail; | |
10566 | { | |
10567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10568 | (arg1)->SetEvtHandlerEnabled(arg2); | |
10569 | ||
10570 | wxPyEndAllowThreads(__tstate); | |
10571 | if (PyErr_Occurred()) SWIG_fail; | |
10572 | } | |
10573 | Py_INCREF(Py_None); resultobj = Py_None; | |
10574 | return resultobj; | |
10575 | fail: | |
10576 | return NULL; | |
10577 | } | |
10578 | ||
10579 | ||
10580 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10581 | PyObject *resultobj; | |
10582 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10583 | wxEvent *arg2 = 0 ; | |
10584 | bool result; | |
10585 | PyObject * obj0 = 0 ; | |
10586 | PyObject * obj1 = 0 ; | |
10587 | char *kwnames[] = { | |
10588 | (char *) "self",(char *) "event", NULL | |
10589 | }; | |
10590 | ||
10591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
10592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10593 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10594 | if (arg2 == NULL) { | |
10595 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10596 | } | |
10597 | { | |
10598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10599 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
10600 | ||
10601 | wxPyEndAllowThreads(__tstate); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | } | |
10604 | resultobj = PyInt_FromLong((long)result); | |
10605 | return resultobj; | |
10606 | fail: | |
10607 | return NULL; | |
10608 | } | |
10609 | ||
10610 | ||
10611 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10612 | PyObject *resultobj; | |
10613 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10614 | wxEvent *arg2 = 0 ; | |
10615 | PyObject * obj0 = 0 ; | |
10616 | PyObject * obj1 = 0 ; | |
10617 | char *kwnames[] = { | |
10618 | (char *) "self",(char *) "event", NULL | |
10619 | }; | |
10620 | ||
10621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
10622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10623 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10624 | if (arg2 == NULL) { | |
10625 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10626 | } | |
10627 | { | |
10628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10629 | (arg1)->AddPendingEvent(*arg2); | |
10630 | ||
10631 | wxPyEndAllowThreads(__tstate); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
10634 | Py_INCREF(Py_None); resultobj = Py_None; | |
10635 | return resultobj; | |
10636 | fail: | |
10637 | return NULL; | |
10638 | } | |
10639 | ||
10640 | ||
10641 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10642 | PyObject *resultobj; | |
10643 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10644 | PyObject * obj0 = 0 ; | |
10645 | char *kwnames[] = { | |
10646 | (char *) "self", NULL | |
10647 | }; | |
10648 | ||
10649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
10650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10651 | { | |
10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10653 | (arg1)->ProcessPendingEvents(); | |
10654 | ||
10655 | wxPyEndAllowThreads(__tstate); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
10658 | Py_INCREF(Py_None); resultobj = Py_None; | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
10665 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10666 | PyObject *resultobj; | |
10667 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10668 | int arg2 ; | |
10669 | int arg3 ; | |
10670 | int arg4 ; | |
10671 | PyObject *arg5 = (PyObject *) 0 ; | |
10672 | PyObject * obj0 = 0 ; | |
10673 | PyObject * obj4 = 0 ; | |
10674 | char *kwnames[] = { | |
10675 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
10676 | }; | |
10677 | ||
10678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:EvtHandler_Connect",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
10679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10680 | arg5 = obj4; | |
10681 | { | |
10682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10683 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
10684 | ||
10685 | wxPyEndAllowThreads(__tstate); | |
10686 | if (PyErr_Occurred()) SWIG_fail; | |
10687 | } | |
10688 | Py_INCREF(Py_None); resultobj = Py_None; | |
10689 | return resultobj; | |
10690 | fail: | |
10691 | return NULL; | |
10692 | } | |
10693 | ||
10694 | ||
10695 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10696 | PyObject *resultobj; | |
10697 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10698 | int arg2 ; | |
10699 | int arg3 = (int) -1 ; | |
10700 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
10701 | bool result; | |
10702 | PyObject * obj0 = 0 ; | |
10703 | char *kwnames[] = { | |
10704 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
10705 | }; | |
10706 | ||
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:EvtHandler_Disconnect",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10709 | { | |
10710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10711 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
10712 | ||
10713 | wxPyEndAllowThreads(__tstate); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
10716 | resultobj = PyInt_FromLong((long)result); | |
10717 | return resultobj; | |
10718 | fail: | |
10719 | return NULL; | |
10720 | } | |
10721 | ||
10722 | ||
10723 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10724 | PyObject *resultobj; | |
10725 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
10726 | PyObject *arg2 = (PyObject *) 0 ; | |
10727 | PyObject * obj0 = 0 ; | |
10728 | PyObject * obj1 = 0 ; | |
10729 | char *kwnames[] = { | |
10730 | (char *) "self",(char *) "_self", NULL | |
10731 | }; | |
10732 | ||
10733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
10734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10735 | arg2 = obj1; | |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | wxEvtHandler__setOORInfo(arg1,arg2); | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | Py_INCREF(Py_None); resultobj = Py_None; | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
10751 | PyObject *obj; | |
10752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10753 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
10754 | Py_INCREF(obj); | |
10755 | return Py_BuildValue((char *)""); | |
10756 | } | |
10757 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10758 | PyObject *resultobj; | |
10759 | wxEventType result; | |
10760 | char *kwnames[] = { | |
10761 | NULL | |
10762 | }; | |
10763 | ||
10764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
10765 | { | |
10766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10767 | result = (wxEventType)wxNewEventType(); | |
10768 | ||
10769 | wxPyEndAllowThreads(__tstate); | |
10770 | if (PyErr_Occurred()) SWIG_fail; | |
10771 | } | |
10772 | resultobj = PyInt_FromLong((long)result); | |
10773 | return resultobj; | |
10774 | fail: | |
10775 | return NULL; | |
10776 | } | |
10777 | ||
10778 | ||
10779 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10780 | PyObject *resultobj; | |
10781 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10782 | PyObject * obj0 = 0 ; | |
10783 | char *kwnames[] = { | |
10784 | (char *) "self", NULL | |
10785 | }; | |
10786 | ||
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
10788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10789 | { | |
10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10791 | delete arg1; | |
10792 | ||
10793 | wxPyEndAllowThreads(__tstate); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | } | |
10796 | Py_INCREF(Py_None); resultobj = Py_None; | |
10797 | return resultobj; | |
10798 | fail: | |
10799 | return NULL; | |
10800 | } | |
10801 | ||
10802 | ||
10803 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject *resultobj; | |
10805 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10806 | wxEventType arg2 ; | |
10807 | PyObject * obj0 = 0 ; | |
10808 | char *kwnames[] = { | |
10809 | (char *) "self",(char *) "typ", NULL | |
10810 | }; | |
10811 | ||
10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetEventType",kwnames,&obj0,&arg2)) goto fail; | |
10813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10816 | (arg1)->SetEventType(arg2); | |
10817 | ||
10818 | wxPyEndAllowThreads(__tstate); | |
10819 | if (PyErr_Occurred()) SWIG_fail; | |
10820 | } | |
10821 | Py_INCREF(Py_None); resultobj = Py_None; | |
10822 | return resultobj; | |
10823 | fail: | |
10824 | return NULL; | |
10825 | } | |
10826 | ||
10827 | ||
10828 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10829 | PyObject *resultobj; | |
10830 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10831 | wxEventType result; | |
10832 | PyObject * obj0 = 0 ; | |
10833 | char *kwnames[] = { | |
10834 | (char *) "self", NULL | |
10835 | }; | |
10836 | ||
10837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
10838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10839 | { | |
10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10841 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
10842 | ||
10843 | wxPyEndAllowThreads(__tstate); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | } | |
10846 | resultobj = PyInt_FromLong((long)result); | |
10847 | return resultobj; | |
10848 | fail: | |
10849 | return NULL; | |
10850 | } | |
10851 | ||
10852 | ||
10853 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10854 | PyObject *resultobj; | |
10855 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10856 | wxObject *result; | |
10857 | PyObject * obj0 = 0 ; | |
10858 | char *kwnames[] = { | |
10859 | (char *) "self", NULL | |
10860 | }; | |
10861 | ||
10862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
10863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10864 | { | |
10865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10866 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
10867 | ||
10868 | wxPyEndAllowThreads(__tstate); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | { | |
10872 | resultobj = wxPyMake_wxObject(result); | |
10873 | } | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj; | |
10882 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10883 | wxObject *arg2 = (wxObject *) 0 ; | |
10884 | PyObject * obj0 = 0 ; | |
10885 | PyObject * obj1 = 0 ; | |
10886 | char *kwnames[] = { | |
10887 | (char *) "self",(char *) "obj", NULL | |
10888 | }; | |
10889 | ||
10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
10891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10892 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10893 | { | |
10894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10895 | (arg1)->SetEventObject(arg2); | |
10896 | ||
10897 | wxPyEndAllowThreads(__tstate); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
10899 | } | |
10900 | Py_INCREF(Py_None); resultobj = Py_None; | |
10901 | return resultobj; | |
10902 | fail: | |
10903 | return NULL; | |
10904 | } | |
10905 | ||
10906 | ||
10907 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10908 | PyObject *resultobj; | |
10909 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10910 | long result; | |
10911 | PyObject * obj0 = 0 ; | |
10912 | char *kwnames[] = { | |
10913 | (char *) "self", NULL | |
10914 | }; | |
10915 | ||
10916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
10917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10918 | { | |
10919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10920 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
10921 | ||
10922 | wxPyEndAllowThreads(__tstate); | |
10923 | if (PyErr_Occurred()) SWIG_fail; | |
10924 | } | |
10925 | resultobj = PyInt_FromLong((long)result); | |
10926 | return resultobj; | |
10927 | fail: | |
10928 | return NULL; | |
10929 | } | |
10930 | ||
10931 | ||
10932 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10933 | PyObject *resultobj; | |
10934 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10935 | long arg2 = (long) 0 ; | |
10936 | PyObject * obj0 = 0 ; | |
10937 | char *kwnames[] = { | |
10938 | (char *) "self",(char *) "ts", NULL | |
10939 | }; | |
10940 | ||
10941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Event_SetTimestamp",kwnames,&obj0,&arg2)) goto fail; | |
10942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | (arg1)->SetTimestamp(arg2); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | Py_INCREF(Py_None); resultobj = Py_None; | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
10957 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject *resultobj; | |
10959 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10960 | int result; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | char *kwnames[] = { | |
10963 | (char *) "self", NULL | |
10964 | }; | |
10965 | ||
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
10967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10968 | { | |
10969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10970 | result = (int)((wxEvent const *)arg1)->GetId(); | |
10971 | ||
10972 | wxPyEndAllowThreads(__tstate); | |
10973 | if (PyErr_Occurred()) SWIG_fail; | |
10974 | } | |
10975 | resultobj = PyInt_FromLong((long)result); | |
10976 | return resultobj; | |
10977 | fail: | |
10978 | return NULL; | |
10979 | } | |
10980 | ||
10981 | ||
10982 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10983 | PyObject *resultobj; | |
10984 | wxEvent *arg1 = (wxEvent *) 0 ; | |
10985 | int arg2 ; | |
10986 | PyObject * obj0 = 0 ; | |
10987 | char *kwnames[] = { | |
10988 | (char *) "self",(char *) "Id", NULL | |
10989 | }; | |
10990 | ||
10991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_SetId",kwnames,&obj0,&arg2)) goto fail; | |
10992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10993 | { | |
10994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10995 | (arg1)->SetId(arg2); | |
10996 | ||
10997 | wxPyEndAllowThreads(__tstate); | |
10998 | if (PyErr_Occurred()) SWIG_fail; | |
10999 | } | |
11000 | Py_INCREF(Py_None); resultobj = Py_None; | |
11001 | return resultobj; | |
11002 | fail: | |
11003 | return NULL; | |
11004 | } | |
11005 | ||
11006 | ||
11007 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11008 | PyObject *resultobj; | |
11009 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11010 | bool result; | |
11011 | PyObject * obj0 = 0 ; | |
11012 | char *kwnames[] = { | |
11013 | (char *) "self", NULL | |
11014 | }; | |
11015 | ||
11016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11018 | { | |
11019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11020 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11021 | ||
11022 | wxPyEndAllowThreads(__tstate); | |
11023 | if (PyErr_Occurred()) SWIG_fail; | |
11024 | } | |
11025 | resultobj = PyInt_FromLong((long)result); | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
11032 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11033 | PyObject *resultobj; | |
11034 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 11035 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11036 | PyObject * obj0 = 0 ; |
11037 | PyObject * obj1 = 0 ; | |
11038 | char *kwnames[] = { | |
11039 | (char *) "self",(char *) "skip", NULL | |
11040 | }; | |
11041 | ||
11042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
11043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11044 | if (obj1) { | |
11045 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11046 | if (PyErr_Occurred()) SWIG_fail; | |
11047 | } | |
11048 | { | |
11049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11050 | (arg1)->Skip(arg2); | |
11051 | ||
11052 | wxPyEndAllowThreads(__tstate); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | } | |
11055 | Py_INCREF(Py_None); resultobj = Py_None; | |
11056 | return resultobj; | |
11057 | fail: | |
11058 | return NULL; | |
11059 | } | |
11060 | ||
11061 | ||
11062 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11063 | PyObject *resultobj; | |
11064 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11065 | bool result; | |
11066 | PyObject * obj0 = 0 ; | |
11067 | char *kwnames[] = { | |
11068 | (char *) "self", NULL | |
11069 | }; | |
11070 | ||
11071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
11072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | resultobj = PyInt_FromLong((long)result); | |
11081 | return resultobj; | |
11082 | fail: | |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
11087 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11088 | PyObject *resultobj; | |
11089 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11090 | bool result; | |
11091 | PyObject * obj0 = 0 ; | |
11092 | char *kwnames[] = { | |
11093 | (char *) "self", NULL | |
11094 | }; | |
11095 | ||
11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
11097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11098 | { | |
11099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11100 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
11101 | ||
11102 | wxPyEndAllowThreads(__tstate); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
11104 | } | |
11105 | resultobj = PyInt_FromLong((long)result); | |
11106 | return resultobj; | |
11107 | fail: | |
11108 | return NULL; | |
11109 | } | |
11110 | ||
11111 | ||
11112 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11113 | PyObject *resultobj; | |
11114 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11115 | int result; | |
11116 | PyObject * obj0 = 0 ; | |
11117 | char *kwnames[] = { | |
11118 | (char *) "self", NULL | |
11119 | }; | |
11120 | ||
11121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
11122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11123 | { | |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | result = (int)(arg1)->StopPropagation(); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | resultobj = PyInt_FromLong((long)result); | |
11131 | return resultobj; | |
11132 | fail: | |
11133 | return NULL; | |
11134 | } | |
11135 | ||
11136 | ||
11137 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11138 | PyObject *resultobj; | |
11139 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11140 | int arg2 ; | |
11141 | PyObject * obj0 = 0 ; | |
11142 | char *kwnames[] = { | |
11143 | (char *) "self",(char *) "propagationLevel", NULL | |
11144 | }; | |
11145 | ||
11146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Event_ResumePropagation",kwnames,&obj0,&arg2)) goto fail; | |
11147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11148 | { | |
11149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11150 | (arg1)->ResumePropagation(arg2); | |
11151 | ||
11152 | wxPyEndAllowThreads(__tstate); | |
11153 | if (PyErr_Occurred()) SWIG_fail; | |
11154 | } | |
11155 | Py_INCREF(Py_None); resultobj = Py_None; | |
11156 | return resultobj; | |
11157 | fail: | |
11158 | return NULL; | |
11159 | } | |
11160 | ||
11161 | ||
11162 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11163 | PyObject *resultobj; | |
11164 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11165 | wxEvent *result; | |
11166 | PyObject * obj0 = 0 ; | |
11167 | char *kwnames[] = { | |
11168 | (char *) "self", NULL | |
11169 | }; | |
11170 | ||
11171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
11172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11173 | { | |
11174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11175 | result = (wxEvent *)(arg1)->Clone(); | |
11176 | ||
11177 | wxPyEndAllowThreads(__tstate); | |
11178 | if (PyErr_Occurred()) SWIG_fail; | |
11179 | } | |
11180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11181 | return resultobj; | |
11182 | fail: | |
11183 | return NULL; | |
11184 | } | |
11185 | ||
11186 | ||
11187 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
11188 | PyObject *obj; | |
11189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11190 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
11191 | Py_INCREF(obj); | |
11192 | return Py_BuildValue((char *)""); | |
11193 | } | |
11194 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11195 | PyObject *resultobj; | |
11196 | wxEvent *arg1 = 0 ; | |
11197 | wxPropagationDisabler *result; | |
11198 | PyObject * obj0 = 0 ; | |
11199 | char *kwnames[] = { | |
11200 | (char *) "event", NULL | |
11201 | }; | |
11202 | ||
11203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11205 | if (arg1 == NULL) { | |
11206 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11207 | } | |
11208 | { | |
11209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11210 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
11211 | ||
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
11215 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
11216 | return resultobj; | |
11217 | fail: | |
11218 | return NULL; | |
11219 | } | |
11220 | ||
11221 | ||
11222 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11223 | PyObject *resultobj; | |
11224 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
11225 | PyObject * obj0 = 0 ; | |
11226 | char *kwnames[] = { | |
11227 | (char *) "self", NULL | |
11228 | }; | |
11229 | ||
11230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
11231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11232 | { | |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11234 | delete arg1; | |
11235 | ||
11236 | wxPyEndAllowThreads(__tstate); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | } | |
11239 | Py_INCREF(Py_None); resultobj = Py_None; | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
11246 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
11247 | PyObject *obj; | |
11248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11249 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
11250 | Py_INCREF(obj); | |
11251 | return Py_BuildValue((char *)""); | |
11252 | } | |
11253 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11254 | PyObject *resultobj; | |
11255 | wxEvent *arg1 = 0 ; | |
11256 | wxPropagateOnce *result; | |
11257 | PyObject * obj0 = 0 ; | |
11258 | char *kwnames[] = { | |
11259 | (char *) "event", NULL | |
11260 | }; | |
11261 | ||
11262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
11263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11264 | if (arg1 == NULL) { | |
11265 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11266 | } | |
11267 | { | |
11268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11269 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
11270 | ||
11271 | wxPyEndAllowThreads(__tstate); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
11275 | return resultobj; | |
11276 | fail: | |
11277 | return NULL; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11282 | PyObject *resultobj; | |
11283 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
11284 | PyObject * obj0 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "self", NULL | |
11287 | }; | |
11288 | ||
11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
11290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11291 | { | |
11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11293 | delete arg1; | |
11294 | ||
11295 | wxPyEndAllowThreads(__tstate); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | } | |
11298 | Py_INCREF(Py_None); resultobj = Py_None; | |
11299 | return resultobj; | |
11300 | fail: | |
11301 | return NULL; | |
11302 | } | |
11303 | ||
11304 | ||
11305 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
11306 | PyObject *obj; | |
11307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11308 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
11309 | Py_INCREF(obj); | |
11310 | return Py_BuildValue((char *)""); | |
11311 | } | |
11312 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11313 | PyObject *resultobj; | |
11314 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11315 | int arg2 = (int) 0 ; | |
11316 | wxCommandEvent *result; | |
11317 | char *kwnames[] = { | |
11318 | (char *) "commandType",(char *) "winid", NULL | |
11319 | }; | |
11320 | ||
11321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
11322 | { | |
11323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11324 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
11325 | ||
11326 | wxPyEndAllowThreads(__tstate); | |
11327 | if (PyErr_Occurred()) SWIG_fail; | |
11328 | } | |
11329 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
11330 | return resultobj; | |
11331 | fail: | |
11332 | return NULL; | |
11333 | } | |
11334 | ||
11335 | ||
11336 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11337 | PyObject *resultobj; | |
11338 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11339 | int result; | |
11340 | PyObject * obj0 = 0 ; | |
11341 | char *kwnames[] = { | |
11342 | (char *) "self", NULL | |
11343 | }; | |
11344 | ||
11345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11347 | { | |
11348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11349 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
11350 | ||
11351 | wxPyEndAllowThreads(__tstate); | |
11352 | if (PyErr_Occurred()) SWIG_fail; | |
11353 | } | |
11354 | resultobj = PyInt_FromLong((long)result); | |
11355 | return resultobj; | |
11356 | fail: | |
11357 | return NULL; | |
11358 | } | |
11359 | ||
11360 | ||
11361 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11362 | PyObject *resultobj; | |
11363 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11364 | wxString *arg2 = 0 ; | |
423f194a | 11365 | bool temp2 = False ; |
d14a1e28 RD |
11366 | PyObject * obj0 = 0 ; |
11367 | PyObject * obj1 = 0 ; | |
11368 | char *kwnames[] = { | |
11369 | (char *) "self",(char *) "s", NULL | |
11370 | }; | |
11371 | ||
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
11373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11374 | { | |
11375 | arg2 = wxString_in_helper(obj1); | |
11376 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11377 | temp2 = True; |
d14a1e28 RD |
11378 | } |
11379 | { | |
11380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11381 | (arg1)->SetString((wxString const &)*arg2); | |
11382 | ||
11383 | wxPyEndAllowThreads(__tstate); | |
11384 | if (PyErr_Occurred()) SWIG_fail; | |
11385 | } | |
11386 | Py_INCREF(Py_None); resultobj = Py_None; | |
11387 | { | |
11388 | if (temp2) | |
11389 | delete arg2; | |
11390 | } | |
11391 | return resultobj; | |
11392 | fail: | |
11393 | { | |
11394 | if (temp2) | |
11395 | delete arg2; | |
11396 | } | |
11397 | return NULL; | |
11398 | } | |
11399 | ||
11400 | ||
11401 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11404 | wxString result; | |
11405 | PyObject * obj0 = 0 ; | |
11406 | char *kwnames[] = { | |
11407 | (char *) "self", NULL | |
11408 | }; | |
11409 | ||
11410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
11411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11412 | { | |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
11415 | ||
11416 | wxPyEndAllowThreads(__tstate); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
11419 | { | |
11420 | #if wxUSE_UNICODE | |
11421 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11422 | #else | |
11423 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11424 | #endif | |
11425 | } | |
11426 | return resultobj; | |
11427 | fail: | |
11428 | return NULL; | |
11429 | } | |
11430 | ||
11431 | ||
11432 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11433 | PyObject *resultobj; | |
11434 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11435 | bool result; | |
11436 | PyObject * obj0 = 0 ; | |
11437 | char *kwnames[] = { | |
11438 | (char *) "self", NULL | |
11439 | }; | |
11440 | ||
11441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
11442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11443 | { | |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11445 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
11446 | ||
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
11450 | resultobj = PyInt_FromLong((long)result); | |
11451 | return resultobj; | |
11452 | fail: | |
11453 | return NULL; | |
11454 | } | |
11455 | ||
11456 | ||
11457 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11458 | PyObject *resultobj; | |
11459 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11460 | bool result; | |
11461 | PyObject * obj0 = 0 ; | |
11462 | char *kwnames[] = { | |
11463 | (char *) "self", NULL | |
11464 | }; | |
11465 | ||
11466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
11467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11468 | { | |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
11471 | ||
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
11475 | resultobj = PyInt_FromLong((long)result); | |
11476 | return resultobj; | |
11477 | fail: | |
11478 | return NULL; | |
11479 | } | |
11480 | ||
11481 | ||
11482 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11483 | PyObject *resultobj; | |
11484 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11485 | long arg2 ; | |
11486 | PyObject * obj0 = 0 ; | |
11487 | char *kwnames[] = { | |
11488 | (char *) "self",(char *) "extraLong", NULL | |
11489 | }; | |
11490 | ||
11491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:CommandEvent_SetExtraLong",kwnames,&obj0,&arg2)) goto fail; | |
11492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11493 | { | |
11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11495 | (arg1)->SetExtraLong(arg2); | |
11496 | ||
11497 | wxPyEndAllowThreads(__tstate); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | } | |
11500 | Py_INCREF(Py_None); resultobj = Py_None; | |
11501 | return resultobj; | |
11502 | fail: | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
11507 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11508 | PyObject *resultobj; | |
11509 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11510 | long result; | |
11511 | PyObject * obj0 = 0 ; | |
11512 | char *kwnames[] = { | |
11513 | (char *) "self", NULL | |
11514 | }; | |
11515 | ||
11516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
11517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11518 | { | |
11519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11520 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
11521 | ||
11522 | wxPyEndAllowThreads(__tstate); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
11525 | resultobj = PyInt_FromLong((long)result); | |
11526 | return resultobj; | |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
11532 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11533 | PyObject *resultobj; | |
11534 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11535 | int arg2 ; | |
11536 | PyObject * obj0 = 0 ; | |
11537 | char *kwnames[] = { | |
11538 | (char *) "self",(char *) "i", NULL | |
11539 | }; | |
11540 | ||
11541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CommandEvent_SetInt",kwnames,&obj0,&arg2)) goto fail; | |
11542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11543 | { | |
11544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11545 | (arg1)->SetInt(arg2); | |
11546 | ||
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
11550 | Py_INCREF(Py_None); resultobj = Py_None; | |
11551 | return resultobj; | |
11552 | fail: | |
11553 | return NULL; | |
11554 | } | |
11555 | ||
11556 | ||
11557 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11558 | PyObject *resultobj; | |
11559 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11560 | long result; | |
11561 | PyObject * obj0 = 0 ; | |
11562 | char *kwnames[] = { | |
11563 | (char *) "self", NULL | |
11564 | }; | |
11565 | ||
11566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
11567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11568 | { | |
11569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11570 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
11571 | ||
11572 | wxPyEndAllowThreads(__tstate); | |
11573 | if (PyErr_Occurred()) SWIG_fail; | |
11574 | } | |
11575 | resultobj = PyInt_FromLong((long)result); | |
11576 | return resultobj; | |
11577 | fail: | |
11578 | return NULL; | |
11579 | } | |
11580 | ||
11581 | ||
11582 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11583 | PyObject *resultobj; | |
11584 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
11585 | wxEvent *result; | |
11586 | PyObject * obj0 = 0 ; | |
11587 | char *kwnames[] = { | |
11588 | (char *) "self", NULL | |
11589 | }; | |
11590 | ||
11591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
11592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11593 | { | |
11594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11595 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
11596 | ||
11597 | wxPyEndAllowThreads(__tstate); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
11601 | return resultobj; | |
11602 | fail: | |
11603 | return NULL; | |
11604 | } | |
11605 | ||
11606 | ||
11607 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
11608 | PyObject *obj; | |
11609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11610 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
11611 | Py_INCREF(obj); | |
11612 | return Py_BuildValue((char *)""); | |
11613 | } | |
11614 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11615 | PyObject *resultobj; | |
11616 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11617 | int arg2 = (int) 0 ; | |
11618 | wxNotifyEvent *result; | |
11619 | char *kwnames[] = { | |
11620 | (char *) "commandType",(char *) "winid", NULL | |
11621 | }; | |
11622 | ||
11623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_NotifyEvent",kwnames,&arg1,&arg2)) goto fail; | |
11624 | { | |
11625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11626 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
11627 | ||
11628 | wxPyEndAllowThreads(__tstate); | |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
11630 | } | |
11631 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
11632 | return resultobj; | |
11633 | fail: | |
11634 | return NULL; | |
11635 | } | |
11636 | ||
11637 | ||
11638 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11639 | PyObject *resultobj; | |
11640 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11641 | PyObject * obj0 = 0 ; | |
11642 | char *kwnames[] = { | |
11643 | (char *) "self", NULL | |
11644 | }; | |
11645 | ||
11646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
11647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | (arg1)->Veto(); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | Py_INCREF(Py_None); resultobj = Py_None; | |
11656 | return resultobj; | |
11657 | fail: | |
11658 | return NULL; | |
11659 | } | |
11660 | ||
11661 | ||
11662 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11663 | PyObject *resultobj; | |
11664 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11665 | PyObject * obj0 = 0 ; | |
11666 | char *kwnames[] = { | |
11667 | (char *) "self", NULL | |
11668 | }; | |
11669 | ||
11670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
11671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11672 | { | |
11673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11674 | (arg1)->Allow(); | |
11675 | ||
11676 | wxPyEndAllowThreads(__tstate); | |
11677 | if (PyErr_Occurred()) SWIG_fail; | |
11678 | } | |
11679 | Py_INCREF(Py_None); resultobj = Py_None; | |
11680 | return resultobj; | |
11681 | fail: | |
11682 | return NULL; | |
11683 | } | |
11684 | ||
11685 | ||
11686 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11687 | PyObject *resultobj; | |
11688 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
11689 | bool result; | |
11690 | PyObject * obj0 = 0 ; | |
11691 | char *kwnames[] = { | |
11692 | (char *) "self", NULL | |
11693 | }; | |
11694 | ||
11695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
11696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11697 | { | |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | result = (bool)(arg1)->IsAllowed(); | |
11700 | ||
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
11704 | resultobj = PyInt_FromLong((long)result); | |
11705 | return resultobj; | |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
11712 | PyObject *obj; | |
11713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11714 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
11715 | Py_INCREF(obj); | |
11716 | return Py_BuildValue((char *)""); | |
11717 | } | |
11718 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11719 | PyObject *resultobj; | |
11720 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11721 | int arg2 = (int) 0 ; | |
11722 | int arg3 = (int) 0 ; | |
11723 | int arg4 = (int) 0 ; | |
11724 | wxScrollEvent *result; | |
11725 | char *kwnames[] = { | |
11726 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
11727 | }; | |
11728 | ||
11729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ScrollEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11730 | { | |
11731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11732 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
11733 | ||
11734 | wxPyEndAllowThreads(__tstate); | |
11735 | if (PyErr_Occurred()) SWIG_fail; | |
11736 | } | |
11737 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
11738 | return resultobj; | |
11739 | fail: | |
11740 | return NULL; | |
11741 | } | |
11742 | ||
11743 | ||
11744 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11745 | PyObject *resultobj; | |
11746 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11747 | int result; | |
11748 | PyObject * obj0 = 0 ; | |
11749 | char *kwnames[] = { | |
11750 | (char *) "self", NULL | |
11751 | }; | |
11752 | ||
11753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
11754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11755 | { | |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
11758 | ||
11759 | wxPyEndAllowThreads(__tstate); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | resultobj = PyInt_FromLong((long)result); | |
11763 | return resultobj; | |
11764 | fail: | |
11765 | return NULL; | |
11766 | } | |
11767 | ||
11768 | ||
11769 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11770 | PyObject *resultobj; | |
11771 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11772 | int result; | |
11773 | PyObject * obj0 = 0 ; | |
11774 | char *kwnames[] = { | |
11775 | (char *) "self", NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11782 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
11783 | ||
11784 | wxPyEndAllowThreads(__tstate); | |
11785 | if (PyErr_Occurred()) SWIG_fail; | |
11786 | } | |
11787 | resultobj = PyInt_FromLong((long)result); | |
11788 | return resultobj; | |
11789 | fail: | |
11790 | return NULL; | |
11791 | } | |
11792 | ||
11793 | ||
11794 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11795 | PyObject *resultobj; | |
11796 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11797 | int arg2 ; | |
11798 | PyObject * obj0 = 0 ; | |
11799 | char *kwnames[] = { | |
11800 | (char *) "self",(char *) "orient", NULL | |
11801 | }; | |
11802 | ||
11803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
11804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11805 | { | |
11806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11807 | (arg1)->SetOrientation(arg2); | |
11808 | ||
11809 | wxPyEndAllowThreads(__tstate); | |
11810 | if (PyErr_Occurred()) SWIG_fail; | |
11811 | } | |
11812 | Py_INCREF(Py_None); resultobj = Py_None; | |
11813 | return resultobj; | |
11814 | fail: | |
11815 | return NULL; | |
11816 | } | |
11817 | ||
11818 | ||
11819 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11820 | PyObject *resultobj; | |
11821 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
11822 | int arg2 ; | |
11823 | PyObject * obj0 = 0 ; | |
11824 | char *kwnames[] = { | |
11825 | (char *) "self",(char *) "pos", NULL | |
11826 | }; | |
11827 | ||
11828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
11829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11830 | { | |
11831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11832 | (arg1)->SetPosition(arg2); | |
11833 | ||
11834 | wxPyEndAllowThreads(__tstate); | |
11835 | if (PyErr_Occurred()) SWIG_fail; | |
11836 | } | |
11837 | Py_INCREF(Py_None); resultobj = Py_None; | |
11838 | return resultobj; | |
11839 | fail: | |
11840 | return NULL; | |
11841 | } | |
11842 | ||
11843 | ||
11844 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
11845 | PyObject *obj; | |
11846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11847 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
11848 | Py_INCREF(obj); | |
11849 | return Py_BuildValue((char *)""); | |
11850 | } | |
11851 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11852 | PyObject *resultobj; | |
11853 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11854 | int arg2 = (int) 0 ; | |
11855 | int arg3 = (int) 0 ; | |
11856 | wxScrollWinEvent *result; | |
11857 | char *kwnames[] = { | |
11858 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
11859 | }; | |
11860 | ||
11861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ScrollWinEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
11862 | { | |
11863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11864 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
11865 | ||
11866 | wxPyEndAllowThreads(__tstate); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
11870 | return resultobj; | |
11871 | fail: | |
11872 | return NULL; | |
11873 | } | |
11874 | ||
11875 | ||
11876 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11877 | PyObject *resultobj; | |
11878 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11879 | int result; | |
11880 | PyObject * obj0 = 0 ; | |
11881 | char *kwnames[] = { | |
11882 | (char *) "self", NULL | |
11883 | }; | |
11884 | ||
11885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
11886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11887 | { | |
11888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11889 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
11890 | ||
11891 | wxPyEndAllowThreads(__tstate); | |
11892 | if (PyErr_Occurred()) SWIG_fail; | |
11893 | } | |
11894 | resultobj = PyInt_FromLong((long)result); | |
11895 | return resultobj; | |
11896 | fail: | |
11897 | return NULL; | |
11898 | } | |
11899 | ||
11900 | ||
11901 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11902 | PyObject *resultobj; | |
11903 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11904 | int result; | |
11905 | PyObject * obj0 = 0 ; | |
11906 | char *kwnames[] = { | |
11907 | (char *) "self", NULL | |
11908 | }; | |
11909 | ||
11910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11912 | { | |
11913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11914 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
11915 | ||
11916 | wxPyEndAllowThreads(__tstate); | |
11917 | if (PyErr_Occurred()) SWIG_fail; | |
11918 | } | |
11919 | resultobj = PyInt_FromLong((long)result); | |
11920 | return resultobj; | |
11921 | fail: | |
11922 | return NULL; | |
11923 | } | |
11924 | ||
11925 | ||
11926 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11927 | PyObject *resultobj; | |
11928 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11929 | int arg2 ; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | char *kwnames[] = { | |
11932 | (char *) "self",(char *) "orient", NULL | |
11933 | }; | |
11934 | ||
11935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
11936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11937 | { | |
11938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11939 | (arg1)->SetOrientation(arg2); | |
11940 | ||
11941 | wxPyEndAllowThreads(__tstate); | |
11942 | if (PyErr_Occurred()) SWIG_fail; | |
11943 | } | |
11944 | Py_INCREF(Py_None); resultobj = Py_None; | |
11945 | return resultobj; | |
11946 | fail: | |
11947 | return NULL; | |
11948 | } | |
11949 | ||
11950 | ||
11951 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11952 | PyObject *resultobj; | |
11953 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
11954 | int arg2 ; | |
11955 | PyObject * obj0 = 0 ; | |
11956 | char *kwnames[] = { | |
11957 | (char *) "self",(char *) "pos", NULL | |
11958 | }; | |
11959 | ||
11960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollWinEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
11961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11962 | { | |
11963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11964 | (arg1)->SetPosition(arg2); | |
11965 | ||
11966 | wxPyEndAllowThreads(__tstate); | |
11967 | if (PyErr_Occurred()) SWIG_fail; | |
11968 | } | |
11969 | Py_INCREF(Py_None); resultobj = Py_None; | |
11970 | return resultobj; | |
11971 | fail: | |
11972 | return NULL; | |
11973 | } | |
11974 | ||
11975 | ||
11976 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
11977 | PyObject *obj; | |
11978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11979 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
11980 | Py_INCREF(obj); | |
11981 | return Py_BuildValue((char *)""); | |
11982 | } | |
11983 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11984 | PyObject *resultobj; | |
11985 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11986 | wxMouseEvent *result; | |
11987 | char *kwnames[] = { | |
11988 | (char *) "mouseType", NULL | |
11989 | }; | |
11990 | ||
11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MouseEvent",kwnames,&arg1)) goto fail; | |
11992 | { | |
11993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11994 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
11995 | ||
11996 | wxPyEndAllowThreads(__tstate); | |
11997 | if (PyErr_Occurred()) SWIG_fail; | |
11998 | } | |
11999 | { | |
12000 | resultobj = wxPyMake_wxObject(result); | |
12001 | } | |
12002 | return resultobj; | |
12003 | fail: | |
12004 | return NULL; | |
12005 | } | |
12006 | ||
12007 | ||
12008 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12009 | PyObject *resultobj; | |
12010 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12011 | bool result; | |
12012 | PyObject * obj0 = 0 ; | |
12013 | char *kwnames[] = { | |
12014 | (char *) "self", NULL | |
12015 | }; | |
12016 | ||
12017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
12018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12019 | { | |
12020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12021 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
12022 | ||
12023 | wxPyEndAllowThreads(__tstate); | |
12024 | if (PyErr_Occurred()) SWIG_fail; | |
12025 | } | |
12026 | resultobj = PyInt_FromLong((long)result); | |
12027 | return resultobj; | |
12028 | fail: | |
12029 | return NULL; | |
12030 | } | |
12031 | ||
12032 | ||
12033 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12034 | PyObject *resultobj; | |
12035 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12036 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12037 | bool result; | |
12038 | PyObject * obj0 = 0 ; | |
12039 | char *kwnames[] = { | |
12040 | (char *) "self",(char *) "but", NULL | |
12041 | }; | |
12042 | ||
12043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
12044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12045 | { | |
12046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12047 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
12048 | ||
12049 | wxPyEndAllowThreads(__tstate); | |
12050 | if (PyErr_Occurred()) SWIG_fail; | |
12051 | } | |
12052 | resultobj = PyInt_FromLong((long)result); | |
12053 | return resultobj; | |
12054 | fail: | |
12055 | return NULL; | |
12056 | } | |
12057 | ||
12058 | ||
12059 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12060 | PyObject *resultobj; | |
12061 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12062 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12063 | bool result; | |
12064 | PyObject * obj0 = 0 ; | |
12065 | char *kwnames[] = { | |
12066 | (char *) "self",(char *) "but", NULL | |
12067 | }; | |
12068 | ||
12069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonDClick",kwnames,&obj0,&arg2)) goto fail; | |
12070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12071 | { | |
12072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12073 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
12074 | ||
12075 | wxPyEndAllowThreads(__tstate); | |
12076 | if (PyErr_Occurred()) SWIG_fail; | |
12077 | } | |
12078 | resultobj = PyInt_FromLong((long)result); | |
12079 | return resultobj; | |
12080 | fail: | |
12081 | return NULL; | |
12082 | } | |
12083 | ||
12084 | ||
12085 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12086 | PyObject *resultobj; | |
12087 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12088 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
12089 | bool result; | |
12090 | PyObject * obj0 = 0 ; | |
12091 | char *kwnames[] = { | |
12092 | (char *) "self",(char *) "but", NULL | |
12093 | }; | |
12094 | ||
12095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:MouseEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
12096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12097 | { | |
12098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12099 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
12100 | ||
12101 | wxPyEndAllowThreads(__tstate); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
12103 | } | |
12104 | resultobj = PyInt_FromLong((long)result); | |
12105 | return resultobj; | |
12106 | fail: | |
12107 | return NULL; | |
12108 | } | |
12109 | ||
12110 | ||
12111 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12112 | PyObject *resultobj; | |
12113 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12114 | int arg2 ; | |
12115 | bool result; | |
12116 | PyObject * obj0 = 0 ; | |
12117 | char *kwnames[] = { | |
12118 | (char *) "self",(char *) "but", NULL | |
12119 | }; | |
12120 | ||
12121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_Button",kwnames,&obj0,&arg2)) goto fail; | |
12122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12123 | { | |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | resultobj = PyInt_FromLong((long)result); | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12140 | int arg2 ; | |
12141 | bool result; | |
12142 | PyObject * obj0 = 0 ; | |
12143 | char *kwnames[] = { | |
12144 | (char *) "self",(char *) "but", NULL | |
12145 | }; | |
12146 | ||
12147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
12148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | resultobj = PyInt_FromLong((long)result); | |
12157 | return resultobj; | |
12158 | fail: | |
12159 | return NULL; | |
12160 | } | |
12161 | ||
12162 | ||
12163 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12164 | PyObject *resultobj; | |
12165 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12166 | int result; | |
12167 | PyObject * obj0 = 0 ; | |
12168 | char *kwnames[] = { | |
12169 | (char *) "self", NULL | |
12170 | }; | |
12171 | ||
12172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
12173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12174 | { | |
12175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12176 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
12177 | ||
12178 | wxPyEndAllowThreads(__tstate); | |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
12180 | } | |
12181 | resultobj = PyInt_FromLong((long)result); | |
12182 | return resultobj; | |
12183 | fail: | |
12184 | return NULL; | |
12185 | } | |
12186 | ||
12187 | ||
12188 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12189 | PyObject *resultobj; | |
12190 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12191 | bool result; | |
12192 | PyObject * obj0 = 0 ; | |
12193 | char *kwnames[] = { | |
12194 | (char *) "self", NULL | |
12195 | }; | |
12196 | ||
12197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
12198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12199 | { | |
12200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12201 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
12202 | ||
12203 | wxPyEndAllowThreads(__tstate); | |
12204 | if (PyErr_Occurred()) SWIG_fail; | |
12205 | } | |
12206 | resultobj = PyInt_FromLong((long)result); | |
12207 | return resultobj; | |
12208 | fail: | |
12209 | return NULL; | |
12210 | } | |
12211 | ||
12212 | ||
12213 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12214 | PyObject *resultobj; | |
12215 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12216 | bool result; | |
12217 | PyObject * obj0 = 0 ; | |
12218 | char *kwnames[] = { | |
12219 | (char *) "self", NULL | |
12220 | }; | |
12221 | ||
12222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
12223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12224 | { | |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12226 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
12227 | ||
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
12231 | resultobj = PyInt_FromLong((long)result); | |
12232 | return resultobj; | |
12233 | fail: | |
12234 | return NULL; | |
12235 | } | |
12236 | ||
12237 | ||
12238 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12239 | PyObject *resultobj; | |
12240 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12241 | bool result; | |
12242 | PyObject * obj0 = 0 ; | |
12243 | char *kwnames[] = { | |
12244 | (char *) "self", NULL | |
12245 | }; | |
12246 | ||
12247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
12248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12249 | { | |
12250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12251 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
12252 | ||
12253 | wxPyEndAllowThreads(__tstate); | |
12254 | if (PyErr_Occurred()) SWIG_fail; | |
12255 | } | |
12256 | resultobj = PyInt_FromLong((long)result); | |
12257 | return resultobj; | |
12258 | fail: | |
12259 | return NULL; | |
12260 | } | |
12261 | ||
12262 | ||
12263 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12264 | PyObject *resultobj; | |
12265 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12266 | bool result; | |
12267 | PyObject * obj0 = 0 ; | |
12268 | char *kwnames[] = { | |
12269 | (char *) "self", NULL | |
12270 | }; | |
12271 | ||
12272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
12273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12274 | { | |
12275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12276 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
12277 | ||
12278 | wxPyEndAllowThreads(__tstate); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
12280 | } | |
12281 | resultobj = PyInt_FromLong((long)result); | |
12282 | return resultobj; | |
12283 | fail: | |
12284 | return NULL; | |
12285 | } | |
12286 | ||
12287 | ||
12288 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12289 | PyObject *resultobj; | |
12290 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12291 | bool result; | |
12292 | PyObject * obj0 = 0 ; | |
12293 | char *kwnames[] = { | |
12294 | (char *) "self", NULL | |
12295 | }; | |
12296 | ||
12297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
12298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12299 | { | |
12300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12301 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
12302 | ||
12303 | wxPyEndAllowThreads(__tstate); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | resultobj = PyInt_FromLong((long)result); | |
12307 | return resultobj; | |
12308 | fail: | |
12309 | return NULL; | |
12310 | } | |
12311 | ||
12312 | ||
12313 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12314 | PyObject *resultobj; | |
12315 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12316 | bool result; | |
12317 | PyObject * obj0 = 0 ; | |
12318 | char *kwnames[] = { | |
12319 | (char *) "self", NULL | |
12320 | }; | |
12321 | ||
12322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
12323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12324 | { | |
12325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12326 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
12327 | ||
12328 | wxPyEndAllowThreads(__tstate); | |
12329 | if (PyErr_Occurred()) SWIG_fail; | |
12330 | } | |
12331 | resultobj = PyInt_FromLong((long)result); | |
12332 | return resultobj; | |
12333 | fail: | |
12334 | return NULL; | |
12335 | } | |
12336 | ||
12337 | ||
12338 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12339 | PyObject *resultobj; | |
12340 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12341 | bool result; | |
12342 | PyObject * obj0 = 0 ; | |
12343 | char *kwnames[] = { | |
12344 | (char *) "self", NULL | |
12345 | }; | |
12346 | ||
12347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
12348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12349 | { | |
12350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12351 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
12352 | ||
12353 | wxPyEndAllowThreads(__tstate); | |
12354 | if (PyErr_Occurred()) SWIG_fail; | |
12355 | } | |
12356 | resultobj = PyInt_FromLong((long)result); | |
12357 | return resultobj; | |
12358 | fail: | |
12359 | return NULL; | |
12360 | } | |
12361 | ||
12362 | ||
12363 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12364 | PyObject *resultobj; | |
12365 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12366 | bool result; | |
12367 | PyObject * obj0 = 0 ; | |
12368 | char *kwnames[] = { | |
12369 | (char *) "self", NULL | |
12370 | }; | |
12371 | ||
12372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
12373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12374 | { | |
12375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12376 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
12377 | ||
12378 | wxPyEndAllowThreads(__tstate); | |
12379 | if (PyErr_Occurred()) SWIG_fail; | |
12380 | } | |
12381 | resultobj = PyInt_FromLong((long)result); | |
12382 | return resultobj; | |
12383 | fail: | |
12384 | return NULL; | |
12385 | } | |
12386 | ||
12387 | ||
12388 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12389 | PyObject *resultobj; | |
12390 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12391 | bool result; | |
12392 | PyObject * obj0 = 0 ; | |
12393 | char *kwnames[] = { | |
12394 | (char *) "self", NULL | |
12395 | }; | |
12396 | ||
12397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
12398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12399 | { | |
12400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12401 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
12402 | ||
12403 | wxPyEndAllowThreads(__tstate); | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
12405 | } | |
12406 | resultobj = PyInt_FromLong((long)result); | |
12407 | return resultobj; | |
12408 | fail: | |
12409 | return NULL; | |
12410 | } | |
12411 | ||
12412 | ||
12413 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12414 | PyObject *resultobj; | |
12415 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12416 | bool result; | |
12417 | PyObject * obj0 = 0 ; | |
12418 | char *kwnames[] = { | |
12419 | (char *) "self", NULL | |
12420 | }; | |
12421 | ||
12422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
12423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12424 | { | |
12425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12426 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
12427 | ||
12428 | wxPyEndAllowThreads(__tstate); | |
12429 | if (PyErr_Occurred()) SWIG_fail; | |
12430 | } | |
12431 | resultobj = PyInt_FromLong((long)result); | |
12432 | return resultobj; | |
12433 | fail: | |
12434 | return NULL; | |
12435 | } | |
12436 | ||
12437 | ||
12438 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12439 | PyObject *resultobj; | |
12440 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12441 | bool result; | |
12442 | PyObject * obj0 = 0 ; | |
12443 | char *kwnames[] = { | |
12444 | (char *) "self", NULL | |
12445 | }; | |
12446 | ||
12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
12448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12449 | { | |
12450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12451 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
12452 | ||
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | resultobj = PyInt_FromLong((long)result); | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | return NULL; | |
12460 | } | |
12461 | ||
12462 | ||
12463 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12464 | PyObject *resultobj; | |
12465 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12466 | bool result; | |
12467 | PyObject * obj0 = 0 ; | |
12468 | char *kwnames[] = { | |
12469 | (char *) "self", NULL | |
12470 | }; | |
12471 | ||
12472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
12473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12474 | { | |
12475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12476 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
12477 | ||
12478 | wxPyEndAllowThreads(__tstate); | |
12479 | if (PyErr_Occurred()) SWIG_fail; | |
12480 | } | |
12481 | resultobj = PyInt_FromLong((long)result); | |
12482 | return resultobj; | |
12483 | fail: | |
12484 | return NULL; | |
12485 | } | |
12486 | ||
12487 | ||
12488 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12489 | PyObject *resultobj; | |
12490 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12491 | bool result; | |
12492 | PyObject * obj0 = 0 ; | |
12493 | char *kwnames[] = { | |
12494 | (char *) "self", NULL | |
12495 | }; | |
12496 | ||
12497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
12498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12499 | { | |
12500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12501 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
12502 | ||
12503 | wxPyEndAllowThreads(__tstate); | |
12504 | if (PyErr_Occurred()) SWIG_fail; | |
12505 | } | |
12506 | resultobj = PyInt_FromLong((long)result); | |
12507 | return resultobj; | |
12508 | fail: | |
12509 | return NULL; | |
12510 | } | |
12511 | ||
12512 | ||
12513 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12514 | PyObject *resultobj; | |
12515 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12516 | bool result; | |
12517 | PyObject * obj0 = 0 ; | |
12518 | char *kwnames[] = { | |
12519 | (char *) "self", NULL | |
12520 | }; | |
12521 | ||
12522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
12523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12524 | { | |
12525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12526 | result = (bool)(arg1)->LeftIsDown(); | |
12527 | ||
12528 | wxPyEndAllowThreads(__tstate); | |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
12530 | } | |
12531 | resultobj = PyInt_FromLong((long)result); | |
12532 | return resultobj; | |
12533 | fail: | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
12538 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12539 | PyObject *resultobj; | |
12540 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12541 | bool result; | |
12542 | PyObject * obj0 = 0 ; | |
12543 | char *kwnames[] = { | |
12544 | (char *) "self", NULL | |
12545 | }; | |
12546 | ||
12547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
12548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12549 | { | |
12550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12551 | result = (bool)(arg1)->MiddleIsDown(); | |
12552 | ||
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | resultobj = PyInt_FromLong((long)result); | |
12557 | return resultobj; | |
12558 | fail: | |
12559 | return NULL; | |
12560 | } | |
12561 | ||
12562 | ||
12563 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12564 | PyObject *resultobj; | |
12565 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12566 | bool result; | |
12567 | PyObject * obj0 = 0 ; | |
12568 | char *kwnames[] = { | |
12569 | (char *) "self", NULL | |
12570 | }; | |
12571 | ||
12572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
12573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12574 | { | |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12576 | result = (bool)(arg1)->RightIsDown(); | |
12577 | ||
12578 | wxPyEndAllowThreads(__tstate); | |
12579 | if (PyErr_Occurred()) SWIG_fail; | |
12580 | } | |
12581 | resultobj = PyInt_FromLong((long)result); | |
12582 | return resultobj; | |
12583 | fail: | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
12588 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12589 | PyObject *resultobj; | |
12590 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12591 | bool result; | |
12592 | PyObject * obj0 = 0 ; | |
12593 | char *kwnames[] = { | |
12594 | (char *) "self", NULL | |
12595 | }; | |
12596 | ||
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
12598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12599 | { | |
12600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12601 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
12602 | ||
12603 | wxPyEndAllowThreads(__tstate); | |
12604 | if (PyErr_Occurred()) SWIG_fail; | |
12605 | } | |
12606 | resultobj = PyInt_FromLong((long)result); | |
12607 | return resultobj; | |
12608 | fail: | |
12609 | return NULL; | |
12610 | } | |
12611 | ||
12612 | ||
12613 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12614 | PyObject *resultobj; | |
12615 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12616 | bool result; | |
12617 | PyObject * obj0 = 0 ; | |
12618 | char *kwnames[] = { | |
12619 | (char *) "self", NULL | |
12620 | }; | |
12621 | ||
12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
12623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12624 | { | |
12625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12626 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
12627 | ||
12628 | wxPyEndAllowThreads(__tstate); | |
12629 | if (PyErr_Occurred()) SWIG_fail; | |
12630 | } | |
12631 | resultobj = PyInt_FromLong((long)result); | |
12632 | return resultobj; | |
12633 | fail: | |
12634 | return NULL; | |
12635 | } | |
12636 | ||
12637 | ||
12638 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12639 | PyObject *resultobj; | |
12640 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12641 | bool result; | |
12642 | PyObject * obj0 = 0 ; | |
12643 | char *kwnames[] = { | |
12644 | (char *) "self", NULL | |
12645 | }; | |
12646 | ||
12647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
12648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12649 | { | |
12650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12651 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
12652 | ||
12653 | wxPyEndAllowThreads(__tstate); | |
12654 | if (PyErr_Occurred()) SWIG_fail; | |
12655 | } | |
12656 | resultobj = PyInt_FromLong((long)result); | |
12657 | return resultobj; | |
12658 | fail: | |
12659 | return NULL; | |
12660 | } | |
12661 | ||
12662 | ||
12663 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12664 | PyObject *resultobj; | |
12665 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12666 | bool result; | |
12667 | PyObject * obj0 = 0 ; | |
12668 | char *kwnames[] = { | |
12669 | (char *) "self", NULL | |
12670 | }; | |
12671 | ||
12672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
12673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12674 | { | |
12675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12676 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
12677 | ||
12678 | wxPyEndAllowThreads(__tstate); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
12681 | resultobj = PyInt_FromLong((long)result); | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | return NULL; | |
12685 | } | |
12686 | ||
12687 | ||
12688 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12689 | PyObject *resultobj; | |
12690 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12691 | wxPoint result; | |
12692 | PyObject * obj0 = 0 ; | |
12693 | char *kwnames[] = { | |
12694 | (char *) "self", NULL | |
12695 | }; | |
12696 | ||
12697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12699 | { | |
12700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12701 | result = (arg1)->GetPosition(); | |
12702 | ||
12703 | wxPyEndAllowThreads(__tstate); | |
12704 | if (PyErr_Occurred()) SWIG_fail; | |
12705 | } | |
12706 | { | |
12707 | wxPoint * resultptr; | |
12708 | resultptr = new wxPoint((wxPoint &) result); | |
12709 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12710 | } | |
12711 | return resultobj; | |
12712 | fail: | |
12713 | return NULL; | |
12714 | } | |
12715 | ||
12716 | ||
12717 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12718 | PyObject *resultobj; | |
12719 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12720 | long *arg2 = (long *) 0 ; | |
12721 | long *arg3 = (long *) 0 ; | |
12722 | long temp2 ; | |
12723 | long temp3 ; | |
12724 | PyObject * obj0 = 0 ; | |
12725 | char *kwnames[] = { | |
12726 | (char *) "self", NULL | |
12727 | }; | |
12728 | ||
12729 | arg2 = &temp2; | |
12730 | arg3 = &temp3; | |
12731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
12732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12733 | { | |
12734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12735 | (arg1)->GetPosition(arg2,arg3); | |
12736 | ||
12737 | wxPyEndAllowThreads(__tstate); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
12739 | } | |
12740 | Py_INCREF(Py_None); resultobj = Py_None; | |
12741 | { | |
12742 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12743 | resultobj = t_output_helper(resultobj,o); | |
12744 | } | |
12745 | { | |
12746 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12747 | resultobj = t_output_helper(resultobj,o); | |
12748 | } | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12758 | wxDC *arg2 = 0 ; | |
12759 | wxPoint result; | |
12760 | PyObject * obj0 = 0 ; | |
12761 | PyObject * obj1 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self",(char *) "dc", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
12767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12768 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12769 | if (arg2 == NULL) { | |
12770 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12771 | } | |
12772 | { | |
12773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12774 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
12775 | ||
12776 | wxPyEndAllowThreads(__tstate); | |
12777 | if (PyErr_Occurred()) SWIG_fail; | |
12778 | } | |
12779 | { | |
12780 | wxPoint * resultptr; | |
12781 | resultptr = new wxPoint((wxPoint &) result); | |
12782 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
12783 | } | |
12784 | return resultobj; | |
12785 | fail: | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12791 | PyObject *resultobj; | |
12792 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12793 | int result; |
d14a1e28 RD |
12794 | PyObject * obj0 = 0 ; |
12795 | char *kwnames[] = { | |
12796 | (char *) "self", NULL | |
12797 | }; | |
12798 | ||
12799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
12800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12801 | { | |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12803 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
12804 | |
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
12808 | resultobj = PyInt_FromLong((long)result); | |
12809 | return resultobj; | |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
12815 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12816 | PyObject *resultobj; | |
12817 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12818 | int result; |
d14a1e28 RD |
12819 | PyObject * obj0 = 0 ; |
12820 | char *kwnames[] = { | |
12821 | (char *) "self", NULL | |
12822 | }; | |
12823 | ||
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
12825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12826 | { | |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12828 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
12829 | |
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
12833 | resultobj = PyInt_FromLong((long)result); | |
12834 | return resultobj; | |
12835 | fail: | |
12836 | return NULL; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12841 | PyObject *resultobj; | |
12842 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12843 | int result; | |
12844 | PyObject * obj0 = 0 ; | |
12845 | char *kwnames[] = { | |
12846 | (char *) "self", NULL | |
12847 | }; | |
12848 | ||
12849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
12850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12851 | { | |
12852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12853 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
12854 | ||
12855 | wxPyEndAllowThreads(__tstate); | |
12856 | if (PyErr_Occurred()) SWIG_fail; | |
12857 | } | |
12858 | resultobj = PyInt_FromLong((long)result); | |
12859 | return resultobj; | |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12866 | PyObject *resultobj; | |
12867 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12868 | int result; | |
12869 | PyObject * obj0 = 0 ; | |
12870 | char *kwnames[] = { | |
12871 | (char *) "self", NULL | |
12872 | }; | |
12873 | ||
12874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
12875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12876 | { | |
12877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12878 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
12879 | ||
12880 | wxPyEndAllowThreads(__tstate); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
12883 | resultobj = PyInt_FromLong((long)result); | |
12884 | return resultobj; | |
12885 | fail: | |
12886 | return NULL; | |
12887 | } | |
12888 | ||
12889 | ||
12890 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12891 | PyObject *resultobj; | |
12892 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12893 | int result; | |
12894 | PyObject * obj0 = 0 ; | |
12895 | char *kwnames[] = { | |
12896 | (char *) "self", NULL | |
12897 | }; | |
12898 | ||
12899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
12900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12901 | { | |
12902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12903 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
12904 | ||
12905 | wxPyEndAllowThreads(__tstate); | |
12906 | if (PyErr_Occurred()) SWIG_fail; | |
12907 | } | |
12908 | resultobj = PyInt_FromLong((long)result); | |
12909 | return resultobj; | |
12910 | fail: | |
12911 | return NULL; | |
12912 | } | |
12913 | ||
12914 | ||
12915 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12916 | PyObject *resultobj; | |
12917 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
12918 | bool result; | |
12919 | PyObject * obj0 = 0 ; | |
12920 | char *kwnames[] = { | |
12921 | (char *) "self", NULL | |
12922 | }; | |
12923 | ||
12924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
12925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12926 | { | |
12927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12928 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
12929 | ||
12930 | wxPyEndAllowThreads(__tstate); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
12933 | resultobj = PyInt_FromLong((long)result); | |
12934 | return resultobj; | |
12935 | fail: | |
12936 | return NULL; | |
12937 | } | |
12938 | ||
12939 | ||
12940 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12941 | PyObject *resultobj; | |
12942 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12943 | int arg2 ; |
d14a1e28 RD |
12944 | PyObject * obj0 = 0 ; |
12945 | char *kwnames[] = { | |
12946 | (char *) "self",(char *) "m_x", NULL | |
12947 | }; | |
12948 | ||
12949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
12950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12951 | if (arg1) (arg1)->m_x = arg2; | |
12952 | ||
12953 | Py_INCREF(Py_None); resultobj = Py_None; | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12963 | int result; |
d14a1e28 RD |
12964 | PyObject * obj0 = 0 ; |
12965 | char *kwnames[] = { | |
12966 | (char *) "self", NULL | |
12967 | }; | |
12968 | ||
12969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
12970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 12971 | result = (int) ((arg1)->m_x); |
d14a1e28 RD |
12972 | |
12973 | resultobj = PyInt_FromLong((long)result); | |
12974 | return resultobj; | |
12975 | fail: | |
12976 | return NULL; | |
12977 | } | |
12978 | ||
12979 | ||
12980 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12981 | PyObject *resultobj; | |
12982 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 12983 | int arg2 ; |
d14a1e28 RD |
12984 | PyObject * obj0 = 0 ; |
12985 | char *kwnames[] = { | |
12986 | (char *) "self",(char *) "m_y", NULL | |
12987 | }; | |
12988 | ||
12989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
12990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12991 | if (arg1) (arg1)->m_y = arg2; | |
12992 | ||
12993 | Py_INCREF(Py_None); resultobj = Py_None; | |
12994 | return resultobj; | |
12995 | fail: | |
12996 | return NULL; | |
12997 | } | |
12998 | ||
12999 | ||
13000 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13001 | PyObject *resultobj; | |
13002 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 13003 | int result; |
d14a1e28 RD |
13004 | PyObject * obj0 = 0 ; |
13005 | char *kwnames[] = { | |
13006 | (char *) "self", NULL | |
13007 | }; | |
13008 | ||
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
13010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 13011 | result = (int) ((arg1)->m_y); |
d14a1e28 RD |
13012 | |
13013 | resultobj = PyInt_FromLong((long)result); | |
13014 | return resultobj; | |
13015 | fail: | |
13016 | return NULL; | |
13017 | } | |
13018 | ||
13019 | ||
13020 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13021 | PyObject *resultobj; | |
13022 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13023 | bool arg2 ; | |
13024 | PyObject * obj0 = 0 ; | |
13025 | PyObject * obj1 = 0 ; | |
13026 | char *kwnames[] = { | |
13027 | (char *) "self",(char *) "m_leftDown", NULL | |
13028 | }; | |
13029 | ||
13030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13032 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13033 | if (PyErr_Occurred()) SWIG_fail; | |
13034 | if (arg1) (arg1)->m_leftDown = arg2; | |
13035 | ||
13036 | Py_INCREF(Py_None); resultobj = Py_None; | |
13037 | return resultobj; | |
13038 | fail: | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
13043 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13044 | PyObject *resultobj; | |
13045 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13046 | bool result; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | char *kwnames[] = { | |
13049 | (char *) "self", NULL | |
13050 | }; | |
13051 | ||
13052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
13053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13054 | result = (bool) ((arg1)->m_leftDown); | |
13055 | ||
13056 | resultobj = PyInt_FromLong((long)result); | |
13057 | return resultobj; | |
13058 | fail: | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
13063 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13064 | PyObject *resultobj; | |
13065 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13066 | bool arg2 ; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | PyObject * obj1 = 0 ; | |
13069 | char *kwnames[] = { | |
13070 | (char *) "self",(char *) "m_middleDown", NULL | |
13071 | }; | |
13072 | ||
13073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13075 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | if (arg1) (arg1)->m_middleDown = arg2; | |
13078 | ||
13079 | Py_INCREF(Py_None); resultobj = Py_None; | |
13080 | return resultobj; | |
13081 | fail: | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
13086 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13087 | PyObject *resultobj; | |
13088 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13089 | bool result; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | char *kwnames[] = { | |
13092 | (char *) "self", NULL | |
13093 | }; | |
13094 | ||
13095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
13096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13097 | result = (bool) ((arg1)->m_middleDown); | |
13098 | ||
13099 | resultobj = PyInt_FromLong((long)result); | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13107 | PyObject *resultobj; | |
13108 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13109 | bool arg2 ; | |
13110 | PyObject * obj0 = 0 ; | |
13111 | PyObject * obj1 = 0 ; | |
13112 | char *kwnames[] = { | |
13113 | (char *) "self",(char *) "m_rightDown", NULL | |
13114 | }; | |
13115 | ||
13116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13118 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13119 | if (PyErr_Occurred()) SWIG_fail; | |
13120 | if (arg1) (arg1)->m_rightDown = arg2; | |
13121 | ||
13122 | Py_INCREF(Py_None); resultobj = Py_None; | |
13123 | return resultobj; | |
13124 | fail: | |
13125 | return NULL; | |
13126 | } | |
13127 | ||
13128 | ||
13129 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13130 | PyObject *resultobj; | |
13131 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13132 | bool result; | |
13133 | PyObject * obj0 = 0 ; | |
13134 | char *kwnames[] = { | |
13135 | (char *) "self", NULL | |
13136 | }; | |
13137 | ||
13138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
13139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13140 | result = (bool) ((arg1)->m_rightDown); | |
13141 | ||
13142 | resultobj = PyInt_FromLong((long)result); | |
13143 | return resultobj; | |
13144 | fail: | |
13145 | return NULL; | |
13146 | } | |
13147 | ||
13148 | ||
13149 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13150 | PyObject *resultobj; | |
13151 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13152 | bool arg2 ; | |
13153 | PyObject * obj0 = 0 ; | |
13154 | PyObject * obj1 = 0 ; | |
13155 | char *kwnames[] = { | |
13156 | (char *) "self",(char *) "m_controlDown", NULL | |
13157 | }; | |
13158 | ||
13159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13161 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13162 | if (PyErr_Occurred()) SWIG_fail; | |
13163 | if (arg1) (arg1)->m_controlDown = arg2; | |
13164 | ||
13165 | Py_INCREF(Py_None); resultobj = Py_None; | |
13166 | return resultobj; | |
13167 | fail: | |
13168 | return NULL; | |
13169 | } | |
13170 | ||
13171 | ||
13172 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13173 | PyObject *resultobj; | |
13174 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13175 | bool result; | |
13176 | PyObject * obj0 = 0 ; | |
13177 | char *kwnames[] = { | |
13178 | (char *) "self", NULL | |
13179 | }; | |
13180 | ||
13181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
13182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13183 | result = (bool) ((arg1)->m_controlDown); | |
13184 | ||
13185 | resultobj = PyInt_FromLong((long)result); | |
13186 | return resultobj; | |
13187 | fail: | |
13188 | return NULL; | |
13189 | } | |
13190 | ||
13191 | ||
13192 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13193 | PyObject *resultobj; | |
13194 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13195 | bool arg2 ; | |
13196 | PyObject * obj0 = 0 ; | |
13197 | PyObject * obj1 = 0 ; | |
13198 | char *kwnames[] = { | |
13199 | (char *) "self",(char *) "m_shiftDown", NULL | |
13200 | }; | |
13201 | ||
13202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13204 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | if (arg1) (arg1)->m_shiftDown = arg2; | |
13207 | ||
13208 | Py_INCREF(Py_None); resultobj = Py_None; | |
13209 | return resultobj; | |
13210 | fail: | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13218 | bool result; | |
13219 | PyObject * obj0 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
13225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13226 | result = (bool) ((arg1)->m_shiftDown); | |
13227 | ||
13228 | resultobj = PyInt_FromLong((long)result); | |
13229 | return resultobj; | |
13230 | fail: | |
13231 | return NULL; | |
13232 | } | |
13233 | ||
13234 | ||
13235 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13236 | PyObject *resultobj; | |
13237 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13238 | bool arg2 ; | |
13239 | PyObject * obj0 = 0 ; | |
13240 | PyObject * obj1 = 0 ; | |
13241 | char *kwnames[] = { | |
13242 | (char *) "self",(char *) "m_altDown", NULL | |
13243 | }; | |
13244 | ||
13245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13247 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13248 | if (PyErr_Occurred()) SWIG_fail; | |
13249 | if (arg1) (arg1)->m_altDown = arg2; | |
13250 | ||
13251 | Py_INCREF(Py_None); resultobj = Py_None; | |
13252 | return resultobj; | |
13253 | fail: | |
13254 | return NULL; | |
13255 | } | |
13256 | ||
13257 | ||
13258 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13259 | PyObject *resultobj; | |
13260 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13261 | bool result; | |
13262 | PyObject * obj0 = 0 ; | |
13263 | char *kwnames[] = { | |
13264 | (char *) "self", NULL | |
13265 | }; | |
13266 | ||
13267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
13268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13269 | result = (bool) ((arg1)->m_altDown); | |
13270 | ||
13271 | resultobj = PyInt_FromLong((long)result); | |
13272 | return resultobj; | |
13273 | fail: | |
13274 | return NULL; | |
13275 | } | |
13276 | ||
13277 | ||
13278 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13279 | PyObject *resultobj; | |
13280 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13281 | bool arg2 ; | |
13282 | PyObject * obj0 = 0 ; | |
13283 | PyObject * obj1 = 0 ; | |
13284 | char *kwnames[] = { | |
13285 | (char *) "self",(char *) "m_metaDown", NULL | |
13286 | }; | |
13287 | ||
13288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
13289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13290 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13291 | if (PyErr_Occurred()) SWIG_fail; | |
13292 | if (arg1) (arg1)->m_metaDown = arg2; | |
13293 | ||
13294 | Py_INCREF(Py_None); resultobj = Py_None; | |
13295 | return resultobj; | |
13296 | fail: | |
13297 | return NULL; | |
13298 | } | |
13299 | ||
13300 | ||
13301 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13302 | PyObject *resultobj; | |
13303 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13304 | bool result; | |
13305 | PyObject * obj0 = 0 ; | |
13306 | char *kwnames[] = { | |
13307 | (char *) "self", NULL | |
13308 | }; | |
13309 | ||
13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
13311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13312 | result = (bool) ((arg1)->m_metaDown); | |
13313 | ||
13314 | resultobj = PyInt_FromLong((long)result); | |
13315 | return resultobj; | |
13316 | fail: | |
13317 | return NULL; | |
13318 | } | |
13319 | ||
13320 | ||
13321 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13322 | PyObject *resultobj; | |
13323 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13324 | int arg2 ; | |
13325 | PyObject * obj0 = 0 ; | |
13326 | char *kwnames[] = { | |
13327 | (char *) "self",(char *) "m_wheelRotation", NULL | |
13328 | }; | |
13329 | ||
13330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&arg2)) goto fail; | |
13331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13332 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
13333 | ||
13334 | Py_INCREF(Py_None); resultobj = Py_None; | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13342 | PyObject *resultobj; | |
13343 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13344 | int result; | |
13345 | PyObject * obj0 = 0 ; | |
13346 | char *kwnames[] = { | |
13347 | (char *) "self", NULL | |
13348 | }; | |
13349 | ||
13350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
13351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13352 | result = (int) ((arg1)->m_wheelRotation); | |
13353 | ||
13354 | resultobj = PyInt_FromLong((long)result); | |
13355 | return resultobj; | |
13356 | fail: | |
13357 | return NULL; | |
13358 | } | |
13359 | ||
13360 | ||
13361 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13362 | PyObject *resultobj; | |
13363 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13364 | int arg2 ; | |
13365 | PyObject * obj0 = 0 ; | |
13366 | char *kwnames[] = { | |
13367 | (char *) "self",(char *) "m_wheelDelta", NULL | |
13368 | }; | |
13369 | ||
13370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&arg2)) goto fail; | |
13371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13372 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
13373 | ||
13374 | Py_INCREF(Py_None); resultobj = Py_None; | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13384 | int result; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | char *kwnames[] = { | |
13387 | (char *) "self", NULL | |
13388 | }; | |
13389 | ||
13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
13391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13392 | result = (int) ((arg1)->m_wheelDelta); | |
13393 | ||
13394 | resultobj = PyInt_FromLong((long)result); | |
13395 | return resultobj; | |
13396 | fail: | |
13397 | return NULL; | |
13398 | } | |
13399 | ||
13400 | ||
13401 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13402 | PyObject *resultobj; | |
13403 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13404 | int arg2 ; | |
13405 | PyObject * obj0 = 0 ; | |
13406 | char *kwnames[] = { | |
13407 | (char *) "self",(char *) "m_linesPerAction", NULL | |
13408 | }; | |
13409 | ||
13410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&arg2)) goto fail; | |
13411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13412 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
13413 | ||
13414 | Py_INCREF(Py_None); resultobj = Py_None; | |
13415 | return resultobj; | |
13416 | fail: | |
13417 | return NULL; | |
13418 | } | |
13419 | ||
13420 | ||
13421 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13422 | PyObject *resultobj; | |
13423 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13424 | int result; | |
13425 | PyObject * obj0 = 0 ; | |
13426 | char *kwnames[] = { | |
13427 | (char *) "self", NULL | |
13428 | }; | |
13429 | ||
13430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
13431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13432 | result = (int) ((arg1)->m_linesPerAction); | |
13433 | ||
13434 | resultobj = PyInt_FromLong((long)result); | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
13442 | PyObject *obj; | |
13443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13444 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
13445 | Py_INCREF(obj); | |
13446 | return Py_BuildValue((char *)""); | |
13447 | } | |
13448 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13449 | PyObject *resultobj; | |
423f194a RD |
13450 | int arg1 = (int) 0 ; |
13451 | int arg2 = (int) 0 ; | |
d14a1e28 RD |
13452 | wxSetCursorEvent *result; |
13453 | char *kwnames[] = { | |
13454 | (char *) "x",(char *) "y", NULL | |
13455 | }; | |
13456 | ||
13457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_SetCursorEvent",kwnames,&arg1,&arg2)) goto fail; | |
13458 | { | |
13459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13460 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
13461 | ||
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | return NULL; | |
13469 | } | |
13470 | ||
13471 | ||
13472 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13473 | PyObject *resultobj; | |
13474 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 13475 | int result; |
d14a1e28 RD |
13476 | PyObject * obj0 = 0 ; |
13477 | char *kwnames[] = { | |
13478 | (char *) "self", NULL | |
13479 | }; | |
13480 | ||
13481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
13482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13483 | { | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13485 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13486 | |
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | resultobj = PyInt_FromLong((long)result); | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
13497 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13498 | PyObject *resultobj; | |
13499 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 13500 | int result; |
d14a1e28 RD |
13501 | PyObject * obj0 = 0 ; |
13502 | char *kwnames[] = { | |
13503 | (char *) "self", NULL | |
13504 | }; | |
13505 | ||
13506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
13507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13508 | { | |
13509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13510 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13511 | |
13512 | wxPyEndAllowThreads(__tstate); | |
13513 | if (PyErr_Occurred()) SWIG_fail; | |
13514 | } | |
13515 | resultobj = PyInt_FromLong((long)result); | |
13516 | return resultobj; | |
13517 | fail: | |
13518 | return NULL; | |
13519 | } | |
13520 | ||
13521 | ||
13522 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13523 | PyObject *resultobj; | |
13524 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13525 | wxCursor *arg2 = 0 ; | |
13526 | PyObject * obj0 = 0 ; | |
13527 | PyObject * obj1 = 0 ; | |
13528 | char *kwnames[] = { | |
13529 | (char *) "self",(char *) "cursor", NULL | |
13530 | }; | |
13531 | ||
13532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
13533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13534 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13535 | if (arg2 == NULL) { | |
13536 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13537 | } | |
13538 | { | |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
13541 | ||
13542 | wxPyEndAllowThreads(__tstate); | |
13543 | if (PyErr_Occurred()) SWIG_fail; | |
13544 | } | |
13545 | Py_INCREF(Py_None); resultobj = Py_None; | |
13546 | return resultobj; | |
13547 | fail: | |
13548 | return NULL; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13555 | wxCursor *result; | |
13556 | PyObject * obj0 = 0 ; | |
13557 | char *kwnames[] = { | |
13558 | (char *) "self", NULL | |
13559 | }; | |
13560 | ||
13561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
13562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13563 | { | |
13564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13565 | { | |
13566 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
13567 | result = (wxCursor *) &_result_ref; | |
13568 | } | |
13569 | ||
13570 | wxPyEndAllowThreads(__tstate); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | } | |
13573 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
13574 | return resultobj; | |
13575 | fail: | |
13576 | return NULL; | |
13577 | } | |
13578 | ||
13579 | ||
13580 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13581 | PyObject *resultobj; | |
13582 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
13583 | bool result; | |
13584 | PyObject * obj0 = 0 ; | |
13585 | char *kwnames[] = { | |
13586 | (char *) "self", NULL | |
13587 | }; | |
13588 | ||
13589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
13590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13591 | { | |
13592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13593 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
13594 | ||
13595 | wxPyEndAllowThreads(__tstate); | |
13596 | if (PyErr_Occurred()) SWIG_fail; | |
13597 | } | |
13598 | resultobj = PyInt_FromLong((long)result); | |
13599 | return resultobj; | |
13600 | fail: | |
13601 | return NULL; | |
13602 | } | |
13603 | ||
13604 | ||
13605 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
13606 | PyObject *obj; | |
13607 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13608 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
13609 | Py_INCREF(obj); | |
13610 | return Py_BuildValue((char *)""); | |
13611 | } | |
13612 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13613 | PyObject *resultobj; | |
13614 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13615 | wxKeyEvent *result; | |
13616 | char *kwnames[] = { | |
13617 | (char *) "keyType", NULL | |
13618 | }; | |
13619 | ||
13620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_KeyEvent",kwnames,&arg1)) goto fail; | |
13621 | { | |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
13629 | return resultobj; | |
13630 | fail: | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13636 | PyObject *resultobj; | |
13637 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13638 | bool result; | |
13639 | PyObject * obj0 = 0 ; | |
13640 | char *kwnames[] = { | |
13641 | (char *) "self", NULL | |
13642 | }; | |
13643 | ||
13644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13646 | { | |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13648 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
13653 | resultobj = PyInt_FromLong((long)result); | |
13654 | return resultobj; | |
13655 | fail: | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
13660 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13661 | PyObject *resultobj; | |
13662 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13663 | bool result; | |
13664 | PyObject * obj0 = 0 ; | |
13665 | char *kwnames[] = { | |
13666 | (char *) "self", NULL | |
13667 | }; | |
13668 | ||
13669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13671 | { | |
13672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13673 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
13674 | ||
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
13678 | resultobj = PyInt_FromLong((long)result); | |
13679 | return resultobj; | |
13680 | fail: | |
13681 | return NULL; | |
13682 | } | |
13683 | ||
13684 | ||
13685 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13686 | PyObject *resultobj; | |
13687 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13688 | bool result; | |
13689 | PyObject * obj0 = 0 ; | |
13690 | char *kwnames[] = { | |
13691 | (char *) "self", NULL | |
13692 | }; | |
13693 | ||
13694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
13695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13696 | { | |
13697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13698 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
13699 | ||
13700 | wxPyEndAllowThreads(__tstate); | |
13701 | if (PyErr_Occurred()) SWIG_fail; | |
13702 | } | |
13703 | resultobj = PyInt_FromLong((long)result); | |
13704 | return resultobj; | |
13705 | fail: | |
13706 | return NULL; | |
13707 | } | |
13708 | ||
13709 | ||
13710 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13711 | PyObject *resultobj; | |
13712 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13713 | bool result; | |
13714 | PyObject * obj0 = 0 ; | |
13715 | char *kwnames[] = { | |
13716 | (char *) "self", NULL | |
13717 | }; | |
13718 | ||
13719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13721 | { | |
13722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13723 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
13724 | ||
13725 | wxPyEndAllowThreads(__tstate); | |
13726 | if (PyErr_Occurred()) SWIG_fail; | |
13727 | } | |
13728 | resultobj = PyInt_FromLong((long)result); | |
13729 | return resultobj; | |
13730 | fail: | |
13731 | return NULL; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13736 | PyObject *resultobj; | |
13737 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13738 | bool result; | |
13739 | PyObject * obj0 = 0 ; | |
13740 | char *kwnames[] = { | |
13741 | (char *) "self", NULL | |
13742 | }; | |
13743 | ||
13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
13745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13746 | { | |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
13749 | ||
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
13753 | resultobj = PyInt_FromLong((long)result); | |
13754 | return resultobj; | |
13755 | fail: | |
13756 | return NULL; | |
13757 | } | |
13758 | ||
13759 | ||
13760 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13761 | PyObject *resultobj; | |
13762 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13763 | int result; | |
13764 | PyObject * obj0 = 0 ; | |
13765 | char *kwnames[] = { | |
13766 | (char *) "self", NULL | |
13767 | }; | |
13768 | ||
13769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
13770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13773 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
13774 | ||
13775 | wxPyEndAllowThreads(__tstate); | |
13776 | if (PyErr_Occurred()) SWIG_fail; | |
13777 | } | |
13778 | resultobj = PyInt_FromLong((long)result); | |
13779 | return resultobj; | |
13780 | fail: | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13786 | PyObject *resultobj; | |
13787 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13788 | int result; | |
13789 | PyObject * obj0 = 0 ; | |
13790 | char *kwnames[] = { | |
13791 | (char *) "self", NULL | |
13792 | }; | |
13793 | ||
13794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
13795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13796 | { | |
13797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13798 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
13799 | ||
13800 | wxPyEndAllowThreads(__tstate); | |
13801 | if (PyErr_Occurred()) SWIG_fail; | |
13802 | } | |
13803 | resultobj = PyInt_FromLong((long)result); | |
13804 | return resultobj; | |
13805 | fail: | |
13806 | return NULL; | |
13807 | } | |
13808 | ||
13809 | ||
13810 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13811 | PyObject *resultobj; | |
13812 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13813 | unsigned int result; |
d14a1e28 RD |
13814 | PyObject * obj0 = 0 ; |
13815 | char *kwnames[] = { | |
13816 | (char *) "self", NULL | |
13817 | }; | |
13818 | ||
13819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
13820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13821 | { | |
13822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13823 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
13824 | |
13825 | wxPyEndAllowThreads(__tstate); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | resultobj = PyInt_FromLong((long)result); | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13836 | PyObject *resultobj; | |
13837 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13838 | unsigned int result; |
d14a1e28 RD |
13839 | PyObject * obj0 = 0 ; |
13840 | char *kwnames[] = { | |
13841 | (char *) "self", NULL | |
13842 | }; | |
13843 | ||
13844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
13845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13846 | { | |
13847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13848 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
13849 | |
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
13853 | resultobj = PyInt_FromLong((long)result); | |
13854 | return resultobj; | |
13855 | fail: | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13861 | PyObject *resultobj; | |
13862 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13863 | wxPoint result; | |
13864 | PyObject * obj0 = 0 ; | |
13865 | char *kwnames[] = { | |
13866 | (char *) "self", NULL | |
13867 | }; | |
13868 | ||
13869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13871 | { | |
13872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13873 | result = (arg1)->GetPosition(); | |
13874 | ||
13875 | wxPyEndAllowThreads(__tstate); | |
13876 | if (PyErr_Occurred()) SWIG_fail; | |
13877 | } | |
13878 | { | |
13879 | wxPoint * resultptr; | |
13880 | resultptr = new wxPoint((wxPoint &) result); | |
13881 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13882 | } | |
13883 | return resultobj; | |
13884 | fail: | |
13885 | return NULL; | |
13886 | } | |
13887 | ||
13888 | ||
13889 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13890 | PyObject *resultobj; | |
13891 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
13892 | long *arg2 = (long *) 0 ; | |
13893 | long *arg3 = (long *) 0 ; | |
13894 | long temp2 ; | |
13895 | long temp3 ; | |
13896 | PyObject * obj0 = 0 ; | |
13897 | char *kwnames[] = { | |
13898 | (char *) "self", NULL | |
13899 | }; | |
13900 | ||
13901 | arg2 = &temp2; | |
13902 | arg3 = &temp3; | |
13903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
13904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13905 | { | |
13906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13907 | (arg1)->GetPosition(arg2,arg3); | |
13908 | ||
13909 | wxPyEndAllowThreads(__tstate); | |
13910 | if (PyErr_Occurred()) SWIG_fail; | |
13911 | } | |
13912 | Py_INCREF(Py_None); resultobj = Py_None; | |
13913 | { | |
13914 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13915 | resultobj = t_output_helper(resultobj,o); | |
13916 | } | |
13917 | { | |
13918 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13919 | resultobj = t_output_helper(resultobj,o); | |
13920 | } | |
13921 | return resultobj; | |
13922 | fail: | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13928 | PyObject *resultobj; | |
13929 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13930 | int result; |
d14a1e28 RD |
13931 | PyObject * obj0 = 0 ; |
13932 | char *kwnames[] = { | |
13933 | (char *) "self", NULL | |
13934 | }; | |
13935 | ||
13936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
13937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13938 | { | |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13940 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13941 | |
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | resultobj = PyInt_FromLong((long)result); | |
13946 | return resultobj; | |
13947 | fail: | |
13948 | return NULL; | |
13949 | } | |
13950 | ||
13951 | ||
13952 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13953 | PyObject *resultobj; | |
13954 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13955 | int result; |
d14a1e28 RD |
13956 | PyObject * obj0 = 0 ; |
13957 | char *kwnames[] = { | |
13958 | (char *) "self", NULL | |
13959 | }; | |
13960 | ||
13961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
13962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13963 | { | |
13964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13965 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13966 | |
13967 | wxPyEndAllowThreads(__tstate); | |
13968 | if (PyErr_Occurred()) SWIG_fail; | |
13969 | } | |
13970 | resultobj = PyInt_FromLong((long)result); | |
13971 | return resultobj; | |
13972 | fail: | |
13973 | return NULL; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13978 | PyObject *resultobj; | |
13979 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 13980 | int arg2 ; |
d14a1e28 RD |
13981 | PyObject * obj0 = 0 ; |
13982 | char *kwnames[] = { | |
13983 | (char *) "self",(char *) "m_x", NULL | |
13984 | }; | |
13985 | ||
13986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_x_set",kwnames,&obj0,&arg2)) goto fail; | |
13987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13988 | if (arg1) (arg1)->m_x = arg2; | |
13989 | ||
13990 | Py_INCREF(Py_None); resultobj = Py_None; | |
13991 | return resultobj; | |
13992 | fail: | |
13993 | return NULL; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13998 | PyObject *resultobj; | |
13999 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14000 | int result; |
d14a1e28 RD |
14001 | PyObject * obj0 = 0 ; |
14002 | char *kwnames[] = { | |
14003 | (char *) "self", NULL | |
14004 | }; | |
14005 | ||
14006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14008 | result = (int) ((arg1)->m_x); |
d14a1e28 RD |
14009 | |
14010 | resultobj = PyInt_FromLong((long)result); | |
14011 | return resultobj; | |
14012 | fail: | |
14013 | return NULL; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14018 | PyObject *resultobj; | |
14019 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14020 | int arg2 ; |
d14a1e28 RD |
14021 | PyObject * obj0 = 0 ; |
14022 | char *kwnames[] = { | |
14023 | (char *) "self",(char *) "m_y", NULL | |
14024 | }; | |
14025 | ||
14026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:KeyEvent_m_y_set",kwnames,&obj0,&arg2)) goto fail; | |
14027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14028 | if (arg1) (arg1)->m_y = arg2; | |
14029 | ||
14030 | Py_INCREF(Py_None); resultobj = Py_None; | |
14031 | return resultobj; | |
14032 | fail: | |
14033 | return NULL; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14038 | PyObject *resultobj; | |
14039 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14040 | int result; |
d14a1e28 RD |
14041 | PyObject * obj0 = 0 ; |
14042 | char *kwnames[] = { | |
14043 | (char *) "self", NULL | |
14044 | }; | |
14045 | ||
14046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14048 | result = (int) ((arg1)->m_y); |
d14a1e28 RD |
14049 | |
14050 | resultobj = PyInt_FromLong((long)result); | |
14051 | return resultobj; | |
14052 | fail: | |
14053 | return NULL; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14058 | PyObject *resultobj; | |
14059 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14060 | long arg2 ; | |
14061 | PyObject * obj0 = 0 ; | |
14062 | char *kwnames[] = { | |
14063 | (char *) "self",(char *) "m_keyCode", NULL | |
14064 | }; | |
14065 | ||
14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:KeyEvent_m_keyCode_set",kwnames,&obj0,&arg2)) goto fail; | |
14067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14068 | if (arg1) (arg1)->m_keyCode = arg2; | |
14069 | ||
14070 | Py_INCREF(Py_None); resultobj = Py_None; | |
14071 | return resultobj; | |
14072 | fail: | |
14073 | return NULL; | |
14074 | } | |
14075 | ||
14076 | ||
14077 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14078 | PyObject *resultobj; | |
14079 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14080 | long result; | |
14081 | PyObject * obj0 = 0 ; | |
14082 | char *kwnames[] = { | |
14083 | (char *) "self", NULL | |
14084 | }; | |
14085 | ||
14086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
14087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14088 | result = (long) ((arg1)->m_keyCode); | |
14089 | ||
14090 | resultobj = PyInt_FromLong((long)result); | |
14091 | return resultobj; | |
14092 | fail: | |
14093 | return NULL; | |
14094 | } | |
14095 | ||
14096 | ||
14097 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14098 | PyObject *resultobj; | |
14099 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14100 | bool arg2 ; | |
14101 | PyObject * obj0 = 0 ; | |
14102 | PyObject * obj1 = 0 ; | |
14103 | char *kwnames[] = { | |
14104 | (char *) "self",(char *) "m_controlDown", NULL | |
14105 | }; | |
14106 | ||
14107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14109 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | if (arg1) (arg1)->m_controlDown = arg2; | |
14112 | ||
14113 | Py_INCREF(Py_None); resultobj = Py_None; | |
14114 | return resultobj; | |
14115 | fail: | |
14116 | return NULL; | |
14117 | } | |
14118 | ||
14119 | ||
14120 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14121 | PyObject *resultobj; | |
14122 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14123 | bool result; | |
14124 | PyObject * obj0 = 0 ; | |
14125 | char *kwnames[] = { | |
14126 | (char *) "self", NULL | |
14127 | }; | |
14128 | ||
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14131 | result = (bool) ((arg1)->m_controlDown); | |
14132 | ||
14133 | resultobj = PyInt_FromLong((long)result); | |
14134 | return resultobj; | |
14135 | fail: | |
14136 | return NULL; | |
14137 | } | |
14138 | ||
14139 | ||
14140 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14141 | PyObject *resultobj; | |
14142 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14143 | bool arg2 ; | |
14144 | PyObject * obj0 = 0 ; | |
14145 | PyObject * obj1 = 0 ; | |
14146 | char *kwnames[] = { | |
14147 | (char *) "self",(char *) "m_shiftDown", NULL | |
14148 | }; | |
14149 | ||
14150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14152 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14153 | if (PyErr_Occurred()) SWIG_fail; | |
14154 | if (arg1) (arg1)->m_shiftDown = arg2; | |
14155 | ||
14156 | Py_INCREF(Py_None); resultobj = Py_None; | |
14157 | return resultobj; | |
14158 | fail: | |
14159 | return NULL; | |
14160 | } | |
14161 | ||
14162 | ||
14163 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14164 | PyObject *resultobj; | |
14165 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14166 | bool result; | |
14167 | PyObject * obj0 = 0 ; | |
14168 | char *kwnames[] = { | |
14169 | (char *) "self", NULL | |
14170 | }; | |
14171 | ||
14172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14174 | result = (bool) ((arg1)->m_shiftDown); | |
14175 | ||
14176 | resultobj = PyInt_FromLong((long)result); | |
14177 | return resultobj; | |
14178 | fail: | |
14179 | return NULL; | |
14180 | } | |
14181 | ||
14182 | ||
14183 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14184 | PyObject *resultobj; | |
14185 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14186 | bool arg2 ; | |
14187 | PyObject * obj0 = 0 ; | |
14188 | PyObject * obj1 = 0 ; | |
14189 | char *kwnames[] = { | |
14190 | (char *) "self",(char *) "m_altDown", NULL | |
14191 | }; | |
14192 | ||
14193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14195 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14196 | if (PyErr_Occurred()) SWIG_fail; | |
14197 | if (arg1) (arg1)->m_altDown = arg2; | |
14198 | ||
14199 | Py_INCREF(Py_None); resultobj = Py_None; | |
14200 | return resultobj; | |
14201 | fail: | |
14202 | return NULL; | |
14203 | } | |
14204 | ||
14205 | ||
14206 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14207 | PyObject *resultobj; | |
14208 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14209 | bool result; | |
14210 | PyObject * obj0 = 0 ; | |
14211 | char *kwnames[] = { | |
14212 | (char *) "self", NULL | |
14213 | }; | |
14214 | ||
14215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14217 | result = (bool) ((arg1)->m_altDown); | |
14218 | ||
14219 | resultobj = PyInt_FromLong((long)result); | |
14220 | return resultobj; | |
14221 | fail: | |
14222 | return NULL; | |
14223 | } | |
14224 | ||
14225 | ||
14226 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14227 | PyObject *resultobj; | |
14228 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14229 | bool arg2 ; | |
14230 | PyObject * obj0 = 0 ; | |
14231 | PyObject * obj1 = 0 ; | |
14232 | char *kwnames[] = { | |
14233 | (char *) "self",(char *) "m_metaDown", NULL | |
14234 | }; | |
14235 | ||
14236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14238 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14239 | if (PyErr_Occurred()) SWIG_fail; | |
14240 | if (arg1) (arg1)->m_metaDown = arg2; | |
14241 | ||
14242 | Py_INCREF(Py_None); resultobj = Py_None; | |
14243 | return resultobj; | |
14244 | fail: | |
14245 | return NULL; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14250 | PyObject *resultobj; | |
14251 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14252 | bool result; | |
14253 | PyObject * obj0 = 0 ; | |
14254 | char *kwnames[] = { | |
14255 | (char *) "self", NULL | |
14256 | }; | |
14257 | ||
14258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14260 | result = (bool) ((arg1)->m_metaDown); | |
14261 | ||
14262 | resultobj = PyInt_FromLong((long)result); | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14270 | PyObject *resultobj; | |
14271 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14272 | bool arg2 ; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | PyObject * obj1 = 0 ; | |
14275 | char *kwnames[] = { | |
14276 | (char *) "self",(char *) "m_scanCode", NULL | |
14277 | }; | |
14278 | ||
14279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14281 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14282 | if (PyErr_Occurred()) SWIG_fail; | |
14283 | if (arg1) (arg1)->m_scanCode = arg2; | |
14284 | ||
14285 | Py_INCREF(Py_None); resultobj = Py_None; | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
14292 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14295 | bool result; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "self", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
14302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14303 | result = (bool) ((arg1)->m_scanCode); | |
14304 | ||
14305 | resultobj = PyInt_FromLong((long)result); | |
14306 | return resultobj; | |
14307 | fail: | |
14308 | return NULL; | |
14309 | } | |
14310 | ||
14311 | ||
14312 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14313 | PyObject *resultobj; | |
14314 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14315 | unsigned int arg2 ; |
d14a1e28 RD |
14316 | PyObject * obj0 = 0 ; |
14317 | PyObject * obj1 = 0 ; | |
14318 | char *kwnames[] = { | |
14319 | (char *) "self",(char *) "m_rawCode", NULL | |
14320 | }; | |
14321 | ||
14322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
14323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14324 | arg2 = (unsigned int) PyInt_AsLong(obj1); |
d14a1e28 RD |
14325 | if (PyErr_Occurred()) SWIG_fail; |
14326 | if (arg1) (arg1)->m_rawCode = arg2; | |
14327 | ||
14328 | Py_INCREF(Py_None); resultobj = Py_None; | |
14329 | return resultobj; | |
14330 | fail: | |
14331 | return NULL; | |
14332 | } | |
14333 | ||
14334 | ||
14335 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14336 | PyObject *resultobj; | |
14337 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14338 | unsigned int result; |
d14a1e28 RD |
14339 | PyObject * obj0 = 0 ; |
14340 | char *kwnames[] = { | |
14341 | (char *) "self", NULL | |
14342 | }; | |
14343 | ||
14344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
14345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14346 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 RD |
14347 | |
14348 | resultobj = PyInt_FromLong((long)result); | |
14349 | return resultobj; | |
14350 | fail: | |
14351 | return NULL; | |
14352 | } | |
14353 | ||
14354 | ||
14355 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14356 | PyObject *resultobj; | |
14357 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14358 | unsigned int arg2 ; |
d14a1e28 RD |
14359 | PyObject * obj0 = 0 ; |
14360 | PyObject * obj1 = 0 ; | |
14361 | char *kwnames[] = { | |
14362 | (char *) "self",(char *) "m_rawFlags", NULL | |
14363 | }; | |
14364 | ||
14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
14366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14367 | arg2 = (unsigned int) PyInt_AsLong(obj1); |
d14a1e28 RD |
14368 | if (PyErr_Occurred()) SWIG_fail; |
14369 | if (arg1) (arg1)->m_rawFlags = arg2; | |
14370 | ||
14371 | Py_INCREF(Py_None); resultobj = Py_None; | |
14372 | return resultobj; | |
14373 | fail: | |
14374 | return NULL; | |
14375 | } | |
14376 | ||
14377 | ||
14378 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14379 | PyObject *resultobj; | |
14380 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14381 | unsigned int result; |
d14a1e28 RD |
14382 | PyObject * obj0 = 0 ; |
14383 | char *kwnames[] = { | |
14384 | (char *) "self", NULL | |
14385 | }; | |
14386 | ||
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
14388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14389 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 RD |
14390 | |
14391 | resultobj = PyInt_FromLong((long)result); | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
14399 | PyObject *obj; | |
14400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14401 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
14402 | Py_INCREF(obj); | |
14403 | return Py_BuildValue((char *)""); | |
14404 | } | |
14405 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14406 | PyObject *resultobj; | |
14407 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
14408 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
14409 | int arg2 = (int) 0 ; | |
14410 | wxSizeEvent *result; | |
14411 | wxSize temp1 ; | |
14412 | PyObject * obj0 = 0 ; | |
14413 | char *kwnames[] = { | |
14414 | (char *) "sz",(char *) "winid", NULL | |
14415 | }; | |
14416 | ||
14417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_SizeEvent",kwnames,&obj0,&arg2)) goto fail; | |
14418 | if (obj0) { | |
14419 | { | |
14420 | arg1 = &temp1; | |
14421 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14422 | } | |
14423 | } | |
14424 | { | |
14425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14426 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
14427 | ||
14428 | wxPyEndAllowThreads(__tstate); | |
14429 | if (PyErr_Occurred()) SWIG_fail; | |
14430 | } | |
14431 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
14432 | return resultobj; | |
14433 | fail: | |
14434 | return NULL; | |
14435 | } | |
14436 | ||
14437 | ||
14438 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14439 | PyObject *resultobj; | |
14440 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14441 | wxSize result; | |
14442 | PyObject * obj0 = 0 ; | |
14443 | char *kwnames[] = { | |
14444 | (char *) "self", NULL | |
14445 | }; | |
14446 | ||
14447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
14448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
14452 | ||
14453 | wxPyEndAllowThreads(__tstate); | |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
14455 | } | |
14456 | { | |
14457 | wxSize * resultptr; | |
14458 | resultptr = new wxSize((wxSize &) result); | |
14459 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14460 | } | |
14461 | return resultobj; | |
14462 | fail: | |
14463 | return NULL; | |
14464 | } | |
14465 | ||
14466 | ||
14467 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14468 | PyObject *resultobj; | |
14469 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14470 | wxRect result; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | char *kwnames[] = { | |
14473 | (char *) "self", NULL | |
14474 | }; | |
14475 | ||
14476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
14477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14478 | { | |
14479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14480 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
14481 | ||
14482 | wxPyEndAllowThreads(__tstate); | |
14483 | if (PyErr_Occurred()) SWIG_fail; | |
14484 | } | |
14485 | { | |
14486 | wxRect * resultptr; | |
14487 | resultptr = new wxRect((wxRect &) result); | |
14488 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14489 | } | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
14496 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14497 | PyObject *resultobj; | |
14498 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14499 | wxRect arg2 ; | |
14500 | wxRect *argp2 ; | |
14501 | PyObject * obj0 = 0 ; | |
14502 | PyObject * obj1 = 0 ; | |
14503 | char *kwnames[] = { | |
14504 | (char *) "self",(char *) "rect", NULL | |
14505 | }; | |
14506 | ||
14507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14509 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14510 | arg2 = *argp2; | |
14511 | { | |
14512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14513 | (arg1)->SetRect(arg2); | |
14514 | ||
14515 | wxPyEndAllowThreads(__tstate); | |
14516 | if (PyErr_Occurred()) SWIG_fail; | |
14517 | } | |
14518 | Py_INCREF(Py_None); resultobj = Py_None; | |
14519 | return resultobj; | |
14520 | fail: | |
14521 | return NULL; | |
14522 | } | |
14523 | ||
14524 | ||
14525 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14526 | PyObject *resultobj; | |
14527 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14528 | wxSize arg2 ; | |
14529 | wxSize *argp2 ; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | PyObject * obj1 = 0 ; | |
14532 | char *kwnames[] = { | |
14533 | (char *) "self",(char *) "size", NULL | |
14534 | }; | |
14535 | ||
14536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
14537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14538 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14539 | arg2 = *argp2; | |
14540 | { | |
14541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14542 | wxSizeEvent_SetSize(arg1,arg2); | |
14543 | ||
14544 | wxPyEndAllowThreads(__tstate); | |
14545 | if (PyErr_Occurred()) SWIG_fail; | |
14546 | } | |
14547 | Py_INCREF(Py_None); resultobj = Py_None; | |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
14554 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14555 | PyObject *resultobj; | |
14556 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14557 | wxSize *arg2 = (wxSize *) 0 ; | |
14558 | PyObject * obj0 = 0 ; | |
14559 | PyObject * obj1 = 0 ; | |
14560 | char *kwnames[] = { | |
14561 | (char *) "self",(char *) "m_size", NULL | |
14562 | }; | |
14563 | ||
14564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
14565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14566 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14567 | if (arg1) (arg1)->m_size = *arg2; | |
14568 | ||
14569 | Py_INCREF(Py_None); resultobj = Py_None; | |
14570 | return resultobj; | |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14579 | wxSize *result; | |
14580 | PyObject * obj0 = 0 ; | |
14581 | char *kwnames[] = { | |
14582 | (char *) "self", NULL | |
14583 | }; | |
14584 | ||
14585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
14586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14587 | result = (wxSize *)& ((arg1)->m_size); | |
14588 | ||
14589 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
14590 | return resultobj; | |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14599 | wxRect *arg2 = (wxRect *) 0 ; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | PyObject * obj1 = 0 ; | |
14602 | char *kwnames[] = { | |
14603 | (char *) "self",(char *) "m_rect", NULL | |
14604 | }; | |
14605 | ||
14606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14608 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14609 | if (arg1) (arg1)->m_rect = *arg2; | |
14610 | ||
14611 | Py_INCREF(Py_None); resultobj = Py_None; | |
14612 | return resultobj; | |
14613 | fail: | |
14614 | return NULL; | |
14615 | } | |
14616 | ||
14617 | ||
14618 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14619 | PyObject *resultobj; | |
14620 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
14621 | wxRect *result; | |
14622 | PyObject * obj0 = 0 ; | |
14623 | char *kwnames[] = { | |
14624 | (char *) "self", NULL | |
14625 | }; | |
14626 | ||
14627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14629 | result = (wxRect *)& ((arg1)->m_rect); | |
14630 | ||
14631 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
14638 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
14639 | PyObject *obj; | |
14640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14641 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
14642 | Py_INCREF(obj); | |
14643 | return Py_BuildValue((char *)""); | |
14644 | } | |
14645 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14646 | PyObject *resultobj; | |
14647 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
14648 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
14649 | int arg2 = (int) 0 ; | |
14650 | wxMoveEvent *result; | |
14651 | wxPoint temp1 ; | |
14652 | PyObject * obj0 = 0 ; | |
14653 | char *kwnames[] = { | |
14654 | (char *) "pos",(char *) "winid", NULL | |
14655 | }; | |
14656 | ||
14657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_MoveEvent",kwnames,&obj0,&arg2)) goto fail; | |
14658 | if (obj0) { | |
14659 | { | |
14660 | arg1 = &temp1; | |
14661 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
14662 | } | |
14663 | } | |
14664 | { | |
14665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14666 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
14667 | ||
14668 | wxPyEndAllowThreads(__tstate); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
14670 | } | |
14671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
14672 | return resultobj; | |
14673 | fail: | |
14674 | return NULL; | |
14675 | } | |
14676 | ||
14677 | ||
14678 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14679 | PyObject *resultobj; | |
14680 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14681 | wxPoint result; | |
14682 | PyObject * obj0 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "self", NULL | |
14685 | }; | |
14686 | ||
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14689 | { | |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | { | |
14697 | wxPoint * resultptr; | |
14698 | resultptr = new wxPoint((wxPoint &) result); | |
14699 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
14700 | } | |
14701 | return resultobj; | |
14702 | fail: | |
14703 | return NULL; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14708 | PyObject *resultobj; | |
14709 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14710 | wxRect result; | |
14711 | PyObject * obj0 = 0 ; | |
14712 | char *kwnames[] = { | |
14713 | (char *) "self", NULL | |
14714 | }; | |
14715 | ||
14716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
14717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14718 | { | |
14719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14720 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
14721 | ||
14722 | wxPyEndAllowThreads(__tstate); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | } | |
14725 | { | |
14726 | wxRect * resultptr; | |
14727 | resultptr = new wxRect((wxRect &) result); | |
14728 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
14729 | } | |
14730 | return resultobj; | |
14731 | fail: | |
14732 | return NULL; | |
14733 | } | |
14734 | ||
14735 | ||
14736 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14737 | PyObject *resultobj; | |
14738 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14739 | wxRect arg2 ; | |
14740 | wxRect *argp2 ; | |
14741 | PyObject * obj0 = 0 ; | |
14742 | PyObject * obj1 = 0 ; | |
14743 | char *kwnames[] = { | |
14744 | (char *) "self",(char *) "rect", NULL | |
14745 | }; | |
14746 | ||
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
14748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14749 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14750 | arg2 = *argp2; | |
14751 | { | |
14752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14753 | (arg1)->SetRect(arg2); | |
14754 | ||
14755 | wxPyEndAllowThreads(__tstate); | |
14756 | if (PyErr_Occurred()) SWIG_fail; | |
14757 | } | |
14758 | Py_INCREF(Py_None); resultobj = Py_None; | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
14765 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14766 | PyObject *resultobj; | |
14767 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14768 | wxPoint arg2 ; | |
14769 | wxPoint *argp2 ; | |
14770 | PyObject * obj0 = 0 ; | |
14771 | PyObject * obj1 = 0 ; | |
14772 | char *kwnames[] = { | |
14773 | (char *) "self",(char *) "pos", NULL | |
14774 | }; | |
14775 | ||
14776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
14777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14778 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
14779 | arg2 = *argp2; | |
14780 | { | |
14781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14782 | wxMoveEvent_SetPosition(arg1,arg2); | |
14783 | ||
14784 | wxPyEndAllowThreads(__tstate); | |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
14786 | } | |
14787 | Py_INCREF(Py_None); resultobj = Py_None; | |
14788 | return resultobj; | |
14789 | fail: | |
14790 | return NULL; | |
14791 | } | |
14792 | ||
14793 | ||
14794 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14795 | PyObject *resultobj; | |
14796 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14797 | wxPoint *arg2 = (wxPoint *) 0 ; | |
14798 | PyObject * obj0 = 0 ; | |
14799 | PyObject * obj1 = 0 ; | |
14800 | char *kwnames[] = { | |
14801 | (char *) "self",(char *) "m_pos", NULL | |
14802 | }; | |
14803 | ||
14804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
14805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14807 | if (arg1) (arg1)->m_pos = *arg2; | |
14808 | ||
14809 | Py_INCREF(Py_None); resultobj = Py_None; | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj; | |
14818 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14819 | wxPoint *result; | |
14820 | PyObject * obj0 = 0 ; | |
14821 | char *kwnames[] = { | |
14822 | (char *) "self", NULL | |
14823 | }; | |
14824 | ||
14825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
14826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14827 | result = (wxPoint *)& ((arg1)->m_pos); | |
14828 | ||
14829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
14830 | return resultobj; | |
14831 | fail: | |
14832 | return NULL; | |
14833 | } | |
14834 | ||
14835 | ||
14836 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14837 | PyObject *resultobj; | |
14838 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14839 | wxRect *arg2 = (wxRect *) 0 ; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | PyObject * obj1 = 0 ; | |
14842 | char *kwnames[] = { | |
14843 | (char *) "self",(char *) "m_rect", NULL | |
14844 | }; | |
14845 | ||
14846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
14847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14848 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14849 | if (arg1) (arg1)->m_rect = *arg2; | |
14850 | ||
14851 | Py_INCREF(Py_None); resultobj = Py_None; | |
14852 | return resultobj; | |
14853 | fail: | |
14854 | return NULL; | |
14855 | } | |
14856 | ||
14857 | ||
14858 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14859 | PyObject *resultobj; | |
14860 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
14861 | wxRect *result; | |
14862 | PyObject * obj0 = 0 ; | |
14863 | char *kwnames[] = { | |
14864 | (char *) "self", NULL | |
14865 | }; | |
14866 | ||
14867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
14868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14869 | result = (wxRect *)& ((arg1)->m_rect); | |
14870 | ||
14871 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
14872 | return resultobj; | |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
14878 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
14879 | PyObject *obj; | |
14880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14881 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
14882 | Py_INCREF(obj); | |
14883 | return Py_BuildValue((char *)""); | |
14884 | } | |
14885 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14886 | PyObject *resultobj; | |
14887 | int arg1 = (int) 0 ; | |
14888 | wxPaintEvent *result; | |
14889 | char *kwnames[] = { | |
14890 | (char *) "Id", NULL | |
14891 | }; | |
14892 | ||
14893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaintEvent",kwnames,&arg1)) goto fail; | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
14897 | ||
14898 | wxPyEndAllowThreads(__tstate); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
14900 | } | |
14901 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
14908 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
14909 | PyObject *obj; | |
14910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14911 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
14912 | Py_INCREF(obj); | |
14913 | return Py_BuildValue((char *)""); | |
14914 | } | |
14915 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14916 | PyObject *resultobj; | |
14917 | int arg1 = (int) 0 ; | |
14918 | wxNcPaintEvent *result; | |
14919 | char *kwnames[] = { | |
14920 | (char *) "winid", NULL | |
14921 | }; | |
14922 | ||
14923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_NcPaintEvent",kwnames,&arg1)) goto fail; | |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
14932 | return resultobj; | |
14933 | fail: | |
14934 | return NULL; | |
14935 | } | |
14936 | ||
14937 | ||
14938 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
14939 | PyObject *obj; | |
14940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14941 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
14942 | Py_INCREF(obj); | |
14943 | return Py_BuildValue((char *)""); | |
14944 | } | |
14945 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14946 | PyObject *resultobj; | |
14947 | int arg1 = (int) 0 ; | |
14948 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
14949 | wxEraseEvent *result; | |
14950 | PyObject * obj1 = 0 ; | |
14951 | char *kwnames[] = { | |
14952 | (char *) "Id",(char *) "dc", NULL | |
14953 | }; | |
14954 | ||
14955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_EraseEvent",kwnames,&arg1,&obj1)) goto fail; | |
14956 | if (obj1) { | |
14957 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14958 | } | |
14959 | { | |
14960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14961 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
14962 | ||
14963 | wxPyEndAllowThreads(__tstate); | |
14964 | if (PyErr_Occurred()) SWIG_fail; | |
14965 | } | |
14966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
14967 | return resultobj; | |
14968 | fail: | |
14969 | return NULL; | |
14970 | } | |
14971 | ||
14972 | ||
14973 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14974 | PyObject *resultobj; | |
14975 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
14976 | wxDC *result; | |
14977 | PyObject * obj0 = 0 ; | |
14978 | char *kwnames[] = { | |
14979 | (char *) "self", NULL | |
14980 | }; | |
14981 | ||
14982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
14983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14984 | { | |
14985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14986 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
14987 | ||
14988 | wxPyEndAllowThreads(__tstate); | |
14989 | if (PyErr_Occurred()) SWIG_fail; | |
14990 | } | |
14991 | { | |
14992 | resultobj = wxPyMake_wxObject(result); | |
14993 | } | |
14994 | return resultobj; | |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
15001 | PyObject *obj; | |
15002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15003 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
15004 | Py_INCREF(obj); | |
15005 | return Py_BuildValue((char *)""); | |
15006 | } | |
15007 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15008 | PyObject *resultobj; | |
15009 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15010 | int arg2 = (int) 0 ; | |
15011 | wxFocusEvent *result; | |
15012 | char *kwnames[] = { | |
15013 | (char *) "type",(char *) "winid", NULL | |
15014 | }; | |
15015 | ||
15016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_FocusEvent",kwnames,&arg1,&arg2)) goto fail; | |
15017 | { | |
15018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15019 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
15020 | ||
15021 | wxPyEndAllowThreads(__tstate); | |
15022 | if (PyErr_Occurred()) SWIG_fail; | |
15023 | } | |
15024 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
15025 | return resultobj; | |
15026 | fail: | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
15031 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15034 | wxWindow *result; | |
15035 | PyObject * obj0 = 0 ; | |
15036 | char *kwnames[] = { | |
15037 | (char *) "self", NULL | |
15038 | }; | |
15039 | ||
15040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15042 | { | |
15043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15044 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
15045 | ||
15046 | wxPyEndAllowThreads(__tstate); | |
15047 | if (PyErr_Occurred()) SWIG_fail; | |
15048 | } | |
15049 | { | |
15050 | resultobj = wxPyMake_wxObject(result); | |
15051 | } | |
15052 | return resultobj; | |
15053 | fail: | |
15054 | return NULL; | |
15055 | } | |
15056 | ||
15057 | ||
15058 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15059 | PyObject *resultobj; | |
15060 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
15061 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15062 | PyObject * obj0 = 0 ; | |
15063 | PyObject * obj1 = 0 ; | |
15064 | char *kwnames[] = { | |
15065 | (char *) "self",(char *) "win", NULL | |
15066 | }; | |
15067 | ||
15068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | (arg1)->SetWindow(arg2); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
15078 | Py_INCREF(Py_None); resultobj = Py_None; | |
15079 | return resultobj; | |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15086 | PyObject *obj; | |
15087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15088 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
15089 | Py_INCREF(obj); | |
15090 | return Py_BuildValue((char *)""); | |
15091 | } | |
15092 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxWindow *arg1 = (wxWindow *) NULL ; | |
15095 | wxChildFocusEvent *result; | |
15096 | PyObject * obj0 = 0 ; | |
15097 | char *kwnames[] = { | |
15098 | (char *) "win", NULL | |
15099 | }; | |
15100 | ||
15101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
15102 | if (obj0) { | |
15103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15104 | } | |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
15112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj; | |
15121 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
15122 | wxWindow *result; | |
15123 | PyObject * obj0 = 0 ; | |
15124 | char *kwnames[] = { | |
15125 | (char *) "self", NULL | |
15126 | }; | |
15127 | ||
15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15130 | { | |
15131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15132 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
15133 | ||
15134 | wxPyEndAllowThreads(__tstate); | |
15135 | if (PyErr_Occurred()) SWIG_fail; | |
15136 | } | |
15137 | { | |
15138 | resultobj = wxPyMake_wxObject(result); | |
15139 | } | |
15140 | return resultobj; | |
15141 | fail: | |
15142 | return NULL; | |
15143 | } | |
15144 | ||
15145 | ||
15146 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
15147 | PyObject *obj; | |
15148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15149 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
15150 | Py_INCREF(obj); | |
15151 | return Py_BuildValue((char *)""); | |
15152 | } | |
15153 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15154 | PyObject *resultobj; | |
15155 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 15156 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15157 | int arg3 = (int) 0 ; |
15158 | wxActivateEvent *result; | |
15159 | PyObject * obj1 = 0 ; | |
15160 | char *kwnames[] = { | |
15161 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
15162 | }; | |
15163 | ||
15164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iOi:new_ActivateEvent",kwnames,&arg1,&obj1,&arg3)) goto fail; | |
15165 | if (obj1) { | |
15166 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
15169 | { | |
15170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15171 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
15172 | ||
15173 | wxPyEndAllowThreads(__tstate); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | } | |
15176 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
15177 | return resultobj; | |
15178 | fail: | |
15179 | return NULL; | |
15180 | } | |
15181 | ||
15182 | ||
15183 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15184 | PyObject *resultobj; | |
15185 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
15186 | bool result; | |
15187 | PyObject * obj0 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "self", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15194 | { | |
15195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15196 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
15197 | ||
15198 | wxPyEndAllowThreads(__tstate); | |
15199 | if (PyErr_Occurred()) SWIG_fail; | |
15200 | } | |
15201 | resultobj = PyInt_FromLong((long)result); | |
15202 | return resultobj; | |
15203 | fail: | |
15204 | return NULL; | |
15205 | } | |
15206 | ||
15207 | ||
15208 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
15209 | PyObject *obj; | |
15210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15211 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
15212 | Py_INCREF(obj); | |
15213 | return Py_BuildValue((char *)""); | |
15214 | } | |
15215 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15216 | PyObject *resultobj; | |
15217 | int arg1 = (int) 0 ; | |
15218 | wxInitDialogEvent *result; | |
15219 | char *kwnames[] = { | |
15220 | (char *) "Id", NULL | |
15221 | }; | |
15222 | ||
15223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_InitDialogEvent",kwnames,&arg1)) goto fail; | |
15224 | { | |
15225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15226 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
15227 | ||
15228 | wxPyEndAllowThreads(__tstate); | |
15229 | if (PyErr_Occurred()) SWIG_fail; | |
15230 | } | |
15231 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
15232 | return resultobj; | |
15233 | fail: | |
15234 | return NULL; | |
15235 | } | |
15236 | ||
15237 | ||
15238 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
15239 | PyObject *obj; | |
15240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15241 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
15242 | Py_INCREF(obj); | |
15243 | return Py_BuildValue((char *)""); | |
15244 | } | |
15245 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15246 | PyObject *resultobj; | |
15247 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15248 | int arg2 = (int) 0 ; | |
15249 | wxMenu *arg3 = (wxMenu *) NULL ; | |
15250 | wxMenuEvent *result; | |
15251 | PyObject * obj2 = 0 ; | |
15252 | char *kwnames[] = { | |
15253 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
15254 | }; | |
15255 | ||
15256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_MenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
15257 | if (obj2) { | |
15258 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15259 | } | |
15260 | { | |
15261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15262 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
15263 | ||
15264 | wxPyEndAllowThreads(__tstate); | |
15265 | if (PyErr_Occurred()) SWIG_fail; | |
15266 | } | |
15267 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
15268 | return resultobj; | |
15269 | fail: | |
15270 | return NULL; | |
15271 | } | |
15272 | ||
15273 | ||
15274 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15275 | PyObject *resultobj; | |
15276 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15277 | int result; | |
15278 | PyObject * obj0 = 0 ; | |
15279 | char *kwnames[] = { | |
15280 | (char *) "self", NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15285 | { | |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15287 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
15290 | if (PyErr_Occurred()) SWIG_fail; | |
15291 | } | |
15292 | resultobj = PyInt_FromLong((long)result); | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
15299 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15300 | PyObject *resultobj; | |
15301 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15302 | bool result; | |
15303 | PyObject * obj0 = 0 ; | |
15304 | char *kwnames[] = { | |
15305 | (char *) "self", NULL | |
15306 | }; | |
15307 | ||
15308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15310 | { | |
15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15312 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
15313 | ||
15314 | wxPyEndAllowThreads(__tstate); | |
15315 | if (PyErr_Occurred()) SWIG_fail; | |
15316 | } | |
15317 | resultobj = PyInt_FromLong((long)result); | |
15318 | return resultobj; | |
15319 | fail: | |
15320 | return NULL; | |
15321 | } | |
15322 | ||
15323 | ||
15324 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15325 | PyObject *resultobj; | |
15326 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
15327 | wxMenu *result; | |
15328 | PyObject * obj0 = 0 ; | |
15329 | char *kwnames[] = { | |
15330 | (char *) "self", NULL | |
15331 | }; | |
15332 | ||
15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15335 | { | |
15336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15337 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
15338 | ||
15339 | wxPyEndAllowThreads(__tstate); | |
15340 | if (PyErr_Occurred()) SWIG_fail; | |
15341 | } | |
15342 | { | |
15343 | resultobj = wxPyMake_wxObject(result); | |
15344 | } | |
15345 | return resultobj; | |
15346 | fail: | |
15347 | return NULL; | |
15348 | } | |
15349 | ||
15350 | ||
15351 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
15352 | PyObject *obj; | |
15353 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15354 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
15355 | Py_INCREF(obj); | |
15356 | return Py_BuildValue((char *)""); | |
15357 | } | |
15358 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15359 | PyObject *resultobj; | |
15360 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15361 | int arg2 = (int) 0 ; | |
15362 | wxCloseEvent *result; | |
15363 | char *kwnames[] = { | |
15364 | (char *) "type",(char *) "winid", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_CloseEvent",kwnames,&arg1,&arg2)) goto fail; | |
15368 | { | |
15369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15370 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
15371 | ||
15372 | wxPyEndAllowThreads(__tstate); | |
15373 | if (PyErr_Occurred()) SWIG_fail; | |
15374 | } | |
15375 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
15376 | return resultobj; | |
15377 | fail: | |
15378 | return NULL; | |
15379 | } | |
15380 | ||
15381 | ||
15382 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15383 | PyObject *resultobj; | |
15384 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15385 | bool arg2 ; | |
15386 | PyObject * obj0 = 0 ; | |
15387 | PyObject * obj1 = 0 ; | |
15388 | char *kwnames[] = { | |
15389 | (char *) "self",(char *) "logOff", NULL | |
15390 | }; | |
15391 | ||
15392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15394 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15395 | if (PyErr_Occurred()) SWIG_fail; | |
15396 | { | |
15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15398 | (arg1)->SetLoggingOff(arg2); | |
15399 | ||
15400 | wxPyEndAllowThreads(__tstate); | |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
15402 | } | |
15403 | Py_INCREF(Py_None); resultobj = Py_None; | |
15404 | return resultobj; | |
15405 | fail: | |
15406 | return NULL; | |
15407 | } | |
15408 | ||
15409 | ||
15410 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15411 | PyObject *resultobj; | |
15412 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15413 | bool result; | |
15414 | PyObject * obj0 = 0 ; | |
15415 | char *kwnames[] = { | |
15416 | (char *) "self", NULL | |
15417 | }; | |
15418 | ||
15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15421 | { | |
15422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15423 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
15424 | ||
15425 | wxPyEndAllowThreads(__tstate); | |
15426 | if (PyErr_Occurred()) SWIG_fail; | |
15427 | } | |
15428 | resultobj = PyInt_FromLong((long)result); | |
15429 | return resultobj; | |
15430 | fail: | |
15431 | return NULL; | |
15432 | } | |
15433 | ||
15434 | ||
15435 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15436 | PyObject *resultobj; | |
15437 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 15438 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15439 | PyObject * obj0 = 0 ; |
15440 | PyObject * obj1 = 0 ; | |
15441 | char *kwnames[] = { | |
15442 | (char *) "self",(char *) "veto", NULL | |
15443 | }; | |
15444 | ||
15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15447 | if (obj1) { | |
15448 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | (arg1)->Veto(arg2); | |
15454 | ||
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | Py_INCREF(Py_None); resultobj = Py_None; | |
15459 | return resultobj; | |
15460 | fail: | |
15461 | return NULL; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15466 | PyObject *resultobj; | |
15467 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15468 | bool arg2 ; | |
15469 | PyObject * obj0 = 0 ; | |
15470 | PyObject * obj1 = 0 ; | |
15471 | char *kwnames[] = { | |
15472 | (char *) "self",(char *) "canVeto", NULL | |
15473 | }; | |
15474 | ||
15475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15477 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15478 | if (PyErr_Occurred()) SWIG_fail; | |
15479 | { | |
15480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15481 | (arg1)->SetCanVeto(arg2); | |
15482 | ||
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
15486 | Py_INCREF(Py_None); resultobj = Py_None; | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15494 | PyObject *resultobj; | |
15495 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15496 | bool result; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15504 | { | |
15505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15506 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
15507 | ||
15508 | wxPyEndAllowThreads(__tstate); | |
15509 | if (PyErr_Occurred()) SWIG_fail; | |
15510 | } | |
15511 | resultobj = PyInt_FromLong((long)result); | |
15512 | return resultobj; | |
15513 | fail: | |
15514 | return NULL; | |
15515 | } | |
15516 | ||
15517 | ||
15518 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15519 | PyObject *resultobj; | |
15520 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
15521 | bool result; | |
15522 | PyObject * obj0 = 0 ; | |
15523 | char *kwnames[] = { | |
15524 | (char *) "self", NULL | |
15525 | }; | |
15526 | ||
15527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15529 | { | |
15530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15531 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
15532 | ||
15533 | wxPyEndAllowThreads(__tstate); | |
15534 | if (PyErr_Occurred()) SWIG_fail; | |
15535 | } | |
15536 | resultobj = PyInt_FromLong((long)result); | |
15537 | return resultobj; | |
15538 | fail: | |
15539 | return NULL; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
15544 | PyObject *obj; | |
15545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15546 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
15547 | Py_INCREF(obj); | |
15548 | return Py_BuildValue((char *)""); | |
15549 | } | |
15550 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15551 | PyObject *resultobj; | |
15552 | int arg1 = (int) 0 ; | |
423f194a | 15553 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15554 | wxShowEvent *result; |
15555 | PyObject * obj1 = 0 ; | |
15556 | char *kwnames[] = { | |
15557 | (char *) "winid",(char *) "show", NULL | |
15558 | }; | |
15559 | ||
15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_ShowEvent",kwnames,&arg1,&obj1)) goto fail; | |
15561 | if (obj1) { | |
15562 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
15568 | ||
15569 | wxPyEndAllowThreads(__tstate); | |
15570 | if (PyErr_Occurred()) SWIG_fail; | |
15571 | } | |
15572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
15573 | return resultobj; | |
15574 | fail: | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
15579 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15580 | PyObject *resultobj; | |
15581 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15582 | bool arg2 ; | |
15583 | PyObject * obj0 = 0 ; | |
15584 | PyObject * obj1 = 0 ; | |
15585 | char *kwnames[] = { | |
15586 | (char *) "self",(char *) "show", NULL | |
15587 | }; | |
15588 | ||
15589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15591 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | { | |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15595 | (arg1)->SetShow(arg2); | |
15596 | ||
15597 | wxPyEndAllowThreads(__tstate); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | } | |
15600 | Py_INCREF(Py_None); resultobj = Py_None; | |
15601 | return resultobj; | |
15602 | fail: | |
15603 | return NULL; | |
15604 | } | |
15605 | ||
15606 | ||
15607 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15608 | PyObject *resultobj; | |
15609 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
15610 | bool result; | |
15611 | PyObject * obj0 = 0 ; | |
15612 | char *kwnames[] = { | |
15613 | (char *) "self", NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15618 | { | |
15619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15620 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
15621 | ||
15622 | wxPyEndAllowThreads(__tstate); | |
15623 | if (PyErr_Occurred()) SWIG_fail; | |
15624 | } | |
15625 | resultobj = PyInt_FromLong((long)result); | |
15626 | return resultobj; | |
15627 | fail: | |
15628 | return NULL; | |
15629 | } | |
15630 | ||
15631 | ||
15632 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
15633 | PyObject *obj; | |
15634 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15635 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
15636 | Py_INCREF(obj); | |
15637 | return Py_BuildValue((char *)""); | |
15638 | } | |
15639 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15640 | PyObject *resultobj; | |
15641 | int arg1 = (int) 0 ; | |
423f194a | 15642 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15643 | wxIconizeEvent *result; |
15644 | PyObject * obj1 = 0 ; | |
15645 | char *kwnames[] = { | |
15646 | (char *) "id",(char *) "iconized", NULL | |
15647 | }; | |
15648 | ||
15649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_IconizeEvent",kwnames,&arg1,&obj1)) goto fail; | |
15650 | if (obj1) { | |
15651 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
15654 | { | |
15655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15656 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
15657 | ||
15658 | wxPyEndAllowThreads(__tstate); | |
15659 | if (PyErr_Occurred()) SWIG_fail; | |
15660 | } | |
15661 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
15662 | return resultobj; | |
15663 | fail: | |
15664 | return NULL; | |
15665 | } | |
15666 | ||
15667 | ||
15668 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15669 | PyObject *resultobj; | |
15670 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
15671 | bool result; | |
15672 | PyObject * obj0 = 0 ; | |
15673 | char *kwnames[] = { | |
15674 | (char *) "self", NULL | |
15675 | }; | |
15676 | ||
15677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15679 | { | |
15680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15681 | result = (bool)(arg1)->Iconized(); | |
15682 | ||
15683 | wxPyEndAllowThreads(__tstate); | |
15684 | if (PyErr_Occurred()) SWIG_fail; | |
15685 | } | |
15686 | resultobj = PyInt_FromLong((long)result); | |
15687 | return resultobj; | |
15688 | fail: | |
15689 | return NULL; | |
15690 | } | |
15691 | ||
15692 | ||
15693 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15694 | PyObject *obj; | |
15695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15696 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
15697 | Py_INCREF(obj); | |
15698 | return Py_BuildValue((char *)""); | |
15699 | } | |
15700 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15701 | PyObject *resultobj; | |
15702 | int arg1 = (int) 0 ; | |
15703 | wxMaximizeEvent *result; | |
15704 | char *kwnames[] = { | |
15705 | (char *) "id", NULL | |
15706 | }; | |
15707 | ||
15708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_MaximizeEvent",kwnames,&arg1)) goto fail; | |
15709 | { | |
15710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15711 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
15712 | ||
15713 | wxPyEndAllowThreads(__tstate); | |
15714 | if (PyErr_Occurred()) SWIG_fail; | |
15715 | } | |
15716 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
15717 | return resultobj; | |
15718 | fail: | |
15719 | return NULL; | |
15720 | } | |
15721 | ||
15722 | ||
15723 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15724 | PyObject *obj; | |
15725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15726 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
15727 | Py_INCREF(obj); | |
15728 | return Py_BuildValue((char *)""); | |
15729 | } | |
15730 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15731 | PyObject *resultobj; | |
15732 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15733 | wxPoint result; | |
15734 | PyObject * obj0 = 0 ; | |
15735 | char *kwnames[] = { | |
15736 | (char *) "self", NULL | |
15737 | }; | |
15738 | ||
15739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15741 | { | |
15742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15743 | result = (arg1)->GetPosition(); | |
15744 | ||
15745 | wxPyEndAllowThreads(__tstate); | |
15746 | if (PyErr_Occurred()) SWIG_fail; | |
15747 | } | |
15748 | { | |
15749 | wxPoint * resultptr; | |
15750 | resultptr = new wxPoint((wxPoint &) result); | |
15751 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15752 | } | |
15753 | return resultobj; | |
15754 | fail: | |
15755 | return NULL; | |
15756 | } | |
15757 | ||
15758 | ||
15759 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15760 | PyObject *resultobj; | |
15761 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15762 | int result; | |
15763 | PyObject * obj0 = 0 ; | |
15764 | char *kwnames[] = { | |
15765 | (char *) "self", NULL | |
15766 | }; | |
15767 | ||
15768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15770 | { | |
15771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15772 | result = (int)(arg1)->GetNumberOfFiles(); | |
15773 | ||
15774 | wxPyEndAllowThreads(__tstate); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
15777 | resultobj = PyInt_FromLong((long)result); | |
15778 | return resultobj; | |
15779 | fail: | |
15780 | return NULL; | |
15781 | } | |
15782 | ||
15783 | ||
15784 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15785 | PyObject *resultobj; | |
15786 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
15787 | PyObject *result; | |
15788 | PyObject * obj0 = 0 ; | |
15789 | char *kwnames[] = { | |
15790 | (char *) "self", NULL | |
15791 | }; | |
15792 | ||
15793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15795 | { | |
15796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15797 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
15798 | ||
15799 | wxPyEndAllowThreads(__tstate); | |
15800 | if (PyErr_Occurred()) SWIG_fail; | |
15801 | } | |
15802 | resultobj = result; | |
15803 | return resultobj; | |
15804 | fail: | |
15805 | return NULL; | |
15806 | } | |
15807 | ||
15808 | ||
15809 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
15810 | PyObject *obj; | |
15811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15812 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
15813 | Py_INCREF(obj); | |
15814 | return Py_BuildValue((char *)""); | |
15815 | } | |
15816 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15817 | PyObject *resultobj; | |
423f194a | 15818 | int arg1 = (int) 0 ; |
d14a1e28 RD |
15819 | wxUpdateUIEvent *result; |
15820 | char *kwnames[] = { | |
15821 | (char *) "commandId", NULL | |
15822 | }; | |
15823 | ||
15824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_UpdateUIEvent",kwnames,&arg1)) goto fail; | |
15825 | { | |
15826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15827 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
15828 | ||
15829 | wxPyEndAllowThreads(__tstate); | |
15830 | if (PyErr_Occurred()) SWIG_fail; | |
15831 | } | |
15832 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
15833 | return resultobj; | |
15834 | fail: | |
15835 | return NULL; | |
15836 | } | |
15837 | ||
15838 | ||
15839 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15840 | PyObject *resultobj; | |
15841 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15842 | bool result; | |
15843 | PyObject * obj0 = 0 ; | |
15844 | char *kwnames[] = { | |
15845 | (char *) "self", NULL | |
15846 | }; | |
15847 | ||
15848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15850 | { | |
15851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15852 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
15853 | ||
15854 | wxPyEndAllowThreads(__tstate); | |
15855 | if (PyErr_Occurred()) SWIG_fail; | |
15856 | } | |
15857 | resultobj = PyInt_FromLong((long)result); | |
15858 | return resultobj; | |
15859 | fail: | |
15860 | return NULL; | |
15861 | } | |
15862 | ||
15863 | ||
15864 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15865 | PyObject *resultobj; | |
15866 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15867 | bool result; | |
15868 | PyObject * obj0 = 0 ; | |
15869 | char *kwnames[] = { | |
15870 | (char *) "self", NULL | |
15871 | }; | |
15872 | ||
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15875 | { | |
15876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15877 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
15878 | ||
15879 | wxPyEndAllowThreads(__tstate); | |
15880 | if (PyErr_Occurred()) SWIG_fail; | |
15881 | } | |
15882 | resultobj = PyInt_FromLong((long)result); | |
15883 | return resultobj; | |
15884 | fail: | |
15885 | return NULL; | |
15886 | } | |
15887 | ||
15888 | ||
15889 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15890 | PyObject *resultobj; | |
15891 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15892 | wxString result; | |
15893 | PyObject * obj0 = 0 ; | |
15894 | char *kwnames[] = { | |
15895 | (char *) "self", NULL | |
15896 | }; | |
15897 | ||
15898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15900 | { | |
15901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15902 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
15903 | ||
15904 | wxPyEndAllowThreads(__tstate); | |
15905 | if (PyErr_Occurred()) SWIG_fail; | |
15906 | } | |
15907 | { | |
15908 | #if wxUSE_UNICODE | |
15909 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15910 | #else | |
15911 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15912 | #endif | |
15913 | } | |
15914 | return resultobj; | |
15915 | fail: | |
15916 | return NULL; | |
15917 | } | |
15918 | ||
15919 | ||
15920 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15921 | PyObject *resultobj; | |
15922 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15923 | bool result; | |
15924 | PyObject * obj0 = 0 ; | |
15925 | char *kwnames[] = { | |
15926 | (char *) "self", NULL | |
15927 | }; | |
15928 | ||
15929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15931 | { | |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | resultobj = PyInt_FromLong((long)result); | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15948 | bool result; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15956 | { | |
15957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15958 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
15959 | ||
15960 | wxPyEndAllowThreads(__tstate); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
15963 | resultobj = PyInt_FromLong((long)result); | |
15964 | return resultobj; | |
15965 | fail: | |
15966 | return NULL; | |
15967 | } | |
15968 | ||
15969 | ||
15970 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15971 | PyObject *resultobj; | |
15972 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15973 | bool result; | |
15974 | PyObject * obj0 = 0 ; | |
15975 | char *kwnames[] = { | |
15976 | (char *) "self", NULL | |
15977 | }; | |
15978 | ||
15979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15981 | { | |
15982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15983 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
15984 | ||
15985 | wxPyEndAllowThreads(__tstate); | |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | resultobj = PyInt_FromLong((long)result); | |
15989 | return resultobj; | |
15990 | fail: | |
15991 | return NULL; | |
15992 | } | |
15993 | ||
15994 | ||
15995 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15996 | PyObject *resultobj; | |
15997 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
15998 | bool arg2 ; | |
15999 | PyObject * obj0 = 0 ; | |
16000 | PyObject * obj1 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "self",(char *) "check", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
16006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16007 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16008 | if (PyErr_Occurred()) SWIG_fail; | |
16009 | { | |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | (arg1)->Check(arg2); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
16016 | Py_INCREF(Py_None); resultobj = Py_None; | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj; | |
16025 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16026 | bool arg2 ; | |
16027 | PyObject * obj0 = 0 ; | |
16028 | PyObject * obj1 = 0 ; | |
16029 | char *kwnames[] = { | |
16030 | (char *) "self",(char *) "enable", NULL | |
16031 | }; | |
16032 | ||
16033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16035 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
16037 | { | |
16038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16039 | (arg1)->Enable(arg2); | |
16040 | ||
16041 | wxPyEndAllowThreads(__tstate); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
16043 | } | |
16044 | Py_INCREF(Py_None); resultobj = Py_None; | |
16045 | return resultobj; | |
16046 | fail: | |
16047 | return NULL; | |
16048 | } | |
16049 | ||
16050 | ||
16051 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16052 | PyObject *resultobj; | |
16053 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
16054 | wxString *arg2 = 0 ; | |
423f194a | 16055 | bool temp2 = False ; |
d14a1e28 RD |
16056 | PyObject * obj0 = 0 ; |
16057 | PyObject * obj1 = 0 ; | |
16058 | char *kwnames[] = { | |
16059 | (char *) "self",(char *) "text", NULL | |
16060 | }; | |
16061 | ||
16062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
16063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16064 | { | |
16065 | arg2 = wxString_in_helper(obj1); | |
16066 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16067 | temp2 = True; |
d14a1e28 RD |
16068 | } |
16069 | { | |
16070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16071 | (arg1)->SetText((wxString const &)*arg2); | |
16072 | ||
16073 | wxPyEndAllowThreads(__tstate); | |
16074 | if (PyErr_Occurred()) SWIG_fail; | |
16075 | } | |
16076 | Py_INCREF(Py_None); resultobj = Py_None; | |
16077 | { | |
16078 | if (temp2) | |
16079 | delete arg2; | |
16080 | } | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | { | |
16084 | if (temp2) | |
16085 | delete arg2; | |
16086 | } | |
16087 | return NULL; | |
16088 | } | |
16089 | ||
16090 | ||
16091 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16092 | PyObject *resultobj; | |
16093 | long arg1 ; | |
16094 | char *kwnames[] = { | |
16095 | (char *) "updateInterval", NULL | |
16096 | }; | |
16097 | ||
16098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:UpdateUIEvent_SetUpdateInterval",kwnames,&arg1)) goto fail; | |
16099 | { | |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | Py_INCREF(Py_None); resultobj = Py_None; | |
16107 | return resultobj; | |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
16113 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16114 | PyObject *resultobj; | |
16115 | long result; | |
16116 | char *kwnames[] = { | |
16117 | NULL | |
16118 | }; | |
16119 | ||
16120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
16121 | { | |
16122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16123 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
16124 | ||
16125 | wxPyEndAllowThreads(__tstate); | |
16126 | if (PyErr_Occurred()) SWIG_fail; | |
16127 | } | |
16128 | resultobj = PyInt_FromLong((long)result); | |
16129 | return resultobj; | |
16130 | fail: | |
16131 | return NULL; | |
16132 | } | |
16133 | ||
16134 | ||
16135 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16136 | PyObject *resultobj; | |
16137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16138 | bool result; | |
16139 | PyObject * obj0 = 0 ; | |
16140 | char *kwnames[] = { | |
16141 | (char *) "win", NULL | |
16142 | }; | |
16143 | ||
16144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
16145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16146 | { | |
16147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16148 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
16149 | ||
16150 | wxPyEndAllowThreads(__tstate); | |
16151 | if (PyErr_Occurred()) SWIG_fail; | |
16152 | } | |
16153 | resultobj = PyInt_FromLong((long)result); | |
16154 | return resultobj; | |
16155 | fail: | |
16156 | return NULL; | |
16157 | } | |
16158 | ||
16159 | ||
16160 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16161 | PyObject *resultobj; | |
16162 | char *kwnames[] = { | |
16163 | NULL | |
16164 | }; | |
16165 | ||
16166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
16167 | { | |
16168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16169 | wxUpdateUIEvent::ResetUpdateTime(); | |
16170 | ||
16171 | wxPyEndAllowThreads(__tstate); | |
16172 | if (PyErr_Occurred()) SWIG_fail; | |
16173 | } | |
16174 | Py_INCREF(Py_None); resultobj = Py_None; | |
16175 | return resultobj; | |
16176 | fail: | |
16177 | return NULL; | |
16178 | } | |
16179 | ||
16180 | ||
16181 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16182 | PyObject *resultobj; | |
16183 | int arg1 ; | |
16184 | char *kwnames[] = { | |
16185 | (char *) "mode", NULL | |
16186 | }; | |
16187 | ||
16188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:UpdateUIEvent_SetMode",kwnames,&arg1)) goto fail; | |
16189 | { | |
16190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16191 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
16192 | ||
16193 | wxPyEndAllowThreads(__tstate); | |
16194 | if (PyErr_Occurred()) SWIG_fail; | |
16195 | } | |
16196 | Py_INCREF(Py_None); resultobj = Py_None; | |
16197 | return resultobj; | |
16198 | fail: | |
16199 | return NULL; | |
16200 | } | |
16201 | ||
16202 | ||
16203 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16204 | PyObject *resultobj; | |
16205 | int result; | |
16206 | char *kwnames[] = { | |
16207 | NULL | |
16208 | }; | |
16209 | ||
16210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
16211 | { | |
16212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16213 | result = (int)wxUpdateUIEvent::GetMode(); | |
16214 | ||
16215 | wxPyEndAllowThreads(__tstate); | |
16216 | if (PyErr_Occurred()) SWIG_fail; | |
16217 | } | |
16218 | resultobj = PyInt_FromLong((long)result); | |
16219 | return resultobj; | |
16220 | fail: | |
16221 | return NULL; | |
16222 | } | |
16223 | ||
16224 | ||
16225 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
16226 | PyObject *obj; | |
16227 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16228 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
16229 | Py_INCREF(obj); | |
16230 | return Py_BuildValue((char *)""); | |
16231 | } | |
16232 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16233 | PyObject *resultobj; | |
16234 | wxSysColourChangedEvent *result; | |
16235 | char *kwnames[] = { | |
16236 | NULL | |
16237 | }; | |
16238 | ||
16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
16240 | { | |
16241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16242 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
16243 | ||
16244 | wxPyEndAllowThreads(__tstate); | |
16245 | if (PyErr_Occurred()) SWIG_fail; | |
16246 | } | |
16247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
16248 | return resultobj; | |
16249 | fail: | |
16250 | return NULL; | |
16251 | } | |
16252 | ||
16253 | ||
16254 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16255 | PyObject *obj; | |
16256 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16257 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
16258 | Py_INCREF(obj); | |
16259 | return Py_BuildValue((char *)""); | |
16260 | } | |
16261 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16262 | PyObject *resultobj; | |
423f194a | 16263 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16264 | wxWindow *arg2 = (wxWindow *) NULL ; |
16265 | wxMouseCaptureChangedEvent *result; | |
16266 | PyObject * obj1 = 0 ; | |
16267 | char *kwnames[] = { | |
16268 | (char *) "winid",(char *) "gainedCapture", NULL | |
16269 | }; | |
16270 | ||
16271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iO:new_MouseCaptureChangedEvent",kwnames,&arg1,&obj1)) goto fail; | |
16272 | if (obj1) { | |
16273 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16274 | } | |
16275 | { | |
16276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16277 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
16278 | ||
16279 | wxPyEndAllowThreads(__tstate); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | } | |
16282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
16283 | return resultobj; | |
16284 | fail: | |
16285 | return NULL; | |
16286 | } | |
16287 | ||
16288 | ||
16289 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16290 | PyObject *resultobj; | |
16291 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
16292 | wxWindow *result; | |
16293 | PyObject * obj0 = 0 ; | |
16294 | char *kwnames[] = { | |
16295 | (char *) "self", NULL | |
16296 | }; | |
16297 | ||
16298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
16299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16300 | { | |
16301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16302 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
16303 | ||
16304 | wxPyEndAllowThreads(__tstate); | |
16305 | if (PyErr_Occurred()) SWIG_fail; | |
16306 | } | |
16307 | { | |
16308 | resultobj = wxPyMake_wxObject(result); | |
16309 | } | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | return NULL; | |
16313 | } | |
16314 | ||
16315 | ||
16316 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16317 | PyObject *obj; | |
16318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16319 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
16320 | Py_INCREF(obj); | |
16321 | return Py_BuildValue((char *)""); | |
16322 | } | |
16323 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16324 | PyObject *resultobj; | |
16325 | wxDisplayChangedEvent *result; | |
16326 | char *kwnames[] = { | |
16327 | NULL | |
16328 | }; | |
16329 | ||
16330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
16331 | { | |
16332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16333 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
16334 | ||
16335 | wxPyEndAllowThreads(__tstate); | |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
16337 | } | |
16338 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
16339 | return resultobj; | |
16340 | fail: | |
16341 | return NULL; | |
16342 | } | |
16343 | ||
16344 | ||
16345 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16346 | PyObject *obj; | |
16347 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16348 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
16349 | Py_INCREF(obj); | |
16350 | return Py_BuildValue((char *)""); | |
16351 | } | |
16352 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16353 | PyObject *resultobj; | |
423f194a | 16354 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16355 | wxPaletteChangedEvent *result; |
16356 | char *kwnames[] = { | |
16357 | (char *) "id", NULL | |
16358 | }; | |
16359 | ||
16360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_PaletteChangedEvent",kwnames,&arg1)) goto fail; | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
16375 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16376 | PyObject *resultobj; | |
16377 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16378 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16379 | PyObject * obj0 = 0 ; | |
16380 | PyObject * obj1 = 0 ; | |
16381 | char *kwnames[] = { | |
16382 | (char *) "self",(char *) "win", NULL | |
16383 | }; | |
16384 | ||
16385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
16386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16387 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16388 | { | |
16389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16390 | (arg1)->SetChangedWindow(arg2); | |
16391 | ||
16392 | wxPyEndAllowThreads(__tstate); | |
16393 | if (PyErr_Occurred()) SWIG_fail; | |
16394 | } | |
16395 | Py_INCREF(Py_None); resultobj = Py_None; | |
16396 | return resultobj; | |
16397 | fail: | |
16398 | return NULL; | |
16399 | } | |
16400 | ||
16401 | ||
16402 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16403 | PyObject *resultobj; | |
16404 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
16405 | wxWindow *result; | |
16406 | PyObject * obj0 = 0 ; | |
16407 | char *kwnames[] = { | |
16408 | (char *) "self", NULL | |
16409 | }; | |
16410 | ||
16411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
16412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16413 | { | |
16414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16415 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
16416 | ||
16417 | wxPyEndAllowThreads(__tstate); | |
16418 | if (PyErr_Occurred()) SWIG_fail; | |
16419 | } | |
16420 | { | |
16421 | resultobj = wxPyMake_wxObject(result); | |
16422 | } | |
16423 | return resultobj; | |
16424 | fail: | |
16425 | return NULL; | |
16426 | } | |
16427 | ||
16428 | ||
16429 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
16430 | PyObject *obj; | |
16431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16432 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
16433 | Py_INCREF(obj); | |
16434 | return Py_BuildValue((char *)""); | |
16435 | } | |
16436 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16437 | PyObject *resultobj; | |
423f194a | 16438 | int arg1 = (int) 0 ; |
d14a1e28 RD |
16439 | wxQueryNewPaletteEvent *result; |
16440 | char *kwnames[] = { | |
16441 | (char *) "winid", NULL | |
16442 | }; | |
16443 | ||
16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_QueryNewPaletteEvent",kwnames,&arg1)) goto fail; | |
16445 | { | |
16446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16447 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
16448 | ||
16449 | wxPyEndAllowThreads(__tstate); | |
16450 | if (PyErr_Occurred()) SWIG_fail; | |
16451 | } | |
16452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
16453 | return resultobj; | |
16454 | fail: | |
16455 | return NULL; | |
16456 | } | |
16457 | ||
16458 | ||
16459 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16460 | PyObject *resultobj; | |
16461 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16462 | bool arg2 ; | |
16463 | PyObject * obj0 = 0 ; | |
16464 | PyObject * obj1 = 0 ; | |
16465 | char *kwnames[] = { | |
16466 | (char *) "self",(char *) "realized", NULL | |
16467 | }; | |
16468 | ||
16469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
16470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16471 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16472 | if (PyErr_Occurred()) SWIG_fail; | |
16473 | { | |
16474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16475 | (arg1)->SetPaletteRealized(arg2); | |
16476 | ||
16477 | wxPyEndAllowThreads(__tstate); | |
16478 | if (PyErr_Occurred()) SWIG_fail; | |
16479 | } | |
16480 | Py_INCREF(Py_None); resultobj = Py_None; | |
16481 | return resultobj; | |
16482 | fail: | |
16483 | return NULL; | |
16484 | } | |
16485 | ||
16486 | ||
16487 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16488 | PyObject *resultobj; | |
16489 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
16490 | bool result; | |
16491 | PyObject * obj0 = 0 ; | |
16492 | char *kwnames[] = { | |
16493 | (char *) "self", NULL | |
16494 | }; | |
16495 | ||
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
16497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16498 | { | |
16499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16500 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
16501 | ||
16502 | wxPyEndAllowThreads(__tstate); | |
16503 | if (PyErr_Occurred()) SWIG_fail; | |
16504 | } | |
16505 | resultobj = PyInt_FromLong((long)result); | |
16506 | return resultobj; | |
16507 | fail: | |
16508 | return NULL; | |
16509 | } | |
16510 | ||
16511 | ||
16512 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
16513 | PyObject *obj; | |
16514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16515 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
16516 | Py_INCREF(obj); | |
16517 | return Py_BuildValue((char *)""); | |
16518 | } | |
16519 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16520 | PyObject *resultobj; | |
16521 | wxNavigationKeyEvent *result; | |
16522 | char *kwnames[] = { | |
16523 | NULL | |
16524 | }; | |
16525 | ||
16526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
16527 | { | |
16528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16529 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
16530 | ||
16531 | wxPyEndAllowThreads(__tstate); | |
16532 | if (PyErr_Occurred()) SWIG_fail; | |
16533 | } | |
16534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
16535 | return resultobj; | |
16536 | fail: | |
16537 | return NULL; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16542 | PyObject *resultobj; | |
16543 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16544 | bool result; | |
16545 | PyObject * obj0 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
16551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16552 | { | |
16553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16554 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
16555 | ||
16556 | wxPyEndAllowThreads(__tstate); | |
16557 | if (PyErr_Occurred()) SWIG_fail; | |
16558 | } | |
16559 | resultobj = PyInt_FromLong((long)result); | |
16560 | return resultobj; | |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
16566 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16567 | PyObject *resultobj; | |
16568 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16569 | bool arg2 ; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self",(char *) "bForward", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
16577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16578 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16579 | if (PyErr_Occurred()) SWIG_fail; | |
16580 | { | |
16581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16582 | (arg1)->SetDirection(arg2); | |
16583 | ||
16584 | wxPyEndAllowThreads(__tstate); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | } | |
16587 | Py_INCREF(Py_None); resultobj = Py_None; | |
16588 | return resultobj; | |
16589 | fail: | |
16590 | return NULL; | |
16591 | } | |
16592 | ||
16593 | ||
16594 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16595 | PyObject *resultobj; | |
16596 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16597 | bool result; | |
16598 | PyObject * obj0 = 0 ; | |
16599 | char *kwnames[] = { | |
16600 | (char *) "self", NULL | |
16601 | }; | |
16602 | ||
16603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
16604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16605 | { | |
16606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16607 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
16608 | ||
16609 | wxPyEndAllowThreads(__tstate); | |
16610 | if (PyErr_Occurred()) SWIG_fail; | |
16611 | } | |
16612 | resultobj = PyInt_FromLong((long)result); | |
16613 | return resultobj; | |
16614 | fail: | |
16615 | return NULL; | |
16616 | } | |
16617 | ||
16618 | ||
16619 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16620 | PyObject *resultobj; | |
16621 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16622 | bool arg2 ; | |
16623 | PyObject * obj0 = 0 ; | |
16624 | PyObject * obj1 = 0 ; | |
16625 | char *kwnames[] = { | |
16626 | (char *) "self",(char *) "bIs", NULL | |
16627 | }; | |
16628 | ||
16629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
16630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16631 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16632 | if (PyErr_Occurred()) SWIG_fail; | |
16633 | { | |
16634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16635 | (arg1)->SetWindowChange(arg2); | |
16636 | ||
16637 | wxPyEndAllowThreads(__tstate); | |
16638 | if (PyErr_Occurred()) SWIG_fail; | |
16639 | } | |
16640 | Py_INCREF(Py_None); resultobj = Py_None; | |
16641 | return resultobj; | |
16642 | fail: | |
16643 | return NULL; | |
16644 | } | |
16645 | ||
16646 | ||
16647 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16648 | PyObject *resultobj; | |
16649 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16650 | wxWindow *result; | |
16651 | PyObject * obj0 = 0 ; | |
16652 | char *kwnames[] = { | |
16653 | (char *) "self", NULL | |
16654 | }; | |
16655 | ||
16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
16657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16658 | { | |
16659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16660 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
16661 | ||
16662 | wxPyEndAllowThreads(__tstate); | |
16663 | if (PyErr_Occurred()) SWIG_fail; | |
16664 | } | |
16665 | { | |
16666 | resultobj = wxPyMake_wxObject(result); | |
16667 | } | |
16668 | return resultobj; | |
16669 | fail: | |
16670 | return NULL; | |
16671 | } | |
16672 | ||
16673 | ||
16674 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16675 | PyObject *resultobj; | |
16676 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
16677 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16678 | PyObject * obj0 = 0 ; | |
16679 | PyObject * obj1 = 0 ; | |
16680 | char *kwnames[] = { | |
16681 | (char *) "self",(char *) "win", NULL | |
16682 | }; | |
16683 | ||
16684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
16685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16686 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16687 | { | |
16688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16689 | (arg1)->SetCurrentFocus(arg2); | |
16690 | ||
16691 | wxPyEndAllowThreads(__tstate); | |
16692 | if (PyErr_Occurred()) SWIG_fail; | |
16693 | } | |
16694 | Py_INCREF(Py_None); resultobj = Py_None; | |
16695 | return resultobj; | |
16696 | fail: | |
16697 | return NULL; | |
16698 | } | |
16699 | ||
16700 | ||
16701 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16702 | PyObject *obj; | |
16703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16704 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
16705 | Py_INCREF(obj); | |
16706 | return Py_BuildValue((char *)""); | |
16707 | } | |
16708 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16709 | PyObject *resultobj; | |
16710 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16711 | wxWindowCreateEvent *result; | |
16712 | PyObject * obj0 = 0 ; | |
16713 | char *kwnames[] = { | |
16714 | (char *) "win", NULL | |
16715 | }; | |
16716 | ||
16717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
16718 | if (obj0) { | |
16719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16720 | } | |
16721 | { | |
16722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16723 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
16724 | ||
16725 | wxPyEndAllowThreads(__tstate); | |
16726 | if (PyErr_Occurred()) SWIG_fail; | |
16727 | } | |
16728 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
16729 | return resultobj; | |
16730 | fail: | |
16731 | return NULL; | |
16732 | } | |
16733 | ||
16734 | ||
16735 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16736 | PyObject *resultobj; | |
16737 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
16738 | wxWindow *result; | |
16739 | PyObject * obj0 = 0 ; | |
16740 | char *kwnames[] = { | |
16741 | (char *) "self", NULL | |
16742 | }; | |
16743 | ||
16744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16746 | { | |
16747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16748 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
16749 | ||
16750 | wxPyEndAllowThreads(__tstate); | |
16751 | if (PyErr_Occurred()) SWIG_fail; | |
16752 | } | |
16753 | { | |
16754 | resultobj = wxPyMake_wxObject(result); | |
16755 | } | |
16756 | return resultobj; | |
16757 | fail: | |
16758 | return NULL; | |
16759 | } | |
16760 | ||
16761 | ||
16762 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
16763 | PyObject *obj; | |
16764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16765 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
16766 | Py_INCREF(obj); | |
16767 | return Py_BuildValue((char *)""); | |
16768 | } | |
16769 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16770 | PyObject *resultobj; | |
16771 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16772 | wxWindowDestroyEvent *result; | |
16773 | PyObject * obj0 = 0 ; | |
16774 | char *kwnames[] = { | |
16775 | (char *) "win", NULL | |
16776 | }; | |
16777 | ||
16778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
16779 | if (obj0) { | |
16780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16781 | } | |
16782 | { | |
16783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16784 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
16785 | ||
16786 | wxPyEndAllowThreads(__tstate); | |
16787 | if (PyErr_Occurred()) SWIG_fail; | |
16788 | } | |
16789 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
16790 | return resultobj; | |
16791 | fail: | |
16792 | return NULL; | |
16793 | } | |
16794 | ||
16795 | ||
16796 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16797 | PyObject *resultobj; | |
16798 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
16799 | wxWindow *result; | |
16800 | PyObject * obj0 = 0 ; | |
16801 | char *kwnames[] = { | |
16802 | (char *) "self", NULL | |
16803 | }; | |
16804 | ||
16805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16807 | { | |
16808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16809 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
16810 | ||
16811 | wxPyEndAllowThreads(__tstate); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | { | |
16815 | resultobj = wxPyMake_wxObject(result); | |
16816 | } | |
16817 | return resultobj; | |
16818 | fail: | |
16819 | return NULL; | |
16820 | } | |
16821 | ||
16822 | ||
16823 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
16824 | PyObject *obj; | |
16825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16826 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
16827 | Py_INCREF(obj); | |
16828 | return Py_BuildValue((char *)""); | |
16829 | } | |
16830 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16831 | PyObject *resultobj; | |
16832 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16833 | int arg2 = (int) 0 ; |
d14a1e28 RD |
16834 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16835 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16836 | wxContextMenuEvent *result; | |
16837 | wxPoint temp3 ; | |
16838 | PyObject * obj2 = 0 ; | |
16839 | char *kwnames[] = { | |
16840 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
16841 | }; | |
16842 | ||
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_ContextMenuEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
16844 | if (obj2) { | |
16845 | { | |
16846 | arg3 = &temp3; | |
16847 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16848 | } | |
16849 | } | |
16850 | { | |
16851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16852 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
16853 | ||
16854 | wxPyEndAllowThreads(__tstate); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
16857 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
16858 | return resultobj; | |
16859 | fail: | |
16860 | return NULL; | |
16861 | } | |
16862 | ||
16863 | ||
16864 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16865 | PyObject *resultobj; | |
16866 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
16867 | wxPoint *result; | |
16868 | PyObject * obj0 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16875 | { | |
16876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16877 | { | |
16878 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
16879 | result = (wxPoint *) &_result_ref; | |
16880 | } | |
16881 | ||
16882 | wxPyEndAllowThreads(__tstate); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
16885 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16886 | return resultobj; | |
16887 | fail: | |
16888 | return NULL; | |
16889 | } | |
16890 | ||
16891 | ||
16892 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16893 | PyObject *resultobj; | |
16894 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
16895 | wxPoint *arg2 = 0 ; | |
16896 | wxPoint temp2 ; | |
16897 | PyObject * obj0 = 0 ; | |
16898 | PyObject * obj1 = 0 ; | |
16899 | char *kwnames[] = { | |
16900 | (char *) "self",(char *) "pos", NULL | |
16901 | }; | |
16902 | ||
16903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16905 | { | |
16906 | arg2 = &temp2; | |
16907 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
16908 | } | |
16909 | { | |
16910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16911 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
16912 | ||
16913 | wxPyEndAllowThreads(__tstate); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
16916 | Py_INCREF(Py_None); resultobj = Py_None; | |
16917 | return resultobj; | |
16918 | fail: | |
16919 | return NULL; | |
16920 | } | |
16921 | ||
16922 | ||
16923 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16924 | PyObject *obj; | |
16925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16926 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
16927 | Py_INCREF(obj); | |
16928 | return Py_BuildValue((char *)""); | |
16929 | } | |
16930 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16931 | PyObject *resultobj; | |
16932 | wxIdleEvent *result; | |
16933 | char *kwnames[] = { | |
16934 | NULL | |
16935 | }; | |
16936 | ||
16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
16938 | { | |
16939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16940 | result = (wxIdleEvent *)new wxIdleEvent(); | |
16941 | ||
16942 | wxPyEndAllowThreads(__tstate); | |
16943 | if (PyErr_Occurred()) SWIG_fail; | |
16944 | } | |
16945 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
16946 | return resultobj; | |
16947 | fail: | |
16948 | return NULL; | |
16949 | } | |
16950 | ||
16951 | ||
16952 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16953 | PyObject *resultobj; | |
16954 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 16955 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16956 | PyObject * obj0 = 0 ; |
16957 | PyObject * obj1 = 0 ; | |
16958 | char *kwnames[] = { | |
16959 | (char *) "self",(char *) "needMore", NULL | |
16960 | }; | |
16961 | ||
16962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
16963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16964 | if (obj1) { | |
16965 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
16967 | } | |
16968 | { | |
16969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16970 | (arg1)->RequestMore(arg2); | |
16971 | ||
16972 | wxPyEndAllowThreads(__tstate); | |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
16974 | } | |
16975 | Py_INCREF(Py_None); resultobj = Py_None; | |
16976 | return resultobj; | |
16977 | fail: | |
16978 | return NULL; | |
16979 | } | |
16980 | ||
16981 | ||
16982 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16983 | PyObject *resultobj; | |
16984 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
16985 | bool result; | |
16986 | PyObject * obj0 = 0 ; | |
16987 | char *kwnames[] = { | |
16988 | (char *) "self", NULL | |
16989 | }; | |
16990 | ||
16991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
16992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16993 | { | |
16994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16995 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
16996 | ||
16997 | wxPyEndAllowThreads(__tstate); | |
16998 | if (PyErr_Occurred()) SWIG_fail; | |
16999 | } | |
17000 | resultobj = PyInt_FromLong((long)result); | |
17001 | return resultobj; | |
17002 | fail: | |
17003 | return NULL; | |
17004 | } | |
17005 | ||
17006 | ||
17007 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17008 | PyObject *resultobj; | |
17009 | int arg1 ; | |
17010 | char *kwnames[] = { | |
17011 | (char *) "mode", NULL | |
17012 | }; | |
17013 | ||
17014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IdleEvent_SetMode",kwnames,&arg1)) goto fail; | |
17015 | { | |
17016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17017 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
17018 | ||
17019 | wxPyEndAllowThreads(__tstate); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
17021 | } | |
17022 | Py_INCREF(Py_None); resultobj = Py_None; | |
17023 | return resultobj; | |
17024 | fail: | |
17025 | return NULL; | |
17026 | } | |
17027 | ||
17028 | ||
17029 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17030 | PyObject *resultobj; | |
17031 | int result; | |
17032 | char *kwnames[] = { | |
17033 | NULL | |
17034 | }; | |
17035 | ||
17036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
17037 | { | |
17038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17039 | result = (int)wxIdleEvent::GetMode(); | |
17040 | ||
17041 | wxPyEndAllowThreads(__tstate); | |
17042 | if (PyErr_Occurred()) SWIG_fail; | |
17043 | } | |
17044 | resultobj = PyInt_FromLong((long)result); | |
17045 | return resultobj; | |
17046 | fail: | |
17047 | return NULL; | |
17048 | } | |
17049 | ||
17050 | ||
17051 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17052 | PyObject *resultobj; | |
17053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17054 | bool result; | |
17055 | PyObject * obj0 = 0 ; | |
17056 | char *kwnames[] = { | |
17057 | (char *) "win", NULL | |
17058 | }; | |
17059 | ||
17060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
17061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17062 | { | |
17063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17064 | result = (bool)wxIdleEvent::CanSend(arg1); | |
17065 | ||
17066 | wxPyEndAllowThreads(__tstate); | |
17067 | if (PyErr_Occurred()) SWIG_fail; | |
17068 | } | |
17069 | resultobj = PyInt_FromLong((long)result); | |
17070 | return resultobj; | |
17071 | fail: | |
17072 | return NULL; | |
17073 | } | |
17074 | ||
17075 | ||
17076 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
17077 | PyObject *obj; | |
17078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17079 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
17080 | Py_INCREF(obj); | |
17081 | return Py_BuildValue((char *)""); | |
17082 | } | |
17083 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17084 | PyObject *resultobj; | |
17085 | int arg1 = (int) 0 ; | |
17086 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
17087 | wxPyEvent *result; | |
17088 | char *kwnames[] = { | |
17089 | (char *) "winid",(char *) "commandType", NULL | |
17090 | }; | |
17091 | ||
17092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyEvent",kwnames,&arg1,&arg2)) goto fail; | |
17093 | { | |
17094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17095 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
17096 | ||
17097 | wxPyEndAllowThreads(__tstate); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
17101 | return resultobj; | |
17102 | fail: | |
17103 | return NULL; | |
17104 | } | |
17105 | ||
17106 | ||
17107 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17108 | PyObject *resultobj; | |
17109 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17110 | PyObject * obj0 = 0 ; | |
17111 | char *kwnames[] = { | |
17112 | (char *) "self", NULL | |
17113 | }; | |
17114 | ||
17115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
17116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17117 | { | |
17118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17119 | delete arg1; | |
17120 | ||
17121 | wxPyEndAllowThreads(__tstate); | |
17122 | if (PyErr_Occurred()) SWIG_fail; | |
17123 | } | |
17124 | Py_INCREF(Py_None); resultobj = Py_None; | |
17125 | return resultobj; | |
17126 | fail: | |
17127 | return NULL; | |
17128 | } | |
17129 | ||
17130 | ||
17131 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17132 | PyObject *resultobj; | |
17133 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17134 | PyObject *arg2 = (PyObject *) 0 ; | |
17135 | PyObject * obj0 = 0 ; | |
17136 | PyObject * obj1 = 0 ; | |
17137 | char *kwnames[] = { | |
17138 | (char *) "self",(char *) "self", NULL | |
17139 | }; | |
17140 | ||
17141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17143 | arg2 = obj1; | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | (arg1)->SetSelf(arg2); | |
17147 | ||
17148 | wxPyEndAllowThreads(__tstate); | |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
17150 | } | |
17151 | Py_INCREF(Py_None); resultobj = Py_None; | |
17152 | return resultobj; | |
17153 | fail: | |
17154 | return NULL; | |
17155 | } | |
17156 | ||
17157 | ||
17158 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17159 | PyObject *resultobj; | |
17160 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
17161 | PyObject *result; | |
17162 | PyObject * obj0 = 0 ; | |
17163 | char *kwnames[] = { | |
17164 | (char *) "self", NULL | |
17165 | }; | |
17166 | ||
17167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = (PyObject *)(arg1)->GetSelf(); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | resultobj = result; | |
17177 | return resultobj; | |
17178 | fail: | |
17179 | return NULL; | |
17180 | } | |
17181 | ||
17182 | ||
17183 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
17184 | PyObject *obj; | |
17185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17186 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
17187 | Py_INCREF(obj); | |
17188 | return Py_BuildValue((char *)""); | |
17189 | } | |
17190 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17191 | PyObject *resultobj; | |
17192 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17193 | int arg2 = (int) 0 ; | |
17194 | wxPyCommandEvent *result; | |
17195 | char *kwnames[] = { | |
17196 | (char *) "commandType",(char *) "id", NULL | |
17197 | }; | |
17198 | ||
17199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_PyCommandEvent",kwnames,&arg1,&arg2)) goto fail; | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
17208 | return resultobj; | |
17209 | fail: | |
17210 | return NULL; | |
17211 | } | |
17212 | ||
17213 | ||
17214 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17215 | PyObject *resultobj; | |
17216 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17217 | PyObject * obj0 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
17223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17224 | { | |
17225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17226 | delete arg1; | |
17227 | ||
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | Py_INCREF(Py_None); resultobj = Py_None; | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
17238 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17239 | PyObject *resultobj; | |
17240 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17241 | PyObject *arg2 = (PyObject *) 0 ; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | PyObject * obj1 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "self",(char *) "self", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
17249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17250 | arg2 = obj1; | |
17251 | { | |
17252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17253 | (arg1)->SetSelf(arg2); | |
17254 | ||
17255 | wxPyEndAllowThreads(__tstate); | |
17256 | if (PyErr_Occurred()) SWIG_fail; | |
17257 | } | |
17258 | Py_INCREF(Py_None); resultobj = Py_None; | |
17259 | return resultobj; | |
17260 | fail: | |
17261 | return NULL; | |
17262 | } | |
17263 | ||
17264 | ||
17265 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17266 | PyObject *resultobj; | |
17267 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
17268 | PyObject *result; | |
17269 | PyObject * obj0 = 0 ; | |
17270 | char *kwnames[] = { | |
17271 | (char *) "self", NULL | |
17272 | }; | |
17273 | ||
17274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
17275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17276 | { | |
17277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17278 | result = (PyObject *)(arg1)->GetSelf(); | |
17279 | ||
17280 | wxPyEndAllowThreads(__tstate); | |
17281 | if (PyErr_Occurred()) SWIG_fail; | |
17282 | } | |
17283 | resultobj = result; | |
17284 | return resultobj; | |
17285 | fail: | |
17286 | return NULL; | |
17287 | } | |
17288 | ||
17289 | ||
17290 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
17291 | PyObject *obj; | |
17292 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17293 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
17294 | Py_INCREF(obj); | |
17295 | return Py_BuildValue((char *)""); | |
17296 | } | |
17297 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17298 | PyObject *resultobj; | |
17299 | wxPyApp *result; | |
17300 | char *kwnames[] = { | |
17301 | NULL | |
17302 | }; | |
17303 | ||
17304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
17305 | { | |
17306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17307 | result = (wxPyApp *)new_wxPyApp(); | |
17308 | ||
17309 | wxPyEndAllowThreads(__tstate); | |
17310 | if (PyErr_Occurred()) SWIG_fail; | |
17311 | } | |
17312 | { | |
17313 | resultobj = wxPyMake_wxObject(result); | |
17314 | } | |
17315 | return resultobj; | |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
17321 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17322 | PyObject *resultobj; | |
17323 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17324 | PyObject * obj0 = 0 ; | |
17325 | char *kwnames[] = { | |
17326 | (char *) "self", NULL | |
17327 | }; | |
17328 | ||
17329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
17330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17331 | { | |
17332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17333 | delete arg1; | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
17338 | Py_INCREF(Py_None); resultobj = Py_None; | |
17339 | return resultobj; | |
17340 | fail: | |
17341 | return NULL; | |
17342 | } | |
17343 | ||
17344 | ||
17345 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17346 | PyObject *resultobj; | |
17347 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17348 | PyObject *arg2 = (PyObject *) 0 ; | |
17349 | PyObject *arg3 = (PyObject *) 0 ; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | PyObject * obj1 = 0 ; | |
17352 | PyObject * obj2 = 0 ; | |
17353 | char *kwnames[] = { | |
17354 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17355 | }; | |
17356 | ||
17357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17359 | arg2 = obj1; | |
17360 | arg3 = obj2; | |
17361 | { | |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17364 | ||
17365 | wxPyEndAllowThreads(__tstate); | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
17368 | Py_INCREF(Py_None); resultobj = Py_None; | |
17369 | return resultobj; | |
17370 | fail: | |
17371 | return NULL; | |
17372 | } | |
17373 | ||
17374 | ||
17375 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17376 | PyObject *resultobj; | |
17377 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17378 | wxString result; | |
17379 | PyObject * obj0 = 0 ; | |
17380 | char *kwnames[] = { | |
17381 | (char *) "self", NULL | |
17382 | }; | |
17383 | ||
17384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
17385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17386 | { | |
17387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17388 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
17389 | ||
17390 | wxPyEndAllowThreads(__tstate); | |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
17392 | } | |
17393 | { | |
17394 | #if wxUSE_UNICODE | |
17395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17396 | #else | |
17397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17398 | #endif | |
17399 | } | |
17400 | return resultobj; | |
17401 | fail: | |
17402 | return NULL; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17407 | PyObject *resultobj; | |
17408 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17409 | wxString *arg2 = 0 ; | |
423f194a | 17410 | bool temp2 = False ; |
d14a1e28 RD |
17411 | PyObject * obj0 = 0 ; |
17412 | PyObject * obj1 = 0 ; | |
17413 | char *kwnames[] = { | |
17414 | (char *) "self",(char *) "name", NULL | |
17415 | }; | |
17416 | ||
17417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
17418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17419 | { | |
17420 | arg2 = wxString_in_helper(obj1); | |
17421 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17422 | temp2 = True; |
d14a1e28 RD |
17423 | } |
17424 | { | |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17426 | (arg1)->SetAppName((wxString const &)*arg2); | |
17427 | ||
17428 | wxPyEndAllowThreads(__tstate); | |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
17430 | } | |
17431 | Py_INCREF(Py_None); resultobj = Py_None; | |
17432 | { | |
17433 | if (temp2) | |
17434 | delete arg2; | |
17435 | } | |
17436 | return resultobj; | |
17437 | fail: | |
17438 | { | |
17439 | if (temp2) | |
17440 | delete arg2; | |
17441 | } | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17447 | PyObject *resultobj; | |
17448 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17449 | wxString result; | |
17450 | PyObject * obj0 = 0 ; | |
17451 | char *kwnames[] = { | |
17452 | (char *) "self", NULL | |
17453 | }; | |
17454 | ||
17455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
17456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17457 | { | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | { | |
17465 | #if wxUSE_UNICODE | |
17466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17467 | #else | |
17468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17469 | #endif | |
17470 | } | |
17471 | return resultobj; | |
17472 | fail: | |
17473 | return NULL; | |
17474 | } | |
17475 | ||
17476 | ||
17477 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17478 | PyObject *resultobj; | |
17479 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17480 | wxString *arg2 = 0 ; | |
423f194a | 17481 | bool temp2 = False ; |
d14a1e28 RD |
17482 | PyObject * obj0 = 0 ; |
17483 | PyObject * obj1 = 0 ; | |
17484 | char *kwnames[] = { | |
17485 | (char *) "self",(char *) "name", NULL | |
17486 | }; | |
17487 | ||
17488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
17489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17490 | { | |
17491 | arg2 = wxString_in_helper(obj1); | |
17492 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17493 | temp2 = True; |
d14a1e28 RD |
17494 | } |
17495 | { | |
17496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17497 | (arg1)->SetClassName((wxString const &)*arg2); | |
17498 | ||
17499 | wxPyEndAllowThreads(__tstate); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | } | |
17502 | Py_INCREF(Py_None); resultobj = Py_None; | |
17503 | { | |
17504 | if (temp2) | |
17505 | delete arg2; | |
17506 | } | |
17507 | return resultobj; | |
17508 | fail: | |
17509 | { | |
17510 | if (temp2) | |
17511 | delete arg2; | |
17512 | } | |
17513 | return NULL; | |
17514 | } | |
17515 | ||
17516 | ||
17517 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17518 | PyObject *resultobj; | |
17519 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17520 | wxString *result; | |
17521 | PyObject * obj0 = 0 ; | |
17522 | char *kwnames[] = { | |
17523 | (char *) "self", NULL | |
17524 | }; | |
17525 | ||
17526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
17527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17528 | { | |
17529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17530 | { | |
17531 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
17532 | result = (wxString *) &_result_ref; | |
17533 | } | |
17534 | ||
17535 | wxPyEndAllowThreads(__tstate); | |
17536 | if (PyErr_Occurred()) SWIG_fail; | |
17537 | } | |
0f774bef RD |
17538 | { |
17539 | #if wxUSE_UNICODE | |
17540 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17541 | #else | |
17542 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17543 | #endif | |
17544 | } | |
d14a1e28 RD |
17545 | return resultobj; |
17546 | fail: | |
17547 | return NULL; | |
17548 | } | |
17549 | ||
17550 | ||
17551 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17552 | PyObject *resultobj; | |
17553 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17554 | wxString *arg2 = 0 ; | |
423f194a | 17555 | bool temp2 = False ; |
d14a1e28 RD |
17556 | PyObject * obj0 = 0 ; |
17557 | PyObject * obj1 = 0 ; | |
17558 | char *kwnames[] = { | |
17559 | (char *) "self",(char *) "name", NULL | |
17560 | }; | |
17561 | ||
17562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
17563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17564 | { | |
17565 | arg2 = wxString_in_helper(obj1); | |
17566 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17567 | temp2 = True; |
d14a1e28 RD |
17568 | } |
17569 | { | |
17570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17571 | (arg1)->SetVendorName((wxString const &)*arg2); | |
17572 | ||
17573 | wxPyEndAllowThreads(__tstate); | |
17574 | if (PyErr_Occurred()) SWIG_fail; | |
17575 | } | |
17576 | Py_INCREF(Py_None); resultobj = Py_None; | |
17577 | { | |
17578 | if (temp2) | |
17579 | delete arg2; | |
17580 | } | |
17581 | return resultobj; | |
17582 | fail: | |
17583 | { | |
17584 | if (temp2) | |
17585 | delete arg2; | |
17586 | } | |
17587 | return NULL; | |
17588 | } | |
17589 | ||
17590 | ||
17591 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17592 | PyObject *resultobj; | |
17593 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17594 | wxAppTraits *result; | |
17595 | PyObject * obj0 = 0 ; | |
17596 | char *kwnames[] = { | |
17597 | (char *) "self", NULL | |
17598 | }; | |
17599 | ||
17600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
17601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17602 | { | |
17603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17604 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
17605 | ||
17606 | wxPyEndAllowThreads(__tstate); | |
17607 | if (PyErr_Occurred()) SWIG_fail; | |
17608 | } | |
17609 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
17610 | return resultobj; | |
17611 | fail: | |
17612 | return NULL; | |
17613 | } | |
17614 | ||
17615 | ||
17616 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17617 | PyObject *resultobj; | |
17618 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17619 | PyObject * obj0 = 0 ; | |
17620 | char *kwnames[] = { | |
17621 | (char *) "self", NULL | |
17622 | }; | |
17623 | ||
17624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
17625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17626 | { | |
17627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17628 | (arg1)->ProcessPendingEvents(); | |
17629 | ||
17630 | wxPyEndAllowThreads(__tstate); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | Py_INCREF(Py_None); resultobj = Py_None; | |
17634 | return resultobj; | |
17635 | fail: | |
17636 | return NULL; | |
17637 | } | |
17638 | ||
17639 | ||
17640 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17641 | PyObject *resultobj; | |
17642 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 17643 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17644 | bool result; |
17645 | PyObject * obj0 = 0 ; | |
17646 | PyObject * obj1 = 0 ; | |
17647 | char *kwnames[] = { | |
17648 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
17649 | }; | |
17650 | ||
17651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
17652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17653 | if (obj1) { | |
17654 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | { | |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | result = (bool)(arg1)->Yield(arg2); | |
17660 | ||
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
17664 | resultobj = PyInt_FromLong((long)result); | |
17665 | return resultobj; | |
17666 | fail: | |
17667 | return NULL; | |
17668 | } | |
17669 | ||
17670 | ||
17671 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17672 | PyObject *resultobj; | |
17673 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17674 | PyObject * obj0 = 0 ; | |
17675 | char *kwnames[] = { | |
17676 | (char *) "self", NULL | |
17677 | }; | |
17678 | ||
17679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
17680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17681 | { | |
17682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17683 | (arg1)->WakeUpIdle(); | |
17684 | ||
17685 | wxPyEndAllowThreads(__tstate); | |
17686 | if (PyErr_Occurred()) SWIG_fail; | |
17687 | } | |
17688 | Py_INCREF(Py_None); resultobj = Py_None; | |
17689 | return resultobj; | |
17690 | fail: | |
17691 | return NULL; | |
17692 | } | |
17693 | ||
17694 | ||
17695 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17696 | PyObject *resultobj; | |
17697 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17698 | int result; | |
17699 | PyObject * obj0 = 0 ; | |
17700 | char *kwnames[] = { | |
17701 | (char *) "self", NULL | |
17702 | }; | |
17703 | ||
17704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
17705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17706 | { | |
17707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17708 | result = (int)(arg1)->MainLoop(); | |
17709 | ||
17710 | wxPyEndAllowThreads(__tstate); | |
17711 | if (PyErr_Occurred()) SWIG_fail; | |
17712 | } | |
17713 | resultobj = PyInt_FromLong((long)result); | |
17714 | return resultobj; | |
17715 | fail: | |
17716 | return NULL; | |
17717 | } | |
17718 | ||
17719 | ||
17720 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17721 | PyObject *resultobj; | |
17722 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17723 | PyObject * obj0 = 0 ; | |
17724 | char *kwnames[] = { | |
17725 | (char *) "self", NULL | |
17726 | }; | |
17727 | ||
17728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
17729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17730 | { | |
17731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17732 | (arg1)->Exit(); | |
17733 | ||
17734 | wxPyEndAllowThreads(__tstate); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
17736 | } | |
17737 | Py_INCREF(Py_None); resultobj = Py_None; | |
17738 | return resultobj; | |
17739 | fail: | |
17740 | return NULL; | |
17741 | } | |
17742 | ||
17743 | ||
17744 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17745 | PyObject *resultobj; | |
17746 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17747 | PyObject * obj0 = 0 ; | |
17748 | char *kwnames[] = { | |
17749 | (char *) "self", NULL | |
17750 | }; | |
17751 | ||
17752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
17753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17754 | { | |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | (arg1)->ExitMainLoop(); | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | Py_INCREF(Py_None); resultobj = Py_None; | |
17762 | return resultobj; | |
17763 | fail: | |
17764 | return NULL; | |
17765 | } | |
17766 | ||
17767 | ||
17768 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17769 | PyObject *resultobj; | |
17770 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17771 | bool result; | |
17772 | PyObject * obj0 = 0 ; | |
17773 | char *kwnames[] = { | |
17774 | (char *) "self", NULL | |
17775 | }; | |
17776 | ||
17777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
17778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17779 | { | |
17780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17781 | result = (bool)(arg1)->Pending(); | |
17782 | ||
17783 | wxPyEndAllowThreads(__tstate); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | } | |
17786 | resultobj = PyInt_FromLong((long)result); | |
17787 | return resultobj; | |
17788 | fail: | |
17789 | return NULL; | |
17790 | } | |
17791 | ||
17792 | ||
17793 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17794 | PyObject *resultobj; | |
17795 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17796 | bool result; | |
17797 | PyObject * obj0 = 0 ; | |
17798 | char *kwnames[] = { | |
17799 | (char *) "self", NULL | |
17800 | }; | |
17801 | ||
17802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
17803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17804 | { | |
17805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17806 | result = (bool)(arg1)->Dispatch(); | |
17807 | ||
17808 | wxPyEndAllowThreads(__tstate); | |
17809 | if (PyErr_Occurred()) SWIG_fail; | |
17810 | } | |
17811 | resultobj = PyInt_FromLong((long)result); | |
17812 | return resultobj; | |
17813 | fail: | |
17814 | return NULL; | |
17815 | } | |
17816 | ||
17817 | ||
17818 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17819 | PyObject *resultobj; | |
17820 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17821 | bool result; | |
17822 | PyObject * obj0 = 0 ; | |
17823 | char *kwnames[] = { | |
17824 | (char *) "self", NULL | |
17825 | }; | |
17826 | ||
17827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
17828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17829 | { | |
17830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17831 | result = (bool)(arg1)->ProcessIdle(); | |
17832 | ||
17833 | wxPyEndAllowThreads(__tstate); | |
17834 | if (PyErr_Occurred()) SWIG_fail; | |
17835 | } | |
17836 | resultobj = PyInt_FromLong((long)result); | |
17837 | return resultobj; | |
17838 | fail: | |
17839 | return NULL; | |
17840 | } | |
17841 | ||
17842 | ||
17843 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17844 | PyObject *resultobj; | |
17845 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17846 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17847 | wxIdleEvent *arg3 = 0 ; | |
17848 | bool result; | |
17849 | PyObject * obj0 = 0 ; | |
17850 | PyObject * obj1 = 0 ; | |
17851 | PyObject * obj2 = 0 ; | |
17852 | char *kwnames[] = { | |
17853 | (char *) "self",(char *) "win",(char *) "event", NULL | |
17854 | }; | |
17855 | ||
17856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17858 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17859 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17860 | if (arg3 == NULL) { | |
17861 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17862 | } | |
17863 | { | |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
17866 | ||
17867 | wxPyEndAllowThreads(__tstate); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
17870 | resultobj = PyInt_FromLong((long)result); | |
17871 | return resultobj; | |
17872 | fail: | |
17873 | return NULL; | |
17874 | } | |
17875 | ||
17876 | ||
d14a1e28 RD |
17877 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
17878 | PyObject *resultobj; | |
17879 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17880 | bool result; | |
17881 | PyObject * obj0 = 0 ; | |
17882 | char *kwnames[] = { | |
17883 | (char *) "self", NULL | |
17884 | }; | |
17885 | ||
17886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
17887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17888 | { | |
17889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17890 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
17891 | ||
17892 | wxPyEndAllowThreads(__tstate); | |
17893 | if (PyErr_Occurred()) SWIG_fail; | |
17894 | } | |
17895 | resultobj = PyInt_FromLong((long)result); | |
17896 | return resultobj; | |
17897 | fail: | |
17898 | return NULL; | |
17899 | } | |
17900 | ||
17901 | ||
17902 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17903 | PyObject *resultobj; | |
17904 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17905 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17906 | PyObject * obj0 = 0 ; | |
17907 | PyObject * obj1 = 0 ; | |
17908 | char *kwnames[] = { | |
17909 | (char *) "self",(char *) "win", NULL | |
17910 | }; | |
17911 | ||
17912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
17913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17915 | { | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | (arg1)->SetTopWindow(arg2); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | Py_INCREF(Py_None); resultobj = Py_None; | |
17923 | return resultobj; | |
17924 | fail: | |
17925 | return NULL; | |
17926 | } | |
17927 | ||
17928 | ||
17929 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17930 | PyObject *resultobj; | |
17931 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17932 | wxWindow *result; | |
17933 | PyObject * obj0 = 0 ; | |
17934 | char *kwnames[] = { | |
17935 | (char *) "self", NULL | |
17936 | }; | |
17937 | ||
17938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
17939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17940 | { | |
17941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17942 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
17943 | ||
17944 | wxPyEndAllowThreads(__tstate); | |
17945 | if (PyErr_Occurred()) SWIG_fail; | |
17946 | } | |
17947 | { | |
17948 | resultobj = wxPyMake_wxObject(result); | |
17949 | } | |
17950 | return resultobj; | |
17951 | fail: | |
17952 | return NULL; | |
17953 | } | |
17954 | ||
17955 | ||
17956 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17957 | PyObject *resultobj; | |
17958 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17959 | bool arg2 ; | |
17960 | PyObject * obj0 = 0 ; | |
17961 | PyObject * obj1 = 0 ; | |
17962 | char *kwnames[] = { | |
17963 | (char *) "self",(char *) "flag", NULL | |
17964 | }; | |
17965 | ||
17966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
17967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17968 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | { | |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | (arg1)->SetExitOnFrameDelete(arg2); | |
17973 | ||
17974 | wxPyEndAllowThreads(__tstate); | |
17975 | if (PyErr_Occurred()) SWIG_fail; | |
17976 | } | |
17977 | Py_INCREF(Py_None); resultobj = Py_None; | |
17978 | return resultobj; | |
17979 | fail: | |
17980 | return NULL; | |
17981 | } | |
17982 | ||
17983 | ||
17984 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17985 | PyObject *resultobj; | |
17986 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
17987 | bool result; | |
17988 | PyObject * obj0 = 0 ; | |
17989 | char *kwnames[] = { | |
17990 | (char *) "self", NULL | |
17991 | }; | |
17992 | ||
17993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
17994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | resultobj = PyInt_FromLong((long)result); | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18012 | bool arg2 ; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | PyObject * obj1 = 0 ; | |
18015 | char *kwnames[] = { | |
18016 | (char *) "self",(char *) "flag", NULL | |
18017 | }; | |
18018 | ||
18019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
18020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18021 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18022 | if (PyErr_Occurred()) SWIG_fail; | |
18023 | { | |
18024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18025 | (arg1)->SetUseBestVisual(arg2); | |
18026 | ||
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | Py_INCREF(Py_None); resultobj = Py_None; | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
18037 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18038 | PyObject *resultobj; | |
18039 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18040 | bool result; | |
18041 | PyObject * obj0 = 0 ; | |
18042 | char *kwnames[] = { | |
18043 | (char *) "self", NULL | |
18044 | }; | |
18045 | ||
18046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
18047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18048 | { | |
18049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18050 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
18051 | ||
18052 | wxPyEndAllowThreads(__tstate); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | } | |
18055 | resultobj = PyInt_FromLong((long)result); | |
18056 | return resultobj; | |
18057 | fail: | |
18058 | return NULL; | |
18059 | } | |
18060 | ||
18061 | ||
18062 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18063 | PyObject *resultobj; | |
18064 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18065 | int arg2 ; | |
18066 | PyObject * obj0 = 0 ; | |
18067 | char *kwnames[] = { | |
18068 | (char *) "self",(char *) "mode", NULL | |
18069 | }; | |
18070 | ||
18071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetPrintMode",kwnames,&obj0,&arg2)) goto fail; | |
18072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18073 | { | |
18074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18075 | (arg1)->SetPrintMode(arg2); | |
18076 | ||
18077 | wxPyEndAllowThreads(__tstate); | |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
18079 | } | |
18080 | Py_INCREF(Py_None); resultobj = Py_None; | |
18081 | return resultobj; | |
18082 | fail: | |
18083 | return NULL; | |
18084 | } | |
18085 | ||
18086 | ||
18087 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18088 | PyObject *resultobj; | |
18089 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18090 | int result; | |
18091 | PyObject * obj0 = 0 ; | |
18092 | char *kwnames[] = { | |
18093 | (char *) "self", NULL | |
18094 | }; | |
18095 | ||
18096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
18097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18098 | { | |
18099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18100 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
18101 | ||
18102 | wxPyEndAllowThreads(__tstate); | |
18103 | if (PyErr_Occurred()) SWIG_fail; | |
18104 | } | |
18105 | resultobj = PyInt_FromLong((long)result); | |
18106 | return resultobj; | |
18107 | fail: | |
18108 | return NULL; | |
18109 | } | |
18110 | ||
18111 | ||
44127b65 | 18112 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18113 | PyObject *resultobj; |
18114 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 18115 | int arg2 ; |
d14a1e28 RD |
18116 | PyObject * obj0 = 0 ; |
18117 | char *kwnames[] = { | |
44127b65 | 18118 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
18119 | }; |
18120 | ||
44127b65 | 18121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyApp_SetAssertMode",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 RD |
18122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18123 | { | |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18125 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
18126 | |
18127 | wxPyEndAllowThreads(__tstate); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | } | |
44127b65 | 18130 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
18131 | return resultobj; |
18132 | fail: | |
18133 | return NULL; | |
18134 | } | |
18135 | ||
18136 | ||
44127b65 | 18137 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18138 | PyObject *resultobj; |
18139 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 18140 | int result; |
d14a1e28 RD |
18141 | PyObject * obj0 = 0 ; |
18142 | char *kwnames[] = { | |
44127b65 | 18143 | (char *) "self", NULL |
d14a1e28 RD |
18144 | }; |
18145 | ||
44127b65 | 18146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
18147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18148 | { | |
18149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18150 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
18151 | |
18152 | wxPyEndAllowThreads(__tstate); | |
18153 | if (PyErr_Occurred()) SWIG_fail; | |
18154 | } | |
44127b65 | 18155 | resultobj = PyInt_FromLong((long)result); |
d14a1e28 RD |
18156 | return resultobj; |
18157 | fail: | |
18158 | return NULL; | |
18159 | } | |
18160 | ||
18161 | ||
18162 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18163 | PyObject *resultobj; | |
18164 | bool result; | |
18165 | char *kwnames[] = { | |
18166 | NULL | |
18167 | }; | |
18168 | ||
18169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
18170 | { | |
18171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18172 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
18177 | resultobj = PyInt_FromLong((long)result); | |
18178 | return resultobj; | |
18179 | fail: | |
18180 | return NULL; | |
18181 | } | |
18182 | ||
18183 | ||
18184 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18185 | PyObject *resultobj; | |
18186 | long result; | |
18187 | char *kwnames[] = { | |
18188 | NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
18192 | { | |
18193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18194 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
18195 | ||
18196 | wxPyEndAllowThreads(__tstate); | |
18197 | if (PyErr_Occurred()) SWIG_fail; | |
18198 | } | |
18199 | resultobj = PyInt_FromLong((long)result); | |
18200 | return resultobj; | |
18201 | fail: | |
18202 | return NULL; | |
18203 | } | |
18204 | ||
18205 | ||
18206 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18207 | PyObject *resultobj; | |
18208 | long result; | |
18209 | char *kwnames[] = { | |
18210 | NULL | |
18211 | }; | |
18212 | ||
18213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
18214 | { | |
18215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18216 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
18217 | ||
18218 | wxPyEndAllowThreads(__tstate); | |
18219 | if (PyErr_Occurred()) SWIG_fail; | |
18220 | } | |
18221 | resultobj = PyInt_FromLong((long)result); | |
18222 | return resultobj; | |
18223 | fail: | |
18224 | return NULL; | |
18225 | } | |
18226 | ||
18227 | ||
18228 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18229 | PyObject *resultobj; | |
18230 | long result; | |
18231 | char *kwnames[] = { | |
18232 | NULL | |
18233 | }; | |
18234 | ||
18235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
18236 | { | |
18237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18238 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
18239 | ||
18240 | wxPyEndAllowThreads(__tstate); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
18243 | resultobj = PyInt_FromLong((long)result); | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
18250 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxString result; | |
18253 | char *kwnames[] = { | |
18254 | NULL | |
18255 | }; | |
18256 | ||
18257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
18258 | { | |
18259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18260 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
18261 | ||
18262 | wxPyEndAllowThreads(__tstate); | |
18263 | if (PyErr_Occurred()) SWIG_fail; | |
18264 | } | |
18265 | { | |
18266 | #if wxUSE_UNICODE | |
18267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18268 | #else | |
18269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18270 | #endif | |
18271 | } | |
18272 | return resultobj; | |
18273 | fail: | |
18274 | return NULL; | |
18275 | } | |
18276 | ||
18277 | ||
18278 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18279 | PyObject *resultobj; | |
18280 | bool arg1 ; | |
18281 | PyObject * obj0 = 0 ; | |
18282 | char *kwnames[] = { | |
18283 | (char *) "val", NULL | |
18284 | }; | |
18285 | ||
18286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
18287 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
18288 | if (PyErr_Occurred()) SWIG_fail; | |
18289 | { | |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
18296 | Py_INCREF(Py_None); resultobj = Py_None; | |
18297 | return resultobj; | |
18298 | fail: | |
18299 | return NULL; | |
18300 | } | |
18301 | ||
18302 | ||
18303 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18304 | PyObject *resultobj; | |
18305 | long arg1 ; | |
18306 | char *kwnames[] = { | |
18307 | (char *) "val", NULL | |
18308 | }; | |
18309 | ||
18310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacAboutMenuItemId",kwnames,&arg1)) goto fail; | |
18311 | { | |
18312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18313 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
18314 | ||
18315 | wxPyEndAllowThreads(__tstate); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | } | |
18318 | Py_INCREF(Py_None); resultobj = Py_None; | |
18319 | return resultobj; | |
18320 | fail: | |
18321 | return NULL; | |
18322 | } | |
18323 | ||
18324 | ||
18325 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18326 | PyObject *resultobj; | |
18327 | long arg1 ; | |
18328 | char *kwnames[] = { | |
18329 | (char *) "val", NULL | |
18330 | }; | |
18331 | ||
18332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacPreferencesMenuItemId",kwnames,&arg1)) goto fail; | |
18333 | { | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | Py_INCREF(Py_None); resultobj = Py_None; | |
18341 | return resultobj; | |
18342 | fail: | |
18343 | return NULL; | |
18344 | } | |
18345 | ||
18346 | ||
18347 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18348 | PyObject *resultobj; | |
18349 | long arg1 ; | |
18350 | char *kwnames[] = { | |
18351 | (char *) "val", NULL | |
18352 | }; | |
18353 | ||
18354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:PyApp_SetMacExitMenuItemId",kwnames,&arg1)) goto fail; | |
18355 | { | |
18356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18357 | wxPyApp::SetMacExitMenuItemId(arg1); | |
18358 | ||
18359 | wxPyEndAllowThreads(__tstate); | |
18360 | if (PyErr_Occurred()) SWIG_fail; | |
18361 | } | |
18362 | Py_INCREF(Py_None); resultobj = Py_None; | |
18363 | return resultobj; | |
18364 | fail: | |
18365 | return NULL; | |
18366 | } | |
18367 | ||
18368 | ||
18369 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18370 | PyObject *resultobj; | |
18371 | wxString *arg1 = 0 ; | |
423f194a | 18372 | bool temp1 = False ; |
d14a1e28 RD |
18373 | PyObject * obj0 = 0 ; |
18374 | char *kwnames[] = { | |
18375 | (char *) "val", NULL | |
18376 | }; | |
18377 | ||
18378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
18379 | { | |
18380 | arg1 = wxString_in_helper(obj0); | |
18381 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 18382 | temp1 = True; |
d14a1e28 RD |
18383 | } |
18384 | { | |
18385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18386 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
18387 | ||
18388 | wxPyEndAllowThreads(__tstate); | |
18389 | if (PyErr_Occurred()) SWIG_fail; | |
18390 | } | |
18391 | Py_INCREF(Py_None); resultobj = Py_None; | |
18392 | { | |
18393 | if (temp1) | |
18394 | delete arg1; | |
18395 | } | |
18396 | return resultobj; | |
18397 | fail: | |
18398 | { | |
18399 | if (temp1) | |
18400 | delete arg1; | |
18401 | } | |
18402 | return NULL; | |
18403 | } | |
18404 | ||
18405 | ||
18406 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18407 | PyObject *resultobj; | |
18408 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
18415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18416 | { | |
18417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18418 | (arg1)->_BootstrapApp(); | |
18419 | ||
18420 | wxPyEndAllowThreads(__tstate); | |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
18422 | } | |
18423 | Py_INCREF(Py_None); resultobj = Py_None; | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
18430 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18431 | PyObject *resultobj; | |
18432 | int result; | |
18433 | char *kwnames[] = { | |
18434 | NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
18438 | { | |
18439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18440 | result = (int)PyApp_GetComCtl32Version(); | |
18441 | ||
18442 | wxPyEndAllowThreads(__tstate); | |
18443 | if (PyErr_Occurred()) SWIG_fail; | |
18444 | } | |
18445 | resultobj = PyInt_FromLong((long)result); | |
18446 | return resultobj; | |
18447 | fail: | |
18448 | return NULL; | |
18449 | } | |
18450 | ||
18451 | ||
18452 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
18453 | PyObject *obj; | |
18454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18455 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
18456 | Py_INCREF(obj); | |
18457 | return Py_BuildValue((char *)""); | |
18458 | } | |
18459 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18460 | PyObject *resultobj; | |
18461 | char *kwnames[] = { | |
18462 | NULL | |
18463 | }; | |
18464 | ||
18465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
18466 | { | |
18467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18468 | wxExit(); | |
18469 | ||
18470 | wxPyEndAllowThreads(__tstate); | |
18471 | if (PyErr_Occurred()) SWIG_fail; | |
18472 | } | |
18473 | Py_INCREF(Py_None); resultobj = Py_None; | |
18474 | return resultobj; | |
18475 | fail: | |
18476 | return NULL; | |
18477 | } | |
18478 | ||
18479 | ||
18480 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18481 | PyObject *resultobj; | |
18482 | bool result; | |
18483 | char *kwnames[] = { | |
18484 | NULL | |
18485 | }; | |
18486 | ||
18487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
18488 | { | |
18489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18490 | result = (bool)wxYield(); | |
18491 | ||
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | resultobj = PyInt_FromLong((long)result); | |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
18502 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18503 | PyObject *resultobj; | |
18504 | bool result; | |
18505 | char *kwnames[] = { | |
18506 | NULL | |
18507 | }; | |
18508 | ||
18509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
18510 | { | |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18512 | result = (bool)wxYieldIfNeeded(); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
18515 | if (PyErr_Occurred()) SWIG_fail; | |
18516 | } | |
18517 | resultobj = PyInt_FromLong((long)result); | |
18518 | return resultobj; | |
18519 | fail: | |
18520 | return NULL; | |
18521 | } | |
18522 | ||
18523 | ||
18524 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18525 | PyObject *resultobj; | |
18526 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 18527 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18528 | bool result; |
18529 | PyObject * obj0 = 0 ; | |
18530 | PyObject * obj1 = 0 ; | |
18531 | char *kwnames[] = { | |
18532 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
18533 | }; | |
18534 | ||
18535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
18536 | if (obj0) { | |
18537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18538 | } | |
18539 | if (obj1) { | |
18540 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | } | |
18543 | { | |
18544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18545 | result = (bool)wxSafeYield(arg1,arg2); | |
18546 | ||
18547 | wxPyEndAllowThreads(__tstate); | |
18548 | if (PyErr_Occurred()) SWIG_fail; | |
18549 | } | |
18550 | resultobj = PyInt_FromLong((long)result); | |
18551 | return resultobj; | |
18552 | fail: | |
18553 | return NULL; | |
18554 | } | |
18555 | ||
18556 | ||
18557 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18558 | PyObject *resultobj; | |
18559 | char *kwnames[] = { | |
18560 | NULL | |
18561 | }; | |
18562 | ||
18563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
18564 | { | |
18565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18566 | wxWakeUpIdle(); | |
18567 | ||
18568 | wxPyEndAllowThreads(__tstate); | |
18569 | if (PyErr_Occurred()) SWIG_fail; | |
18570 | } | |
18571 | Py_INCREF(Py_None); resultobj = Py_None; | |
18572 | return resultobj; | |
18573 | fail: | |
18574 | return NULL; | |
18575 | } | |
18576 | ||
18577 | ||
18578 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18579 | PyObject *resultobj; | |
18580 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
18581 | wxEvent *arg2 = 0 ; | |
18582 | PyObject * obj0 = 0 ; | |
18583 | PyObject * obj1 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "dest",(char *) "event", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
18589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18590 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18591 | if (arg2 == NULL) { | |
18592 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18593 | } | |
18594 | { | |
18595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18596 | wxPostEvent(arg1,*arg2); | |
18597 | ||
18598 | wxPyEndAllowThreads(__tstate); | |
18599 | if (PyErr_Occurred()) SWIG_fail; | |
18600 | } | |
18601 | Py_INCREF(Py_None); resultobj = Py_None; | |
18602 | return resultobj; | |
18603 | fail: | |
18604 | return NULL; | |
18605 | } | |
18606 | ||
18607 | ||
18608 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18609 | PyObject *resultobj; | |
18610 | char *kwnames[] = { | |
18611 | NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
18615 | { | |
18616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18617 | wxApp_CleanUp(); | |
18618 | ||
18619 | wxPyEndAllowThreads(__tstate); | |
18620 | if (PyErr_Occurred()) SWIG_fail; | |
18621 | } | |
18622 | Py_INCREF(Py_None); resultobj = Py_None; | |
18623 | return resultobj; | |
18624 | fail: | |
18625 | return NULL; | |
18626 | } | |
18627 | ||
18628 | ||
18629 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18630 | PyObject *resultobj; | |
18631 | wxPyApp *result; | |
18632 | char *kwnames[] = { | |
18633 | NULL | |
18634 | }; | |
18635 | ||
18636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
18637 | { | |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | result = (wxPyApp *)wxGetApp(); | |
18640 | ||
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
18644 | { | |
18645 | resultobj = wxPyMake_wxObject(result); | |
18646 | } | |
18647 | return resultobj; | |
18648 | fail: | |
18649 | return NULL; | |
18650 | } | |
18651 | ||
18652 | ||
41f1cec7 RD |
18653 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
18654 | PyObject *resultobj; | |
18655 | int arg1 = (int) 0 ; | |
18656 | int arg2 = (int) 0 ; | |
18657 | int arg3 = (int) 0 ; | |
18658 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
18659 | wxAcceleratorEntry *result; | |
18660 | PyObject * obj3 = 0 ; | |
18661 | char *kwnames[] = { | |
18662 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
18663 | }; | |
18664 | ||
18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiiO:new_AcceleratorEntry",kwnames,&arg1,&arg2,&arg3,&obj3)) goto fail; | |
18666 | if (obj3) { | |
18667 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18668 | } | |
18669 | { | |
18670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18671 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
18676 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1); | |
18677 | return resultobj; | |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
18683 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18684 | PyObject *resultobj; | |
18685 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18686 | PyObject * obj0 = 0 ; | |
18687 | char *kwnames[] = { | |
18688 | (char *) "self", NULL | |
18689 | }; | |
18690 | ||
18691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
18692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18693 | { | |
18694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18695 | delete arg1; | |
18696 | ||
18697 | wxPyEndAllowThreads(__tstate); | |
18698 | if (PyErr_Occurred()) SWIG_fail; | |
18699 | } | |
18700 | Py_INCREF(Py_None); resultobj = Py_None; | |
18701 | return resultobj; | |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
18707 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18708 | PyObject *resultobj; | |
18709 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18710 | int arg2 ; | |
18711 | int arg3 ; | |
18712 | int arg4 ; | |
18713 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
18714 | PyObject * obj0 = 0 ; | |
18715 | PyObject * obj4 = 0 ; | |
18716 | char *kwnames[] = { | |
18717 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
18718 | }; | |
18719 | ||
18720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii|O:AcceleratorEntry_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
18721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18722 | if (obj4) { | |
18723 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18724 | } | |
18725 | { | |
18726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18727 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
18728 | ||
18729 | wxPyEndAllowThreads(__tstate); | |
18730 | if (PyErr_Occurred()) SWIG_fail; | |
18731 | } | |
18732 | Py_INCREF(Py_None); resultobj = Py_None; | |
18733 | return resultobj; | |
18734 | fail: | |
18735 | return NULL; | |
18736 | } | |
18737 | ||
18738 | ||
18739 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18740 | PyObject *resultobj; | |
18741 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18742 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
18743 | PyObject * obj0 = 0 ; | |
18744 | PyObject * obj1 = 0 ; | |
18745 | char *kwnames[] = { | |
18746 | (char *) "self",(char *) "item", NULL | |
18747 | }; | |
18748 | ||
18749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
18750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18751 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18752 | { | |
18753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18754 | (arg1)->SetMenuItem(arg2); | |
18755 | ||
18756 | wxPyEndAllowThreads(__tstate); | |
18757 | if (PyErr_Occurred()) SWIG_fail; | |
18758 | } | |
18759 | Py_INCREF(Py_None); resultobj = Py_None; | |
18760 | return resultobj; | |
18761 | fail: | |
18762 | return NULL; | |
18763 | } | |
18764 | ||
18765 | ||
18766 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18767 | PyObject *resultobj; | |
18768 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18769 | wxMenuItem *result; | |
18770 | PyObject * obj0 = 0 ; | |
18771 | char *kwnames[] = { | |
18772 | (char *) "self", NULL | |
18773 | }; | |
18774 | ||
18775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
18776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18777 | { | |
18778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18779 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
18780 | ||
18781 | wxPyEndAllowThreads(__tstate); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
18784 | { | |
18785 | resultobj = wxPyMake_wxObject(result); | |
18786 | } | |
18787 | return resultobj; | |
18788 | fail: | |
18789 | return NULL; | |
18790 | } | |
18791 | ||
18792 | ||
18793 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18794 | PyObject *resultobj; | |
18795 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18796 | int result; | |
18797 | PyObject * obj0 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
18803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18804 | { | |
18805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18806 | result = (int)(arg1)->GetFlags(); | |
18807 | ||
18808 | wxPyEndAllowThreads(__tstate); | |
18809 | if (PyErr_Occurred()) SWIG_fail; | |
18810 | } | |
18811 | resultobj = PyInt_FromLong((long)result); | |
18812 | return resultobj; | |
18813 | fail: | |
18814 | return NULL; | |
18815 | } | |
18816 | ||
18817 | ||
18818 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18819 | PyObject *resultobj; | |
18820 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18821 | int result; | |
18822 | PyObject * obj0 = 0 ; | |
18823 | char *kwnames[] = { | |
18824 | (char *) "self", NULL | |
18825 | }; | |
18826 | ||
18827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
18828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18829 | { | |
18830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18831 | result = (int)(arg1)->GetKeyCode(); | |
18832 | ||
18833 | wxPyEndAllowThreads(__tstate); | |
18834 | if (PyErr_Occurred()) SWIG_fail; | |
18835 | } | |
18836 | resultobj = PyInt_FromLong((long)result); | |
18837 | return resultobj; | |
18838 | fail: | |
18839 | return NULL; | |
18840 | } | |
18841 | ||
18842 | ||
18843 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18844 | PyObject *resultobj; | |
18845 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
18846 | int result; | |
18847 | PyObject * obj0 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
18853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18854 | { | |
18855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18856 | result = (int)(arg1)->GetCommand(); | |
18857 | ||
18858 | wxPyEndAllowThreads(__tstate); | |
18859 | if (PyErr_Occurred()) SWIG_fail; | |
18860 | } | |
18861 | resultobj = PyInt_FromLong((long)result); | |
18862 | return resultobj; | |
18863 | fail: | |
18864 | return NULL; | |
18865 | } | |
18866 | ||
18867 | ||
18868 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
18869 | PyObject *obj; | |
18870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18871 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
18872 | Py_INCREF(obj); | |
18873 | return Py_BuildValue((char *)""); | |
18874 | } | |
18875 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18876 | PyObject *resultobj; | |
18877 | int arg1 ; | |
18878 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
18879 | wxAcceleratorTable *result; | |
18880 | PyObject * obj0 = 0 ; | |
18881 | char *kwnames[] = { | |
18882 | (char *) "n", NULL | |
18883 | }; | |
18884 | ||
18885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
18886 | { | |
18887 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
18888 | if (arg2) arg1 = PyList_Size(obj0); | |
18889 | else arg1 = 0; | |
18890 | } | |
18891 | { | |
18892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18893 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
18894 | ||
18895 | wxPyEndAllowThreads(__tstate); | |
18896 | if (PyErr_Occurred()) SWIG_fail; | |
18897 | } | |
18898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1); | |
18899 | { | |
18900 | delete [] arg2; | |
18901 | } | |
18902 | return resultobj; | |
18903 | fail: | |
18904 | { | |
18905 | delete [] arg2; | |
18906 | } | |
18907 | return NULL; | |
18908 | } | |
18909 | ||
18910 | ||
18911 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18912 | PyObject *resultobj; | |
18913 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
18914 | PyObject * obj0 = 0 ; | |
18915 | char *kwnames[] = { | |
18916 | (char *) "self", NULL | |
18917 | }; | |
18918 | ||
18919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
18920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18921 | { | |
18922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18923 | delete arg1; | |
18924 | ||
18925 | wxPyEndAllowThreads(__tstate); | |
18926 | if (PyErr_Occurred()) SWIG_fail; | |
18927 | } | |
18928 | Py_INCREF(Py_None); resultobj = Py_None; | |
18929 | return resultobj; | |
18930 | fail: | |
18931 | return NULL; | |
18932 | } | |
18933 | ||
18934 | ||
18935 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18936 | PyObject *resultobj; | |
18937 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
18938 | bool result; | |
18939 | PyObject * obj0 = 0 ; | |
18940 | char *kwnames[] = { | |
18941 | (char *) "self", NULL | |
18942 | }; | |
18943 | ||
18944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
18945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18946 | { | |
18947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18948 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
18949 | ||
18950 | wxPyEndAllowThreads(__tstate); | |
18951 | if (PyErr_Occurred()) SWIG_fail; | |
18952 | } | |
18953 | resultobj = PyInt_FromLong((long)result); | |
18954 | return resultobj; | |
18955 | fail: | |
18956 | return NULL; | |
18957 | } | |
18958 | ||
18959 | ||
18960 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
18961 | PyObject *obj; | |
18962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18963 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
18964 | Py_INCREF(obj); | |
18965 | return Py_BuildValue((char *)""); | |
18966 | } | |
18967 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
18968 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
18969 | return 1; | |
18970 | } | |
18971 | ||
18972 | ||
18973 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
18974 | PyObject *pyobj; | |
18975 | ||
18976 | pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0); | |
18977 | return pyobj; | |
18978 | } | |
18979 | ||
18980 | ||
18981 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18982 | PyObject *resultobj; | |
18983 | wxString *arg1 = 0 ; | |
18984 | wxAcceleratorEntry *result; | |
18985 | bool temp1 = False ; | |
18986 | PyObject * obj0 = 0 ; | |
18987 | char *kwnames[] = { | |
18988 | (char *) "label", NULL | |
18989 | }; | |
18990 | ||
18991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
18992 | { | |
18993 | arg1 = wxString_in_helper(obj0); | |
18994 | if (arg1 == NULL) SWIG_fail; | |
18995 | temp1 = True; | |
18996 | } | |
18997 | { | |
18998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18999 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
19000 | ||
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
19004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
19005 | { | |
19006 | if (temp1) | |
19007 | delete arg1; | |
19008 | } | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | { | |
19012 | if (temp1) | |
19013 | delete arg1; | |
19014 | } | |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
423f194a RD |
19019 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
19020 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
19021 | return 1; | |
19022 | } | |
19023 | ||
19024 | ||
19025 | static PyObject *_wrap_PanelNameStr_get() { | |
19026 | PyObject *pyobj; | |
19027 | ||
19028 | { | |
19029 | #if wxUSE_UNICODE | |
19030 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
19031 | #else | |
19032 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
19033 | #endif | |
19034 | } | |
19035 | return pyobj; | |
19036 | } | |
19037 | ||
19038 | ||
d14a1e28 RD |
19039 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
19040 | PyObject *resultobj; | |
19041 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19042 | int arg2 ; |
d14a1e28 RD |
19043 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19044 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19045 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19046 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19047 | long arg5 = (long) 0 ; | |
19048 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
19049 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
19050 | wxWindow *result; | |
19051 | wxPoint temp3 ; | |
19052 | wxSize temp4 ; | |
423f194a | 19053 | bool temp6 = False ; |
d14a1e28 RD |
19054 | PyObject * obj0 = 0 ; |
19055 | PyObject * obj2 = 0 ; | |
19056 | PyObject * obj3 = 0 ; | |
19057 | PyObject * obj5 = 0 ; | |
19058 | char *kwnames[] = { | |
19059 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19060 | }; | |
19061 | ||
19062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Window",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
19063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19064 | if (obj2) { | |
19065 | { | |
19066 | arg3 = &temp3; | |
19067 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19068 | } | |
19069 | } | |
19070 | if (obj3) { | |
19071 | { | |
19072 | arg4 = &temp4; | |
19073 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19074 | } | |
19075 | } | |
19076 | if (obj5) { | |
19077 | { | |
19078 | arg6 = wxString_in_helper(obj5); | |
19079 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 19080 | temp6 = True; |
d14a1e28 RD |
19081 | } |
19082 | } | |
19083 | { | |
19084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19085 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
19086 | ||
19087 | wxPyEndAllowThreads(__tstate); | |
19088 | if (PyErr_Occurred()) SWIG_fail; | |
19089 | } | |
19090 | { | |
19091 | resultobj = wxPyMake_wxObject(result); | |
19092 | } | |
19093 | { | |
19094 | if (temp6) | |
19095 | delete arg6; | |
19096 | } | |
19097 | return resultobj; | |
19098 | fail: | |
19099 | { | |
19100 | if (temp6) | |
19101 | delete arg6; | |
19102 | } | |
19103 | return NULL; | |
19104 | } | |
19105 | ||
19106 | ||
19107 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19108 | PyObject *resultobj; | |
19109 | wxWindow *result; | |
19110 | char *kwnames[] = { | |
19111 | NULL | |
19112 | }; | |
19113 | ||
19114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
19115 | { | |
19116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19117 | result = (wxWindow *)new wxWindow(); | |
19118 | ||
19119 | wxPyEndAllowThreads(__tstate); | |
19120 | if (PyErr_Occurred()) SWIG_fail; | |
19121 | } | |
19122 | { | |
19123 | resultobj = wxPyMake_wxObject(result); | |
19124 | } | |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
19131 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19132 | PyObject *resultobj; | |
19133 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19135 | int arg3 ; |
d14a1e28 RD |
19136 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19137 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19138 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19139 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19140 | long arg6 = (long) 0 ; | |
19141 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
19142 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19143 | bool result; | |
19144 | wxPoint temp4 ; | |
19145 | wxSize temp5 ; | |
423f194a | 19146 | bool temp7 = False ; |
d14a1e28 RD |
19147 | PyObject * obj0 = 0 ; |
19148 | PyObject * obj1 = 0 ; | |
19149 | PyObject * obj3 = 0 ; | |
19150 | PyObject * obj4 = 0 ; | |
19151 | PyObject * obj6 = 0 ; | |
19152 | char *kwnames[] = { | |
19153 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19154 | }; | |
19155 | ||
19156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Window_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
19157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19158 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19159 | if (obj3) { | |
19160 | { | |
19161 | arg4 = &temp4; | |
19162 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19163 | } | |
19164 | } | |
19165 | if (obj4) { | |
19166 | { | |
19167 | arg5 = &temp5; | |
19168 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19169 | } | |
19170 | } | |
19171 | if (obj6) { | |
19172 | { | |
19173 | arg7 = wxString_in_helper(obj6); | |
19174 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19175 | temp7 = True; |
d14a1e28 RD |
19176 | } |
19177 | } | |
19178 | { | |
19179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19180 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19181 | ||
19182 | wxPyEndAllowThreads(__tstate); | |
19183 | if (PyErr_Occurred()) SWIG_fail; | |
19184 | } | |
19185 | resultobj = PyInt_FromLong((long)result); | |
19186 | { | |
19187 | if (temp7) | |
19188 | delete arg7; | |
19189 | } | |
19190 | return resultobj; | |
19191 | fail: | |
19192 | { | |
19193 | if (temp7) | |
19194 | delete arg7; | |
19195 | } | |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
19200 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19201 | PyObject *resultobj; | |
19202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19203 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19204 | bool result; |
19205 | PyObject * obj0 = 0 ; | |
19206 | PyObject * obj1 = 0 ; | |
19207 | char *kwnames[] = { | |
19208 | (char *) "self",(char *) "force", NULL | |
19209 | }; | |
19210 | ||
19211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
19212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19213 | if (obj1) { | |
19214 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
19215 | if (PyErr_Occurred()) SWIG_fail; | |
19216 | } | |
19217 | { | |
19218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19219 | result = (bool)(arg1)->Close(arg2); | |
19220 | ||
19221 | wxPyEndAllowThreads(__tstate); | |
19222 | if (PyErr_Occurred()) SWIG_fail; | |
19223 | } | |
19224 | resultobj = PyInt_FromLong((long)result); | |
19225 | return resultobj; | |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
19231 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19232 | PyObject *resultobj; | |
19233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19234 | bool result; | |
19235 | PyObject * obj0 = 0 ; | |
19236 | char *kwnames[] = { | |
19237 | (char *) "self", NULL | |
19238 | }; | |
19239 | ||
19240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
19241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19242 | { | |
19243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19244 | result = (bool)(arg1)->Destroy(); | |
19245 | ||
19246 | wxPyEndAllowThreads(__tstate); | |
19247 | if (PyErr_Occurred()) SWIG_fail; | |
19248 | } | |
19249 | resultobj = PyInt_FromLong((long)result); | |
19250 | return resultobj; | |
19251 | fail: | |
19252 | return NULL; | |
19253 | } | |
19254 | ||
19255 | ||
19256 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19257 | PyObject *resultobj; | |
19258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19259 | bool result; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | char *kwnames[] = { | |
19262 | (char *) "self", NULL | |
19263 | }; | |
19264 | ||
19265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
19266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19267 | { | |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | result = (bool)(arg1)->DestroyChildren(); | |
19270 | ||
19271 | wxPyEndAllowThreads(__tstate); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
19274 | resultobj = PyInt_FromLong((long)result); | |
19275 | return resultobj; | |
19276 | fail: | |
19277 | return NULL; | |
19278 | } | |
19279 | ||
19280 | ||
19281 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19282 | PyObject *resultobj; | |
19283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19284 | bool result; | |
19285 | PyObject * obj0 = 0 ; | |
19286 | char *kwnames[] = { | |
19287 | (char *) "self", NULL | |
19288 | }; | |
19289 | ||
19290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
19291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19292 | { | |
19293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19294 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
19295 | ||
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | resultobj = PyInt_FromLong((long)result); | |
19300 | return resultobj; | |
19301 | fail: | |
19302 | return NULL; | |
19303 | } | |
19304 | ||
19305 | ||
19306 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19307 | PyObject *resultobj; | |
19308 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19309 | wxString *arg2 = 0 ; | |
423f194a | 19310 | bool temp2 = False ; |
d14a1e28 RD |
19311 | PyObject * obj0 = 0 ; |
19312 | PyObject * obj1 = 0 ; | |
19313 | char *kwnames[] = { | |
19314 | (char *) "self",(char *) "title", NULL | |
19315 | }; | |
19316 | ||
19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
19318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19319 | { | |
19320 | arg2 = wxString_in_helper(obj1); | |
19321 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19322 | temp2 = True; |
d14a1e28 RD |
19323 | } |
19324 | { | |
19325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19326 | (arg1)->SetTitle((wxString const &)*arg2); | |
19327 | ||
19328 | wxPyEndAllowThreads(__tstate); | |
19329 | if (PyErr_Occurred()) SWIG_fail; | |
19330 | } | |
19331 | Py_INCREF(Py_None); resultobj = Py_None; | |
19332 | { | |
19333 | if (temp2) | |
19334 | delete arg2; | |
19335 | } | |
19336 | return resultobj; | |
19337 | fail: | |
19338 | { | |
19339 | if (temp2) | |
19340 | delete arg2; | |
19341 | } | |
19342 | return NULL; | |
19343 | } | |
19344 | ||
19345 | ||
19346 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19347 | PyObject *resultobj; | |
19348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19349 | wxString result; | |
19350 | PyObject * obj0 = 0 ; | |
19351 | char *kwnames[] = { | |
19352 | (char *) "self", NULL | |
19353 | }; | |
19354 | ||
19355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
19356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19357 | { | |
19358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19359 | result = ((wxWindow const *)arg1)->GetTitle(); | |
19360 | ||
19361 | wxPyEndAllowThreads(__tstate); | |
19362 | if (PyErr_Occurred()) SWIG_fail; | |
19363 | } | |
19364 | { | |
19365 | #if wxUSE_UNICODE | |
19366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19367 | #else | |
19368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19369 | #endif | |
19370 | } | |
19371 | return resultobj; | |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19380 | wxString *arg2 = 0 ; | |
423f194a | 19381 | bool temp2 = False ; |
d14a1e28 RD |
19382 | PyObject * obj0 = 0 ; |
19383 | PyObject * obj1 = 0 ; | |
19384 | char *kwnames[] = { | |
19385 | (char *) "self",(char *) "label", NULL | |
19386 | }; | |
19387 | ||
19388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
19389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19390 | { | |
19391 | arg2 = wxString_in_helper(obj1); | |
19392 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19393 | temp2 = True; |
d14a1e28 RD |
19394 | } |
19395 | { | |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | (arg1)->SetLabel((wxString const &)*arg2); | |
19398 | ||
19399 | wxPyEndAllowThreads(__tstate); | |
19400 | if (PyErr_Occurred()) SWIG_fail; | |
19401 | } | |
19402 | Py_INCREF(Py_None); resultobj = Py_None; | |
19403 | { | |
19404 | if (temp2) | |
19405 | delete arg2; | |
19406 | } | |
19407 | return resultobj; | |
19408 | fail: | |
19409 | { | |
19410 | if (temp2) | |
19411 | delete arg2; | |
19412 | } | |
19413 | return NULL; | |
19414 | } | |
19415 | ||
19416 | ||
19417 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19418 | PyObject *resultobj; | |
19419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19420 | wxString result; | |
19421 | PyObject * obj0 = 0 ; | |
19422 | char *kwnames[] = { | |
19423 | (char *) "self", NULL | |
19424 | }; | |
19425 | ||
19426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
19427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19428 | { | |
19429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19430 | result = ((wxWindow const *)arg1)->GetLabel(); | |
19431 | ||
19432 | wxPyEndAllowThreads(__tstate); | |
19433 | if (PyErr_Occurred()) SWIG_fail; | |
19434 | } | |
19435 | { | |
19436 | #if wxUSE_UNICODE | |
19437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19438 | #else | |
19439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19440 | #endif | |
19441 | } | |
19442 | return resultobj; | |
19443 | fail: | |
19444 | return NULL; | |
19445 | } | |
19446 | ||
19447 | ||
19448 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19449 | PyObject *resultobj; | |
19450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19451 | wxString *arg2 = 0 ; | |
423f194a | 19452 | bool temp2 = False ; |
d14a1e28 RD |
19453 | PyObject * obj0 = 0 ; |
19454 | PyObject * obj1 = 0 ; | |
19455 | char *kwnames[] = { | |
19456 | (char *) "self",(char *) "name", NULL | |
19457 | }; | |
19458 | ||
19459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
19460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19461 | { | |
19462 | arg2 = wxString_in_helper(obj1); | |
19463 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19464 | temp2 = True; |
d14a1e28 RD |
19465 | } |
19466 | { | |
19467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19468 | (arg1)->SetName((wxString const &)*arg2); | |
19469 | ||
19470 | wxPyEndAllowThreads(__tstate); | |
19471 | if (PyErr_Occurred()) SWIG_fail; | |
19472 | } | |
19473 | Py_INCREF(Py_None); resultobj = Py_None; | |
19474 | { | |
19475 | if (temp2) | |
19476 | delete arg2; | |
19477 | } | |
19478 | return resultobj; | |
19479 | fail: | |
19480 | { | |
19481 | if (temp2) | |
19482 | delete arg2; | |
19483 | } | |
19484 | return NULL; | |
19485 | } | |
19486 | ||
19487 | ||
19488 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19489 | PyObject *resultobj; | |
19490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19491 | wxString result; | |
19492 | PyObject * obj0 = 0 ; | |
19493 | char *kwnames[] = { | |
19494 | (char *) "self", NULL | |
19495 | }; | |
19496 | ||
19497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
19498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19499 | { | |
19500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19501 | result = ((wxWindow const *)arg1)->GetName(); | |
19502 | ||
19503 | wxPyEndAllowThreads(__tstate); | |
19504 | if (PyErr_Occurred()) SWIG_fail; | |
19505 | } | |
19506 | { | |
19507 | #if wxUSE_UNICODE | |
19508 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19509 | #else | |
19510 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19511 | #endif | |
19512 | } | |
19513 | return resultobj; | |
19514 | fail: | |
19515 | return NULL; | |
19516 | } | |
19517 | ||
19518 | ||
19519 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19520 | PyObject *resultobj; | |
19521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19522 | int arg2 ; |
d14a1e28 RD |
19523 | PyObject * obj0 = 0 ; |
19524 | char *kwnames[] = { | |
19525 | (char *) "self",(char *) "winid", NULL | |
19526 | }; | |
19527 | ||
19528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_SetId",kwnames,&obj0,&arg2)) goto fail; | |
19529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19530 | { | |
19531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19532 | (arg1)->SetId(arg2); | |
19533 | ||
19534 | wxPyEndAllowThreads(__tstate); | |
19535 | if (PyErr_Occurred()) SWIG_fail; | |
19536 | } | |
19537 | Py_INCREF(Py_None); resultobj = Py_None; | |
19538 | return resultobj; | |
19539 | fail: | |
19540 | return NULL; | |
19541 | } | |
19542 | ||
19543 | ||
19544 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19545 | PyObject *resultobj; | |
19546 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19547 | int result; |
d14a1e28 RD |
19548 | PyObject * obj0 = 0 ; |
19549 | char *kwnames[] = { | |
19550 | (char *) "self", NULL | |
19551 | }; | |
19552 | ||
19553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
19554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 19557 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
19558 | |
19559 | wxPyEndAllowThreads(__tstate); | |
19560 | if (PyErr_Occurred()) SWIG_fail; | |
19561 | } | |
19562 | resultobj = PyInt_FromLong((long)result); | |
19563 | return resultobj; | |
19564 | fail: | |
19565 | return NULL; | |
19566 | } | |
19567 | ||
19568 | ||
19569 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19570 | PyObject *resultobj; | |
19571 | int result; | |
19572 | char *kwnames[] = { | |
19573 | NULL | |
19574 | }; | |
19575 | ||
19576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
19577 | { | |
19578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19579 | result = (int)wxWindow::NewControlId(); | |
19580 | ||
19581 | wxPyEndAllowThreads(__tstate); | |
19582 | if (PyErr_Occurred()) SWIG_fail; | |
19583 | } | |
19584 | resultobj = PyInt_FromLong((long)result); | |
19585 | return resultobj; | |
19586 | fail: | |
19587 | return NULL; | |
19588 | } | |
19589 | ||
19590 | ||
19591 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19592 | PyObject *resultobj; | |
19593 | int arg1 ; | |
19594 | int result; | |
19595 | char *kwnames[] = { | |
19596 | (char *) "winid", NULL | |
19597 | }; | |
19598 | ||
19599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_NextControlId",kwnames,&arg1)) goto fail; | |
19600 | { | |
19601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19602 | result = (int)wxWindow::NextControlId(arg1); | |
19603 | ||
19604 | wxPyEndAllowThreads(__tstate); | |
19605 | if (PyErr_Occurred()) SWIG_fail; | |
19606 | } | |
19607 | resultobj = PyInt_FromLong((long)result); | |
19608 | return resultobj; | |
19609 | fail: | |
19610 | return NULL; | |
19611 | } | |
19612 | ||
19613 | ||
19614 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19615 | PyObject *resultobj; | |
19616 | int arg1 ; | |
19617 | int result; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "winid", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Window_PrevControlId",kwnames,&arg1)) goto fail; | |
19623 | { | |
19624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19625 | result = (int)wxWindow::PrevControlId(arg1); | |
19626 | ||
19627 | wxPyEndAllowThreads(__tstate); | |
19628 | if (PyErr_Occurred()) SWIG_fail; | |
19629 | } | |
19630 | resultobj = PyInt_FromLong((long)result); | |
19631 | return resultobj; | |
19632 | fail: | |
19633 | return NULL; | |
19634 | } | |
19635 | ||
19636 | ||
19637 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19638 | PyObject *resultobj; | |
19639 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19640 | wxSize *arg2 = 0 ; | |
19641 | wxSize temp2 ; | |
19642 | PyObject * obj0 = 0 ; | |
19643 | PyObject * obj1 = 0 ; | |
19644 | char *kwnames[] = { | |
19645 | (char *) "self",(char *) "size", NULL | |
19646 | }; | |
19647 | ||
19648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
19649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19650 | { | |
19651 | arg2 = &temp2; | |
19652 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19653 | } | |
19654 | { | |
19655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19656 | (arg1)->SetSize((wxSize const &)*arg2); | |
19657 | ||
19658 | wxPyEndAllowThreads(__tstate); | |
19659 | if (PyErr_Occurred()) SWIG_fail; | |
19660 | } | |
19661 | Py_INCREF(Py_None); resultobj = Py_None; | |
19662 | return resultobj; | |
19663 | fail: | |
19664 | return NULL; | |
19665 | } | |
19666 | ||
19667 | ||
19668 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19669 | PyObject *resultobj; | |
19670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19671 | int arg2 ; | |
19672 | int arg3 ; | |
19673 | int arg4 ; | |
19674 | int arg5 ; | |
19675 | int arg6 = (int) wxSIZE_AUTO ; | |
19676 | PyObject * obj0 = 0 ; | |
19677 | char *kwnames[] = { | |
19678 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
19679 | }; | |
19680 | ||
19681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:Window_SetDimensions",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
19682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19683 | { | |
19684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19685 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
19686 | ||
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
19690 | Py_INCREF(Py_None); resultobj = Py_None; | |
19691 | return resultobj; | |
19692 | fail: | |
19693 | return NULL; | |
19694 | } | |
19695 | ||
19696 | ||
19697 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19698 | PyObject *resultobj; | |
19699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19700 | wxRect *arg2 = 0 ; | |
19701 | int arg3 = (int) wxSIZE_AUTO ; | |
19702 | wxRect temp2 ; | |
19703 | PyObject * obj0 = 0 ; | |
19704 | PyObject * obj1 = 0 ; | |
19705 | char *kwnames[] = { | |
19706 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
19707 | }; | |
19708 | ||
19709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_SetRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19711 | { | |
19712 | arg2 = &temp2; | |
19713 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19714 | } | |
19715 | { | |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
19718 | ||
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
19722 | Py_INCREF(Py_None); resultobj = Py_None; | |
19723 | return resultobj; | |
19724 | fail: | |
19725 | return NULL; | |
19726 | } | |
19727 | ||
19728 | ||
19729 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19730 | PyObject *resultobj; | |
19731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19732 | int arg2 ; | |
19733 | int arg3 ; | |
19734 | PyObject * obj0 = 0 ; | |
19735 | char *kwnames[] = { | |
19736 | (char *) "self",(char *) "width",(char *) "height", NULL | |
19737 | }; | |
19738 | ||
19739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19741 | { | |
19742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19743 | (arg1)->SetSize(arg2,arg3); | |
19744 | ||
19745 | wxPyEndAllowThreads(__tstate); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | } | |
19748 | Py_INCREF(Py_None); resultobj = Py_None; | |
19749 | return resultobj; | |
19750 | fail: | |
19751 | return NULL; | |
19752 | } | |
19753 | ||
19754 | ||
19755 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19756 | PyObject *resultobj; | |
19757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19758 | wxPoint *arg2 = 0 ; | |
19759 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
19760 | wxPoint temp2 ; | |
19761 | PyObject * obj0 = 0 ; | |
19762 | PyObject * obj1 = 0 ; | |
19763 | char *kwnames[] = { | |
19764 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
19765 | }; | |
19766 | ||
19767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Window_Move",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19769 | { | |
19770 | arg2 = &temp2; | |
19771 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19772 | } | |
19773 | { | |
19774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19775 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
19776 | ||
19777 | wxPyEndAllowThreads(__tstate); | |
19778 | if (PyErr_Occurred()) SWIG_fail; | |
19779 | } | |
19780 | Py_INCREF(Py_None); resultobj = Py_None; | |
19781 | return resultobj; | |
19782 | fail: | |
19783 | return NULL; | |
19784 | } | |
19785 | ||
19786 | ||
19787 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19788 | PyObject *resultobj; | |
19789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19790 | int arg2 ; | |
19791 | int arg3 ; | |
19792 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
19793 | PyObject * obj0 = 0 ; | |
19794 | char *kwnames[] = { | |
19795 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
19796 | }; | |
19797 | ||
19798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Window_MoveXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
19799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19800 | { | |
19801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19802 | (arg1)->Move(arg2,arg3,arg4); | |
19803 | ||
19804 | wxPyEndAllowThreads(__tstate); | |
19805 | if (PyErr_Occurred()) SWIG_fail; | |
19806 | } | |
19807 | Py_INCREF(Py_None); resultobj = Py_None; | |
19808 | return resultobj; | |
19809 | fail: | |
19810 | return NULL; | |
19811 | } | |
19812 | ||
19813 | ||
19814 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19815 | PyObject *resultobj; | |
19816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19817 | PyObject * obj0 = 0 ; | |
19818 | char *kwnames[] = { | |
19819 | (char *) "self", NULL | |
19820 | }; | |
19821 | ||
19822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
19823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19824 | { | |
19825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19826 | (arg1)->Raise(); | |
19827 | ||
19828 | wxPyEndAllowThreads(__tstate); | |
19829 | if (PyErr_Occurred()) SWIG_fail; | |
19830 | } | |
19831 | Py_INCREF(Py_None); resultobj = Py_None; | |
19832 | return resultobj; | |
19833 | fail: | |
19834 | return NULL; | |
19835 | } | |
19836 | ||
19837 | ||
19838 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19839 | PyObject *resultobj; | |
19840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19841 | PyObject * obj0 = 0 ; | |
19842 | char *kwnames[] = { | |
19843 | (char *) "self", NULL | |
19844 | }; | |
19845 | ||
19846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
19847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | (arg1)->Lower(); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | Py_INCREF(Py_None); resultobj = Py_None; | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
19862 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19863 | PyObject *resultobj; | |
19864 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19865 | wxSize *arg2 = 0 ; | |
19866 | wxSize temp2 ; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | PyObject * obj1 = 0 ; | |
19869 | char *kwnames[] = { | |
19870 | (char *) "self",(char *) "size", NULL | |
19871 | }; | |
19872 | ||
19873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
19874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19875 | { | |
19876 | arg2 = &temp2; | |
19877 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19878 | } | |
19879 | { | |
19880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19881 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
19882 | ||
19883 | wxPyEndAllowThreads(__tstate); | |
19884 | if (PyErr_Occurred()) SWIG_fail; | |
19885 | } | |
19886 | Py_INCREF(Py_None); resultobj = Py_None; | |
19887 | return resultobj; | |
19888 | fail: | |
19889 | return NULL; | |
19890 | } | |
19891 | ||
19892 | ||
19893 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19894 | PyObject *resultobj; | |
19895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19896 | int arg2 ; | |
19897 | int arg3 ; | |
19898 | PyObject * obj0 = 0 ; | |
19899 | char *kwnames[] = { | |
19900 | (char *) "self",(char *) "width",(char *) "height", NULL | |
19901 | }; | |
19902 | ||
19903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetClientSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19905 | { | |
19906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19907 | (arg1)->SetClientSize(arg2,arg3); | |
19908 | ||
19909 | wxPyEndAllowThreads(__tstate); | |
19910 | if (PyErr_Occurred()) SWIG_fail; | |
19911 | } | |
19912 | Py_INCREF(Py_None); resultobj = Py_None; | |
19913 | return resultobj; | |
19914 | fail: | |
19915 | return NULL; | |
19916 | } | |
19917 | ||
19918 | ||
19919 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19920 | PyObject *resultobj; | |
19921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19922 | wxRect *arg2 = 0 ; | |
19923 | wxRect temp2 ; | |
19924 | PyObject * obj0 = 0 ; | |
19925 | PyObject * obj1 = 0 ; | |
19926 | char *kwnames[] = { | |
19927 | (char *) "self",(char *) "rect", NULL | |
19928 | }; | |
19929 | ||
19930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
19931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19932 | { | |
19933 | arg2 = &temp2; | |
19934 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19935 | } | |
19936 | { | |
19937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19938 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
19939 | ||
19940 | wxPyEndAllowThreads(__tstate); | |
19941 | if (PyErr_Occurred()) SWIG_fail; | |
19942 | } | |
19943 | Py_INCREF(Py_None); resultobj = Py_None; | |
19944 | return resultobj; | |
19945 | fail: | |
19946 | return NULL; | |
19947 | } | |
19948 | ||
19949 | ||
19950 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19951 | PyObject *resultobj; | |
19952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19953 | wxPoint result; | |
19954 | PyObject * obj0 = 0 ; | |
19955 | char *kwnames[] = { | |
19956 | (char *) "self", NULL | |
19957 | }; | |
19958 | ||
19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
19960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19961 | { | |
19962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 19963 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
19964 | |
19965 | wxPyEndAllowThreads(__tstate); | |
19966 | if (PyErr_Occurred()) SWIG_fail; | |
19967 | } | |
19968 | { | |
19969 | wxPoint * resultptr; | |
19970 | resultptr = new wxPoint((wxPoint &) result); | |
19971 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
19972 | } | |
19973 | return resultobj; | |
19974 | fail: | |
19975 | return NULL; | |
19976 | } | |
19977 | ||
19978 | ||
19979 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19980 | PyObject *resultobj; | |
19981 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19982 | int *arg2 = (int *) 0 ; | |
19983 | int *arg3 = (int *) 0 ; | |
19984 | int temp2 ; | |
19985 | int temp3 ; | |
19986 | PyObject * obj0 = 0 ; | |
19987 | char *kwnames[] = { | |
19988 | (char *) "self", NULL | |
19989 | }; | |
19990 | ||
19991 | arg2 = &temp2; | |
19992 | arg3 = &temp3; | |
19993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
19994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19995 | { | |
19996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 19997 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
19998 | |
19999 | wxPyEndAllowThreads(__tstate); | |
20000 | if (PyErr_Occurred()) SWIG_fail; | |
20001 | } | |
20002 | Py_INCREF(Py_None); resultobj = Py_None; | |
20003 | { | |
20004 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20005 | resultobj = t_output_helper(resultobj,o); | |
20006 | } | |
20007 | { | |
20008 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20009 | resultobj = t_output_helper(resultobj,o); | |
20010 | } | |
20011 | return resultobj; | |
20012 | fail: | |
20013 | return NULL; | |
20014 | } | |
20015 | ||
20016 | ||
20017 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20018 | PyObject *resultobj; | |
20019 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20020 | wxSize result; | |
20021 | PyObject * obj0 = 0 ; | |
20022 | char *kwnames[] = { | |
20023 | (char *) "self", NULL | |
20024 | }; | |
20025 | ||
20026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
20027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20028 | { | |
20029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20030 | result = ((wxWindow const *)arg1)->GetSize(); | |
20031 | ||
20032 | wxPyEndAllowThreads(__tstate); | |
20033 | if (PyErr_Occurred()) SWIG_fail; | |
20034 | } | |
20035 | { | |
20036 | wxSize * resultptr; | |
20037 | resultptr = new wxSize((wxSize &) result); | |
20038 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20039 | } | |
20040 | return resultobj; | |
20041 | fail: | |
20042 | return NULL; | |
20043 | } | |
20044 | ||
20045 | ||
20046 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20047 | PyObject *resultobj; | |
20048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20049 | int *arg2 = (int *) 0 ; | |
20050 | int *arg3 = (int *) 0 ; | |
20051 | int temp2 ; | |
20052 | int temp3 ; | |
20053 | PyObject * obj0 = 0 ; | |
20054 | char *kwnames[] = { | |
20055 | (char *) "self", NULL | |
20056 | }; | |
20057 | ||
20058 | arg2 = &temp2; | |
20059 | arg3 = &temp3; | |
20060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
20061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20062 | { | |
20063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20064 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
20065 | ||
20066 | wxPyEndAllowThreads(__tstate); | |
20067 | if (PyErr_Occurred()) SWIG_fail; | |
20068 | } | |
20069 | Py_INCREF(Py_None); resultobj = Py_None; | |
20070 | { | |
20071 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20072 | resultobj = t_output_helper(resultobj,o); | |
20073 | } | |
20074 | { | |
20075 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20076 | resultobj = t_output_helper(resultobj,o); | |
20077 | } | |
20078 | return resultobj; | |
20079 | fail: | |
20080 | return NULL; | |
20081 | } | |
20082 | ||
20083 | ||
20084 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20085 | PyObject *resultobj; | |
20086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20087 | wxRect result; | |
20088 | PyObject * obj0 = 0 ; | |
20089 | char *kwnames[] = { | |
20090 | (char *) "self", NULL | |
20091 | }; | |
20092 | ||
20093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
20094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20095 | { | |
20096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20097 | result = ((wxWindow const *)arg1)->GetRect(); | |
20098 | ||
20099 | wxPyEndAllowThreads(__tstate); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | } | |
20102 | { | |
20103 | wxRect * resultptr; | |
20104 | resultptr = new wxRect((wxRect &) result); | |
20105 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20106 | } | |
20107 | return resultobj; | |
20108 | fail: | |
20109 | return NULL; | |
20110 | } | |
20111 | ||
20112 | ||
20113 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20114 | PyObject *resultobj; | |
20115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20116 | wxSize result; | |
20117 | PyObject * obj0 = 0 ; | |
20118 | char *kwnames[] = { | |
20119 | (char *) "self", NULL | |
20120 | }; | |
20121 | ||
20122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
20123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20124 | { | |
20125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20126 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
20127 | ||
20128 | wxPyEndAllowThreads(__tstate); | |
20129 | if (PyErr_Occurred()) SWIG_fail; | |
20130 | } | |
20131 | { | |
20132 | wxSize * resultptr; | |
20133 | resultptr = new wxSize((wxSize &) result); | |
20134 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20135 | } | |
20136 | return resultobj; | |
20137 | fail: | |
20138 | return NULL; | |
20139 | } | |
20140 | ||
20141 | ||
20142 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20143 | PyObject *resultobj; | |
20144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20145 | int *arg2 = (int *) 0 ; | |
20146 | int *arg3 = (int *) 0 ; | |
20147 | int temp2 ; | |
20148 | int temp3 ; | |
20149 | PyObject * obj0 = 0 ; | |
20150 | char *kwnames[] = { | |
20151 | (char *) "self", NULL | |
20152 | }; | |
20153 | ||
20154 | arg2 = &temp2; | |
20155 | arg3 = &temp3; | |
20156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
20157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20158 | { | |
20159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20160 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
20161 | ||
20162 | wxPyEndAllowThreads(__tstate); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
20164 | } | |
20165 | Py_INCREF(Py_None); resultobj = Py_None; | |
20166 | { | |
20167 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20168 | resultobj = t_output_helper(resultobj,o); | |
20169 | } | |
20170 | { | |
20171 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20172 | resultobj = t_output_helper(resultobj,o); | |
20173 | } | |
20174 | return resultobj; | |
20175 | fail: | |
20176 | return NULL; | |
20177 | } | |
20178 | ||
20179 | ||
20180 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20181 | PyObject *resultobj; | |
20182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20183 | wxPoint result; | |
20184 | PyObject * obj0 = 0 ; | |
20185 | char *kwnames[] = { | |
20186 | (char *) "self", NULL | |
20187 | }; | |
20188 | ||
20189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
20190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20191 | { | |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
20198 | { | |
20199 | wxPoint * resultptr; | |
20200 | resultptr = new wxPoint((wxPoint &) result); | |
20201 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20202 | } | |
20203 | return resultobj; | |
20204 | fail: | |
20205 | return NULL; | |
20206 | } | |
20207 | ||
20208 | ||
20209 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20210 | PyObject *resultobj; | |
20211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20212 | wxRect result; | |
20213 | PyObject * obj0 = 0 ; | |
20214 | char *kwnames[] = { | |
20215 | (char *) "self", NULL | |
20216 | }; | |
20217 | ||
20218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
20219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20220 | { | |
20221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20222 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
20223 | ||
20224 | wxPyEndAllowThreads(__tstate); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | { | |
20228 | wxRect * resultptr; | |
20229 | resultptr = new wxRect((wxRect &) result); | |
20230 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | return NULL; | |
20235 | } | |
20236 | ||
20237 | ||
20238 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20239 | PyObject *resultobj; | |
20240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20241 | wxSize result; | |
20242 | PyObject * obj0 = 0 ; | |
20243 | char *kwnames[] = { | |
20244 | (char *) "self", NULL | |
20245 | }; | |
20246 | ||
20247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
20248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20249 | { | |
20250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20251 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
20252 | ||
20253 | wxPyEndAllowThreads(__tstate); | |
20254 | if (PyErr_Occurred()) SWIG_fail; | |
20255 | } | |
20256 | { | |
20257 | wxSize * resultptr; | |
20258 | resultptr = new wxSize((wxSize &) result); | |
20259 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20260 | } | |
20261 | return resultobj; | |
20262 | fail: | |
20263 | return NULL; | |
20264 | } | |
20265 | ||
20266 | ||
20267 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20268 | PyObject *resultobj; | |
20269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20270 | int *arg2 = (int *) 0 ; | |
20271 | int *arg3 = (int *) 0 ; | |
20272 | int temp2 ; | |
20273 | int temp3 ; | |
20274 | PyObject * obj0 = 0 ; | |
20275 | char *kwnames[] = { | |
20276 | (char *) "self", NULL | |
20277 | }; | |
20278 | ||
20279 | arg2 = &temp2; | |
20280 | arg3 = &temp3; | |
20281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
20282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20283 | { | |
20284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20285 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
20286 | ||
20287 | wxPyEndAllowThreads(__tstate); | |
20288 | if (PyErr_Occurred()) SWIG_fail; | |
20289 | } | |
20290 | Py_INCREF(Py_None); resultobj = Py_None; | |
20291 | { | |
20292 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20293 | resultobj = t_output_helper(resultobj,o); | |
20294 | } | |
20295 | { | |
20296 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20297 | resultobj = t_output_helper(resultobj,o); | |
20298 | } | |
20299 | return resultobj; | |
20300 | fail: | |
20301 | return NULL; | |
20302 | } | |
20303 | ||
20304 | ||
20305 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20306 | PyObject *resultobj; | |
20307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20308 | wxSize result; | |
20309 | PyObject * obj0 = 0 ; | |
20310 | char *kwnames[] = { | |
20311 | (char *) "self", NULL | |
20312 | }; | |
20313 | ||
20314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
20315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20316 | { | |
20317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20318 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
20319 | ||
20320 | wxPyEndAllowThreads(__tstate); | |
20321 | if (PyErr_Occurred()) SWIG_fail; | |
20322 | } | |
20323 | { | |
20324 | wxSize * resultptr; | |
20325 | resultptr = new wxSize((wxSize &) result); | |
20326 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20327 | } | |
20328 | return resultobj; | |
20329 | fail: | |
20330 | return NULL; | |
20331 | } | |
20332 | ||
20333 | ||
20334 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20335 | PyObject *resultobj; | |
20336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20337 | int arg2 = (int) wxBOTH ; | |
20338 | PyObject * obj0 = 0 ; | |
20339 | char *kwnames[] = { | |
20340 | (char *) "self",(char *) "direction", NULL | |
20341 | }; | |
20342 | ||
20343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_Center",kwnames,&obj0,&arg2)) goto fail; | |
20344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | (arg1)->Center(arg2); | |
20348 | ||
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
20352 | Py_INCREF(Py_None); resultobj = Py_None; | |
20353 | return resultobj; | |
20354 | fail: | |
20355 | return NULL; | |
20356 | } | |
20357 | ||
20358 | ||
20359 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20360 | PyObject *resultobj; | |
20361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20362 | int arg2 = (int) wxBOTH ; | |
20363 | PyObject * obj0 = 0 ; | |
20364 | char *kwnames[] = { | |
20365 | (char *) "self",(char *) "dir", NULL | |
20366 | }; | |
20367 | ||
20368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnScreen",kwnames,&obj0,&arg2)) goto fail; | |
20369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | (arg1)->CenterOnScreen(arg2); | |
20373 | ||
20374 | wxPyEndAllowThreads(__tstate); | |
20375 | if (PyErr_Occurred()) SWIG_fail; | |
20376 | } | |
20377 | Py_INCREF(Py_None); resultobj = Py_None; | |
20378 | return resultobj; | |
20379 | fail: | |
20380 | return NULL; | |
20381 | } | |
20382 | ||
20383 | ||
20384 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20385 | PyObject *resultobj; | |
20386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20387 | int arg2 = (int) wxBOTH ; | |
20388 | PyObject * obj0 = 0 ; | |
20389 | char *kwnames[] = { | |
20390 | (char *) "self",(char *) "dir", NULL | |
20391 | }; | |
20392 | ||
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Window_CenterOnParent",kwnames,&obj0,&arg2)) goto fail; | |
20394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20395 | { | |
20396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20397 | (arg1)->CenterOnParent(arg2); | |
20398 | ||
20399 | wxPyEndAllowThreads(__tstate); | |
20400 | if (PyErr_Occurred()) SWIG_fail; | |
20401 | } | |
20402 | Py_INCREF(Py_None); resultobj = Py_None; | |
20403 | return resultobj; | |
20404 | fail: | |
20405 | return NULL; | |
20406 | } | |
20407 | ||
20408 | ||
20409 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20410 | PyObject *resultobj; | |
20411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20412 | PyObject * obj0 = 0 ; | |
20413 | char *kwnames[] = { | |
20414 | (char *) "self", NULL | |
20415 | }; | |
20416 | ||
20417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
20418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20419 | { | |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | (arg1)->Fit(); | |
20422 | ||
20423 | wxPyEndAllowThreads(__tstate); | |
20424 | if (PyErr_Occurred()) SWIG_fail; | |
20425 | } | |
20426 | Py_INCREF(Py_None); resultobj = Py_None; | |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
20433 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20434 | PyObject *resultobj; | |
20435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20436 | PyObject * obj0 = 0 ; | |
20437 | char *kwnames[] = { | |
20438 | (char *) "self", NULL | |
20439 | }; | |
20440 | ||
20441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
20442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20443 | { | |
20444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20445 | (arg1)->FitInside(); | |
20446 | ||
20447 | wxPyEndAllowThreads(__tstate); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
20450 | Py_INCREF(Py_None); resultobj = Py_None; | |
20451 | return resultobj; | |
20452 | fail: | |
20453 | return NULL; | |
20454 | } | |
20455 | ||
20456 | ||
20457 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20458 | PyObject *resultobj; | |
20459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20460 | int arg2 ; | |
20461 | int arg3 ; | |
20462 | int arg4 = (int) -1 ; | |
20463 | int arg5 = (int) -1 ; | |
20464 | int arg6 = (int) -1 ; | |
20465 | int arg7 = (int) -1 ; | |
20466 | PyObject * obj0 = 0 ; | |
20467 | char *kwnames[] = { | |
20468 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
20469 | }; | |
20470 | ||
20471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiii:Window_SetSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
20472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20473 | { | |
20474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20475 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
20476 | ||
20477 | wxPyEndAllowThreads(__tstate); | |
20478 | if (PyErr_Occurred()) SWIG_fail; | |
20479 | } | |
20480 | Py_INCREF(Py_None); resultobj = Py_None; | |
20481 | return resultobj; | |
20482 | fail: | |
20483 | return NULL; | |
20484 | } | |
20485 | ||
20486 | ||
20487 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20488 | PyObject *resultobj; | |
20489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20490 | int arg2 ; | |
20491 | int arg3 ; | |
20492 | int arg4 = (int) -1 ; | |
20493 | int arg5 = (int) -1 ; | |
20494 | PyObject * obj0 = 0 ; | |
20495 | char *kwnames[] = { | |
20496 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
20497 | }; | |
20498 | ||
20499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_SetVirtualSizeHints",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
20500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20501 | { | |
20502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20503 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
20504 | ||
20505 | wxPyEndAllowThreads(__tstate); | |
20506 | if (PyErr_Occurred()) SWIG_fail; | |
20507 | } | |
20508 | Py_INCREF(Py_None); resultobj = Py_None; | |
20509 | return resultobj; | |
20510 | fail: | |
20511 | return NULL; | |
20512 | } | |
20513 | ||
20514 | ||
20515 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20516 | PyObject *resultobj; | |
20517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20518 | int result; | |
20519 | PyObject * obj0 = 0 ; | |
20520 | char *kwnames[] = { | |
20521 | (char *) "self", NULL | |
20522 | }; | |
20523 | ||
20524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
20525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20526 | { | |
20527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20528 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
20529 | ||
20530 | wxPyEndAllowThreads(__tstate); | |
20531 | if (PyErr_Occurred()) SWIG_fail; | |
20532 | } | |
20533 | resultobj = PyInt_FromLong((long)result); | |
20534 | return resultobj; | |
20535 | fail: | |
20536 | return NULL; | |
20537 | } | |
20538 | ||
20539 | ||
20540 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20541 | PyObject *resultobj; | |
20542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20543 | int result; | |
20544 | PyObject * obj0 = 0 ; | |
20545 | char *kwnames[] = { | |
20546 | (char *) "self", NULL | |
20547 | }; | |
20548 | ||
20549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
20550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20551 | { | |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
20554 | ||
20555 | wxPyEndAllowThreads(__tstate); | |
20556 | if (PyErr_Occurred()) SWIG_fail; | |
20557 | } | |
20558 | resultobj = PyInt_FromLong((long)result); | |
20559 | return resultobj; | |
20560 | fail: | |
20561 | return NULL; | |
20562 | } | |
20563 | ||
20564 | ||
20565 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20566 | PyObject *resultobj; | |
20567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20568 | int result; | |
20569 | PyObject * obj0 = 0 ; | |
20570 | char *kwnames[] = { | |
20571 | (char *) "self", NULL | |
20572 | }; | |
20573 | ||
20574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
20575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20576 | { | |
20577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20578 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
20579 | ||
20580 | wxPyEndAllowThreads(__tstate); | |
20581 | if (PyErr_Occurred()) SWIG_fail; | |
20582 | } | |
20583 | resultobj = PyInt_FromLong((long)result); | |
20584 | return resultobj; | |
20585 | fail: | |
20586 | return NULL; | |
20587 | } | |
20588 | ||
20589 | ||
20590 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20591 | PyObject *resultobj; | |
20592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20593 | int result; | |
20594 | PyObject * obj0 = 0 ; | |
20595 | char *kwnames[] = { | |
20596 | (char *) "self", NULL | |
20597 | }; | |
20598 | ||
20599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
20600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20601 | { | |
20602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20603 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
20604 | ||
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | resultobj = PyInt_FromLong((long)result); | |
20609 | return resultobj; | |
20610 | fail: | |
20611 | return NULL; | |
20612 | } | |
20613 | ||
20614 | ||
20615 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20616 | PyObject *resultobj; | |
20617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20618 | wxSize result; | |
20619 | PyObject * obj0 = 0 ; | |
20620 | char *kwnames[] = { | |
20621 | (char *) "self", NULL | |
20622 | }; | |
20623 | ||
20624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
20625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20626 | { | |
20627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20628 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
20629 | ||
20630 | wxPyEndAllowThreads(__tstate); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | } | |
20633 | { | |
20634 | wxSize * resultptr; | |
20635 | resultptr = new wxSize((wxSize &) result); | |
20636 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20637 | } | |
20638 | return resultobj; | |
20639 | fail: | |
20640 | return NULL; | |
20641 | } | |
20642 | ||
20643 | ||
20644 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20645 | PyObject *resultobj; | |
20646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20647 | wxSize *arg2 = 0 ; | |
20648 | wxSize temp2 ; | |
20649 | PyObject * obj0 = 0 ; | |
20650 | PyObject * obj1 = 0 ; | |
20651 | char *kwnames[] = { | |
20652 | (char *) "self",(char *) "size", NULL | |
20653 | }; | |
20654 | ||
20655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
20656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20657 | { | |
20658 | arg2 = &temp2; | |
20659 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20660 | } | |
20661 | { | |
20662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20663 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
20664 | ||
20665 | wxPyEndAllowThreads(__tstate); | |
20666 | if (PyErr_Occurred()) SWIG_fail; | |
20667 | } | |
20668 | Py_INCREF(Py_None); resultobj = Py_None; | |
20669 | return resultobj; | |
20670 | fail: | |
20671 | return NULL; | |
20672 | } | |
20673 | ||
20674 | ||
20675 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20676 | PyObject *resultobj; | |
20677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20678 | int arg2 ; | |
20679 | int arg3 ; | |
20680 | PyObject * obj0 = 0 ; | |
20681 | char *kwnames[] = { | |
20682 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20683 | }; | |
20684 | ||
20685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_SetVirtualSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
20686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20687 | { | |
20688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20689 | (arg1)->SetVirtualSize(arg2,arg3); | |
20690 | ||
20691 | wxPyEndAllowThreads(__tstate); | |
20692 | if (PyErr_Occurred()) SWIG_fail; | |
20693 | } | |
20694 | Py_INCREF(Py_None); resultobj = Py_None; | |
20695 | return resultobj; | |
20696 | fail: | |
20697 | return NULL; | |
20698 | } | |
20699 | ||
20700 | ||
20701 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20702 | PyObject *resultobj; | |
20703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20704 | wxSize result; | |
20705 | PyObject * obj0 = 0 ; | |
20706 | char *kwnames[] = { | |
20707 | (char *) "self", NULL | |
20708 | }; | |
20709 | ||
20710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
20711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20712 | { | |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
20715 | ||
20716 | wxPyEndAllowThreads(__tstate); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
20719 | { | |
20720 | wxSize * resultptr; | |
20721 | resultptr = new wxSize((wxSize &) result); | |
20722 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20723 | } | |
20724 | return resultobj; | |
20725 | fail: | |
20726 | return NULL; | |
20727 | } | |
20728 | ||
20729 | ||
20730 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20731 | PyObject *resultobj; | |
20732 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20733 | int *arg2 = (int *) 0 ; | |
20734 | int *arg3 = (int *) 0 ; | |
20735 | int temp2 ; | |
20736 | int temp3 ; | |
20737 | PyObject * obj0 = 0 ; | |
20738 | char *kwnames[] = { | |
20739 | (char *) "self", NULL | |
20740 | }; | |
20741 | ||
20742 | arg2 = &temp2; | |
20743 | arg3 = &temp3; | |
20744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
20745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20746 | { | |
20747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20748 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
20749 | ||
20750 | wxPyEndAllowThreads(__tstate); | |
20751 | if (PyErr_Occurred()) SWIG_fail; | |
20752 | } | |
20753 | Py_INCREF(Py_None); resultobj = Py_None; | |
20754 | { | |
20755 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20756 | resultobj = t_output_helper(resultobj,o); | |
20757 | } | |
20758 | { | |
20759 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20760 | resultobj = t_output_helper(resultobj,o); | |
20761 | } | |
20762 | return resultobj; | |
20763 | fail: | |
20764 | return NULL; | |
20765 | } | |
20766 | ||
20767 | ||
20768 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20769 | PyObject *resultobj; | |
20770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20771 | wxSize result; | |
20772 | PyObject * obj0 = 0 ; | |
20773 | char *kwnames[] = { | |
20774 | (char *) "self", NULL | |
20775 | }; | |
20776 | ||
20777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
20778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20779 | { | |
20780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20781 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
20782 | ||
20783 | wxPyEndAllowThreads(__tstate); | |
20784 | if (PyErr_Occurred()) SWIG_fail; | |
20785 | } | |
20786 | { | |
20787 | wxSize * resultptr; | |
20788 | resultptr = new wxSize((wxSize &) result); | |
20789 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
20790 | } | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
20794 | } | |
20795 | ||
20796 | ||
20797 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20798 | PyObject *resultobj; | |
20799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20800 | bool arg2 = (bool) True ; |
d14a1e28 RD |
20801 | bool result; |
20802 | PyObject * obj0 = 0 ; | |
20803 | PyObject * obj1 = 0 ; | |
20804 | char *kwnames[] = { | |
20805 | (char *) "self",(char *) "show", NULL | |
20806 | }; | |
20807 | ||
20808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
20809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20810 | if (obj1) { | |
20811 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20812 | if (PyErr_Occurred()) SWIG_fail; | |
20813 | } | |
20814 | { | |
20815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20816 | result = (bool)(arg1)->Show(arg2); | |
20817 | ||
20818 | wxPyEndAllowThreads(__tstate); | |
20819 | if (PyErr_Occurred()) SWIG_fail; | |
20820 | } | |
20821 | resultobj = PyInt_FromLong((long)result); | |
20822 | return resultobj; | |
20823 | fail: | |
20824 | return NULL; | |
20825 | } | |
20826 | ||
20827 | ||
20828 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20829 | PyObject *resultobj; | |
20830 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20831 | bool result; | |
20832 | PyObject * obj0 = 0 ; | |
20833 | char *kwnames[] = { | |
20834 | (char *) "self", NULL | |
20835 | }; | |
20836 | ||
20837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
20838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20839 | { | |
20840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20841 | result = (bool)(arg1)->Hide(); | |
20842 | ||
20843 | wxPyEndAllowThreads(__tstate); | |
20844 | if (PyErr_Occurred()) SWIG_fail; | |
20845 | } | |
20846 | resultobj = PyInt_FromLong((long)result); | |
20847 | return resultobj; | |
20848 | fail: | |
20849 | return NULL; | |
20850 | } | |
20851 | ||
20852 | ||
20853 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20854 | PyObject *resultobj; | |
20855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20856 | bool arg2 = (bool) True ; |
d14a1e28 RD |
20857 | bool result; |
20858 | PyObject * obj0 = 0 ; | |
20859 | PyObject * obj1 = 0 ; | |
20860 | char *kwnames[] = { | |
20861 | (char *) "self",(char *) "enable", NULL | |
20862 | }; | |
20863 | ||
20864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
20865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20866 | if (obj1) { | |
20867 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20868 | if (PyErr_Occurred()) SWIG_fail; | |
20869 | } | |
20870 | { | |
20871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20872 | result = (bool)(arg1)->Enable(arg2); | |
20873 | ||
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
20877 | resultobj = PyInt_FromLong((long)result); | |
20878 | return resultobj; | |
20879 | fail: | |
20880 | return NULL; | |
20881 | } | |
20882 | ||
20883 | ||
20884 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20885 | PyObject *resultobj; | |
20886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20887 | bool result; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | char *kwnames[] = { | |
20890 | (char *) "self", NULL | |
20891 | }; | |
20892 | ||
20893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
20894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20895 | { | |
20896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20897 | result = (bool)(arg1)->Disable(); | |
20898 | ||
20899 | wxPyEndAllowThreads(__tstate); | |
20900 | if (PyErr_Occurred()) SWIG_fail; | |
20901 | } | |
20902 | resultobj = PyInt_FromLong((long)result); | |
20903 | return resultobj; | |
20904 | fail: | |
20905 | return NULL; | |
20906 | } | |
20907 | ||
20908 | ||
20909 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20910 | PyObject *resultobj; | |
20911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20912 | bool result; | |
20913 | PyObject * obj0 = 0 ; | |
20914 | char *kwnames[] = { | |
20915 | (char *) "self", NULL | |
20916 | }; | |
20917 | ||
20918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
20919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20920 | { | |
20921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20922 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
20923 | ||
20924 | wxPyEndAllowThreads(__tstate); | |
20925 | if (PyErr_Occurred()) SWIG_fail; | |
20926 | } | |
20927 | resultobj = PyInt_FromLong((long)result); | |
20928 | return resultobj; | |
20929 | fail: | |
20930 | return NULL; | |
20931 | } | |
20932 | ||
20933 | ||
20934 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20935 | PyObject *resultobj; | |
20936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20937 | bool result; | |
20938 | PyObject * obj0 = 0 ; | |
20939 | char *kwnames[] = { | |
20940 | (char *) "self", NULL | |
20941 | }; | |
20942 | ||
20943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
20944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20945 | { | |
20946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20947 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
20948 | ||
20949 | wxPyEndAllowThreads(__tstate); | |
20950 | if (PyErr_Occurred()) SWIG_fail; | |
20951 | } | |
20952 | resultobj = PyInt_FromLong((long)result); | |
20953 | return resultobj; | |
20954 | fail: | |
20955 | return NULL; | |
20956 | } | |
20957 | ||
20958 | ||
20959 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20960 | PyObject *resultobj; | |
20961 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20962 | long arg2 ; | |
20963 | PyObject * obj0 = 0 ; | |
20964 | char *kwnames[] = { | |
20965 | (char *) "self",(char *) "style", NULL | |
20966 | }; | |
20967 | ||
20968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
20969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20970 | { | |
20971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20972 | (arg1)->SetWindowStyleFlag(arg2); | |
20973 | ||
20974 | wxPyEndAllowThreads(__tstate); | |
20975 | if (PyErr_Occurred()) SWIG_fail; | |
20976 | } | |
20977 | Py_INCREF(Py_None); resultobj = Py_None; | |
20978 | return resultobj; | |
20979 | fail: | |
20980 | return NULL; | |
20981 | } | |
20982 | ||
20983 | ||
20984 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20985 | PyObject *resultobj; | |
20986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20987 | long result; | |
20988 | PyObject * obj0 = 0 ; | |
20989 | char *kwnames[] = { | |
20990 | (char *) "self", NULL | |
20991 | }; | |
20992 | ||
20993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
20994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20995 | { | |
20996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20997 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | resultobj = PyInt_FromLong((long)result); | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj; | |
21011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21012 | long arg2 ; | |
21013 | PyObject * obj0 = 0 ; | |
21014 | char *kwnames[] = { | |
21015 | (char *) "self",(char *) "style", NULL | |
21016 | }; | |
21017 | ||
21018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetWindowStyle",kwnames,&obj0,&arg2)) goto fail; | |
21019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21020 | { | |
21021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21022 | (arg1)->SetWindowStyle(arg2); | |
21023 | ||
21024 | wxPyEndAllowThreads(__tstate); | |
21025 | if (PyErr_Occurred()) SWIG_fail; | |
21026 | } | |
21027 | Py_INCREF(Py_None); resultobj = Py_None; | |
21028 | return resultobj; | |
21029 | fail: | |
21030 | return NULL; | |
21031 | } | |
21032 | ||
21033 | ||
21034 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21035 | PyObject *resultobj; | |
21036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21037 | long result; | |
21038 | PyObject * obj0 = 0 ; | |
21039 | char *kwnames[] = { | |
21040 | (char *) "self", NULL | |
21041 | }; | |
21042 | ||
21043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
21044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21045 | { | |
21046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21047 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
21048 | ||
21049 | wxPyEndAllowThreads(__tstate); | |
21050 | if (PyErr_Occurred()) SWIG_fail; | |
21051 | } | |
21052 | resultobj = PyInt_FromLong((long)result); | |
21053 | return resultobj; | |
21054 | fail: | |
21055 | return NULL; | |
21056 | } | |
21057 | ||
21058 | ||
21059 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21060 | PyObject *resultobj; | |
21061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21062 | int arg2 ; | |
21063 | bool result; | |
21064 | PyObject * obj0 = 0 ; | |
21065 | char *kwnames[] = { | |
21066 | (char *) "self",(char *) "flag", NULL | |
21067 | }; | |
21068 | ||
21069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
21070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21071 | { | |
21072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21073 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
21074 | ||
21075 | wxPyEndAllowThreads(__tstate); | |
21076 | if (PyErr_Occurred()) SWIG_fail; | |
21077 | } | |
21078 | resultobj = PyInt_FromLong((long)result); | |
21079 | return resultobj; | |
21080 | fail: | |
21081 | return NULL; | |
21082 | } | |
21083 | ||
21084 | ||
21085 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21086 | PyObject *resultobj; | |
21087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21088 | bool result; | |
21089 | PyObject * obj0 = 0 ; | |
21090 | char *kwnames[] = { | |
21091 | (char *) "self", NULL | |
21092 | }; | |
21093 | ||
21094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
21095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21096 | { | |
21097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21098 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
21099 | ||
21100 | wxPyEndAllowThreads(__tstate); | |
21101 | if (PyErr_Occurred()) SWIG_fail; | |
21102 | } | |
21103 | resultobj = PyInt_FromLong((long)result); | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
21110 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21111 | PyObject *resultobj; | |
21112 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21113 | long arg2 ; | |
21114 | PyObject * obj0 = 0 ; | |
21115 | char *kwnames[] = { | |
21116 | (char *) "self",(char *) "exStyle", NULL | |
21117 | }; | |
21118 | ||
21119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_SetExtraStyle",kwnames,&obj0,&arg2)) goto fail; | |
21120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21121 | { | |
21122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21123 | (arg1)->SetExtraStyle(arg2); | |
21124 | ||
21125 | wxPyEndAllowThreads(__tstate); | |
21126 | if (PyErr_Occurred()) SWIG_fail; | |
21127 | } | |
21128 | Py_INCREF(Py_None); resultobj = Py_None; | |
21129 | return resultobj; | |
21130 | fail: | |
21131 | return NULL; | |
21132 | } | |
21133 | ||
21134 | ||
21135 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21136 | PyObject *resultobj; | |
21137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21138 | long result; | |
21139 | PyObject * obj0 = 0 ; | |
21140 | char *kwnames[] = { | |
21141 | (char *) "self", NULL | |
21142 | }; | |
21143 | ||
21144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
21145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21146 | { | |
21147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21148 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
21149 | ||
21150 | wxPyEndAllowThreads(__tstate); | |
21151 | if (PyErr_Occurred()) SWIG_fail; | |
21152 | } | |
21153 | resultobj = PyInt_FromLong((long)result); | |
21154 | return resultobj; | |
21155 | fail: | |
21156 | return NULL; | |
21157 | } | |
21158 | ||
21159 | ||
21160 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21161 | PyObject *resultobj; | |
21162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21163 | bool arg2 = (bool) True ; |
d14a1e28 RD |
21164 | PyObject * obj0 = 0 ; |
21165 | PyObject * obj1 = 0 ; | |
21166 | char *kwnames[] = { | |
21167 | (char *) "self",(char *) "modal", NULL | |
21168 | }; | |
21169 | ||
21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
21171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21172 | if (obj1) { | |
21173 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21174 | if (PyErr_Occurred()) SWIG_fail; | |
21175 | } | |
21176 | { | |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | (arg1)->MakeModal(arg2); | |
21179 | ||
21180 | wxPyEndAllowThreads(__tstate); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
21183 | Py_INCREF(Py_None); resultobj = Py_None; | |
21184 | return resultobj; | |
21185 | fail: | |
21186 | return NULL; | |
21187 | } | |
21188 | ||
21189 | ||
21190 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21191 | PyObject *resultobj; | |
21192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21193 | bool arg2 ; | |
21194 | PyObject * obj0 = 0 ; | |
21195 | PyObject * obj1 = 0 ; | |
21196 | char *kwnames[] = { | |
21197 | (char *) "self",(char *) "enableTheme", NULL | |
21198 | }; | |
21199 | ||
21200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
21201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21202 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21203 | if (PyErr_Occurred()) SWIG_fail; | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | (arg1)->SetThemeEnabled(arg2); | |
21207 | ||
21208 | wxPyEndAllowThreads(__tstate); | |
21209 | if (PyErr_Occurred()) SWIG_fail; | |
21210 | } | |
21211 | Py_INCREF(Py_None); resultobj = Py_None; | |
21212 | return resultobj; | |
21213 | fail: | |
21214 | return NULL; | |
21215 | } | |
21216 | ||
21217 | ||
21218 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21219 | PyObject *resultobj; | |
21220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21221 | bool result; | |
21222 | PyObject * obj0 = 0 ; | |
21223 | char *kwnames[] = { | |
21224 | (char *) "self", NULL | |
21225 | }; | |
21226 | ||
21227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
21228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21229 | { | |
21230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21231 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
21232 | ||
21233 | wxPyEndAllowThreads(__tstate); | |
21234 | if (PyErr_Occurred()) SWIG_fail; | |
21235 | } | |
21236 | resultobj = PyInt_FromLong((long)result); | |
21237 | return resultobj; | |
21238 | fail: | |
21239 | return NULL; | |
21240 | } | |
21241 | ||
21242 | ||
21243 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21244 | PyObject *resultobj; | |
21245 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21246 | bool result; | |
21247 | PyObject * obj0 = 0 ; | |
21248 | char *kwnames[] = { | |
21249 | (char *) "self", NULL | |
21250 | }; | |
21251 | ||
21252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
21253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | resultobj = PyInt_FromLong((long)result); | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
21268 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21269 | PyObject *resultobj; | |
21270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21271 | PyObject * obj0 = 0 ; | |
21272 | char *kwnames[] = { | |
21273 | (char *) "self", NULL | |
21274 | }; | |
21275 | ||
21276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
21277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21278 | { | |
21279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21280 | (arg1)->SetFocus(); | |
21281 | ||
21282 | wxPyEndAllowThreads(__tstate); | |
21283 | if (PyErr_Occurred()) SWIG_fail; | |
21284 | } | |
21285 | Py_INCREF(Py_None); resultobj = Py_None; | |
21286 | return resultobj; | |
21287 | fail: | |
21288 | return NULL; | |
21289 | } | |
21290 | ||
21291 | ||
21292 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21293 | PyObject *resultobj; | |
21294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21295 | PyObject * obj0 = 0 ; | |
21296 | char *kwnames[] = { | |
21297 | (char *) "self", NULL | |
21298 | }; | |
21299 | ||
21300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
21301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21302 | { | |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21304 | (arg1)->SetFocusFromKbd(); | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
21307 | if (PyErr_Occurred()) SWIG_fail; | |
21308 | } | |
21309 | Py_INCREF(Py_None); resultobj = Py_None; | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | return NULL; | |
21313 | } | |
21314 | ||
21315 | ||
21316 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21317 | PyObject *resultobj; | |
21318 | wxWindow *result; | |
21319 | char *kwnames[] = { | |
21320 | NULL | |
21321 | }; | |
21322 | ||
21323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
21324 | { | |
21325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21326 | result = (wxWindow *)wxWindow::FindFocus(); | |
21327 | ||
21328 | wxPyEndAllowThreads(__tstate); | |
21329 | if (PyErr_Occurred()) SWIG_fail; | |
21330 | } | |
21331 | { | |
21332 | resultobj = wxPyMake_wxObject(result); | |
21333 | } | |
21334 | return resultobj; | |
21335 | fail: | |
21336 | return NULL; | |
21337 | } | |
21338 | ||
21339 | ||
21340 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21341 | PyObject *resultobj; | |
21342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21343 | bool result; | |
21344 | PyObject * obj0 = 0 ; | |
21345 | char *kwnames[] = { | |
21346 | (char *) "self", NULL | |
21347 | }; | |
21348 | ||
21349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
21350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21351 | { | |
21352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21353 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
21354 | ||
21355 | wxPyEndAllowThreads(__tstate); | |
21356 | if (PyErr_Occurred()) SWIG_fail; | |
21357 | } | |
21358 | resultobj = PyInt_FromLong((long)result); | |
21359 | return resultobj; | |
21360 | fail: | |
21361 | return NULL; | |
21362 | } | |
21363 | ||
21364 | ||
21365 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21366 | PyObject *resultobj; | |
21367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21368 | bool result; | |
21369 | PyObject * obj0 = 0 ; | |
21370 | char *kwnames[] = { | |
21371 | (char *) "self", NULL | |
21372 | }; | |
21373 | ||
21374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
21375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21376 | { | |
21377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21378 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
21379 | ||
21380 | wxPyEndAllowThreads(__tstate); | |
21381 | if (PyErr_Occurred()) SWIG_fail; | |
21382 | } | |
21383 | resultobj = PyInt_FromLong((long)result); | |
21384 | return resultobj; | |
21385 | fail: | |
21386 | return NULL; | |
21387 | } | |
21388 | ||
21389 | ||
21390 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21391 | PyObject *resultobj; | |
21392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21393 | wxWindow *result; | |
21394 | PyObject * obj0 = 0 ; | |
21395 | char *kwnames[] = { | |
21396 | (char *) "self", NULL | |
21397 | }; | |
21398 | ||
21399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
21400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21401 | { | |
21402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21403 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
21404 | ||
21405 | wxPyEndAllowThreads(__tstate); | |
21406 | if (PyErr_Occurred()) SWIG_fail; | |
21407 | } | |
21408 | { | |
21409 | resultobj = wxPyMake_wxObject(result); | |
21410 | } | |
21411 | return resultobj; | |
21412 | fail: | |
21413 | return NULL; | |
21414 | } | |
21415 | ||
21416 | ||
21417 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21418 | PyObject *resultobj; | |
21419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21420 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21421 | wxWindow *result; | |
21422 | PyObject * obj0 = 0 ; | |
21423 | PyObject * obj1 = 0 ; | |
21424 | char *kwnames[] = { | |
21425 | (char *) "self",(char *) "child", NULL | |
21426 | }; | |
21427 | ||
21428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21430 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21431 | { | |
21432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21433 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
21434 | ||
21435 | wxPyEndAllowThreads(__tstate); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
21438 | { | |
21439 | resultobj = wxPyMake_wxObject(result); | |
21440 | } | |
21441 | return resultobj; | |
21442 | fail: | |
21443 | return NULL; | |
21444 | } | |
21445 | ||
21446 | ||
21447 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21448 | PyObject *resultobj; | |
21449 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21450 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21451 | PyObject * obj0 = 0 ; | |
21452 | PyObject * obj1 = 0 ; | |
21453 | char *kwnames[] = { | |
21454 | (char *) "self",(char *) "win", NULL | |
21455 | }; | |
21456 | ||
21457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
21458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21459 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21460 | { | |
21461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21462 | (arg1)->SetTmpDefaultItem(arg2); | |
21463 | ||
21464 | wxPyEndAllowThreads(__tstate); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
21467 | Py_INCREF(Py_None); resultobj = Py_None; | |
21468 | return resultobj; | |
21469 | fail: | |
21470 | return NULL; | |
21471 | } | |
21472 | ||
21473 | ||
21474 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21475 | PyObject *resultobj; | |
21476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21477 | PyObject *result; | |
21478 | PyObject * obj0 = 0 ; | |
21479 | char *kwnames[] = { | |
21480 | (char *) "self", NULL | |
21481 | }; | |
21482 | ||
21483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
21484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21485 | { | |
21486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21487 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
21488 | ||
21489 | wxPyEndAllowThreads(__tstate); | |
21490 | if (PyErr_Occurred()) SWIG_fail; | |
21491 | } | |
21492 | resultobj = result; | |
21493 | return resultobj; | |
21494 | fail: | |
21495 | return NULL; | |
21496 | } | |
21497 | ||
21498 | ||
21499 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21500 | PyObject *resultobj; | |
21501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21502 | wxWindow *result; | |
21503 | PyObject * obj0 = 0 ; | |
21504 | char *kwnames[] = { | |
21505 | (char *) "self", NULL | |
21506 | }; | |
21507 | ||
21508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
21509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21510 | { | |
21511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21512 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
21513 | ||
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | { | |
21518 | resultobj = wxPyMake_wxObject(result); | |
21519 | } | |
21520 | return resultobj; | |
21521 | fail: | |
21522 | return NULL; | |
21523 | } | |
21524 | ||
21525 | ||
21526 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21527 | PyObject *resultobj; | |
21528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21529 | wxWindow *result; | |
21530 | PyObject * obj0 = 0 ; | |
21531 | char *kwnames[] = { | |
21532 | (char *) "self", NULL | |
21533 | }; | |
21534 | ||
21535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
21536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21537 | { | |
21538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21539 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
21540 | ||
21541 | wxPyEndAllowThreads(__tstate); | |
21542 | if (PyErr_Occurred()) SWIG_fail; | |
21543 | } | |
21544 | { | |
21545 | resultobj = wxPyMake_wxObject(result); | |
21546 | } | |
21547 | return resultobj; | |
21548 | fail: | |
21549 | return NULL; | |
21550 | } | |
21551 | ||
21552 | ||
21553 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21554 | PyObject *resultobj; | |
21555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21556 | bool result; | |
21557 | PyObject * obj0 = 0 ; | |
21558 | char *kwnames[] = { | |
21559 | (char *) "self", NULL | |
21560 | }; | |
21561 | ||
21562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
21563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21564 | { | |
21565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21566 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
21567 | ||
21568 | wxPyEndAllowThreads(__tstate); | |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
21570 | } | |
21571 | resultobj = PyInt_FromLong((long)result); | |
21572 | return resultobj; | |
21573 | fail: | |
21574 | return NULL; | |
21575 | } | |
21576 | ||
21577 | ||
21578 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21579 | PyObject *resultobj; | |
21580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21581 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21582 | bool result; | |
21583 | PyObject * obj0 = 0 ; | |
21584 | PyObject * obj1 = 0 ; | |
21585 | char *kwnames[] = { | |
21586 | (char *) "self",(char *) "newParent", NULL | |
21587 | }; | |
21588 | ||
21589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
21590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21591 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21592 | { | |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21594 | result = (bool)(arg1)->Reparent(arg2); | |
21595 | ||
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
21599 | resultobj = PyInt_FromLong((long)result); | |
21600 | return resultobj; | |
21601 | fail: | |
21602 | return NULL; | |
21603 | } | |
21604 | ||
21605 | ||
21606 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21607 | PyObject *resultobj; | |
21608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21609 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21610 | PyObject * obj0 = 0 ; | |
21611 | PyObject * obj1 = 0 ; | |
21612 | char *kwnames[] = { | |
21613 | (char *) "self",(char *) "child", NULL | |
21614 | }; | |
21615 | ||
21616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
21617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21619 | { | |
21620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21621 | (arg1)->AddChild(arg2); | |
21622 | ||
21623 | wxPyEndAllowThreads(__tstate); | |
21624 | if (PyErr_Occurred()) SWIG_fail; | |
21625 | } | |
21626 | Py_INCREF(Py_None); resultobj = Py_None; | |
21627 | return resultobj; | |
21628 | fail: | |
21629 | return NULL; | |
21630 | } | |
21631 | ||
21632 | ||
21633 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21634 | PyObject *resultobj; | |
21635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21637 | PyObject * obj0 = 0 ; | |
21638 | PyObject * obj1 = 0 ; | |
21639 | char *kwnames[] = { | |
21640 | (char *) "self",(char *) "child", NULL | |
21641 | }; | |
21642 | ||
21643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
21644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21646 | { | |
21647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21648 | (arg1)->RemoveChild(arg2); | |
21649 | ||
21650 | wxPyEndAllowThreads(__tstate); | |
21651 | if (PyErr_Occurred()) SWIG_fail; | |
21652 | } | |
21653 | Py_INCREF(Py_None); resultobj = Py_None; | |
21654 | return resultobj; | |
21655 | fail: | |
21656 | return NULL; | |
21657 | } | |
21658 | ||
21659 | ||
21660 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21661 | PyObject *resultobj; | |
21662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21663 | long arg2 ; | |
21664 | wxWindow *result; | |
21665 | PyObject * obj0 = 0 ; | |
21666 | char *kwnames[] = { | |
21667 | (char *) "self",(char *) "winid", NULL | |
21668 | }; | |
21669 | ||
21670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_FindWindowById",kwnames,&obj0,&arg2)) goto fail; | |
21671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21672 | { | |
21673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21674 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
21675 | ||
21676 | wxPyEndAllowThreads(__tstate); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
21679 | { | |
21680 | resultobj = wxPyMake_wxObject(result); | |
21681 | } | |
21682 | return resultobj; | |
21683 | fail: | |
21684 | return NULL; | |
21685 | } | |
21686 | ||
21687 | ||
21688 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21689 | PyObject *resultobj; | |
21690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21691 | wxString *arg2 = 0 ; | |
21692 | wxWindow *result; | |
423f194a | 21693 | bool temp2 = False ; |
d14a1e28 RD |
21694 | PyObject * obj0 = 0 ; |
21695 | PyObject * obj1 = 0 ; | |
21696 | char *kwnames[] = { | |
21697 | (char *) "self",(char *) "name", NULL | |
21698 | }; | |
21699 | ||
21700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
21701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21702 | { | |
21703 | arg2 = wxString_in_helper(obj1); | |
21704 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21705 | temp2 = True; |
d14a1e28 RD |
21706 | } |
21707 | { | |
21708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21709 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
21710 | ||
21711 | wxPyEndAllowThreads(__tstate); | |
21712 | if (PyErr_Occurred()) SWIG_fail; | |
21713 | } | |
21714 | { | |
21715 | resultobj = wxPyMake_wxObject(result); | |
21716 | } | |
21717 | { | |
21718 | if (temp2) | |
21719 | delete arg2; | |
21720 | } | |
21721 | return resultobj; | |
21722 | fail: | |
21723 | { | |
21724 | if (temp2) | |
21725 | delete arg2; | |
21726 | } | |
21727 | return NULL; | |
21728 | } | |
21729 | ||
21730 | ||
21731 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21732 | PyObject *resultobj; | |
21733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21734 | wxEvtHandler *result; | |
21735 | PyObject * obj0 = 0 ; | |
21736 | char *kwnames[] = { | |
21737 | (char *) "self", NULL | |
21738 | }; | |
21739 | ||
21740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
21741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21742 | { | |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
21745 | ||
21746 | wxPyEndAllowThreads(__tstate); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
21749 | { | |
21750 | resultobj = wxPyMake_wxObject(result); | |
21751 | } | |
21752 | return resultobj; | |
21753 | fail: | |
21754 | return NULL; | |
21755 | } | |
21756 | ||
21757 | ||
21758 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21759 | PyObject *resultobj; | |
21760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21761 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21762 | PyObject * obj0 = 0 ; | |
21763 | PyObject * obj1 = 0 ; | |
21764 | char *kwnames[] = { | |
21765 | (char *) "self",(char *) "handler", NULL | |
21766 | }; | |
21767 | ||
21768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21770 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21771 | { | |
21772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21773 | (arg1)->SetEventHandler(arg2); | |
21774 | ||
21775 | wxPyEndAllowThreads(__tstate); | |
21776 | if (PyErr_Occurred()) SWIG_fail; | |
21777 | } | |
21778 | Py_INCREF(Py_None); resultobj = Py_None; | |
21779 | return resultobj; | |
21780 | fail: | |
21781 | return NULL; | |
21782 | } | |
21783 | ||
21784 | ||
21785 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21786 | PyObject *resultobj; | |
21787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21788 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21789 | PyObject * obj0 = 0 ; | |
21790 | PyObject * obj1 = 0 ; | |
21791 | char *kwnames[] = { | |
21792 | (char *) "self",(char *) "handler", NULL | |
21793 | }; | |
21794 | ||
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21797 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21798 | { | |
21799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21800 | (arg1)->PushEventHandler(arg2); | |
21801 | ||
21802 | wxPyEndAllowThreads(__tstate); | |
21803 | if (PyErr_Occurred()) SWIG_fail; | |
21804 | } | |
21805 | Py_INCREF(Py_None); resultobj = Py_None; | |
21806 | return resultobj; | |
21807 | fail: | |
21808 | return NULL; | |
21809 | } | |
21810 | ||
21811 | ||
21812 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21813 | PyObject *resultobj; | |
21814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21815 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21816 | wxEvtHandler *result; |
21817 | PyObject * obj0 = 0 ; | |
21818 | PyObject * obj1 = 0 ; | |
21819 | char *kwnames[] = { | |
21820 | (char *) "self",(char *) "deleteHandler", NULL | |
21821 | }; | |
21822 | ||
21823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21825 | if (obj1) { | |
21826 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | { | |
21830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21831 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
21832 | ||
21833 | wxPyEndAllowThreads(__tstate); | |
21834 | if (PyErr_Occurred()) SWIG_fail; | |
21835 | } | |
21836 | { | |
21837 | resultobj = wxPyMake_wxObject(result); | |
21838 | } | |
21839 | return resultobj; | |
21840 | fail: | |
21841 | return NULL; | |
21842 | } | |
21843 | ||
21844 | ||
21845 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21846 | PyObject *resultobj; | |
21847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21848 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
21849 | bool result; | |
21850 | PyObject * obj0 = 0 ; | |
21851 | PyObject * obj1 = 0 ; | |
21852 | char *kwnames[] = { | |
21853 | (char *) "self",(char *) "handler", NULL | |
21854 | }; | |
21855 | ||
21856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
21857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21858 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21859 | { | |
21860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21861 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
21862 | ||
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
21866 | resultobj = PyInt_FromLong((long)result); | |
21867 | return resultobj; | |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21876 | wxValidator *arg2 = 0 ; | |
21877 | PyObject * obj0 = 0 ; | |
21878 | PyObject * obj1 = 0 ; | |
21879 | char *kwnames[] = { | |
21880 | (char *) "self",(char *) "validator", NULL | |
21881 | }; | |
21882 | ||
21883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
21884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21885 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21886 | if (arg2 == NULL) { | |
21887 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21888 | } | |
21889 | { | |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
21892 | ||
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | Py_INCREF(Py_None); resultobj = Py_None; | |
21897 | return resultobj; | |
21898 | fail: | |
21899 | return NULL; | |
21900 | } | |
21901 | ||
21902 | ||
21903 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21904 | PyObject *resultobj; | |
21905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21906 | wxValidator *result; | |
21907 | PyObject * obj0 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | result = (wxValidator *)(arg1)->GetValidator(); | |
21917 | ||
21918 | wxPyEndAllowThreads(__tstate); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
21920 | } | |
21921 | { | |
21922 | resultobj = wxPyMake_wxObject(result); | |
21923 | } | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21931 | PyObject *resultobj; | |
21932 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21933 | wxAcceleratorTable *arg2 = 0 ; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | PyObject * obj1 = 0 ; | |
21936 | char *kwnames[] = { | |
21937 | (char *) "self",(char *) "accel", NULL | |
21938 | }; | |
21939 | ||
21940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
21941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21942 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21943 | if (arg2 == NULL) { | |
21944 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21945 | } | |
21946 | { | |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
21953 | Py_INCREF(Py_None); resultobj = Py_None; | |
21954 | return resultobj; | |
21955 | fail: | |
21956 | return NULL; | |
21957 | } | |
21958 | ||
21959 | ||
21960 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21961 | PyObject *resultobj; | |
21962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21963 | wxAcceleratorTable *result; | |
21964 | PyObject * obj0 = 0 ; | |
21965 | char *kwnames[] = { | |
21966 | (char *) "self", NULL | |
21967 | }; | |
21968 | ||
21969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
21970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21971 | { | |
21972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21973 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
21974 | ||
21975 | wxPyEndAllowThreads(__tstate); | |
21976 | if (PyErr_Occurred()) SWIG_fail; | |
21977 | } | |
21978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
21979 | return resultobj; | |
21980 | fail: | |
21981 | return NULL; | |
21982 | } | |
21983 | ||
21984 | ||
21985 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21986 | PyObject *resultobj; | |
21987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21988 | int arg2 ; | |
21989 | int arg3 ; | |
21990 | int arg4 ; | |
21991 | bool result; | |
21992 | PyObject * obj0 = 0 ; | |
21993 | char *kwnames[] = { | |
21994 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
21995 | }; | |
21996 | ||
21997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:Window_RegisterHotKey",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
21998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
22002 | ||
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | resultobj = PyInt_FromLong((long)result); | |
22007 | return resultobj; | |
22008 | fail: | |
22009 | return NULL; | |
22010 | } | |
22011 | ||
22012 | ||
22013 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj; | |
22015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22016 | int arg2 ; | |
22017 | bool result; | |
22018 | PyObject * obj0 = 0 ; | |
22019 | char *kwnames[] = { | |
22020 | (char *) "self",(char *) "hotkeyId", NULL | |
22021 | }; | |
22022 | ||
22023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_UnregisterHotKey",kwnames,&obj0,&arg2)) goto fail; | |
22024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22025 | { | |
22026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22027 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
22028 | ||
22029 | wxPyEndAllowThreads(__tstate); | |
22030 | if (PyErr_Occurred()) SWIG_fail; | |
22031 | } | |
22032 | resultobj = PyInt_FromLong((long)result); | |
22033 | return resultobj; | |
22034 | fail: | |
22035 | return NULL; | |
22036 | } | |
22037 | ||
22038 | ||
22039 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22040 | PyObject *resultobj; | |
22041 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22042 | wxPoint *arg2 = 0 ; | |
22043 | wxPoint result; | |
22044 | wxPoint temp2 ; | |
22045 | PyObject * obj0 = 0 ; | |
22046 | PyObject * obj1 = 0 ; | |
22047 | char *kwnames[] = { | |
22048 | (char *) "self",(char *) "pt", NULL | |
22049 | }; | |
22050 | ||
22051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
22052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22053 | { | |
22054 | arg2 = &temp2; | |
22055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22056 | } | |
22057 | { | |
22058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22059 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
22064 | { | |
22065 | wxPoint * resultptr; | |
22066 | resultptr = new wxPoint((wxPoint &) result); | |
22067 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22068 | } | |
22069 | return resultobj; | |
22070 | fail: | |
22071 | return NULL; | |
22072 | } | |
22073 | ||
22074 | ||
22075 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22076 | PyObject *resultobj; | |
22077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22078 | wxSize *arg2 = 0 ; | |
22079 | wxSize result; | |
22080 | wxSize temp2 ; | |
22081 | PyObject * obj0 = 0 ; | |
22082 | PyObject * obj1 = 0 ; | |
22083 | char *kwnames[] = { | |
22084 | (char *) "self",(char *) "sz", NULL | |
22085 | }; | |
22086 | ||
22087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
22088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22089 | { | |
22090 | arg2 = &temp2; | |
22091 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22092 | } | |
22093 | { | |
22094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22095 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
22096 | ||
22097 | wxPyEndAllowThreads(__tstate); | |
22098 | if (PyErr_Occurred()) SWIG_fail; | |
22099 | } | |
22100 | { | |
22101 | wxSize * resultptr; | |
22102 | resultptr = new wxSize((wxSize &) result); | |
22103 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22104 | } | |
22105 | return resultobj; | |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
22111 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22112 | PyObject *resultobj; | |
22113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22114 | wxPoint *arg2 = 0 ; | |
22115 | wxPoint result; | |
22116 | wxPoint temp2 ; | |
22117 | PyObject * obj0 = 0 ; | |
22118 | PyObject * obj1 = 0 ; | |
22119 | char *kwnames[] = { | |
22120 | (char *) "self",(char *) "pt", NULL | |
22121 | }; | |
22122 | ||
22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
22124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22125 | { | |
22126 | arg2 = &temp2; | |
22127 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22128 | } | |
22129 | { | |
22130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22131 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
22132 | ||
22133 | wxPyEndAllowThreads(__tstate); | |
22134 | if (PyErr_Occurred()) SWIG_fail; | |
22135 | } | |
22136 | { | |
22137 | wxPoint * resultptr; | |
22138 | resultptr = new wxPoint((wxPoint &) result); | |
22139 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22140 | } | |
22141 | return resultobj; | |
22142 | fail: | |
22143 | return NULL; | |
22144 | } | |
22145 | ||
22146 | ||
22147 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22148 | PyObject *resultobj; | |
22149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22150 | wxSize *arg2 = 0 ; | |
22151 | wxSize result; | |
22152 | wxSize temp2 ; | |
22153 | PyObject * obj0 = 0 ; | |
22154 | PyObject * obj1 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "self",(char *) "sz", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
22160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22161 | { | |
22162 | arg2 = &temp2; | |
22163 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22164 | } | |
22165 | { | |
22166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22167 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
22168 | ||
22169 | wxPyEndAllowThreads(__tstate); | |
22170 | if (PyErr_Occurred()) SWIG_fail; | |
22171 | } | |
22172 | { | |
22173 | wxSize * resultptr; | |
22174 | resultptr = new wxSize((wxSize &) result); | |
22175 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22176 | } | |
22177 | return resultobj; | |
22178 | fail: | |
22179 | return NULL; | |
22180 | } | |
22181 | ||
22182 | ||
22183 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22184 | PyObject *resultobj; | |
22185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22186 | wxPoint *arg2 = 0 ; | |
22187 | wxPoint result; | |
22188 | wxPoint temp2 ; | |
22189 | PyObject * obj0 = 0 ; | |
22190 | PyObject * obj1 = 0 ; | |
22191 | char *kwnames[] = { | |
22192 | (char *) "self",(char *) "pt", NULL | |
22193 | }; | |
22194 | ||
22195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
22196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22197 | { | |
22198 | arg2 = &temp2; | |
22199 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22200 | } | |
22201 | { | |
22202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22203 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
22204 | ||
22205 | wxPyEndAllowThreads(__tstate); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
22208 | { | |
22209 | wxPoint * resultptr; | |
22210 | resultptr = new wxPoint((wxPoint &) result); | |
22211 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
22212 | } | |
22213 | return resultobj; | |
22214 | fail: | |
22215 | return NULL; | |
22216 | } | |
22217 | ||
22218 | ||
22219 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22220 | PyObject *resultobj; | |
22221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22222 | wxSize *arg2 = 0 ; | |
22223 | wxSize result; | |
22224 | wxSize temp2 ; | |
22225 | PyObject * obj0 = 0 ; | |
22226 | PyObject * obj1 = 0 ; | |
22227 | char *kwnames[] = { | |
22228 | (char *) "self",(char *) "sz", NULL | |
22229 | }; | |
22230 | ||
22231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
22232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22233 | { | |
22234 | arg2 = &temp2; | |
22235 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22236 | } | |
22237 | { | |
22238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22239 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
22240 | ||
22241 | wxPyEndAllowThreads(__tstate); | |
22242 | if (PyErr_Occurred()) SWIG_fail; | |
22243 | } | |
22244 | { | |
22245 | wxSize * resultptr; | |
22246 | resultptr = new wxSize((wxSize &) result); | |
22247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22248 | } | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
22255 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22256 | PyObject *resultobj; | |
22257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22258 | int arg2 ; | |
22259 | int arg3 ; | |
22260 | PyObject * obj0 = 0 ; | |
22261 | char *kwnames[] = { | |
22262 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22263 | }; | |
22264 | ||
22265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_WarpPointer",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
22266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22267 | { | |
22268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22269 | (arg1)->WarpPointer(arg2,arg3); | |
22270 | ||
22271 | wxPyEndAllowThreads(__tstate); | |
22272 | if (PyErr_Occurred()) SWIG_fail; | |
22273 | } | |
22274 | Py_INCREF(Py_None); resultobj = Py_None; | |
22275 | return resultobj; | |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
22281 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22282 | PyObject *resultobj; | |
22283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22284 | PyObject * obj0 = 0 ; | |
22285 | char *kwnames[] = { | |
22286 | (char *) "self", NULL | |
22287 | }; | |
22288 | ||
22289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
22290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22291 | { | |
22292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22293 | (arg1)->CaptureMouse(); | |
22294 | ||
22295 | wxPyEndAllowThreads(__tstate); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
22297 | } | |
22298 | Py_INCREF(Py_None); resultobj = Py_None; | |
22299 | return resultobj; | |
22300 | fail: | |
22301 | return NULL; | |
22302 | } | |
22303 | ||
22304 | ||
22305 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22306 | PyObject *resultobj; | |
22307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22308 | PyObject * obj0 = 0 ; | |
22309 | char *kwnames[] = { | |
22310 | (char *) "self", NULL | |
22311 | }; | |
22312 | ||
22313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
22314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | (arg1)->ReleaseMouse(); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
22322 | Py_INCREF(Py_None); resultobj = Py_None; | |
22323 | return resultobj; | |
22324 | fail: | |
22325 | return NULL; | |
22326 | } | |
22327 | ||
22328 | ||
22329 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22330 | PyObject *resultobj; | |
22331 | wxWindow *result; | |
22332 | char *kwnames[] = { | |
22333 | NULL | |
22334 | }; | |
22335 | ||
22336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
22337 | { | |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | result = (wxWindow *)wxWindow::GetCapture(); | |
22340 | ||
22341 | wxPyEndAllowThreads(__tstate); | |
22342 | if (PyErr_Occurred()) SWIG_fail; | |
22343 | } | |
22344 | { | |
22345 | resultobj = wxPyMake_wxObject(result); | |
22346 | } | |
22347 | return resultobj; | |
22348 | fail: | |
22349 | return NULL; | |
22350 | } | |
22351 | ||
22352 | ||
22353 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22354 | PyObject *resultobj; | |
22355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22356 | bool result; | |
22357 | PyObject * obj0 = 0 ; | |
22358 | char *kwnames[] = { | |
22359 | (char *) "self", NULL | |
22360 | }; | |
22361 | ||
22362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
22363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22366 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
22367 | ||
22368 | wxPyEndAllowThreads(__tstate); | |
22369 | if (PyErr_Occurred()) SWIG_fail; | |
22370 | } | |
22371 | resultobj = PyInt_FromLong((long)result); | |
22372 | return resultobj; | |
22373 | fail: | |
22374 | return NULL; | |
22375 | } | |
22376 | ||
22377 | ||
22378 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22379 | PyObject *resultobj; | |
22380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22381 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22382 | wxRect *arg3 = (wxRect *) NULL ; |
22383 | PyObject * obj0 = 0 ; | |
22384 | PyObject * obj1 = 0 ; | |
22385 | PyObject * obj2 = 0 ; | |
22386 | char *kwnames[] = { | |
22387 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
22388 | }; | |
22389 | ||
22390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22392 | if (obj1) { | |
22393 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
22396 | if (obj2) { | |
22397 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22398 | } | |
22399 | { | |
22400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22401 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
22402 | ||
22403 | wxPyEndAllowThreads(__tstate); | |
22404 | if (PyErr_Occurred()) SWIG_fail; | |
22405 | } | |
22406 | Py_INCREF(Py_None); resultobj = Py_None; | |
22407 | return resultobj; | |
22408 | fail: | |
22409 | return NULL; | |
22410 | } | |
22411 | ||
22412 | ||
22413 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22414 | PyObject *resultobj; | |
22415 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22416 | wxRect *arg2 = 0 ; | |
22417 | wxRect temp2 ; | |
22418 | PyObject * obj0 = 0 ; | |
22419 | PyObject * obj1 = 0 ; | |
22420 | char *kwnames[] = { | |
22421 | (char *) "self",(char *) "rect", NULL | |
22422 | }; | |
22423 | ||
22424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
22425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22426 | { | |
22427 | arg2 = &temp2; | |
22428 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22429 | } | |
22430 | { | |
22431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22432 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
22433 | ||
22434 | wxPyEndAllowThreads(__tstate); | |
22435 | if (PyErr_Occurred()) SWIG_fail; | |
22436 | } | |
22437 | Py_INCREF(Py_None); resultobj = Py_None; | |
22438 | return resultobj; | |
22439 | fail: | |
22440 | return NULL; | |
22441 | } | |
22442 | ||
22443 | ||
22444 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22445 | PyObject *resultobj; | |
22446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22447 | PyObject * obj0 = 0 ; | |
22448 | char *kwnames[] = { | |
22449 | (char *) "self", NULL | |
22450 | }; | |
22451 | ||
22452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
22453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | (arg1)->Update(); | |
22457 | ||
22458 | wxPyEndAllowThreads(__tstate); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
22461 | Py_INCREF(Py_None); resultobj = Py_None; | |
22462 | return resultobj; | |
22463 | fail: | |
22464 | return NULL; | |
22465 | } | |
22466 | ||
22467 | ||
22468 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22469 | PyObject *resultobj; | |
22470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22471 | PyObject * obj0 = 0 ; | |
22472 | char *kwnames[] = { | |
22473 | (char *) "self", NULL | |
22474 | }; | |
22475 | ||
22476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
22477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22478 | { | |
22479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22480 | (arg1)->ClearBackground(); | |
22481 | ||
22482 | wxPyEndAllowThreads(__tstate); | |
22483 | if (PyErr_Occurred()) SWIG_fail; | |
22484 | } | |
22485 | Py_INCREF(Py_None); resultobj = Py_None; | |
22486 | return resultobj; | |
22487 | fail: | |
22488 | return NULL; | |
22489 | } | |
22490 | ||
22491 | ||
22492 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22493 | PyObject *resultobj; | |
22494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22495 | PyObject * obj0 = 0 ; | |
22496 | char *kwnames[] = { | |
22497 | (char *) "self", NULL | |
22498 | }; | |
22499 | ||
22500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
22501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22502 | { | |
22503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22504 | (arg1)->Freeze(); | |
22505 | ||
22506 | wxPyEndAllowThreads(__tstate); | |
22507 | if (PyErr_Occurred()) SWIG_fail; | |
22508 | } | |
22509 | Py_INCREF(Py_None); resultobj = Py_None; | |
22510 | return resultobj; | |
22511 | fail: | |
22512 | return NULL; | |
22513 | } | |
22514 | ||
22515 | ||
22516 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22517 | PyObject *resultobj; | |
22518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22519 | PyObject * obj0 = 0 ; | |
22520 | char *kwnames[] = { | |
22521 | (char *) "self", NULL | |
22522 | }; | |
22523 | ||
22524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
22525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22526 | { | |
22527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22528 | (arg1)->Thaw(); | |
22529 | ||
22530 | wxPyEndAllowThreads(__tstate); | |
22531 | if (PyErr_Occurred()) SWIG_fail; | |
22532 | } | |
22533 | Py_INCREF(Py_None); resultobj = Py_None; | |
22534 | return resultobj; | |
22535 | fail: | |
22536 | return NULL; | |
22537 | } | |
22538 | ||
22539 | ||
22540 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22541 | PyObject *resultobj; | |
22542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22543 | wxDC *arg2 = 0 ; | |
22544 | PyObject * obj0 = 0 ; | |
22545 | PyObject * obj1 = 0 ; | |
22546 | char *kwnames[] = { | |
22547 | (char *) "self",(char *) "dc", NULL | |
22548 | }; | |
22549 | ||
22550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
22551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22552 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22553 | if (arg2 == NULL) { | |
22554 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22555 | } | |
22556 | { | |
22557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22558 | (arg1)->PrepareDC(*arg2); | |
22559 | ||
22560 | wxPyEndAllowThreads(__tstate); | |
22561 | if (PyErr_Occurred()) SWIG_fail; | |
22562 | } | |
22563 | Py_INCREF(Py_None); resultobj = Py_None; | |
22564 | return resultobj; | |
22565 | fail: | |
22566 | return NULL; | |
22567 | } | |
22568 | ||
22569 | ||
22570 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22571 | PyObject *resultobj; | |
22572 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22573 | wxRegion *result; | |
22574 | PyObject * obj0 = 0 ; | |
22575 | char *kwnames[] = { | |
22576 | (char *) "self", NULL | |
22577 | }; | |
22578 | ||
22579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
22580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22581 | { | |
22582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22583 | { | |
22584 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
22585 | result = (wxRegion *) &_result_ref; | |
22586 | } | |
22587 | ||
22588 | wxPyEndAllowThreads(__tstate); | |
22589 | if (PyErr_Occurred()) SWIG_fail; | |
22590 | } | |
22591 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
22592 | return resultobj; | |
22593 | fail: | |
22594 | return NULL; | |
22595 | } | |
22596 | ||
22597 | ||
22598 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22599 | PyObject *resultobj; | |
22600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22601 | wxRect result; | |
22602 | PyObject * obj0 = 0 ; | |
22603 | char *kwnames[] = { | |
22604 | (char *) "self", NULL | |
22605 | }; | |
22606 | ||
22607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
22608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22609 | { | |
22610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22611 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
22612 | ||
22613 | wxPyEndAllowThreads(__tstate); | |
22614 | if (PyErr_Occurred()) SWIG_fail; | |
22615 | } | |
22616 | { | |
22617 | wxRect * resultptr; | |
22618 | resultptr = new wxRect((wxRect &) result); | |
22619 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
22620 | } | |
22621 | return resultobj; | |
22622 | fail: | |
22623 | return NULL; | |
22624 | } | |
22625 | ||
22626 | ||
22627 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22628 | PyObject *resultobj; | |
22629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22630 | int arg2 ; | |
22631 | int arg3 ; | |
22632 | int arg4 = (int) 1 ; | |
22633 | int arg5 = (int) 1 ; | |
22634 | bool result; | |
22635 | PyObject * obj0 = 0 ; | |
22636 | char *kwnames[] = { | |
22637 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
22638 | }; | |
22639 | ||
22640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|ii:Window_IsExposed",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
22641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22642 | { | |
22643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22644 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
22645 | ||
22646 | wxPyEndAllowThreads(__tstate); | |
22647 | if (PyErr_Occurred()) SWIG_fail; | |
22648 | } | |
22649 | resultobj = PyInt_FromLong((long)result); | |
22650 | return resultobj; | |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
22656 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22657 | PyObject *resultobj; | |
22658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22659 | wxPoint *arg2 = 0 ; | |
22660 | bool result; | |
22661 | wxPoint temp2 ; | |
22662 | PyObject * obj0 = 0 ; | |
22663 | PyObject * obj1 = 0 ; | |
22664 | char *kwnames[] = { | |
22665 | (char *) "self",(char *) "pt", NULL | |
22666 | }; | |
22667 | ||
22668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
22669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22670 | { | |
22671 | arg2 = &temp2; | |
22672 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22673 | } | |
22674 | { | |
22675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22676 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
22677 | ||
22678 | wxPyEndAllowThreads(__tstate); | |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
22680 | } | |
22681 | resultobj = PyInt_FromLong((long)result); | |
22682 | return resultobj; | |
22683 | fail: | |
22684 | return NULL; | |
22685 | } | |
22686 | ||
22687 | ||
22688 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22689 | PyObject *resultobj; | |
22690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22691 | wxRect *arg2 = 0 ; | |
22692 | bool result; | |
22693 | wxRect temp2 ; | |
22694 | PyObject * obj0 = 0 ; | |
22695 | PyObject * obj1 = 0 ; | |
22696 | char *kwnames[] = { | |
22697 | (char *) "self",(char *) "rect", NULL | |
22698 | }; | |
22699 | ||
22700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
22701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22702 | { | |
22703 | arg2 = &temp2; | |
22704 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22705 | } | |
22706 | { | |
22707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22708 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
22709 | ||
22710 | wxPyEndAllowThreads(__tstate); | |
22711 | if (PyErr_Occurred()) SWIG_fail; | |
22712 | } | |
22713 | resultobj = PyInt_FromLong((long)result); | |
22714 | return resultobj; | |
22715 | fail: | |
22716 | return NULL; | |
22717 | } | |
22718 | ||
22719 | ||
22720 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22721 | PyObject *resultobj; | |
22722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22723 | wxColour *arg2 = 0 ; | |
22724 | bool result; | |
22725 | wxColour temp2 ; | |
22726 | PyObject * obj0 = 0 ; | |
22727 | PyObject * obj1 = 0 ; | |
22728 | char *kwnames[] = { | |
22729 | (char *) "self",(char *) "colour", NULL | |
22730 | }; | |
22731 | ||
22732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22734 | { | |
22735 | arg2 = &temp2; | |
22736 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22737 | } | |
22738 | { | |
22739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22740 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22741 | ||
22742 | wxPyEndAllowThreads(__tstate); | |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | } | |
22745 | resultobj = PyInt_FromLong((long)result); | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
22752 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22753 | PyObject *resultobj; | |
22754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22755 | wxColour *arg2 = 0 ; | |
22756 | bool result; | |
22757 | wxColour temp2 ; | |
22758 | PyObject * obj0 = 0 ; | |
22759 | PyObject * obj1 = 0 ; | |
22760 | char *kwnames[] = { | |
22761 | (char *) "self",(char *) "colour", NULL | |
22762 | }; | |
22763 | ||
22764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22766 | { | |
22767 | arg2 = &temp2; | |
22768 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22769 | } | |
22770 | { | |
22771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22772 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
22773 | ||
22774 | wxPyEndAllowThreads(__tstate); | |
22775 | if (PyErr_Occurred()) SWIG_fail; | |
22776 | } | |
22777 | resultobj = PyInt_FromLong((long)result); | |
22778 | return resultobj; | |
22779 | fail: | |
22780 | return NULL; | |
22781 | } | |
22782 | ||
22783 | ||
22784 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22785 | PyObject *resultobj; | |
22786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22787 | wxColour result; | |
22788 | PyObject * obj0 = 0 ; | |
22789 | char *kwnames[] = { | |
22790 | (char *) "self", NULL | |
22791 | }; | |
22792 | ||
22793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
22794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22795 | { | |
22796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22797 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
22798 | ||
22799 | wxPyEndAllowThreads(__tstate); | |
22800 | if (PyErr_Occurred()) SWIG_fail; | |
22801 | } | |
22802 | { | |
22803 | wxColour * resultptr; | |
22804 | resultptr = new wxColour((wxColour &) result); | |
22805 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22806 | } | |
22807 | return resultobj; | |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
22813 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22814 | PyObject *resultobj; | |
22815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22816 | wxColour result; | |
22817 | PyObject * obj0 = 0 ; | |
22818 | char *kwnames[] = { | |
22819 | (char *) "self", NULL | |
22820 | }; | |
22821 | ||
22822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
22823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22824 | { | |
22825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22826 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
22827 | ||
22828 | wxPyEndAllowThreads(__tstate); | |
22829 | if (PyErr_Occurred()) SWIG_fail; | |
22830 | } | |
22831 | { | |
22832 | wxColour * resultptr; | |
22833 | resultptr = new wxColour((wxColour &) result); | |
22834 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
22835 | } | |
22836 | return resultobj; | |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
22842 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22843 | PyObject *resultobj; | |
22844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22845 | wxCursor *arg2 = 0 ; | |
22846 | bool result; | |
22847 | PyObject * obj0 = 0 ; | |
22848 | PyObject * obj1 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "self",(char *) "cursor", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
22854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22855 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22856 | if (arg2 == NULL) { | |
22857 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22858 | } | |
22859 | { | |
22860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22861 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
22862 | ||
22863 | wxPyEndAllowThreads(__tstate); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
22866 | resultobj = PyInt_FromLong((long)result); | |
22867 | return resultobj; | |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
22873 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22874 | PyObject *resultobj; | |
22875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22876 | wxCursor *result; | |
22877 | PyObject * obj0 = 0 ; | |
22878 | char *kwnames[] = { | |
22879 | (char *) "self", NULL | |
22880 | }; | |
22881 | ||
22882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
22883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22884 | { | |
22885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22886 | { | |
22887 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
22888 | result = (wxCursor *) &_result_ref; | |
22889 | } | |
22890 | ||
22891 | wxPyEndAllowThreads(__tstate); | |
22892 | if (PyErr_Occurred()) SWIG_fail; | |
22893 | } | |
22894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
22895 | return resultobj; | |
22896 | fail: | |
22897 | return NULL; | |
22898 | } | |
22899 | ||
22900 | ||
22901 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22902 | PyObject *resultobj; | |
22903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22904 | wxFont *arg2 = 0 ; | |
22905 | bool result; | |
22906 | PyObject * obj0 = 0 ; | |
22907 | PyObject * obj1 = 0 ; | |
22908 | char *kwnames[] = { | |
22909 | (char *) "self",(char *) "font", NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
22913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22915 | if (arg2 == NULL) { | |
22916 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22917 | } | |
22918 | { | |
22919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22920 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
22921 | ||
22922 | wxPyEndAllowThreads(__tstate); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | } | |
22925 | resultobj = PyInt_FromLong((long)result); | |
22926 | return resultobj; | |
22927 | fail: | |
22928 | return NULL; | |
22929 | } | |
22930 | ||
22931 | ||
22932 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22933 | PyObject *resultobj; | |
22934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22935 | wxFont *result; | |
22936 | PyObject * obj0 = 0 ; | |
22937 | char *kwnames[] = { | |
22938 | (char *) "self", NULL | |
22939 | }; | |
22940 | ||
22941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
22942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22943 | { | |
22944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22945 | { | |
22946 | wxFont &_result_ref = (arg1)->GetFont(); | |
22947 | result = (wxFont *) &_result_ref; | |
22948 | } | |
22949 | ||
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
22954 | return resultobj; | |
22955 | fail: | |
22956 | return NULL; | |
22957 | } | |
22958 | ||
22959 | ||
22960 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22961 | PyObject *resultobj; | |
22962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22963 | wxCaret *arg2 = (wxCaret *) 0 ; | |
22964 | PyObject * obj0 = 0 ; | |
22965 | PyObject * obj1 = 0 ; | |
22966 | char *kwnames[] = { | |
22967 | (char *) "self",(char *) "caret", NULL | |
22968 | }; | |
22969 | ||
22970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
22971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22972 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22973 | { | |
22974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22975 | (arg1)->SetCaret(arg2); | |
22976 | ||
22977 | wxPyEndAllowThreads(__tstate); | |
22978 | if (PyErr_Occurred()) SWIG_fail; | |
22979 | } | |
22980 | Py_INCREF(Py_None); resultobj = Py_None; | |
22981 | return resultobj; | |
22982 | fail: | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
22987 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22988 | PyObject *resultobj; | |
22989 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22990 | wxCaret *result; | |
22991 | PyObject * obj0 = 0 ; | |
22992 | char *kwnames[] = { | |
22993 | (char *) "self", NULL | |
22994 | }; | |
22995 | ||
22996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
22997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22998 | { | |
22999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23000 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
23001 | ||
23002 | wxPyEndAllowThreads(__tstate); | |
23003 | if (PyErr_Occurred()) SWIG_fail; | |
23004 | } | |
23005 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
23006 | return resultobj; | |
23007 | fail: | |
23008 | return NULL; | |
23009 | } | |
23010 | ||
23011 | ||
23012 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23013 | PyObject *resultobj; | |
23014 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23015 | int result; | |
23016 | PyObject * obj0 = 0 ; | |
23017 | char *kwnames[] = { | |
23018 | (char *) "self", NULL | |
23019 | }; | |
23020 | ||
23021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
23022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23023 | { | |
23024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23025 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
23026 | ||
23027 | wxPyEndAllowThreads(__tstate); | |
23028 | if (PyErr_Occurred()) SWIG_fail; | |
23029 | } | |
23030 | resultobj = PyInt_FromLong((long)result); | |
23031 | return resultobj; | |
23032 | fail: | |
23033 | return NULL; | |
23034 | } | |
23035 | ||
23036 | ||
23037 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23038 | PyObject *resultobj; | |
23039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23040 | int result; | |
23041 | PyObject * obj0 = 0 ; | |
23042 | char *kwnames[] = { | |
23043 | (char *) "self", NULL | |
23044 | }; | |
23045 | ||
23046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
23047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23048 | { | |
23049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23050 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
23051 | ||
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | resultobj = PyInt_FromLong((long)result); | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
23062 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23063 | PyObject *resultobj; | |
23064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23065 | wxString *arg2 = 0 ; | |
23066 | int *arg3 = (int *) 0 ; | |
23067 | int *arg4 = (int *) 0 ; | |
423f194a | 23068 | bool temp2 = False ; |
d14a1e28 RD |
23069 | int temp3 ; |
23070 | int temp4 ; | |
23071 | PyObject * obj0 = 0 ; | |
23072 | PyObject * obj1 = 0 ; | |
23073 | char *kwnames[] = { | |
23074 | (char *) "self",(char *) "string", NULL | |
23075 | }; | |
23076 | ||
23077 | arg3 = &temp3; | |
23078 | arg4 = &temp4; | |
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
23080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23081 | { | |
23082 | arg2 = wxString_in_helper(obj1); | |
23083 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23084 | temp2 = True; |
d14a1e28 RD |
23085 | } |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | Py_INCREF(Py_None); resultobj = Py_None; | |
23094 | { | |
23095 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23096 | resultobj = t_output_helper(resultobj,o); | |
23097 | } | |
23098 | { | |
23099 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23100 | resultobj = t_output_helper(resultobj,o); | |
23101 | } | |
23102 | { | |
23103 | if (temp2) | |
23104 | delete arg2; | |
23105 | } | |
23106 | return resultobj; | |
23107 | fail: | |
23108 | { | |
23109 | if (temp2) | |
23110 | delete arg2; | |
23111 | } | |
23112 | return NULL; | |
23113 | } | |
23114 | ||
23115 | ||
23116 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23117 | PyObject *resultobj; | |
23118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23119 | wxString *arg2 = 0 ; | |
23120 | int *arg3 = (int *) 0 ; | |
23121 | int *arg4 = (int *) 0 ; | |
23122 | int *arg5 = (int *) 0 ; | |
23123 | int *arg6 = (int *) 0 ; | |
23124 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 23125 | bool temp2 = False ; |
d14a1e28 RD |
23126 | int temp3 ; |
23127 | int temp4 ; | |
23128 | int temp5 ; | |
23129 | int temp6 ; | |
23130 | PyObject * obj0 = 0 ; | |
23131 | PyObject * obj1 = 0 ; | |
23132 | PyObject * obj2 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self",(char *) "string",(char *) "font", NULL | |
23135 | }; | |
23136 | ||
23137 | arg3 = &temp3; | |
23138 | arg4 = &temp4; | |
23139 | arg5 = &temp5; | |
23140 | arg6 = &temp6; | |
23141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23143 | { | |
23144 | arg2 = wxString_in_helper(obj1); | |
23145 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23146 | temp2 = True; |
d14a1e28 RD |
23147 | } |
23148 | if (obj2) { | |
23149 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23150 | } | |
23151 | { | |
23152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23153 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
23154 | ||
23155 | wxPyEndAllowThreads(__tstate); | |
23156 | if (PyErr_Occurred()) SWIG_fail; | |
23157 | } | |
23158 | Py_INCREF(Py_None); resultobj = Py_None; | |
23159 | { | |
23160 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23161 | resultobj = t_output_helper(resultobj,o); | |
23162 | } | |
23163 | { | |
23164 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
23165 | resultobj = t_output_helper(resultobj,o); | |
23166 | } | |
23167 | { | |
23168 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
23169 | resultobj = t_output_helper(resultobj,o); | |
23170 | } | |
23171 | { | |
23172 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
23173 | resultobj = t_output_helper(resultobj,o); | |
23174 | } | |
23175 | { | |
23176 | if (temp2) | |
23177 | delete arg2; | |
23178 | } | |
23179 | return resultobj; | |
23180 | fail: | |
23181 | { | |
23182 | if (temp2) | |
23183 | delete arg2; | |
23184 | } | |
23185 | return NULL; | |
23186 | } | |
23187 | ||
23188 | ||
23189 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23190 | PyObject *resultobj; | |
23191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23192 | int *arg2 = (int *) 0 ; | |
23193 | int *arg3 = (int *) 0 ; | |
23194 | int temp2 ; | |
23195 | int temp3 ; | |
23196 | PyObject * obj0 = 0 ; | |
23197 | PyObject * obj1 = 0 ; | |
23198 | PyObject * obj2 = 0 ; | |
23199 | char *kwnames[] = { | |
23200 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23201 | }; | |
23202 | ||
23203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23205 | { | |
23206 | temp2 = PyInt_AsLong(obj1); | |
23207 | if (PyErr_Occurred()) SWIG_fail; | |
23208 | arg2 = &temp2; | |
23209 | } | |
23210 | { | |
23211 | temp3 = PyInt_AsLong(obj2); | |
23212 | if (PyErr_Occurred()) SWIG_fail; | |
23213 | arg3 = &temp3; | |
23214 | } | |
23215 | { | |
23216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23217 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
23218 | ||
23219 | wxPyEndAllowThreads(__tstate); | |
23220 | if (PyErr_Occurred()) SWIG_fail; | |
23221 | } | |
23222 | Py_INCREF(Py_None); resultobj = Py_None; | |
23223 | { | |
23224 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23225 | resultobj = t_output_helper(resultobj,o); | |
23226 | } | |
23227 | { | |
23228 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23229 | resultobj = t_output_helper(resultobj,o); | |
23230 | } | |
23231 | return resultobj; | |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
23237 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23238 | PyObject *resultobj; | |
23239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23240 | int *arg2 = (int *) 0 ; | |
23241 | int *arg3 = (int *) 0 ; | |
23242 | int temp2 ; | |
23243 | int temp3 ; | |
23244 | PyObject * obj0 = 0 ; | |
23245 | PyObject * obj1 = 0 ; | |
23246 | PyObject * obj2 = 0 ; | |
23247 | char *kwnames[] = { | |
23248 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23249 | }; | |
23250 | ||
23251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23253 | { | |
23254 | temp2 = PyInt_AsLong(obj1); | |
23255 | if (PyErr_Occurred()) SWIG_fail; | |
23256 | arg2 = &temp2; | |
23257 | } | |
23258 | { | |
23259 | temp3 = PyInt_AsLong(obj2); | |
23260 | if (PyErr_Occurred()) SWIG_fail; | |
23261 | arg3 = &temp3; | |
23262 | } | |
23263 | { | |
23264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23265 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
23266 | ||
23267 | wxPyEndAllowThreads(__tstate); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | } | |
23270 | Py_INCREF(Py_None); resultobj = Py_None; | |
23271 | { | |
23272 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23273 | resultobj = t_output_helper(resultobj,o); | |
23274 | } | |
23275 | { | |
23276 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23277 | resultobj = t_output_helper(resultobj,o); | |
23278 | } | |
23279 | return resultobj; | |
23280 | fail: | |
23281 | return NULL; | |
23282 | } | |
23283 | ||
23284 | ||
23285 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23286 | PyObject *resultobj; | |
23287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23288 | wxPoint *arg2 = 0 ; | |
23289 | wxPoint result; | |
23290 | wxPoint temp2 ; | |
23291 | PyObject * obj0 = 0 ; | |
23292 | PyObject * obj1 = 0 ; | |
23293 | char *kwnames[] = { | |
23294 | (char *) "self",(char *) "pt", NULL | |
23295 | }; | |
23296 | ||
23297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
23298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23299 | { | |
23300 | arg2 = &temp2; | |
23301 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23302 | } | |
23303 | { | |
23304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23305 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
23306 | ||
23307 | wxPyEndAllowThreads(__tstate); | |
23308 | if (PyErr_Occurred()) SWIG_fail; | |
23309 | } | |
23310 | { | |
23311 | wxPoint * resultptr; | |
23312 | resultptr = new wxPoint((wxPoint &) result); | |
23313 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23314 | } | |
23315 | return resultobj; | |
23316 | fail: | |
23317 | return NULL; | |
23318 | } | |
23319 | ||
23320 | ||
23321 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23322 | PyObject *resultobj; | |
23323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23324 | wxPoint *arg2 = 0 ; | |
23325 | wxPoint result; | |
23326 | wxPoint temp2 ; | |
23327 | PyObject * obj0 = 0 ; | |
23328 | PyObject * obj1 = 0 ; | |
23329 | char *kwnames[] = { | |
23330 | (char *) "self",(char *) "pt", NULL | |
23331 | }; | |
23332 | ||
23333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
23334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23335 | { | |
23336 | arg2 = &temp2; | |
23337 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23338 | } | |
23339 | { | |
23340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23341 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
23342 | ||
23343 | wxPyEndAllowThreads(__tstate); | |
23344 | if (PyErr_Occurred()) SWIG_fail; | |
23345 | } | |
23346 | { | |
23347 | wxPoint * resultptr; | |
23348 | resultptr = new wxPoint((wxPoint &) result); | |
23349 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23350 | } | |
23351 | return resultobj; | |
23352 | fail: | |
23353 | return NULL; | |
23354 | } | |
23355 | ||
23356 | ||
23357 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23358 | PyObject *resultobj; | |
23359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
23360 | int arg2 ; |
23361 | int arg3 ; | |
d14a1e28 RD |
23362 | int result; |
23363 | PyObject * obj0 = 0 ; | |
23364 | char *kwnames[] = { | |
23365 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23366 | }; | |
23367 | ||
23368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Window_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23370 | { | |
23371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23372 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
23373 | ||
23374 | wxPyEndAllowThreads(__tstate); | |
23375 | if (PyErr_Occurred()) SWIG_fail; | |
23376 | } | |
23377 | resultobj = PyInt_FromLong((long)result); | |
23378 | return resultobj; | |
23379 | fail: | |
23380 | return NULL; | |
23381 | } | |
23382 | ||
23383 | ||
23384 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23385 | PyObject *resultobj; | |
23386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23387 | wxPoint *arg2 = 0 ; | |
23388 | int result; | |
23389 | wxPoint temp2 ; | |
23390 | PyObject * obj0 = 0 ; | |
23391 | PyObject * obj1 = 0 ; | |
23392 | char *kwnames[] = { | |
23393 | (char *) "self",(char *) "pt", NULL | |
23394 | }; | |
23395 | ||
23396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23398 | { | |
23399 | arg2 = &temp2; | |
23400 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23401 | } | |
23402 | { | |
23403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23404 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
23405 | ||
23406 | wxPyEndAllowThreads(__tstate); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
23408 | } | |
23409 | resultobj = PyInt_FromLong((long)result); | |
23410 | return resultobj; | |
23411 | fail: | |
23412 | return NULL; | |
23413 | } | |
23414 | ||
23415 | ||
23416 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23417 | PyObject *resultobj; | |
23418 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23419 | long arg2 ; | |
23420 | int result; | |
23421 | PyObject * obj0 = 0 ; | |
23422 | char *kwnames[] = { | |
23423 | (char *) "self",(char *) "flags", NULL | |
23424 | }; | |
23425 | ||
23426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Window_GetBorderFlags",kwnames,&obj0,&arg2)) goto fail; | |
23427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23428 | { | |
23429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23430 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
23431 | ||
23432 | wxPyEndAllowThreads(__tstate); | |
23433 | if (PyErr_Occurred()) SWIG_fail; | |
23434 | } | |
23435 | resultobj = PyInt_FromLong((long)result); | |
23436 | return resultobj; | |
23437 | fail: | |
23438 | return NULL; | |
23439 | } | |
23440 | ||
23441 | ||
23442 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23443 | PyObject *resultobj; | |
23444 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23445 | int result; | |
23446 | PyObject * obj0 = 0 ; | |
23447 | char *kwnames[] = { | |
23448 | (char *) "self", NULL | |
23449 | }; | |
23450 | ||
23451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
23452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23453 | { | |
23454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23455 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
23456 | ||
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
23460 | resultobj = PyInt_FromLong((long)result); | |
23461 | return resultobj; | |
23462 | fail: | |
23463 | return NULL; | |
23464 | } | |
23465 | ||
23466 | ||
23467 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23468 | PyObject *resultobj; | |
23469 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23470 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
23471 | PyObject * obj0 = 0 ; | |
23472 | char *kwnames[] = { | |
23473 | (char *) "self",(char *) "flags", NULL | |
23474 | }; | |
23475 | ||
23476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:Window_UpdateWindowUI",kwnames,&obj0,&arg2)) goto fail; | |
23477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23478 | { | |
23479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23480 | (arg1)->UpdateWindowUI(arg2); | |
23481 | ||
23482 | wxPyEndAllowThreads(__tstate); | |
23483 | if (PyErr_Occurred()) SWIG_fail; | |
23484 | } | |
23485 | Py_INCREF(Py_None); resultobj = Py_None; | |
23486 | return resultobj; | |
23487 | fail: | |
23488 | return NULL; | |
23489 | } | |
23490 | ||
23491 | ||
23492 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23493 | PyObject *resultobj; | |
23494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23495 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23496 | int arg3 ; | |
23497 | int arg4 ; | |
23498 | bool result; | |
23499 | PyObject * obj0 = 0 ; | |
23500 | PyObject * obj1 = 0 ; | |
23501 | char *kwnames[] = { | |
23502 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
23503 | }; | |
23504 | ||
23505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:Window_PopupMenuXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
23506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23507 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23508 | { | |
23509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23510 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
23511 | ||
23512 | wxPyEndAllowThreads(__tstate); | |
23513 | if (PyErr_Occurred()) SWIG_fail; | |
23514 | } | |
23515 | resultobj = PyInt_FromLong((long)result); | |
23516 | return resultobj; | |
23517 | fail: | |
23518 | return NULL; | |
23519 | } | |
23520 | ||
23521 | ||
23522 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23523 | PyObject *resultobj; | |
23524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23525 | wxMenu *arg2 = (wxMenu *) 0 ; | |
23526 | wxPoint *arg3 = 0 ; | |
23527 | bool result; | |
23528 | wxPoint temp3 ; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | PyObject * obj1 = 0 ; | |
23531 | PyObject * obj2 = 0 ; | |
23532 | char *kwnames[] = { | |
23533 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
23534 | }; | |
23535 | ||
23536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23538 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23539 | { | |
23540 | arg3 = &temp3; | |
23541 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23542 | } | |
23543 | { | |
23544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23545 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
23546 | ||
23547 | wxPyEndAllowThreads(__tstate); | |
23548 | if (PyErr_Occurred()) SWIG_fail; | |
23549 | } | |
23550 | resultobj = PyInt_FromLong((long)result); | |
23551 | return resultobj; | |
23552 | fail: | |
23553 | return NULL; | |
23554 | } | |
23555 | ||
23556 | ||
23557 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23558 | PyObject *resultobj; | |
23559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23560 | long result; | |
23561 | PyObject * obj0 = 0 ; | |
23562 | char *kwnames[] = { | |
23563 | (char *) "self", NULL | |
23564 | }; | |
23565 | ||
23566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
23567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23568 | { | |
23569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23570 | result = (long)wxWindow_GetHandle(arg1); | |
23571 | ||
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | resultobj = PyInt_FromLong((long)result); | |
23576 | return resultobj; | |
23577 | fail: | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
23582 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23583 | PyObject *resultobj; | |
23584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23585 | int arg2 ; | |
23586 | bool result; | |
23587 | PyObject * obj0 = 0 ; | |
23588 | char *kwnames[] = { | |
23589 | (char *) "self",(char *) "orient", NULL | |
23590 | }; | |
23591 | ||
23592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_HasScrollbar",kwnames,&obj0,&arg2)) goto fail; | |
23593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23594 | { | |
23595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23596 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
23597 | ||
23598 | wxPyEndAllowThreads(__tstate); | |
23599 | if (PyErr_Occurred()) SWIG_fail; | |
23600 | } | |
23601 | resultobj = PyInt_FromLong((long)result); | |
23602 | return resultobj; | |
23603 | fail: | |
23604 | return NULL; | |
23605 | } | |
23606 | ||
23607 | ||
23608 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23609 | PyObject *resultobj; | |
23610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23611 | int arg2 ; | |
23612 | int arg3 ; | |
23613 | int arg4 ; | |
23614 | int arg5 ; | |
423f194a | 23615 | bool arg6 = (bool) True ; |
d14a1e28 RD |
23616 | PyObject * obj0 = 0 ; |
23617 | PyObject * obj5 = 0 ; | |
23618 | char *kwnames[] = { | |
23619 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
23620 | }; | |
23621 | ||
23622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Window_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
23623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23624 | if (obj5) { | |
23625 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
23626 | if (PyErr_Occurred()) SWIG_fail; | |
23627 | } | |
23628 | { | |
23629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23630 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
23631 | ||
23632 | wxPyEndAllowThreads(__tstate); | |
23633 | if (PyErr_Occurred()) SWIG_fail; | |
23634 | } | |
23635 | Py_INCREF(Py_None); resultobj = Py_None; | |
23636 | return resultobj; | |
23637 | fail: | |
23638 | return NULL; | |
23639 | } | |
23640 | ||
23641 | ||
23642 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23643 | PyObject *resultobj; | |
23644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23645 | int arg2 ; | |
23646 | int arg3 ; | |
423f194a | 23647 | bool arg4 = (bool) True ; |
d14a1e28 RD |
23648 | PyObject * obj0 = 0 ; |
23649 | PyObject * obj3 = 0 ; | |
23650 | char *kwnames[] = { | |
23651 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
23652 | }; | |
23653 | ||
23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_SetScrollPos",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
23655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23656 | if (obj3) { | |
23657 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
23660 | { | |
23661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23662 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
23663 | ||
23664 | wxPyEndAllowThreads(__tstate); | |
23665 | if (PyErr_Occurred()) SWIG_fail; | |
23666 | } | |
23667 | Py_INCREF(Py_None); resultobj = Py_None; | |
23668 | return resultobj; | |
23669 | fail: | |
23670 | return NULL; | |
23671 | } | |
23672 | ||
23673 | ||
23674 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23675 | PyObject *resultobj; | |
23676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23677 | int arg2 ; | |
23678 | int result; | |
23679 | PyObject * obj0 = 0 ; | |
23680 | char *kwnames[] = { | |
23681 | (char *) "self",(char *) "orient", NULL | |
23682 | }; | |
23683 | ||
23684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollPos",kwnames,&obj0,&arg2)) goto fail; | |
23685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23686 | { | |
23687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23688 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
23689 | ||
23690 | wxPyEndAllowThreads(__tstate); | |
23691 | if (PyErr_Occurred()) SWIG_fail; | |
23692 | } | |
23693 | resultobj = PyInt_FromLong((long)result); | |
23694 | return resultobj; | |
23695 | fail: | |
23696 | return NULL; | |
23697 | } | |
23698 | ||
23699 | ||
23700 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23701 | PyObject *resultobj; | |
23702 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23703 | int arg2 ; | |
23704 | int result; | |
23705 | PyObject * obj0 = 0 ; | |
23706 | char *kwnames[] = { | |
23707 | (char *) "self",(char *) "orient", NULL | |
23708 | }; | |
23709 | ||
23710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollThumb",kwnames,&obj0,&arg2)) goto fail; | |
23711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23712 | { | |
23713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23714 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
23715 | ||
23716 | wxPyEndAllowThreads(__tstate); | |
23717 | if (PyErr_Occurred()) SWIG_fail; | |
23718 | } | |
23719 | resultobj = PyInt_FromLong((long)result); | |
23720 | return resultobj; | |
23721 | fail: | |
23722 | return NULL; | |
23723 | } | |
23724 | ||
23725 | ||
23726 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23727 | PyObject *resultobj; | |
23728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23729 | int arg2 ; | |
23730 | int result; | |
23731 | PyObject * obj0 = 0 ; | |
23732 | char *kwnames[] = { | |
23733 | (char *) "self",(char *) "orient", NULL | |
23734 | }; | |
23735 | ||
23736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_GetScrollRange",kwnames,&obj0,&arg2)) goto fail; | |
23737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
23745 | resultobj = PyInt_FromLong((long)result); | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
23752 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23753 | PyObject *resultobj; | |
23754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23755 | int arg2 ; | |
23756 | int arg3 ; | |
23757 | wxRect *arg4 = (wxRect *) NULL ; | |
23758 | PyObject * obj0 = 0 ; | |
23759 | PyObject * obj3 = 0 ; | |
23760 | char *kwnames[] = { | |
23761 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
23762 | }; | |
23763 | ||
23764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Window_ScrollWindow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
23765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23766 | if (obj3) { | |
23767 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23768 | } | |
23769 | { | |
23770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23771 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
23772 | ||
23773 | wxPyEndAllowThreads(__tstate); | |
23774 | if (PyErr_Occurred()) SWIG_fail; | |
23775 | } | |
23776 | Py_INCREF(Py_None); resultobj = Py_None; | |
23777 | return resultobj; | |
23778 | fail: | |
23779 | return NULL; | |
23780 | } | |
23781 | ||
23782 | ||
23783 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23784 | PyObject *resultobj; | |
23785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23786 | int arg2 ; | |
23787 | bool result; | |
23788 | PyObject * obj0 = 0 ; | |
23789 | char *kwnames[] = { | |
23790 | (char *) "self",(char *) "lines", NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollLines",kwnames,&obj0,&arg2)) goto fail; | |
23794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23795 | { | |
23796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23797 | result = (bool)(arg1)->ScrollLines(arg2); | |
23798 | ||
23799 | wxPyEndAllowThreads(__tstate); | |
23800 | if (PyErr_Occurred()) SWIG_fail; | |
23801 | } | |
23802 | resultobj = PyInt_FromLong((long)result); | |
23803 | return resultobj; | |
23804 | fail: | |
23805 | return NULL; | |
23806 | } | |
23807 | ||
23808 | ||
23809 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23810 | PyObject *resultobj; | |
23811 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23812 | int arg2 ; | |
23813 | bool result; | |
23814 | PyObject * obj0 = 0 ; | |
23815 | char *kwnames[] = { | |
23816 | (char *) "self",(char *) "pages", NULL | |
23817 | }; | |
23818 | ||
23819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Window_ScrollPages",kwnames,&obj0,&arg2)) goto fail; | |
23820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23821 | { | |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | result = (bool)(arg1)->ScrollPages(arg2); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
23828 | resultobj = PyInt_FromLong((long)result); | |
23829 | return resultobj; | |
23830 | fail: | |
23831 | return NULL; | |
23832 | } | |
23833 | ||
23834 | ||
23835 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23836 | PyObject *resultobj; | |
23837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23838 | bool result; | |
23839 | PyObject * obj0 = 0 ; | |
23840 | char *kwnames[] = { | |
23841 | (char *) "self", NULL | |
23842 | }; | |
23843 | ||
23844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
23845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23846 | { | |
23847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23848 | result = (bool)(arg1)->LineUp(); | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
23853 | resultobj = PyInt_FromLong((long)result); | |
23854 | return resultobj; | |
23855 | fail: | |
23856 | return NULL; | |
23857 | } | |
23858 | ||
23859 | ||
23860 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23861 | PyObject *resultobj; | |
23862 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23863 | bool result; | |
23864 | PyObject * obj0 = 0 ; | |
23865 | char *kwnames[] = { | |
23866 | (char *) "self", NULL | |
23867 | }; | |
23868 | ||
23869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
23870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23871 | { | |
23872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23873 | result = (bool)(arg1)->LineDown(); | |
23874 | ||
23875 | wxPyEndAllowThreads(__tstate); | |
23876 | if (PyErr_Occurred()) SWIG_fail; | |
23877 | } | |
23878 | resultobj = PyInt_FromLong((long)result); | |
23879 | return resultobj; | |
23880 | fail: | |
23881 | return NULL; | |
23882 | } | |
23883 | ||
23884 | ||
23885 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23886 | PyObject *resultobj; | |
23887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23888 | bool result; | |
23889 | PyObject * obj0 = 0 ; | |
23890 | char *kwnames[] = { | |
23891 | (char *) "self", NULL | |
23892 | }; | |
23893 | ||
23894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
23895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23896 | { | |
23897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23898 | result = (bool)(arg1)->PageUp(); | |
23899 | ||
23900 | wxPyEndAllowThreads(__tstate); | |
23901 | if (PyErr_Occurred()) SWIG_fail; | |
23902 | } | |
23903 | resultobj = PyInt_FromLong((long)result); | |
23904 | return resultobj; | |
23905 | fail: | |
23906 | return NULL; | |
23907 | } | |
23908 | ||
23909 | ||
23910 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23911 | PyObject *resultobj; | |
23912 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23913 | bool result; | |
23914 | PyObject * obj0 = 0 ; | |
23915 | char *kwnames[] = { | |
23916 | (char *) "self", NULL | |
23917 | }; | |
23918 | ||
23919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
23920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23921 | { | |
23922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23923 | result = (bool)(arg1)->PageDown(); | |
23924 | ||
23925 | wxPyEndAllowThreads(__tstate); | |
23926 | if (PyErr_Occurred()) SWIG_fail; | |
23927 | } | |
23928 | resultobj = PyInt_FromLong((long)result); | |
23929 | return resultobj; | |
23930 | fail: | |
23931 | return NULL; | |
23932 | } | |
23933 | ||
23934 | ||
23935 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23936 | PyObject *resultobj; | |
23937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23938 | wxString *arg2 = 0 ; | |
423f194a | 23939 | bool temp2 = False ; |
d14a1e28 RD |
23940 | PyObject * obj0 = 0 ; |
23941 | PyObject * obj1 = 0 ; | |
23942 | char *kwnames[] = { | |
23943 | (char *) "self",(char *) "text", NULL | |
23944 | }; | |
23945 | ||
23946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
23947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23948 | { | |
23949 | arg2 = wxString_in_helper(obj1); | |
23950 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23951 | temp2 = True; |
d14a1e28 RD |
23952 | } |
23953 | { | |
23954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23955 | (arg1)->SetHelpText((wxString const &)*arg2); | |
23956 | ||
23957 | wxPyEndAllowThreads(__tstate); | |
23958 | if (PyErr_Occurred()) SWIG_fail; | |
23959 | } | |
23960 | Py_INCREF(Py_None); resultobj = Py_None; | |
23961 | { | |
23962 | if (temp2) | |
23963 | delete arg2; | |
23964 | } | |
23965 | return resultobj; | |
23966 | fail: | |
23967 | { | |
23968 | if (temp2) | |
23969 | delete arg2; | |
23970 | } | |
23971 | return NULL; | |
23972 | } | |
23973 | ||
23974 | ||
23975 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23976 | PyObject *resultobj; | |
23977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23978 | wxString *arg2 = 0 ; | |
423f194a | 23979 | bool temp2 = False ; |
d14a1e28 RD |
23980 | PyObject * obj0 = 0 ; |
23981 | PyObject * obj1 = 0 ; | |
23982 | char *kwnames[] = { | |
23983 | (char *) "self",(char *) "text", NULL | |
23984 | }; | |
23985 | ||
23986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
23987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23988 | { | |
23989 | arg2 = wxString_in_helper(obj1); | |
23990 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23991 | temp2 = True; |
d14a1e28 RD |
23992 | } |
23993 | { | |
23994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23995 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
24000 | Py_INCREF(Py_None); resultobj = Py_None; | |
24001 | { | |
24002 | if (temp2) | |
24003 | delete arg2; | |
24004 | } | |
24005 | return resultobj; | |
24006 | fail: | |
24007 | { | |
24008 | if (temp2) | |
24009 | delete arg2; | |
24010 | } | |
24011 | return NULL; | |
24012 | } | |
24013 | ||
24014 | ||
24015 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24016 | PyObject *resultobj; | |
24017 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24018 | wxString result; | |
24019 | PyObject * obj0 = 0 ; | |
24020 | char *kwnames[] = { | |
24021 | (char *) "self", NULL | |
24022 | }; | |
24023 | ||
24024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
24025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24026 | { | |
24027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24028 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
24029 | ||
24030 | wxPyEndAllowThreads(__tstate); | |
24031 | if (PyErr_Occurred()) SWIG_fail; | |
24032 | } | |
24033 | { | |
24034 | #if wxUSE_UNICODE | |
24035 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24036 | #else | |
24037 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24038 | #endif | |
24039 | } | |
24040 | return resultobj; | |
24041 | fail: | |
24042 | return NULL; | |
24043 | } | |
24044 | ||
24045 | ||
24046 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24047 | PyObject *resultobj; | |
24048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24049 | wxString *arg2 = 0 ; | |
423f194a | 24050 | bool temp2 = False ; |
d14a1e28 RD |
24051 | PyObject * obj0 = 0 ; |
24052 | PyObject * obj1 = 0 ; | |
24053 | char *kwnames[] = { | |
24054 | (char *) "self",(char *) "tip", NULL | |
24055 | }; | |
24056 | ||
24057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
24058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24059 | { | |
24060 | arg2 = wxString_in_helper(obj1); | |
24061 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24062 | temp2 = True; |
d14a1e28 RD |
24063 | } |
24064 | { | |
24065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24066 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24067 | ||
24068 | wxPyEndAllowThreads(__tstate); | |
24069 | if (PyErr_Occurred()) SWIG_fail; | |
24070 | } | |
24071 | Py_INCREF(Py_None); resultobj = Py_None; | |
24072 | { | |
24073 | if (temp2) | |
24074 | delete arg2; | |
24075 | } | |
24076 | return resultobj; | |
24077 | fail: | |
24078 | { | |
24079 | if (temp2) | |
24080 | delete arg2; | |
24081 | } | |
24082 | return NULL; | |
24083 | } | |
24084 | ||
24085 | ||
24086 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24087 | PyObject *resultobj; | |
24088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24089 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
24090 | PyObject * obj0 = 0 ; | |
24091 | PyObject * obj1 = 0 ; | |
24092 | char *kwnames[] = { | |
24093 | (char *) "self",(char *) "tip", NULL | |
24094 | }; | |
24095 | ||
24096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
24097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24099 | { | |
24100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24101 | (arg1)->SetToolTip(arg2); | |
24102 | ||
24103 | wxPyEndAllowThreads(__tstate); | |
24104 | if (PyErr_Occurred()) SWIG_fail; | |
24105 | } | |
24106 | Py_INCREF(Py_None); resultobj = Py_None; | |
24107 | return resultobj; | |
24108 | fail: | |
24109 | return NULL; | |
24110 | } | |
24111 | ||
24112 | ||
24113 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24114 | PyObject *resultobj; | |
24115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24116 | wxToolTip *result; | |
24117 | PyObject * obj0 = 0 ; | |
24118 | char *kwnames[] = { | |
24119 | (char *) "self", NULL | |
24120 | }; | |
24121 | ||
24122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
24123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24124 | { | |
24125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24126 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
24127 | ||
24128 | wxPyEndAllowThreads(__tstate); | |
24129 | if (PyErr_Occurred()) SWIG_fail; | |
24130 | } | |
24131 | { | |
24132 | resultobj = wxPyMake_wxObject(result); | |
24133 | } | |
24134 | return resultobj; | |
24135 | fail: | |
24136 | return NULL; | |
24137 | } | |
24138 | ||
24139 | ||
24140 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24141 | PyObject *resultobj; | |
24142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 24143 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
24144 | PyObject * obj0 = 0 ; |
24145 | PyObject * obj1 = 0 ; | |
24146 | char *kwnames[] = { | |
24147 | (char *) "self",(char *) "dropTarget", NULL | |
24148 | }; | |
24149 | ||
24150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
24151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
44127b65 | 24152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
24153 | { |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | (arg1)->SetDropTarget(arg2); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | Py_INCREF(Py_None); resultobj = Py_None; | |
24161 | return resultobj; | |
24162 | fail: | |
24163 | return NULL; | |
24164 | } | |
24165 | ||
24166 | ||
24167 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24168 | PyObject *resultobj; | |
24169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 24170 | wxPyDropTarget *result; |
d14a1e28 RD |
24171 | PyObject * obj0 = 0 ; |
24172 | char *kwnames[] = { | |
24173 | (char *) "self", NULL | |
24174 | }; | |
24175 | ||
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
24177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24178 | { | |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 24180 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
24181 | |
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
44127b65 | 24185 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
24186 | return resultobj; |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
24192 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24193 | PyObject *resultobj; | |
24194 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24195 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
24196 | PyObject * obj0 = 0 ; | |
24197 | PyObject * obj1 = 0 ; | |
24198 | char *kwnames[] = { | |
24199 | (char *) "self",(char *) "constraints", NULL | |
24200 | }; | |
24201 | ||
24202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
24203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24204 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24205 | { | |
24206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24207 | (arg1)->SetConstraints(arg2); | |
24208 | ||
24209 | wxPyEndAllowThreads(__tstate); | |
24210 | if (PyErr_Occurred()) SWIG_fail; | |
24211 | } | |
24212 | Py_INCREF(Py_None); resultobj = Py_None; | |
24213 | return resultobj; | |
24214 | fail: | |
24215 | return NULL; | |
24216 | } | |
24217 | ||
24218 | ||
24219 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24220 | PyObject *resultobj; | |
24221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24222 | wxLayoutConstraints *result; | |
24223 | PyObject * obj0 = 0 ; | |
24224 | char *kwnames[] = { | |
24225 | (char *) "self", NULL | |
24226 | }; | |
24227 | ||
24228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
24229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24230 | { | |
24231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24232 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
24233 | ||
24234 | wxPyEndAllowThreads(__tstate); | |
24235 | if (PyErr_Occurred()) SWIG_fail; | |
24236 | } | |
24237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
24238 | return resultobj; | |
24239 | fail: | |
24240 | return NULL; | |
24241 | } | |
24242 | ||
24243 | ||
24244 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24245 | PyObject *resultobj; | |
24246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24247 | bool arg2 ; | |
24248 | PyObject * obj0 = 0 ; | |
24249 | PyObject * obj1 = 0 ; | |
24250 | char *kwnames[] = { | |
24251 | (char *) "self",(char *) "autoLayout", NULL | |
24252 | }; | |
24253 | ||
24254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
24255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24256 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24257 | if (PyErr_Occurred()) SWIG_fail; | |
24258 | { | |
24259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24260 | (arg1)->SetAutoLayout(arg2); | |
24261 | ||
24262 | wxPyEndAllowThreads(__tstate); | |
24263 | if (PyErr_Occurred()) SWIG_fail; | |
24264 | } | |
24265 | Py_INCREF(Py_None); resultobj = Py_None; | |
24266 | return resultobj; | |
24267 | fail: | |
24268 | return NULL; | |
24269 | } | |
24270 | ||
24271 | ||
24272 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24273 | PyObject *resultobj; | |
24274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24275 | bool result; | |
24276 | PyObject * obj0 = 0 ; | |
24277 | char *kwnames[] = { | |
24278 | (char *) "self", NULL | |
24279 | }; | |
24280 | ||
24281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
24282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24283 | { | |
24284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24285 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
24286 | ||
24287 | wxPyEndAllowThreads(__tstate); | |
24288 | if (PyErr_Occurred()) SWIG_fail; | |
24289 | } | |
24290 | resultobj = PyInt_FromLong((long)result); | |
24291 | return resultobj; | |
24292 | fail: | |
24293 | return NULL; | |
24294 | } | |
24295 | ||
24296 | ||
24297 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24298 | PyObject *resultobj; | |
24299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24300 | bool result; | |
24301 | PyObject * obj0 = 0 ; | |
24302 | char *kwnames[] = { | |
24303 | (char *) "self", NULL | |
24304 | }; | |
24305 | ||
24306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
24307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24308 | { | |
24309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24310 | result = (bool)(arg1)->Layout(); | |
24311 | ||
24312 | wxPyEndAllowThreads(__tstate); | |
24313 | if (PyErr_Occurred()) SWIG_fail; | |
24314 | } | |
24315 | resultobj = PyInt_FromLong((long)result); | |
24316 | return resultobj; | |
24317 | fail: | |
24318 | return NULL; | |
24319 | } | |
24320 | ||
24321 | ||
24322 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24323 | PyObject *resultobj; | |
24324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24325 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 24326 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24327 | PyObject * obj0 = 0 ; |
24328 | PyObject * obj1 = 0 ; | |
24329 | PyObject * obj2 = 0 ; | |
24330 | char *kwnames[] = { | |
24331 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24332 | }; | |
24333 | ||
24334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24337 | if (obj2) { | |
24338 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24339 | if (PyErr_Occurred()) SWIG_fail; | |
24340 | } | |
24341 | { | |
24342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24343 | (arg1)->SetSizer(arg2,arg3); | |
24344 | ||
24345 | wxPyEndAllowThreads(__tstate); | |
24346 | if (PyErr_Occurred()) SWIG_fail; | |
24347 | } | |
24348 | Py_INCREF(Py_None); resultobj = Py_None; | |
24349 | return resultobj; | |
24350 | fail: | |
24351 | return NULL; | |
24352 | } | |
24353 | ||
24354 | ||
24355 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24356 | PyObject *resultobj; | |
24357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24358 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 24359 | bool arg3 = (bool) True ; |
d14a1e28 RD |
24360 | PyObject * obj0 = 0 ; |
24361 | PyObject * obj1 = 0 ; | |
24362 | PyObject * obj2 = 0 ; | |
24363 | char *kwnames[] = { | |
24364 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
24365 | }; | |
24366 | ||
24367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24369 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24370 | if (obj2) { | |
24371 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
24372 | if (PyErr_Occurred()) SWIG_fail; | |
24373 | } | |
24374 | { | |
24375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24376 | (arg1)->SetSizerAndFit(arg2,arg3); | |
24377 | ||
24378 | wxPyEndAllowThreads(__tstate); | |
24379 | if (PyErr_Occurred()) SWIG_fail; | |
24380 | } | |
24381 | Py_INCREF(Py_None); resultobj = Py_None; | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
24388 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24389 | PyObject *resultobj; | |
24390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24391 | wxSizer *result; | |
24392 | PyObject * obj0 = 0 ; | |
24393 | char *kwnames[] = { | |
24394 | (char *) "self", NULL | |
24395 | }; | |
24396 | ||
24397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
24398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24399 | { | |
24400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24401 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
24402 | ||
24403 | wxPyEndAllowThreads(__tstate); | |
24404 | if (PyErr_Occurred()) SWIG_fail; | |
24405 | } | |
24406 | { | |
24407 | resultobj = wxPyMake_wxSizer(result); | |
24408 | } | |
24409 | return resultobj; | |
24410 | fail: | |
24411 | return NULL; | |
24412 | } | |
24413 | ||
24414 | ||
24415 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24416 | PyObject *resultobj; | |
24417 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24418 | wxSizer *arg2 = (wxSizer *) 0 ; | |
24419 | PyObject * obj0 = 0 ; | |
24420 | PyObject * obj1 = 0 ; | |
24421 | char *kwnames[] = { | |
24422 | (char *) "self",(char *) "sizer", NULL | |
24423 | }; | |
24424 | ||
24425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
24426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24427 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24428 | { | |
24429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24430 | (arg1)->SetContainingSizer(arg2); | |
24431 | ||
24432 | wxPyEndAllowThreads(__tstate); | |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | Py_INCREF(Py_None); resultobj = Py_None; | |
24436 | return resultobj; | |
24437 | fail: | |
24438 | return NULL; | |
24439 | } | |
24440 | ||
24441 | ||
24442 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24443 | PyObject *resultobj; | |
24444 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24445 | wxSizer *result; | |
24446 | PyObject * obj0 = 0 ; | |
24447 | char *kwnames[] = { | |
24448 | (char *) "self", NULL | |
24449 | }; | |
24450 | ||
24451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
24452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24453 | { | |
24454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24455 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
24456 | ||
24457 | wxPyEndAllowThreads(__tstate); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | } | |
24460 | { | |
24461 | resultobj = wxPyMake_wxSizer(result); | |
24462 | } | |
24463 | return resultobj; | |
24464 | fail: | |
24465 | return NULL; | |
24466 | } | |
24467 | ||
24468 | ||
24469 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
24470 | PyObject *obj; | |
24471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24472 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
24473 | Py_INCREF(obj); | |
24474 | return Py_BuildValue((char *)""); | |
24475 | } | |
24476 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24477 | PyObject *resultobj; | |
24478 | long arg1 ; | |
24479 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24480 | wxWindow *result; | |
24481 | PyObject * obj1 = 0 ; | |
24482 | char *kwnames[] = { | |
24483 | (char *) "id",(char *) "parent", NULL | |
24484 | }; | |
24485 | ||
24486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l|O:FindWindowById",kwnames,&arg1,&obj1)) goto fail; | |
24487 | if (obj1) { | |
24488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24489 | } | |
24490 | { | |
24491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24492 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
24493 | ||
24494 | wxPyEndAllowThreads(__tstate); | |
24495 | if (PyErr_Occurred()) SWIG_fail; | |
24496 | } | |
24497 | { | |
24498 | resultobj = wxPyMake_wxObject(result); | |
24499 | } | |
24500 | return resultobj; | |
24501 | fail: | |
24502 | return NULL; | |
24503 | } | |
24504 | ||
24505 | ||
24506 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24507 | PyObject *resultobj; | |
24508 | wxString *arg1 = 0 ; | |
24509 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24510 | wxWindow *result; | |
423f194a | 24511 | bool temp1 = False ; |
d14a1e28 RD |
24512 | PyObject * obj0 = 0 ; |
24513 | PyObject * obj1 = 0 ; | |
24514 | char *kwnames[] = { | |
24515 | (char *) "name",(char *) "parent", NULL | |
24516 | }; | |
24517 | ||
24518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24519 | { | |
24520 | arg1 = wxString_in_helper(obj0); | |
24521 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24522 | temp1 = True; |
d14a1e28 RD |
24523 | } |
24524 | if (obj1) { | |
24525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24526 | } | |
24527 | { | |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24529 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
24530 | ||
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
24534 | { | |
24535 | resultobj = wxPyMake_wxObject(result); | |
24536 | } | |
24537 | { | |
24538 | if (temp1) | |
24539 | delete arg1; | |
24540 | } | |
24541 | return resultobj; | |
24542 | fail: | |
24543 | { | |
24544 | if (temp1) | |
24545 | delete arg1; | |
24546 | } | |
24547 | return NULL; | |
24548 | } | |
24549 | ||
24550 | ||
24551 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24552 | PyObject *resultobj; | |
24553 | wxString *arg1 = 0 ; | |
24554 | wxWindow *arg2 = (wxWindow *) NULL ; | |
24555 | wxWindow *result; | |
423f194a | 24556 | bool temp1 = False ; |
d14a1e28 RD |
24557 | PyObject * obj0 = 0 ; |
24558 | PyObject * obj1 = 0 ; | |
24559 | char *kwnames[] = { | |
24560 | (char *) "label",(char *) "parent", NULL | |
24561 | }; | |
24562 | ||
24563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
24564 | { | |
24565 | arg1 = wxString_in_helper(obj0); | |
24566 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24567 | temp1 = True; |
d14a1e28 RD |
24568 | } |
24569 | if (obj1) { | |
24570 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24571 | } | |
24572 | { | |
24573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24574 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
24575 | ||
24576 | wxPyEndAllowThreads(__tstate); | |
24577 | if (PyErr_Occurred()) SWIG_fail; | |
24578 | } | |
24579 | { | |
24580 | resultobj = wxPyMake_wxObject(result); | |
24581 | } | |
24582 | { | |
24583 | if (temp1) | |
24584 | delete arg1; | |
24585 | } | |
24586 | return resultobj; | |
24587 | fail: | |
24588 | { | |
24589 | if (temp1) | |
24590 | delete arg1; | |
24591 | } | |
24592 | return NULL; | |
24593 | } | |
24594 | ||
24595 | ||
24596 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24597 | PyObject *resultobj; | |
24598 | unsigned long arg1 ; | |
24599 | wxWindow *result; | |
24600 | PyObject * obj0 = 0 ; | |
24601 | char *kwnames[] = { | |
24602 | (char *) "hWnd", NULL | |
24603 | }; | |
24604 | ||
24605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
24606 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
24607 | if (PyErr_Occurred()) SWIG_fail; | |
24608 | { | |
24609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24610 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
24611 | ||
24612 | wxPyEndAllowThreads(__tstate); | |
24613 | if (PyErr_Occurred()) SWIG_fail; | |
24614 | } | |
24615 | { | |
24616 | resultobj = wxPyMake_wxObject(result); | |
24617 | } | |
24618 | return resultobj; | |
24619 | fail: | |
24620 | return NULL; | |
24621 | } | |
24622 | ||
24623 | ||
24624 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24625 | PyObject *resultobj; | |
24626 | wxValidator *result; | |
24627 | char *kwnames[] = { | |
24628 | NULL | |
24629 | }; | |
24630 | ||
24631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
24632 | { | |
24633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24634 | result = (wxValidator *)new wxValidator(); | |
24635 | ||
24636 | wxPyEndAllowThreads(__tstate); | |
24637 | if (PyErr_Occurred()) SWIG_fail; | |
24638 | } | |
24639 | { | |
24640 | resultobj = wxPyMake_wxObject(result); | |
24641 | } | |
24642 | return resultobj; | |
24643 | fail: | |
24644 | return NULL; | |
24645 | } | |
24646 | ||
24647 | ||
24648 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24649 | PyObject *resultobj; | |
24650 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24651 | wxValidator *result; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
24658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = (wxValidator *)(arg1)->Clone(); | |
24662 | ||
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
24666 | { | |
24667 | resultobj = wxPyMake_wxObject(result); | |
24668 | } | |
24669 | return resultobj; | |
24670 | fail: | |
24671 | return NULL; | |
24672 | } | |
24673 | ||
24674 | ||
24675 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24676 | PyObject *resultobj; | |
24677 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24678 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24679 | bool result; | |
24680 | PyObject * obj0 = 0 ; | |
24681 | PyObject * obj1 = 0 ; | |
24682 | char *kwnames[] = { | |
24683 | (char *) "self",(char *) "parent", NULL | |
24684 | }; | |
24685 | ||
24686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
24687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24688 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24689 | { | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24691 | result = (bool)(arg1)->Validate(arg2); | |
24692 | ||
24693 | wxPyEndAllowThreads(__tstate); | |
24694 | if (PyErr_Occurred()) SWIG_fail; | |
24695 | } | |
24696 | resultobj = PyInt_FromLong((long)result); | |
24697 | return resultobj; | |
24698 | fail: | |
24699 | return NULL; | |
24700 | } | |
24701 | ||
24702 | ||
24703 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24704 | PyObject *resultobj; | |
24705 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24706 | bool result; | |
24707 | PyObject * obj0 = 0 ; | |
24708 | char *kwnames[] = { | |
24709 | (char *) "self", NULL | |
24710 | }; | |
24711 | ||
24712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
24713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24714 | { | |
24715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24716 | result = (bool)(arg1)->TransferToWindow(); | |
24717 | ||
24718 | wxPyEndAllowThreads(__tstate); | |
24719 | if (PyErr_Occurred()) SWIG_fail; | |
24720 | } | |
24721 | resultobj = PyInt_FromLong((long)result); | |
24722 | return resultobj; | |
24723 | fail: | |
24724 | return NULL; | |
24725 | } | |
24726 | ||
24727 | ||
24728 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24729 | PyObject *resultobj; | |
24730 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24731 | bool result; | |
24732 | PyObject * obj0 = 0 ; | |
24733 | char *kwnames[] = { | |
24734 | (char *) "self", NULL | |
24735 | }; | |
24736 | ||
24737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
24738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24739 | { | |
24740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24741 | result = (bool)(arg1)->TransferFromWindow(); | |
24742 | ||
24743 | wxPyEndAllowThreads(__tstate); | |
24744 | if (PyErr_Occurred()) SWIG_fail; | |
24745 | } | |
24746 | resultobj = PyInt_FromLong((long)result); | |
24747 | return resultobj; | |
24748 | fail: | |
24749 | return NULL; | |
24750 | } | |
24751 | ||
24752 | ||
24753 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24754 | PyObject *resultobj; | |
24755 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24756 | wxWindow *result; | |
24757 | PyObject * obj0 = 0 ; | |
24758 | char *kwnames[] = { | |
24759 | (char *) "self", NULL | |
24760 | }; | |
24761 | ||
24762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
24763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24764 | { | |
24765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24766 | result = (wxWindow *)(arg1)->GetWindow(); | |
24767 | ||
24768 | wxPyEndAllowThreads(__tstate); | |
24769 | if (PyErr_Occurred()) SWIG_fail; | |
24770 | } | |
24771 | { | |
24772 | resultobj = wxPyMake_wxObject(result); | |
24773 | } | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
24777 | } | |
24778 | ||
24779 | ||
24780 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24781 | PyObject *resultobj; | |
24782 | wxValidator *arg1 = (wxValidator *) 0 ; | |
24783 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24784 | PyObject * obj0 = 0 ; | |
24785 | PyObject * obj1 = 0 ; | |
24786 | char *kwnames[] = { | |
24787 | (char *) "self",(char *) "window", NULL | |
24788 | }; | |
24789 | ||
24790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
24791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24792 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24793 | { | |
24794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24795 | (arg1)->SetWindow(arg2); | |
24796 | ||
24797 | wxPyEndAllowThreads(__tstate); | |
24798 | if (PyErr_Occurred()) SWIG_fail; | |
24799 | } | |
24800 | Py_INCREF(Py_None); resultobj = Py_None; | |
24801 | return resultobj; | |
24802 | fail: | |
24803 | return NULL; | |
24804 | } | |
24805 | ||
24806 | ||
24807 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24808 | PyObject *resultobj; | |
24809 | bool result; | |
24810 | char *kwnames[] = { | |
24811 | NULL | |
24812 | }; | |
24813 | ||
24814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
24815 | { | |
24816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24817 | result = (bool)wxValidator::IsSilent(); | |
24818 | ||
24819 | wxPyEndAllowThreads(__tstate); | |
24820 | if (PyErr_Occurred()) SWIG_fail; | |
24821 | } | |
24822 | resultobj = PyInt_FromLong((long)result); | |
24823 | return resultobj; | |
24824 | fail: | |
24825 | return NULL; | |
24826 | } | |
24827 | ||
24828 | ||
24829 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24830 | PyObject *resultobj; | |
423f194a | 24831 | int arg1 = (int) True ; |
d14a1e28 RD |
24832 | char *kwnames[] = { |
24833 | (char *) "doIt", NULL | |
24834 | }; | |
24835 | ||
24836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:Validator_SetBellOnError",kwnames,&arg1)) goto fail; | |
24837 | { | |
24838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24839 | wxValidator::SetBellOnError(arg1); | |
24840 | ||
24841 | wxPyEndAllowThreads(__tstate); | |
24842 | if (PyErr_Occurred()) SWIG_fail; | |
24843 | } | |
24844 | Py_INCREF(Py_None); resultobj = Py_None; | |
24845 | return resultobj; | |
24846 | fail: | |
24847 | return NULL; | |
24848 | } | |
24849 | ||
24850 | ||
24851 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
24852 | PyObject *obj; | |
24853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24854 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
24855 | Py_INCREF(obj); | |
24856 | return Py_BuildValue((char *)""); | |
24857 | } | |
24858 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24859 | PyObject *resultobj; | |
24860 | wxPyValidator *result; | |
24861 | char *kwnames[] = { | |
24862 | NULL | |
24863 | }; | |
24864 | ||
24865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
24866 | { | |
24867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24868 | result = (wxPyValidator *)new wxPyValidator(); | |
24869 | ||
24870 | wxPyEndAllowThreads(__tstate); | |
24871 | if (PyErr_Occurred()) SWIG_fail; | |
24872 | } | |
24873 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
24874 | return resultobj; | |
24875 | fail: | |
24876 | return NULL; | |
24877 | } | |
24878 | ||
24879 | ||
24880 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24881 | PyObject *resultobj; | |
24882 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
24883 | PyObject *arg2 = (PyObject *) 0 ; | |
24884 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 24885 | int arg4 = (int) True ; |
d14a1e28 RD |
24886 | PyObject * obj0 = 0 ; |
24887 | PyObject * obj1 = 0 ; | |
24888 | PyObject * obj2 = 0 ; | |
24889 | char *kwnames[] = { | |
24890 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
24891 | }; | |
24892 | ||
24893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
24894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24895 | arg2 = obj1; | |
24896 | arg3 = obj2; | |
24897 | { | |
24898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24899 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
24900 | ||
24901 | wxPyEndAllowThreads(__tstate); | |
24902 | if (PyErr_Occurred()) SWIG_fail; | |
24903 | } | |
24904 | Py_INCREF(Py_None); resultobj = Py_None; | |
24905 | return resultobj; | |
24906 | fail: | |
24907 | return NULL; | |
24908 | } | |
24909 | ||
24910 | ||
24911 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
24912 | PyObject *obj; | |
24913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24914 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
24915 | Py_INCREF(obj); | |
24916 | return Py_BuildValue((char *)""); | |
24917 | } | |
24918 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
24919 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
24920 | return 1; | |
24921 | } | |
24922 | ||
24923 | ||
24924 | static PyObject *_wrap_DefaultValidator_get() { | |
24925 | PyObject *pyobj; | |
24926 | ||
24927 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
24928 | return pyobj; | |
24929 | } | |
24930 | ||
24931 | ||
24932 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24933 | PyObject *resultobj; | |
24934 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24935 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24936 | long arg2 = (long) 0 ; | |
24937 | wxMenu *result; | |
423f194a | 24938 | bool temp1 = False ; |
d14a1e28 RD |
24939 | PyObject * obj0 = 0 ; |
24940 | char *kwnames[] = { | |
24941 | (char *) "title",(char *) "style", NULL | |
24942 | }; | |
24943 | ||
24944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Ol:new_Menu",kwnames,&obj0,&arg2)) goto fail; | |
24945 | if (obj0) { | |
24946 | { | |
24947 | arg1 = wxString_in_helper(obj0); | |
24948 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24949 | temp1 = True; |
d14a1e28 RD |
24950 | } |
24951 | } | |
24952 | { | |
24953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24954 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
24955 | ||
24956 | wxPyEndAllowThreads(__tstate); | |
24957 | if (PyErr_Occurred()) SWIG_fail; | |
24958 | } | |
24959 | { | |
24960 | resultobj = wxPyMake_wxObject(result); | |
24961 | } | |
24962 | { | |
24963 | if (temp1) | |
24964 | delete arg1; | |
24965 | } | |
24966 | return resultobj; | |
24967 | fail: | |
24968 | { | |
24969 | if (temp1) | |
24970 | delete arg1; | |
24971 | } | |
24972 | return NULL; | |
24973 | } | |
24974 | ||
24975 | ||
24976 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24977 | PyObject *resultobj; | |
24978 | wxMenu *arg1 = (wxMenu *) 0 ; | |
24979 | int arg2 ; | |
24980 | wxString *arg3 = 0 ; | |
24981 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
24982 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
24983 | int arg5 = (int) wxITEM_NORMAL ; | |
423f194a RD |
24984 | bool temp3 = False ; |
24985 | bool temp4 = False ; | |
d14a1e28 RD |
24986 | PyObject * obj0 = 0 ; |
24987 | PyObject * obj2 = 0 ; | |
24988 | PyObject * obj3 = 0 ; | |
24989 | char *kwnames[] = { | |
0f774bef | 24990 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
24991 | }; |
24992 | ||
24993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Append",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24995 | { | |
24996 | arg3 = wxString_in_helper(obj2); | |
24997 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24998 | temp3 = True; |
d14a1e28 RD |
24999 | } |
25000 | if (obj3) { | |
25001 | { | |
25002 | arg4 = wxString_in_helper(obj3); | |
25003 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25004 | temp4 = True; |
d14a1e28 RD |
25005 | } |
25006 | } | |
25007 | { | |
25008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25009 | (arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
25010 | ||
25011 | wxPyEndAllowThreads(__tstate); | |
25012 | if (PyErr_Occurred()) SWIG_fail; | |
25013 | } | |
25014 | Py_INCREF(Py_None); resultobj = Py_None; | |
25015 | { | |
25016 | if (temp3) | |
25017 | delete arg3; | |
25018 | } | |
25019 | { | |
25020 | if (temp4) | |
25021 | delete arg4; | |
25022 | } | |
25023 | return resultobj; | |
25024 | fail: | |
25025 | { | |
25026 | if (temp3) | |
25027 | delete arg3; | |
25028 | } | |
25029 | { | |
25030 | if (temp4) | |
25031 | delete arg4; | |
25032 | } | |
25033 | return NULL; | |
25034 | } | |
25035 | ||
25036 | ||
25037 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25038 | PyObject *resultobj; | |
25039 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25040 | PyObject * obj0 = 0 ; | |
25041 | char *kwnames[] = { | |
25042 | (char *) "self", NULL | |
25043 | }; | |
25044 | ||
25045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
25046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25047 | { | |
25048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25049 | (arg1)->AppendSeparator(); | |
25050 | ||
25051 | wxPyEndAllowThreads(__tstate); | |
25052 | if (PyErr_Occurred()) SWIG_fail; | |
25053 | } | |
25054 | Py_INCREF(Py_None); resultobj = Py_None; | |
25055 | return resultobj; | |
25056 | fail: | |
25057 | return NULL; | |
25058 | } | |
25059 | ||
25060 | ||
25061 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25062 | PyObject *resultobj; | |
25063 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25064 | int arg2 ; | |
25065 | wxString *arg3 = 0 ; | |
25066 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25067 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25068 | bool temp3 = False ; |
25069 | bool temp4 = False ; | |
d14a1e28 RD |
25070 | PyObject * obj0 = 0 ; |
25071 | PyObject * obj2 = 0 ; | |
25072 | PyObject * obj3 = 0 ; | |
25073 | char *kwnames[] = { | |
0f774bef | 25074 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25075 | }; |
25076 | ||
25077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25079 | { | |
25080 | arg3 = wxString_in_helper(obj2); | |
25081 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25082 | temp3 = True; |
d14a1e28 RD |
25083 | } |
25084 | if (obj3) { | |
25085 | { | |
25086 | arg4 = wxString_in_helper(obj3); | |
25087 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25088 | temp4 = True; |
d14a1e28 RD |
25089 | } |
25090 | } | |
25091 | { | |
25092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25093 | (arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25094 | ||
25095 | wxPyEndAllowThreads(__tstate); | |
25096 | if (PyErr_Occurred()) SWIG_fail; | |
25097 | } | |
25098 | Py_INCREF(Py_None); resultobj = Py_None; | |
25099 | { | |
25100 | if (temp3) | |
25101 | delete arg3; | |
25102 | } | |
25103 | { | |
25104 | if (temp4) | |
25105 | delete arg4; | |
25106 | } | |
25107 | return resultobj; | |
25108 | fail: | |
25109 | { | |
25110 | if (temp3) | |
25111 | delete arg3; | |
25112 | } | |
25113 | { | |
25114 | if (temp4) | |
25115 | delete arg4; | |
25116 | } | |
25117 | return NULL; | |
25118 | } | |
25119 | ||
25120 | ||
25121 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25122 | PyObject *resultobj; | |
25123 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25124 | int arg2 ; | |
25125 | wxString *arg3 = 0 ; | |
25126 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25127 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25128 | bool temp3 = False ; |
25129 | bool temp4 = False ; | |
d14a1e28 RD |
25130 | PyObject * obj0 = 0 ; |
25131 | PyObject * obj2 = 0 ; | |
25132 | PyObject * obj3 = 0 ; | |
25133 | char *kwnames[] = { | |
0f774bef | 25134 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25135 | }; |
25136 | ||
25137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_AppendRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25139 | { | |
25140 | arg3 = wxString_in_helper(obj2); | |
25141 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25142 | temp3 = True; |
d14a1e28 RD |
25143 | } |
25144 | if (obj3) { | |
25145 | { | |
25146 | arg4 = wxString_in_helper(obj3); | |
25147 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25148 | temp4 = True; |
d14a1e28 RD |
25149 | } |
25150 | } | |
25151 | { | |
25152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25153 | (arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25154 | ||
25155 | wxPyEndAllowThreads(__tstate); | |
25156 | if (PyErr_Occurred()) SWIG_fail; | |
25157 | } | |
25158 | Py_INCREF(Py_None); resultobj = Py_None; | |
25159 | { | |
25160 | if (temp3) | |
25161 | delete arg3; | |
25162 | } | |
25163 | { | |
25164 | if (temp4) | |
25165 | delete arg4; | |
25166 | } | |
25167 | return resultobj; | |
25168 | fail: | |
25169 | { | |
25170 | if (temp3) | |
25171 | delete arg3; | |
25172 | } | |
25173 | { | |
25174 | if (temp4) | |
25175 | delete arg4; | |
25176 | } | |
25177 | return NULL; | |
25178 | } | |
25179 | ||
25180 | ||
25181 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25182 | PyObject *resultobj; | |
25183 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25184 | int arg2 ; | |
25185 | wxString *arg3 = 0 ; | |
25186 | wxMenu *arg4 = (wxMenu *) 0 ; | |
25187 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25188 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25189 | bool temp3 = False ; |
25190 | bool temp5 = False ; | |
d14a1e28 RD |
25191 | PyObject * obj0 = 0 ; |
25192 | PyObject * obj2 = 0 ; | |
25193 | PyObject * obj3 = 0 ; | |
25194 | PyObject * obj4 = 0 ; | |
25195 | char *kwnames[] = { | |
0f774bef | 25196 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25197 | }; |
25198 | ||
25199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_AppendMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
25200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25201 | { | |
25202 | arg3 = wxString_in_helper(obj2); | |
25203 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25204 | temp3 = True; |
d14a1e28 RD |
25205 | } |
25206 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25207 | if (obj4) { | |
25208 | { | |
25209 | arg5 = wxString_in_helper(obj4); | |
25210 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25211 | temp5 = True; |
d14a1e28 RD |
25212 | } |
25213 | } | |
25214 | { | |
25215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25216 | (arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
25217 | ||
25218 | wxPyEndAllowThreads(__tstate); | |
25219 | if (PyErr_Occurred()) SWIG_fail; | |
25220 | } | |
25221 | Py_INCREF(Py_None); resultobj = Py_None; | |
25222 | { | |
25223 | if (temp3) | |
25224 | delete arg3; | |
25225 | } | |
25226 | { | |
25227 | if (temp5) | |
25228 | delete arg5; | |
25229 | } | |
25230 | return resultobj; | |
25231 | fail: | |
25232 | { | |
25233 | if (temp3) | |
25234 | delete arg3; | |
25235 | } | |
25236 | { | |
25237 | if (temp5) | |
25238 | delete arg5; | |
25239 | } | |
25240 | return NULL; | |
25241 | } | |
25242 | ||
25243 | ||
25244 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25245 | PyObject *resultobj; | |
25246 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25247 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25248 | PyObject * obj0 = 0 ; | |
25249 | PyObject * obj1 = 0 ; | |
25250 | char *kwnames[] = { | |
25251 | (char *) "self",(char *) "item", NULL | |
25252 | }; | |
25253 | ||
25254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
25255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25256 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25257 | { | |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | (arg1)->Append(arg2); | |
25260 | ||
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | Py_INCREF(Py_None); resultobj = Py_None; | |
25265 | return resultobj; | |
25266 | fail: | |
25267 | return NULL; | |
25268 | } | |
25269 | ||
25270 | ||
25271 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25272 | PyObject *resultobj; | |
25273 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25274 | PyObject * obj0 = 0 ; | |
25275 | char *kwnames[] = { | |
25276 | (char *) "self", NULL | |
25277 | }; | |
25278 | ||
25279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
25280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25281 | { | |
25282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25283 | (arg1)->Break(); | |
25284 | ||
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | Py_INCREF(Py_None); resultobj = Py_None; | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25296 | PyObject *resultobj; | |
25297 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25298 | size_t arg2 ; | |
25299 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
25300 | bool result; | |
25301 | PyObject * obj0 = 0 ; | |
25302 | PyObject * obj1 = 0 ; | |
25303 | PyObject * obj2 = 0 ; | |
25304 | char *kwnames[] = { | |
25305 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
25306 | }; | |
25307 | ||
25308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25310 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
25312 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25313 | { | |
25314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25315 | result = (bool)(arg1)->Insert(arg2,arg3); | |
25316 | ||
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
25320 | resultobj = PyInt_FromLong((long)result); | |
25321 | return resultobj; | |
25322 | fail: | |
25323 | return NULL; | |
25324 | } | |
25325 | ||
25326 | ||
25327 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25328 | PyObject *resultobj; | |
25329 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25330 | size_t arg2 ; | |
25331 | int arg3 ; | |
25332 | wxString *arg4 = 0 ; | |
25333 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25334 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
25335 | int arg6 = (int) wxITEM_NORMAL ; | |
423f194a RD |
25336 | bool temp4 = False ; |
25337 | bool temp5 = False ; | |
d14a1e28 RD |
25338 | PyObject * obj0 = 0 ; |
25339 | PyObject * obj1 = 0 ; | |
25340 | PyObject * obj3 = 0 ; | |
25341 | PyObject * obj4 = 0 ; | |
25342 | char *kwnames[] = { | |
0f774bef | 25343 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25344 | }; |
25345 | ||
25346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|Oi:Menu_Insert",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
25347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25348 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | { | |
25351 | arg4 = wxString_in_helper(obj3); | |
25352 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25353 | temp4 = True; |
d14a1e28 RD |
25354 | } |
25355 | if (obj4) { | |
25356 | { | |
25357 | arg5 = wxString_in_helper(obj4); | |
25358 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25359 | temp5 = True; |
d14a1e28 RD |
25360 | } |
25361 | } | |
25362 | { | |
25363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25364 | (arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
25365 | ||
25366 | wxPyEndAllowThreads(__tstate); | |
25367 | if (PyErr_Occurred()) SWIG_fail; | |
25368 | } | |
25369 | Py_INCREF(Py_None); resultobj = Py_None; | |
25370 | { | |
25371 | if (temp4) | |
25372 | delete arg4; | |
25373 | } | |
25374 | { | |
25375 | if (temp5) | |
25376 | delete arg5; | |
25377 | } | |
25378 | return resultobj; | |
25379 | fail: | |
25380 | { | |
25381 | if (temp4) | |
25382 | delete arg4; | |
25383 | } | |
25384 | { | |
25385 | if (temp5) | |
25386 | delete arg5; | |
25387 | } | |
25388 | return NULL; | |
25389 | } | |
25390 | ||
25391 | ||
25392 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25393 | PyObject *resultobj; | |
25394 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25395 | size_t arg2 ; | |
25396 | PyObject * obj0 = 0 ; | |
25397 | PyObject * obj1 = 0 ; | |
25398 | char *kwnames[] = { | |
25399 | (char *) "self",(char *) "pos", NULL | |
25400 | }; | |
25401 | ||
25402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
25403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25404 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25405 | if (PyErr_Occurred()) SWIG_fail; | |
25406 | { | |
25407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25408 | (arg1)->InsertSeparator(arg2); | |
25409 | ||
25410 | wxPyEndAllowThreads(__tstate); | |
25411 | if (PyErr_Occurred()) SWIG_fail; | |
25412 | } | |
25413 | Py_INCREF(Py_None); resultobj = Py_None; | |
25414 | return resultobj; | |
25415 | fail: | |
25416 | return NULL; | |
25417 | } | |
25418 | ||
25419 | ||
25420 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25421 | PyObject *resultobj; | |
25422 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25423 | size_t arg2 ; | |
25424 | int arg3 ; | |
25425 | wxString *arg4 = 0 ; | |
25426 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25427 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25428 | bool temp4 = False ; |
25429 | bool temp5 = False ; | |
d14a1e28 RD |
25430 | PyObject * obj0 = 0 ; |
25431 | PyObject * obj1 = 0 ; | |
25432 | PyObject * obj3 = 0 ; | |
25433 | PyObject * obj4 = 0 ; | |
25434 | char *kwnames[] = { | |
0f774bef | 25435 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25436 | }; |
25437 | ||
25438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25440 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25441 | if (PyErr_Occurred()) SWIG_fail; | |
25442 | { | |
25443 | arg4 = wxString_in_helper(obj3); | |
25444 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25445 | temp4 = True; |
d14a1e28 RD |
25446 | } |
25447 | if (obj4) { | |
25448 | { | |
25449 | arg5 = wxString_in_helper(obj4); | |
25450 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25451 | temp5 = True; |
d14a1e28 RD |
25452 | } |
25453 | } | |
25454 | { | |
25455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25456 | (arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
25457 | ||
25458 | wxPyEndAllowThreads(__tstate); | |
25459 | if (PyErr_Occurred()) SWIG_fail; | |
25460 | } | |
25461 | Py_INCREF(Py_None); resultobj = Py_None; | |
25462 | { | |
25463 | if (temp4) | |
25464 | delete arg4; | |
25465 | } | |
25466 | { | |
25467 | if (temp5) | |
25468 | delete arg5; | |
25469 | } | |
25470 | return resultobj; | |
25471 | fail: | |
25472 | { | |
25473 | if (temp4) | |
25474 | delete arg4; | |
25475 | } | |
25476 | { | |
25477 | if (temp5) | |
25478 | delete arg5; | |
25479 | } | |
25480 | return NULL; | |
25481 | } | |
25482 | ||
25483 | ||
25484 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25485 | PyObject *resultobj; | |
25486 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25487 | size_t arg2 ; | |
25488 | int arg3 ; | |
25489 | wxString *arg4 = 0 ; | |
25490 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25491 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25492 | bool temp4 = False ; |
25493 | bool temp5 = False ; | |
d14a1e28 RD |
25494 | PyObject * obj0 = 0 ; |
25495 | PyObject * obj1 = 0 ; | |
25496 | PyObject * obj3 = 0 ; | |
25497 | PyObject * obj4 = 0 ; | |
25498 | char *kwnames[] = { | |
0f774bef | 25499 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25500 | }; |
25501 | ||
25502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
25503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25504 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25505 | if (PyErr_Occurred()) SWIG_fail; | |
25506 | { | |
25507 | arg4 = wxString_in_helper(obj3); | |
25508 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25509 | temp4 = True; |
d14a1e28 RD |
25510 | } |
25511 | if (obj4) { | |
25512 | { | |
25513 | arg5 = wxString_in_helper(obj4); | |
25514 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25515 | temp5 = True; |
d14a1e28 RD |
25516 | } |
25517 | } | |
25518 | { | |
25519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25520 | (arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
25521 | ||
25522 | wxPyEndAllowThreads(__tstate); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
25525 | Py_INCREF(Py_None); resultobj = Py_None; | |
25526 | { | |
25527 | if (temp4) | |
25528 | delete arg4; | |
25529 | } | |
25530 | { | |
25531 | if (temp5) | |
25532 | delete arg5; | |
25533 | } | |
25534 | return resultobj; | |
25535 | fail: | |
25536 | { | |
25537 | if (temp4) | |
25538 | delete arg4; | |
25539 | } | |
25540 | { | |
25541 | if (temp5) | |
25542 | delete arg5; | |
25543 | } | |
25544 | return NULL; | |
25545 | } | |
25546 | ||
25547 | ||
25548 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25549 | PyObject *resultobj; | |
25550 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25551 | size_t arg2 ; | |
25552 | int arg3 ; | |
25553 | wxString *arg4 = 0 ; | |
25554 | wxMenu *arg5 = (wxMenu *) 0 ; | |
25555 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
25556 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
423f194a RD |
25557 | bool temp4 = False ; |
25558 | bool temp6 = False ; | |
d14a1e28 RD |
25559 | PyObject * obj0 = 0 ; |
25560 | PyObject * obj1 = 0 ; | |
25561 | PyObject * obj3 = 0 ; | |
25562 | PyObject * obj4 = 0 ; | |
25563 | PyObject * obj5 = 0 ; | |
25564 | char *kwnames[] = { | |
0f774bef | 25565 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25566 | }; |
25567 | ||
25568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5)) goto fail; | |
25569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25570 | arg2 = (size_t) PyInt_AsLong(obj1); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | { | |
25573 | arg4 = wxString_in_helper(obj3); | |
25574 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25575 | temp4 = True; |
d14a1e28 RD |
25576 | } |
25577 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25578 | if (obj5) { | |
25579 | { | |
25580 | arg6 = wxString_in_helper(obj5); | |
25581 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 25582 | temp6 = True; |
d14a1e28 RD |
25583 | } |
25584 | } | |
25585 | { | |
25586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25587 | (arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
25592 | Py_INCREF(Py_None); resultobj = Py_None; | |
25593 | { | |
25594 | if (temp4) | |
25595 | delete arg4; | |
25596 | } | |
25597 | { | |
25598 | if (temp6) | |
25599 | delete arg6; | |
25600 | } | |
25601 | return resultobj; | |
25602 | fail: | |
25603 | { | |
25604 | if (temp4) | |
25605 | delete arg4; | |
25606 | } | |
25607 | { | |
25608 | if (temp6) | |
25609 | delete arg6; | |
25610 | } | |
25611 | return NULL; | |
25612 | } | |
25613 | ||
25614 | ||
25615 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25616 | PyObject *resultobj; | |
25617 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25618 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25619 | PyObject * obj0 = 0 ; | |
25620 | PyObject * obj1 = 0 ; | |
25621 | char *kwnames[] = { | |
25622 | (char *) "self",(char *) "item", NULL | |
25623 | }; | |
25624 | ||
25625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
25626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25627 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25628 | { | |
25629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25630 | (arg1)->Prepend(arg2); | |
25631 | ||
25632 | wxPyEndAllowThreads(__tstate); | |
25633 | if (PyErr_Occurred()) SWIG_fail; | |
25634 | } | |
25635 | Py_INCREF(Py_None); resultobj = Py_None; | |
25636 | return resultobj; | |
25637 | fail: | |
25638 | return NULL; | |
25639 | } | |
25640 | ||
25641 | ||
25642 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25643 | PyObject *resultobj; | |
25644 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25645 | int arg2 ; | |
25646 | wxString *arg3 = 0 ; | |
25647 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25648 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25649 | int arg5 = (int) wxITEM_NORMAL ; | |
423f194a RD |
25650 | bool temp3 = False ; |
25651 | bool temp4 = False ; | |
d14a1e28 RD |
25652 | PyObject * obj0 = 0 ; |
25653 | PyObject * obj2 = 0 ; | |
25654 | PyObject * obj3 = 0 ; | |
25655 | char *kwnames[] = { | |
0f774bef | 25656 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
25657 | }; |
25658 | ||
25659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|Oi:Menu_Prepend",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25661 | { | |
25662 | arg3 = wxString_in_helper(obj2); | |
25663 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25664 | temp3 = True; |
d14a1e28 RD |
25665 | } |
25666 | if (obj3) { | |
25667 | { | |
25668 | arg4 = wxString_in_helper(obj3); | |
25669 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25670 | temp4 = True; |
d14a1e28 RD |
25671 | } |
25672 | } | |
25673 | { | |
25674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25675 | (arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
25676 | ||
25677 | wxPyEndAllowThreads(__tstate); | |
25678 | if (PyErr_Occurred()) SWIG_fail; | |
25679 | } | |
25680 | Py_INCREF(Py_None); resultobj = Py_None; | |
25681 | { | |
25682 | if (temp3) | |
25683 | delete arg3; | |
25684 | } | |
25685 | { | |
25686 | if (temp4) | |
25687 | delete arg4; | |
25688 | } | |
25689 | return resultobj; | |
25690 | fail: | |
25691 | { | |
25692 | if (temp3) | |
25693 | delete arg3; | |
25694 | } | |
25695 | { | |
25696 | if (temp4) | |
25697 | delete arg4; | |
25698 | } | |
25699 | return NULL; | |
25700 | } | |
25701 | ||
25702 | ||
25703 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25704 | PyObject *resultobj; | |
25705 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25706 | PyObject * obj0 = 0 ; | |
25707 | char *kwnames[] = { | |
25708 | (char *) "self", NULL | |
25709 | }; | |
25710 | ||
25711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
25712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25713 | { | |
25714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25715 | (arg1)->PrependSeparator(); | |
25716 | ||
25717 | wxPyEndAllowThreads(__tstate); | |
25718 | if (PyErr_Occurred()) SWIG_fail; | |
25719 | } | |
25720 | Py_INCREF(Py_None); resultobj = Py_None; | |
25721 | return resultobj; | |
25722 | fail: | |
25723 | return NULL; | |
25724 | } | |
25725 | ||
25726 | ||
25727 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25728 | PyObject *resultobj; | |
25729 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25730 | int arg2 ; | |
25731 | wxString *arg3 = 0 ; | |
25732 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25733 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25734 | bool temp3 = False ; |
25735 | bool temp4 = False ; | |
d14a1e28 RD |
25736 | PyObject * obj0 = 0 ; |
25737 | PyObject * obj2 = 0 ; | |
25738 | PyObject * obj3 = 0 ; | |
25739 | char *kwnames[] = { | |
0f774bef | 25740 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25741 | }; |
25742 | ||
25743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependCheckItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25745 | { | |
25746 | arg3 = wxString_in_helper(obj2); | |
25747 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25748 | temp3 = True; |
d14a1e28 RD |
25749 | } |
25750 | if (obj3) { | |
25751 | { | |
25752 | arg4 = wxString_in_helper(obj3); | |
25753 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25754 | temp4 = True; |
d14a1e28 RD |
25755 | } |
25756 | } | |
25757 | { | |
25758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25759 | (arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25760 | ||
25761 | wxPyEndAllowThreads(__tstate); | |
25762 | if (PyErr_Occurred()) SWIG_fail; | |
25763 | } | |
25764 | Py_INCREF(Py_None); resultobj = Py_None; | |
25765 | { | |
25766 | if (temp3) | |
25767 | delete arg3; | |
25768 | } | |
25769 | { | |
25770 | if (temp4) | |
25771 | delete arg4; | |
25772 | } | |
25773 | return resultobj; | |
25774 | fail: | |
25775 | { | |
25776 | if (temp3) | |
25777 | delete arg3; | |
25778 | } | |
25779 | { | |
25780 | if (temp4) | |
25781 | delete arg4; | |
25782 | } | |
25783 | return NULL; | |
25784 | } | |
25785 | ||
25786 | ||
25787 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25788 | PyObject *resultobj; | |
25789 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25790 | int arg2 ; | |
25791 | wxString *arg3 = 0 ; | |
25792 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25793 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
25794 | bool temp3 = False ; |
25795 | bool temp4 = False ; | |
d14a1e28 RD |
25796 | PyObject * obj0 = 0 ; |
25797 | PyObject * obj2 = 0 ; | |
25798 | PyObject * obj3 = 0 ; | |
25799 | char *kwnames[] = { | |
0f774bef | 25800 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
25801 | }; |
25802 | ||
25803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:Menu_PrependRadioItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
25804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25805 | { | |
25806 | arg3 = wxString_in_helper(obj2); | |
25807 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25808 | temp3 = True; |
d14a1e28 RD |
25809 | } |
25810 | if (obj3) { | |
25811 | { | |
25812 | arg4 = wxString_in_helper(obj3); | |
25813 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 25814 | temp4 = True; |
d14a1e28 RD |
25815 | } |
25816 | } | |
25817 | { | |
25818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25819 | (arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
25820 | ||
25821 | wxPyEndAllowThreads(__tstate); | |
25822 | if (PyErr_Occurred()) SWIG_fail; | |
25823 | } | |
25824 | Py_INCREF(Py_None); resultobj = Py_None; | |
25825 | { | |
25826 | if (temp3) | |
25827 | delete arg3; | |
25828 | } | |
25829 | { | |
25830 | if (temp4) | |
25831 | delete arg4; | |
25832 | } | |
25833 | return resultobj; | |
25834 | fail: | |
25835 | { | |
25836 | if (temp3) | |
25837 | delete arg3; | |
25838 | } | |
25839 | { | |
25840 | if (temp4) | |
25841 | delete arg4; | |
25842 | } | |
25843 | return NULL; | |
25844 | } | |
25845 | ||
25846 | ||
25847 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25848 | PyObject *resultobj; | |
25849 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25850 | int arg2 ; | |
25851 | wxString *arg3 = 0 ; | |
25852 | wxMenu *arg4 = (wxMenu *) 0 ; | |
25853 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
25854 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
423f194a RD |
25855 | bool temp3 = False ; |
25856 | bool temp5 = False ; | |
d14a1e28 RD |
25857 | PyObject * obj0 = 0 ; |
25858 | PyObject * obj2 = 0 ; | |
25859 | PyObject * obj3 = 0 ; | |
25860 | PyObject * obj4 = 0 ; | |
25861 | char *kwnames[] = { | |
0f774bef | 25862 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
25863 | }; |
25864 | ||
25865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|O:Menu_PrependMenu",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4)) goto fail; | |
25866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25867 | { | |
25868 | arg3 = wxString_in_helper(obj2); | |
25869 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25870 | temp3 = True; |
d14a1e28 RD |
25871 | } |
25872 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25873 | if (obj4) { | |
25874 | { | |
25875 | arg5 = wxString_in_helper(obj4); | |
25876 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 25877 | temp5 = True; |
d14a1e28 RD |
25878 | } |
25879 | } | |
25880 | { | |
25881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25882 | (arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
25883 | ||
25884 | wxPyEndAllowThreads(__tstate); | |
25885 | if (PyErr_Occurred()) SWIG_fail; | |
25886 | } | |
25887 | Py_INCREF(Py_None); resultobj = Py_None; | |
25888 | { | |
25889 | if (temp3) | |
25890 | delete arg3; | |
25891 | } | |
25892 | { | |
25893 | if (temp5) | |
25894 | delete arg5; | |
25895 | } | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | { | |
25899 | if (temp3) | |
25900 | delete arg3; | |
25901 | } | |
25902 | { | |
25903 | if (temp5) | |
25904 | delete arg5; | |
25905 | } | |
25906 | return NULL; | |
25907 | } | |
25908 | ||
25909 | ||
25910 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25911 | PyObject *resultobj; | |
25912 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25913 | int arg2 ; | |
25914 | wxMenuItem *result; | |
25915 | PyObject * obj0 = 0 ; | |
25916 | char *kwnames[] = { | |
0f774bef | 25917 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
25918 | }; |
25919 | ||
25920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Remove",kwnames,&obj0,&arg2)) goto fail; | |
25921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25922 | { | |
25923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25924 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
25925 | ||
25926 | wxPyEndAllowThreads(__tstate); | |
25927 | if (PyErr_Occurred()) SWIG_fail; | |
25928 | } | |
25929 | { | |
25930 | resultobj = wxPyMake_wxObject(result); | |
25931 | } | |
25932 | return resultobj; | |
25933 | fail: | |
25934 | return NULL; | |
25935 | } | |
25936 | ||
25937 | ||
25938 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25939 | PyObject *resultobj; | |
25940 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25941 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25942 | wxMenuItem *result; | |
25943 | PyObject * obj0 = 0 ; | |
25944 | PyObject * obj1 = 0 ; | |
25945 | char *kwnames[] = { | |
25946 | (char *) "self",(char *) "item", NULL | |
25947 | }; | |
25948 | ||
25949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
25950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25951 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25952 | { | |
25953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25954 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
25955 | ||
25956 | wxPyEndAllowThreads(__tstate); | |
25957 | if (PyErr_Occurred()) SWIG_fail; | |
25958 | } | |
25959 | { | |
25960 | resultobj = wxPyMake_wxObject(result); | |
25961 | } | |
25962 | return resultobj; | |
25963 | fail: | |
25964 | return NULL; | |
25965 | } | |
25966 | ||
25967 | ||
25968 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25969 | PyObject *resultobj; | |
25970 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25971 | int arg2 ; | |
25972 | bool result; | |
25973 | PyObject * obj0 = 0 ; | |
25974 | char *kwnames[] = { | |
0f774bef | 25975 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
25976 | }; |
25977 | ||
25978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_Delete",kwnames,&obj0,&arg2)) goto fail; | |
25979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25980 | { | |
25981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25982 | result = (bool)(arg1)->Delete(arg2); | |
25983 | ||
25984 | wxPyEndAllowThreads(__tstate); | |
25985 | if (PyErr_Occurred()) SWIG_fail; | |
25986 | } | |
25987 | resultobj = PyInt_FromLong((long)result); | |
25988 | return resultobj; | |
25989 | fail: | |
25990 | return NULL; | |
25991 | } | |
25992 | ||
25993 | ||
25994 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25995 | PyObject *resultobj; | |
25996 | wxMenu *arg1 = (wxMenu *) 0 ; | |
25997 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
25998 | bool result; | |
25999 | PyObject * obj0 = 0 ; | |
26000 | PyObject * obj1 = 0 ; | |
26001 | char *kwnames[] = { | |
26002 | (char *) "self",(char *) "item", NULL | |
26003 | }; | |
26004 | ||
26005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
26006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26008 | { | |
26009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26010 | result = (bool)(arg1)->Delete(arg2); | |
26011 | ||
26012 | wxPyEndAllowThreads(__tstate); | |
26013 | if (PyErr_Occurred()) SWIG_fail; | |
26014 | } | |
26015 | resultobj = PyInt_FromLong((long)result); | |
26016 | return resultobj; | |
26017 | fail: | |
26018 | return NULL; | |
26019 | } | |
26020 | ||
26021 | ||
26022 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26023 | PyObject *resultobj; | |
26024 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26025 | PyObject * obj0 = 0 ; | |
26026 | char *kwnames[] = { | |
26027 | (char *) "self", NULL | |
26028 | }; | |
26029 | ||
26030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
26031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26032 | { | |
26033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26034 | wxMenu_Destroy(arg1); | |
26035 | ||
26036 | wxPyEndAllowThreads(__tstate); | |
26037 | if (PyErr_Occurred()) SWIG_fail; | |
26038 | } | |
26039 | Py_INCREF(Py_None); resultobj = Py_None; | |
26040 | return resultobj; | |
26041 | fail: | |
26042 | return NULL; | |
26043 | } | |
26044 | ||
26045 | ||
26046 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26047 | PyObject *resultobj; | |
26048 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26049 | int arg2 ; | |
26050 | bool result; | |
26051 | PyObject * obj0 = 0 ; | |
26052 | char *kwnames[] = { | |
0f774bef | 26053 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26054 | }; |
26055 | ||
26056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_DestroyId",kwnames,&obj0,&arg2)) goto fail; | |
26057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26058 | { | |
26059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26060 | result = (bool)(arg1)->Destroy(arg2); | |
26061 | ||
26062 | wxPyEndAllowThreads(__tstate); | |
26063 | if (PyErr_Occurred()) SWIG_fail; | |
26064 | } | |
26065 | resultobj = PyInt_FromLong((long)result); | |
26066 | return resultobj; | |
26067 | fail: | |
26068 | return NULL; | |
26069 | } | |
26070 | ||
26071 | ||
26072 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26073 | PyObject *resultobj; | |
26074 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26075 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
26076 | bool result; | |
26077 | PyObject * obj0 = 0 ; | |
26078 | PyObject * obj1 = 0 ; | |
26079 | char *kwnames[] = { | |
26080 | (char *) "self",(char *) "item", NULL | |
26081 | }; | |
26082 | ||
26083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
26084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26085 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | result = (bool)(arg1)->Destroy(arg2); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | resultobj = PyInt_FromLong((long)result); | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
26100 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26101 | PyObject *resultobj; | |
26102 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26103 | size_t result; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | char *kwnames[] = { | |
26106 | (char *) "self", NULL | |
26107 | }; | |
26108 | ||
26109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
26110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26111 | { | |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
26114 | ||
26115 | wxPyEndAllowThreads(__tstate); | |
26116 | if (PyErr_Occurred()) SWIG_fail; | |
26117 | } | |
26118 | resultobj = PyInt_FromLong((long)result); | |
26119 | return resultobj; | |
26120 | fail: | |
26121 | return NULL; | |
26122 | } | |
26123 | ||
26124 | ||
26125 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26126 | PyObject *resultobj; | |
26127 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26128 | PyObject *result; | |
26129 | PyObject * obj0 = 0 ; | |
26130 | char *kwnames[] = { | |
26131 | (char *) "self", NULL | |
26132 | }; | |
26133 | ||
26134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
26135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26136 | { | |
26137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26138 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
26139 | ||
26140 | wxPyEndAllowThreads(__tstate); | |
26141 | if (PyErr_Occurred()) SWIG_fail; | |
26142 | } | |
26143 | resultobj = result; | |
26144 | return resultobj; | |
26145 | fail: | |
26146 | return NULL; | |
26147 | } | |
26148 | ||
26149 | ||
26150 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26151 | PyObject *resultobj; | |
26152 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26153 | wxString *arg2 = 0 ; | |
26154 | int result; | |
423f194a | 26155 | bool temp2 = False ; |
d14a1e28 RD |
26156 | PyObject * obj0 = 0 ; |
26157 | PyObject * obj1 = 0 ; | |
26158 | char *kwnames[] = { | |
26159 | (char *) "self",(char *) "item", NULL | |
26160 | }; | |
26161 | ||
26162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
26163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26164 | { | |
26165 | arg2 = wxString_in_helper(obj1); | |
26166 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26167 | temp2 = True; |
d14a1e28 RD |
26168 | } |
26169 | { | |
26170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26171 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
26172 | ||
26173 | wxPyEndAllowThreads(__tstate); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
26176 | resultobj = PyInt_FromLong((long)result); | |
26177 | { | |
26178 | if (temp2) | |
26179 | delete arg2; | |
26180 | } | |
26181 | return resultobj; | |
26182 | fail: | |
26183 | { | |
26184 | if (temp2) | |
26185 | delete arg2; | |
26186 | } | |
26187 | return NULL; | |
26188 | } | |
26189 | ||
26190 | ||
26191 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26192 | PyObject *resultobj; | |
26193 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26194 | int arg2 ; | |
26195 | wxMenuItem *result; | |
26196 | PyObject * obj0 = 0 ; | |
26197 | char *kwnames[] = { | |
0f774bef | 26198 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26199 | }; |
26200 | ||
26201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
26202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26203 | { | |
26204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26205 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
26206 | ||
26207 | wxPyEndAllowThreads(__tstate); | |
26208 | if (PyErr_Occurred()) SWIG_fail; | |
26209 | } | |
26210 | { | |
26211 | resultobj = wxPyMake_wxObject(result); | |
26212 | } | |
26213 | return resultobj; | |
26214 | fail: | |
26215 | return NULL; | |
26216 | } | |
26217 | ||
26218 | ||
26219 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26220 | PyObject *resultobj; | |
26221 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26222 | size_t arg2 ; | |
26223 | wxMenuItem *result; | |
26224 | PyObject * obj0 = 0 ; | |
26225 | PyObject * obj1 = 0 ; | |
26226 | char *kwnames[] = { | |
26227 | (char *) "self",(char *) "position", NULL | |
26228 | }; | |
26229 | ||
26230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
26231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26232 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26233 | if (PyErr_Occurred()) SWIG_fail; | |
26234 | { | |
26235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26236 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
26237 | ||
26238 | wxPyEndAllowThreads(__tstate); | |
26239 | if (PyErr_Occurred()) SWIG_fail; | |
26240 | } | |
26241 | { | |
26242 | resultobj = wxPyMake_wxObject(result); | |
26243 | } | |
26244 | return resultobj; | |
26245 | fail: | |
26246 | return NULL; | |
26247 | } | |
26248 | ||
26249 | ||
26250 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26251 | PyObject *resultobj; | |
26252 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26253 | int arg2 ; | |
26254 | bool arg3 ; | |
26255 | PyObject * obj0 = 0 ; | |
26256 | PyObject * obj2 = 0 ; | |
26257 | char *kwnames[] = { | |
0f774bef | 26258 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
26259 | }; |
26260 | ||
26261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26263 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
26264 | if (PyErr_Occurred()) SWIG_fail; | |
26265 | { | |
26266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26267 | (arg1)->Enable(arg2,arg3); | |
26268 | ||
26269 | wxPyEndAllowThreads(__tstate); | |
26270 | if (PyErr_Occurred()) SWIG_fail; | |
26271 | } | |
26272 | Py_INCREF(Py_None); resultobj = Py_None; | |
26273 | return resultobj; | |
26274 | fail: | |
26275 | return NULL; | |
26276 | } | |
26277 | ||
26278 | ||
26279 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26280 | PyObject *resultobj; | |
26281 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26282 | int arg2 ; | |
26283 | bool result; | |
26284 | PyObject * obj0 = 0 ; | |
26285 | char *kwnames[] = { | |
0f774bef | 26286 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26287 | }; |
26288 | ||
26289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
26290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26291 | { | |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
26298 | resultobj = PyInt_FromLong((long)result); | |
26299 | return resultobj; | |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
26305 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26306 | PyObject *resultobj; | |
26307 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26308 | int arg2 ; | |
26309 | bool arg3 ; | |
26310 | PyObject * obj0 = 0 ; | |
26311 | PyObject * obj2 = 0 ; | |
26312 | char *kwnames[] = { | |
0f774bef | 26313 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
26314 | }; |
26315 | ||
26316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26318 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
26319 | if (PyErr_Occurred()) SWIG_fail; | |
26320 | { | |
26321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26322 | (arg1)->Check(arg2,arg3); | |
26323 | ||
26324 | wxPyEndAllowThreads(__tstate); | |
26325 | if (PyErr_Occurred()) SWIG_fail; | |
26326 | } | |
26327 | Py_INCREF(Py_None); resultobj = Py_None; | |
26328 | return resultobj; | |
26329 | fail: | |
26330 | return NULL; | |
26331 | } | |
26332 | ||
26333 | ||
26334 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26335 | PyObject *resultobj; | |
26336 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26337 | int arg2 ; | |
26338 | bool result; | |
26339 | PyObject * obj0 = 0 ; | |
26340 | char *kwnames[] = { | |
0f774bef | 26341 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26342 | }; |
26343 | ||
26344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
26345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26346 | { | |
26347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26348 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
26349 | ||
26350 | wxPyEndAllowThreads(__tstate); | |
26351 | if (PyErr_Occurred()) SWIG_fail; | |
26352 | } | |
26353 | resultobj = PyInt_FromLong((long)result); | |
26354 | return resultobj; | |
26355 | fail: | |
26356 | return NULL; | |
26357 | } | |
26358 | ||
26359 | ||
26360 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26361 | PyObject *resultobj; | |
26362 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26363 | int arg2 ; | |
26364 | wxString *arg3 = 0 ; | |
423f194a | 26365 | bool temp3 = False ; |
d14a1e28 RD |
26366 | PyObject * obj0 = 0 ; |
26367 | PyObject * obj2 = 0 ; | |
26368 | char *kwnames[] = { | |
0f774bef | 26369 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
26370 | }; |
26371 | ||
26372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26374 | { | |
26375 | arg3 = wxString_in_helper(obj2); | |
26376 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26377 | temp3 = True; |
d14a1e28 RD |
26378 | } |
26379 | { | |
26380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26381 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
26382 | ||
26383 | wxPyEndAllowThreads(__tstate); | |
26384 | if (PyErr_Occurred()) SWIG_fail; | |
26385 | } | |
26386 | Py_INCREF(Py_None); resultobj = Py_None; | |
26387 | { | |
26388 | if (temp3) | |
26389 | delete arg3; | |
26390 | } | |
26391 | return resultobj; | |
26392 | fail: | |
26393 | { | |
26394 | if (temp3) | |
26395 | delete arg3; | |
26396 | } | |
26397 | return NULL; | |
26398 | } | |
26399 | ||
26400 | ||
26401 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26402 | PyObject *resultobj; | |
26403 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26404 | int arg2 ; | |
26405 | wxString result; | |
26406 | PyObject * obj0 = 0 ; | |
26407 | char *kwnames[] = { | |
0f774bef | 26408 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26409 | }; |
26410 | ||
26411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
26412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26413 | { | |
26414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26415 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
26416 | ||
26417 | wxPyEndAllowThreads(__tstate); | |
26418 | if (PyErr_Occurred()) SWIG_fail; | |
26419 | } | |
26420 | { | |
26421 | #if wxUSE_UNICODE | |
26422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26423 | #else | |
26424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26425 | #endif | |
26426 | } | |
26427 | return resultobj; | |
26428 | fail: | |
26429 | return NULL; | |
26430 | } | |
26431 | ||
26432 | ||
26433 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26434 | PyObject *resultobj; | |
26435 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26436 | int arg2 ; | |
26437 | wxString *arg3 = 0 ; | |
423f194a | 26438 | bool temp3 = False ; |
d14a1e28 RD |
26439 | PyObject * obj0 = 0 ; |
26440 | PyObject * obj2 = 0 ; | |
26441 | char *kwnames[] = { | |
0f774bef | 26442 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
26443 | }; |
26444 | ||
26445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Menu_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
26446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26447 | { | |
26448 | arg3 = wxString_in_helper(obj2); | |
26449 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26450 | temp3 = True; |
d14a1e28 RD |
26451 | } |
26452 | { | |
26453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26454 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
26455 | ||
26456 | wxPyEndAllowThreads(__tstate); | |
26457 | if (PyErr_Occurred()) SWIG_fail; | |
26458 | } | |
26459 | Py_INCREF(Py_None); resultobj = Py_None; | |
26460 | { | |
26461 | if (temp3) | |
26462 | delete arg3; | |
26463 | } | |
26464 | return resultobj; | |
26465 | fail: | |
26466 | { | |
26467 | if (temp3) | |
26468 | delete arg3; | |
26469 | } | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
26474 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26475 | PyObject *resultobj; | |
26476 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26477 | int arg2 ; | |
26478 | wxString result; | |
26479 | PyObject * obj0 = 0 ; | |
26480 | char *kwnames[] = { | |
0f774bef | 26481 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
26482 | }; |
26483 | ||
26484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Menu_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
26485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26486 | { | |
26487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26488 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
26489 | ||
26490 | wxPyEndAllowThreads(__tstate); | |
26491 | if (PyErr_Occurred()) SWIG_fail; | |
26492 | } | |
26493 | { | |
26494 | #if wxUSE_UNICODE | |
26495 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26496 | #else | |
26497 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26498 | #endif | |
26499 | } | |
26500 | return resultobj; | |
26501 | fail: | |
26502 | return NULL; | |
26503 | } | |
26504 | ||
26505 | ||
26506 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26507 | PyObject *resultobj; | |
26508 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26509 | wxString *arg2 = 0 ; | |
423f194a | 26510 | bool temp2 = False ; |
d14a1e28 RD |
26511 | PyObject * obj0 = 0 ; |
26512 | PyObject * obj1 = 0 ; | |
26513 | char *kwnames[] = { | |
26514 | (char *) "self",(char *) "title", NULL | |
26515 | }; | |
26516 | ||
26517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
26518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26519 | { | |
26520 | arg2 = wxString_in_helper(obj1); | |
26521 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26522 | temp2 = True; |
d14a1e28 RD |
26523 | } |
26524 | { | |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | (arg1)->SetTitle((wxString const &)*arg2); | |
26527 | ||
26528 | wxPyEndAllowThreads(__tstate); | |
26529 | if (PyErr_Occurred()) SWIG_fail; | |
26530 | } | |
26531 | Py_INCREF(Py_None); resultobj = Py_None; | |
26532 | { | |
26533 | if (temp2) | |
26534 | delete arg2; | |
26535 | } | |
26536 | return resultobj; | |
26537 | fail: | |
26538 | { | |
26539 | if (temp2) | |
26540 | delete arg2; | |
26541 | } | |
26542 | return NULL; | |
26543 | } | |
26544 | ||
26545 | ||
26546 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26547 | PyObject *resultobj; | |
26548 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26549 | wxString result; | |
26550 | PyObject * obj0 = 0 ; | |
26551 | char *kwnames[] = { | |
26552 | (char *) "self", NULL | |
26553 | }; | |
26554 | ||
26555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) 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)->GetTitle(); | |
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_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26578 | PyObject *resultobj; | |
26579 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26580 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
26581 | PyObject * obj0 = 0 ; | |
26582 | PyObject * obj1 = 0 ; | |
26583 | char *kwnames[] = { | |
26584 | (char *) "self",(char *) "handler", NULL | |
26585 | }; | |
26586 | ||
26587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
26588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26589 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26590 | { | |
26591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26592 | (arg1)->SetEventHandler(arg2); | |
26593 | ||
26594 | wxPyEndAllowThreads(__tstate); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
26596 | } | |
26597 | Py_INCREF(Py_None); resultobj = Py_None; | |
26598 | return resultobj; | |
26599 | fail: | |
26600 | return NULL; | |
26601 | } | |
26602 | ||
26603 | ||
26604 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26605 | PyObject *resultobj; | |
26606 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26607 | wxEvtHandler *result; | |
26608 | PyObject * obj0 = 0 ; | |
26609 | char *kwnames[] = { | |
26610 | (char *) "self", NULL | |
26611 | }; | |
26612 | ||
26613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
26614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26615 | { | |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26617 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
26618 | ||
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | { | |
26623 | resultobj = wxPyMake_wxObject(result); | |
26624 | } | |
26625 | return resultobj; | |
26626 | fail: | |
26627 | return NULL; | |
26628 | } | |
26629 | ||
26630 | ||
26631 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26632 | PyObject *resultobj; | |
26633 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26634 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26635 | PyObject * obj0 = 0 ; | |
26636 | PyObject * obj1 = 0 ; | |
26637 | char *kwnames[] = { | |
26638 | (char *) "self",(char *) "win", NULL | |
26639 | }; | |
26640 | ||
26641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
26642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26643 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26644 | { | |
26645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26646 | (arg1)->SetInvokingWindow(arg2); | |
26647 | ||
26648 | wxPyEndAllowThreads(__tstate); | |
26649 | if (PyErr_Occurred()) SWIG_fail; | |
26650 | } | |
26651 | Py_INCREF(Py_None); resultobj = Py_None; | |
26652 | return resultobj; | |
26653 | fail: | |
26654 | return NULL; | |
26655 | } | |
26656 | ||
26657 | ||
26658 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26659 | PyObject *resultobj; | |
26660 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26661 | wxWindow *result; | |
26662 | PyObject * obj0 = 0 ; | |
26663 | char *kwnames[] = { | |
26664 | (char *) "self", NULL | |
26665 | }; | |
26666 | ||
26667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
26668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26669 | { | |
26670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26671 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
26672 | ||
26673 | wxPyEndAllowThreads(__tstate); | |
26674 | if (PyErr_Occurred()) SWIG_fail; | |
26675 | } | |
26676 | { | |
26677 | resultobj = wxPyMake_wxObject(result); | |
26678 | } | |
26679 | return resultobj; | |
26680 | fail: | |
26681 | return NULL; | |
26682 | } | |
26683 | ||
26684 | ||
26685 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26686 | PyObject *resultobj; | |
26687 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26688 | long result; | |
26689 | PyObject * obj0 = 0 ; | |
26690 | char *kwnames[] = { | |
26691 | (char *) "self", NULL | |
26692 | }; | |
26693 | ||
26694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
26695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26696 | { | |
26697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26698 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
26699 | ||
26700 | wxPyEndAllowThreads(__tstate); | |
26701 | if (PyErr_Occurred()) SWIG_fail; | |
26702 | } | |
26703 | resultobj = PyInt_FromLong((long)result); | |
26704 | return resultobj; | |
26705 | fail: | |
26706 | return NULL; | |
26707 | } | |
26708 | ||
26709 | ||
26710 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26711 | PyObject *resultobj; | |
26712 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26713 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
26714 | PyObject * obj0 = 0 ; | |
26715 | PyObject * obj1 = 0 ; | |
26716 | char *kwnames[] = { | |
26717 | (char *) "self",(char *) "source", NULL | |
26718 | }; | |
26719 | ||
26720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
26721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26722 | if (obj1) { | |
26723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26724 | } | |
26725 | { | |
26726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26727 | (arg1)->UpdateUI(arg2); | |
26728 | ||
26729 | wxPyEndAllowThreads(__tstate); | |
26730 | if (PyErr_Occurred()) SWIG_fail; | |
26731 | } | |
26732 | Py_INCREF(Py_None); resultobj = Py_None; | |
26733 | return resultobj; | |
26734 | fail: | |
26735 | return NULL; | |
26736 | } | |
26737 | ||
26738 | ||
26739 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26740 | PyObject *resultobj; | |
26741 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26742 | wxMenuBar *result; | |
26743 | PyObject * obj0 = 0 ; | |
26744 | char *kwnames[] = { | |
26745 | (char *) "self", NULL | |
26746 | }; | |
26747 | ||
26748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
26749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26750 | { | |
26751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26752 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
26753 | ||
26754 | wxPyEndAllowThreads(__tstate); | |
26755 | if (PyErr_Occurred()) SWIG_fail; | |
26756 | } | |
26757 | { | |
26758 | resultobj = wxPyMake_wxObject(result); | |
26759 | } | |
26760 | return resultobj; | |
26761 | fail: | |
26762 | return NULL; | |
26763 | } | |
26764 | ||
26765 | ||
26766 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26767 | PyObject *resultobj; | |
26768 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26769 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
26770 | PyObject * obj0 = 0 ; | |
26771 | PyObject * obj1 = 0 ; | |
26772 | char *kwnames[] = { | |
26773 | (char *) "self",(char *) "menubar", NULL | |
26774 | }; | |
26775 | ||
26776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
26777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26778 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26779 | { | |
26780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26781 | (arg1)->Attach(arg2); | |
26782 | ||
26783 | wxPyEndAllowThreads(__tstate); | |
26784 | if (PyErr_Occurred()) SWIG_fail; | |
26785 | } | |
26786 | Py_INCREF(Py_None); resultobj = Py_None; | |
26787 | return resultobj; | |
26788 | fail: | |
26789 | return NULL; | |
26790 | } | |
26791 | ||
26792 | ||
26793 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26794 | PyObject *resultobj; | |
26795 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26796 | PyObject * obj0 = 0 ; | |
26797 | char *kwnames[] = { | |
26798 | (char *) "self", NULL | |
26799 | }; | |
26800 | ||
26801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
26802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26803 | { | |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | (arg1)->Detach(); | |
26806 | ||
26807 | wxPyEndAllowThreads(__tstate); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | } | |
26810 | Py_INCREF(Py_None); resultobj = Py_None; | |
26811 | return resultobj; | |
26812 | fail: | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
26817 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26818 | PyObject *resultobj; | |
26819 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26820 | bool result; | |
26821 | PyObject * obj0 = 0 ; | |
26822 | char *kwnames[] = { | |
26823 | (char *) "self", NULL | |
26824 | }; | |
26825 | ||
26826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
26827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26828 | { | |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
26831 | ||
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | resultobj = PyInt_FromLong((long)result); | |
26836 | return resultobj; | |
26837 | fail: | |
26838 | return NULL; | |
26839 | } | |
26840 | ||
26841 | ||
26842 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26843 | PyObject *resultobj; | |
26844 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26845 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26846 | PyObject * obj0 = 0 ; | |
26847 | PyObject * obj1 = 0 ; | |
26848 | char *kwnames[] = { | |
26849 | (char *) "self",(char *) "parent", NULL | |
26850 | }; | |
26851 | ||
26852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
26853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26855 | { | |
26856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26857 | (arg1)->SetParent(arg2); | |
26858 | ||
26859 | wxPyEndAllowThreads(__tstate); | |
26860 | if (PyErr_Occurred()) SWIG_fail; | |
26861 | } | |
26862 | Py_INCREF(Py_None); resultobj = Py_None; | |
26863 | return resultobj; | |
26864 | fail: | |
26865 | return NULL; | |
26866 | } | |
26867 | ||
26868 | ||
26869 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26870 | PyObject *resultobj; | |
26871 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26872 | wxMenu *result; | |
26873 | PyObject * obj0 = 0 ; | |
26874 | char *kwnames[] = { | |
26875 | (char *) "self", NULL | |
26876 | }; | |
26877 | ||
26878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
26879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26880 | { | |
26881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26882 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
26883 | ||
26884 | wxPyEndAllowThreads(__tstate); | |
26885 | if (PyErr_Occurred()) SWIG_fail; | |
26886 | } | |
26887 | { | |
26888 | resultobj = wxPyMake_wxObject(result); | |
26889 | } | |
26890 | return resultobj; | |
26891 | fail: | |
26892 | return NULL; | |
26893 | } | |
26894 | ||
26895 | ||
26896 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
26897 | PyObject *obj; | |
26898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26899 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
26900 | Py_INCREF(obj); | |
26901 | return Py_BuildValue((char *)""); | |
26902 | } | |
26903 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26904 | PyObject *resultobj; | |
26905 | long arg1 = (long) 0 ; | |
26906 | wxMenuBar *result; | |
26907 | char *kwnames[] = { | |
26908 | (char *) "style", NULL | |
26909 | }; | |
26910 | ||
26911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|l:new_MenuBar",kwnames,&arg1)) goto fail; | |
26912 | { | |
26913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26914 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
26915 | ||
26916 | wxPyEndAllowThreads(__tstate); | |
26917 | if (PyErr_Occurred()) SWIG_fail; | |
26918 | } | |
26919 | { | |
26920 | resultobj = wxPyMake_wxObject(result); | |
26921 | } | |
26922 | return resultobj; | |
26923 | fail: | |
26924 | return NULL; | |
26925 | } | |
26926 | ||
26927 | ||
26928 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26929 | PyObject *resultobj; | |
26930 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26931 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26932 | wxString *arg3 = 0 ; | |
26933 | bool result; | |
423f194a | 26934 | bool temp3 = False ; |
d14a1e28 RD |
26935 | PyObject * obj0 = 0 ; |
26936 | PyObject * obj1 = 0 ; | |
26937 | PyObject * obj2 = 0 ; | |
26938 | char *kwnames[] = { | |
26939 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
26940 | }; | |
26941 | ||
26942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26945 | { | |
26946 | arg3 = wxString_in_helper(obj2); | |
26947 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26948 | temp3 = True; |
d14a1e28 RD |
26949 | } |
26950 | { | |
26951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26952 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
26953 | ||
26954 | wxPyEndAllowThreads(__tstate); | |
26955 | if (PyErr_Occurred()) SWIG_fail; | |
26956 | } | |
26957 | resultobj = PyInt_FromLong((long)result); | |
26958 | { | |
26959 | if (temp3) | |
26960 | delete arg3; | |
26961 | } | |
26962 | return resultobj; | |
26963 | fail: | |
26964 | { | |
26965 | if (temp3) | |
26966 | delete arg3; | |
26967 | } | |
26968 | return NULL; | |
26969 | } | |
26970 | ||
26971 | ||
26972 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26973 | PyObject *resultobj; | |
26974 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
26975 | size_t arg2 ; | |
26976 | wxMenu *arg3 = (wxMenu *) 0 ; | |
26977 | wxString *arg4 = 0 ; | |
26978 | bool result; | |
423f194a | 26979 | bool temp4 = False ; |
d14a1e28 RD |
26980 | PyObject * obj0 = 0 ; |
26981 | PyObject * obj1 = 0 ; | |
26982 | PyObject * obj2 = 0 ; | |
26983 | PyObject * obj3 = 0 ; | |
26984 | char *kwnames[] = { | |
26985 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
26986 | }; | |
26987 | ||
26988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26990 | arg2 = (size_t) PyInt_AsLong(obj1); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26993 | { | |
26994 | arg4 = wxString_in_helper(obj3); | |
26995 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26996 | temp4 = True; |
d14a1e28 RD |
26997 | } |
26998 | { | |
26999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27000 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
27001 | ||
27002 | wxPyEndAllowThreads(__tstate); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | } | |
27005 | resultobj = PyInt_FromLong((long)result); | |
27006 | { | |
27007 | if (temp4) | |
27008 | delete arg4; | |
27009 | } | |
27010 | return resultobj; | |
27011 | fail: | |
27012 | { | |
27013 | if (temp4) | |
27014 | delete arg4; | |
27015 | } | |
27016 | return NULL; | |
27017 | } | |
27018 | ||
27019 | ||
27020 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27021 | PyObject *resultobj; | |
27022 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27023 | size_t result; | |
27024 | PyObject * obj0 = 0 ; | |
27025 | char *kwnames[] = { | |
27026 | (char *) "self", NULL | |
27027 | }; | |
27028 | ||
27029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
27030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27031 | { | |
27032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27033 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
27034 | ||
27035 | wxPyEndAllowThreads(__tstate); | |
27036 | if (PyErr_Occurred()) SWIG_fail; | |
27037 | } | |
27038 | resultobj = PyInt_FromLong((long)result); | |
27039 | return resultobj; | |
27040 | fail: | |
27041 | return NULL; | |
27042 | } | |
27043 | ||
27044 | ||
27045 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27046 | PyObject *resultobj; | |
27047 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27048 | size_t arg2 ; | |
27049 | wxMenu *result; | |
27050 | PyObject * obj0 = 0 ; | |
27051 | PyObject * obj1 = 0 ; | |
27052 | char *kwnames[] = { | |
27053 | (char *) "self",(char *) "pos", NULL | |
27054 | }; | |
27055 | ||
27056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
27057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27058 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27059 | if (PyErr_Occurred()) SWIG_fail; | |
27060 | { | |
27061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27062 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
27063 | ||
27064 | wxPyEndAllowThreads(__tstate); | |
27065 | if (PyErr_Occurred()) SWIG_fail; | |
27066 | } | |
27067 | { | |
27068 | resultobj = wxPyMake_wxObject(result); | |
27069 | } | |
27070 | return resultobj; | |
27071 | fail: | |
27072 | return NULL; | |
27073 | } | |
27074 | ||
27075 | ||
27076 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27077 | PyObject *resultobj; | |
27078 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27079 | size_t arg2 ; | |
27080 | wxMenu *arg3 = (wxMenu *) 0 ; | |
27081 | wxString *arg4 = 0 ; | |
27082 | wxMenu *result; | |
423f194a | 27083 | bool temp4 = False ; |
d14a1e28 RD |
27084 | PyObject * obj0 = 0 ; |
27085 | PyObject * obj1 = 0 ; | |
27086 | PyObject * obj2 = 0 ; | |
27087 | PyObject * obj3 = 0 ; | |
27088 | char *kwnames[] = { | |
27089 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
27090 | }; | |
27091 | ||
27092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27094 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27095 | if (PyErr_Occurred()) SWIG_fail; | |
27096 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27097 | { | |
27098 | arg4 = wxString_in_helper(obj3); | |
27099 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27100 | temp4 = True; |
d14a1e28 RD |
27101 | } |
27102 | { | |
27103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27104 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
27105 | ||
27106 | wxPyEndAllowThreads(__tstate); | |
27107 | if (PyErr_Occurred()) SWIG_fail; | |
27108 | } | |
27109 | { | |
27110 | resultobj = wxPyMake_wxObject(result); | |
27111 | } | |
27112 | { | |
27113 | if (temp4) | |
27114 | delete arg4; | |
27115 | } | |
27116 | return resultobj; | |
27117 | fail: | |
27118 | { | |
27119 | if (temp4) | |
27120 | delete arg4; | |
27121 | } | |
27122 | return NULL; | |
27123 | } | |
27124 | ||
27125 | ||
27126 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27127 | PyObject *resultobj; | |
27128 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27129 | size_t arg2 ; | |
27130 | wxMenu *result; | |
27131 | PyObject * obj0 = 0 ; | |
27132 | PyObject * obj1 = 0 ; | |
27133 | char *kwnames[] = { | |
27134 | (char *) "self",(char *) "pos", NULL | |
27135 | }; | |
27136 | ||
27137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
27138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27139 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27140 | if (PyErr_Occurred()) SWIG_fail; | |
27141 | { | |
27142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27143 | result = (wxMenu *)(arg1)->Remove(arg2); | |
27144 | ||
27145 | wxPyEndAllowThreads(__tstate); | |
27146 | if (PyErr_Occurred()) SWIG_fail; | |
27147 | } | |
27148 | { | |
27149 | resultobj = wxPyMake_wxObject(result); | |
27150 | } | |
27151 | return resultobj; | |
27152 | fail: | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
27157 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27158 | PyObject *resultobj; | |
27159 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27160 | size_t arg2 ; | |
27161 | bool arg3 ; | |
27162 | PyObject * obj0 = 0 ; | |
27163 | PyObject * obj1 = 0 ; | |
27164 | PyObject * obj2 = 0 ; | |
27165 | char *kwnames[] = { | |
27166 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
27167 | }; | |
27168 | ||
27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27171 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27172 | if (PyErr_Occurred()) SWIG_fail; | |
27173 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27174 | if (PyErr_Occurred()) SWIG_fail; | |
27175 | { | |
27176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27177 | (arg1)->EnableTop(arg2,arg3); | |
27178 | ||
27179 | wxPyEndAllowThreads(__tstate); | |
27180 | if (PyErr_Occurred()) SWIG_fail; | |
27181 | } | |
27182 | Py_INCREF(Py_None); resultobj = Py_None; | |
27183 | return resultobj; | |
27184 | fail: | |
27185 | return NULL; | |
27186 | } | |
27187 | ||
27188 | ||
27189 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27190 | PyObject *resultobj; | |
27191 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27192 | size_t arg2 ; | |
27193 | bool result; | |
27194 | PyObject * obj0 = 0 ; | |
27195 | PyObject * obj1 = 0 ; | |
27196 | char *kwnames[] = { | |
27197 | (char *) "self",(char *) "pos", NULL | |
27198 | }; | |
27199 | ||
27200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
27201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27202 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27203 | if (PyErr_Occurred()) SWIG_fail; | |
27204 | { | |
27205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27206 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
27207 | ||
27208 | wxPyEndAllowThreads(__tstate); | |
27209 | if (PyErr_Occurred()) SWIG_fail; | |
27210 | } | |
27211 | resultobj = PyInt_FromLong((long)result); | |
27212 | return resultobj; | |
27213 | fail: | |
27214 | return NULL; | |
27215 | } | |
27216 | ||
27217 | ||
27218 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27219 | PyObject *resultobj; | |
27220 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27221 | size_t arg2 ; | |
27222 | wxString *arg3 = 0 ; | |
423f194a | 27223 | bool temp3 = False ; |
d14a1e28 RD |
27224 | PyObject * obj0 = 0 ; |
27225 | PyObject * obj1 = 0 ; | |
27226 | PyObject * obj2 = 0 ; | |
27227 | char *kwnames[] = { | |
27228 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
27229 | }; | |
27230 | ||
27231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27233 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27234 | if (PyErr_Occurred()) SWIG_fail; | |
27235 | { | |
27236 | arg3 = wxString_in_helper(obj2); | |
27237 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27238 | temp3 = True; |
d14a1e28 RD |
27239 | } |
27240 | { | |
27241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27242 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
27243 | ||
27244 | wxPyEndAllowThreads(__tstate); | |
27245 | if (PyErr_Occurred()) SWIG_fail; | |
27246 | } | |
27247 | Py_INCREF(Py_None); resultobj = Py_None; | |
27248 | { | |
27249 | if (temp3) | |
27250 | delete arg3; | |
27251 | } | |
27252 | return resultobj; | |
27253 | fail: | |
27254 | { | |
27255 | if (temp3) | |
27256 | delete arg3; | |
27257 | } | |
27258 | return NULL; | |
27259 | } | |
27260 | ||
27261 | ||
27262 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27263 | PyObject *resultobj; | |
27264 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27265 | size_t arg2 ; | |
27266 | wxString result; | |
27267 | PyObject * obj0 = 0 ; | |
27268 | PyObject * obj1 = 0 ; | |
27269 | char *kwnames[] = { | |
27270 | (char *) "self",(char *) "pos", NULL | |
27271 | }; | |
27272 | ||
27273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
27274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27275 | arg2 = (size_t) PyInt_AsLong(obj1); | |
27276 | if (PyErr_Occurred()) SWIG_fail; | |
27277 | { | |
27278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27279 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
27280 | ||
27281 | wxPyEndAllowThreads(__tstate); | |
27282 | if (PyErr_Occurred()) SWIG_fail; | |
27283 | } | |
27284 | { | |
27285 | #if wxUSE_UNICODE | |
27286 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27287 | #else | |
27288 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27289 | #endif | |
27290 | } | |
27291 | return resultobj; | |
27292 | fail: | |
27293 | return NULL; | |
27294 | } | |
27295 | ||
27296 | ||
27297 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27298 | PyObject *resultobj; | |
27299 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27300 | wxString *arg2 = 0 ; | |
27301 | wxString *arg3 = 0 ; | |
27302 | int result; | |
423f194a RD |
27303 | bool temp2 = False ; |
27304 | bool temp3 = False ; | |
d14a1e28 RD |
27305 | PyObject * obj0 = 0 ; |
27306 | PyObject * obj1 = 0 ; | |
27307 | PyObject * obj2 = 0 ; | |
27308 | char *kwnames[] = { | |
27309 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
27310 | }; | |
27311 | ||
27312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27314 | { | |
27315 | arg2 = wxString_in_helper(obj1); | |
27316 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27317 | temp2 = True; |
d14a1e28 RD |
27318 | } |
27319 | { | |
27320 | arg3 = wxString_in_helper(obj2); | |
27321 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27322 | temp3 = True; |
d14a1e28 RD |
27323 | } |
27324 | { | |
27325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27326 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
27327 | ||
27328 | wxPyEndAllowThreads(__tstate); | |
27329 | if (PyErr_Occurred()) SWIG_fail; | |
27330 | } | |
27331 | resultobj = PyInt_FromLong((long)result); | |
27332 | { | |
27333 | if (temp2) | |
27334 | delete arg2; | |
27335 | } | |
27336 | { | |
27337 | if (temp3) | |
27338 | delete arg3; | |
27339 | } | |
27340 | return resultobj; | |
27341 | fail: | |
27342 | { | |
27343 | if (temp2) | |
27344 | delete arg2; | |
27345 | } | |
27346 | { | |
27347 | if (temp3) | |
27348 | delete arg3; | |
27349 | } | |
27350 | return NULL; | |
27351 | } | |
27352 | ||
27353 | ||
27354 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27355 | PyObject *resultobj; | |
27356 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27357 | int arg2 ; | |
27358 | wxMenuItem *result; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | char *kwnames[] = { | |
0f774bef | 27361 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27362 | }; |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_FindItemById",kwnames,&obj0,&arg2)) goto fail; | |
27365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27366 | { | |
27367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27368 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
27369 | ||
27370 | wxPyEndAllowThreads(__tstate); | |
27371 | if (PyErr_Occurred()) SWIG_fail; | |
27372 | } | |
27373 | { | |
27374 | resultobj = wxPyMake_wxObject(result); | |
27375 | } | |
27376 | return resultobj; | |
27377 | fail: | |
27378 | return NULL; | |
27379 | } | |
27380 | ||
27381 | ||
27382 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27383 | PyObject *resultobj; | |
27384 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27385 | wxString *arg2 = 0 ; | |
27386 | int result; | |
423f194a | 27387 | bool temp2 = False ; |
d14a1e28 RD |
27388 | PyObject * obj0 = 0 ; |
27389 | PyObject * obj1 = 0 ; | |
27390 | char *kwnames[] = { | |
27391 | (char *) "self",(char *) "title", NULL | |
27392 | }; | |
27393 | ||
27394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
27395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27396 | { | |
27397 | arg2 = wxString_in_helper(obj1); | |
27398 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27399 | temp2 = True; |
d14a1e28 RD |
27400 | } |
27401 | { | |
27402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27403 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
27404 | ||
27405 | wxPyEndAllowThreads(__tstate); | |
27406 | if (PyErr_Occurred()) SWIG_fail; | |
27407 | } | |
27408 | resultobj = PyInt_FromLong((long)result); | |
27409 | { | |
27410 | if (temp2) | |
27411 | delete arg2; | |
27412 | } | |
27413 | return resultobj; | |
27414 | fail: | |
27415 | { | |
27416 | if (temp2) | |
27417 | delete arg2; | |
27418 | } | |
27419 | return NULL; | |
27420 | } | |
27421 | ||
27422 | ||
27423 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27424 | PyObject *resultobj; | |
27425 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27426 | int arg2 ; | |
27427 | bool arg3 ; | |
27428 | PyObject * obj0 = 0 ; | |
27429 | PyObject * obj2 = 0 ; | |
27430 | char *kwnames[] = { | |
0f774bef | 27431 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
27432 | }; |
27433 | ||
27434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Enable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27436 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27437 | if (PyErr_Occurred()) SWIG_fail; | |
27438 | { | |
27439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27440 | (arg1)->Enable(arg2,arg3); | |
27441 | ||
27442 | wxPyEndAllowThreads(__tstate); | |
27443 | if (PyErr_Occurred()) SWIG_fail; | |
27444 | } | |
27445 | Py_INCREF(Py_None); resultobj = Py_None; | |
27446 | return resultobj; | |
27447 | fail: | |
27448 | return NULL; | |
27449 | } | |
27450 | ||
27451 | ||
27452 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27453 | PyObject *resultobj; | |
27454 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27455 | int arg2 ; | |
27456 | bool arg3 ; | |
27457 | PyObject * obj0 = 0 ; | |
27458 | PyObject * obj2 = 0 ; | |
27459 | char *kwnames[] = { | |
0f774bef | 27460 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
27461 | }; |
27462 | ||
27463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_Check",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27465 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
27466 | if (PyErr_Occurred()) SWIG_fail; | |
27467 | { | |
27468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27469 | (arg1)->Check(arg2,arg3); | |
27470 | ||
27471 | wxPyEndAllowThreads(__tstate); | |
27472 | if (PyErr_Occurred()) SWIG_fail; | |
27473 | } | |
27474 | Py_INCREF(Py_None); resultobj = Py_None; | |
27475 | return resultobj; | |
27476 | fail: | |
27477 | return NULL; | |
27478 | } | |
27479 | ||
27480 | ||
27481 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27482 | PyObject *resultobj; | |
27483 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27484 | int arg2 ; | |
27485 | bool result; | |
27486 | PyObject * obj0 = 0 ; | |
27487 | char *kwnames[] = { | |
0f774bef | 27488 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27489 | }; |
27490 | ||
27491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
27492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27493 | { | |
27494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27495 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
27496 | ||
27497 | wxPyEndAllowThreads(__tstate); | |
27498 | if (PyErr_Occurred()) SWIG_fail; | |
27499 | } | |
27500 | resultobj = PyInt_FromLong((long)result); | |
27501 | return resultobj; | |
27502 | fail: | |
27503 | return NULL; | |
27504 | } | |
27505 | ||
27506 | ||
27507 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27508 | PyObject *resultobj; | |
27509 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27510 | int arg2 ; | |
27511 | bool result; | |
27512 | PyObject * obj0 = 0 ; | |
27513 | char *kwnames[] = { | |
0f774bef | 27514 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27515 | }; |
27516 | ||
27517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_IsEnabled",kwnames,&obj0,&arg2)) goto fail; | |
27518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27519 | { | |
27520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27521 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
27522 | ||
27523 | wxPyEndAllowThreads(__tstate); | |
27524 | if (PyErr_Occurred()) SWIG_fail; | |
27525 | } | |
27526 | resultobj = PyInt_FromLong((long)result); | |
27527 | return resultobj; | |
27528 | fail: | |
27529 | return NULL; | |
27530 | } | |
27531 | ||
27532 | ||
27533 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27534 | PyObject *resultobj; | |
27535 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27536 | int arg2 ; | |
27537 | wxString *arg3 = 0 ; | |
423f194a | 27538 | bool temp3 = False ; |
d14a1e28 RD |
27539 | PyObject * obj0 = 0 ; |
27540 | PyObject * obj2 = 0 ; | |
27541 | char *kwnames[] = { | |
0f774bef | 27542 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
27543 | }; |
27544 | ||
27545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetLabel",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27547 | { | |
27548 | arg3 = wxString_in_helper(obj2); | |
27549 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27550 | temp3 = True; |
d14a1e28 RD |
27551 | } |
27552 | { | |
27553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27554 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
27555 | ||
27556 | wxPyEndAllowThreads(__tstate); | |
27557 | if (PyErr_Occurred()) SWIG_fail; | |
27558 | } | |
27559 | Py_INCREF(Py_None); resultobj = Py_None; | |
27560 | { | |
27561 | if (temp3) | |
27562 | delete arg3; | |
27563 | } | |
27564 | return resultobj; | |
27565 | fail: | |
27566 | { | |
27567 | if (temp3) | |
27568 | delete arg3; | |
27569 | } | |
27570 | return NULL; | |
27571 | } | |
27572 | ||
27573 | ||
27574 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27575 | PyObject *resultobj; | |
27576 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27577 | int arg2 ; | |
27578 | wxString result; | |
27579 | PyObject * obj0 = 0 ; | |
27580 | char *kwnames[] = { | |
0f774bef | 27581 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27582 | }; |
27583 | ||
27584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetLabel",kwnames,&obj0,&arg2)) goto fail; | |
27585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27586 | { | |
27587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27588 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
27589 | ||
27590 | wxPyEndAllowThreads(__tstate); | |
27591 | if (PyErr_Occurred()) SWIG_fail; | |
27592 | } | |
27593 | { | |
27594 | #if wxUSE_UNICODE | |
27595 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27596 | #else | |
27597 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27598 | #endif | |
27599 | } | |
27600 | return resultobj; | |
27601 | fail: | |
27602 | return NULL; | |
27603 | } | |
27604 | ||
27605 | ||
27606 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27607 | PyObject *resultobj; | |
27608 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27609 | int arg2 ; | |
27610 | wxString *arg3 = 0 ; | |
423f194a | 27611 | bool temp3 = False ; |
d14a1e28 RD |
27612 | PyObject * obj0 = 0 ; |
27613 | PyObject * obj2 = 0 ; | |
27614 | char *kwnames[] = { | |
0f774bef | 27615 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
27616 | }; |
27617 | ||
27618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:MenuBar_SetHelpString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
27619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27620 | { | |
27621 | arg3 = wxString_in_helper(obj2); | |
27622 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27623 | temp3 = True; |
d14a1e28 RD |
27624 | } |
27625 | { | |
27626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27627 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
27628 | ||
27629 | wxPyEndAllowThreads(__tstate); | |
27630 | if (PyErr_Occurred()) SWIG_fail; | |
27631 | } | |
27632 | Py_INCREF(Py_None); resultobj = Py_None; | |
27633 | { | |
27634 | if (temp3) | |
27635 | delete arg3; | |
27636 | } | |
27637 | return resultobj; | |
27638 | fail: | |
27639 | { | |
27640 | if (temp3) | |
27641 | delete arg3; | |
27642 | } | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
27647 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27648 | PyObject *resultobj; | |
27649 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27650 | int arg2 ; | |
27651 | wxString result; | |
27652 | PyObject * obj0 = 0 ; | |
27653 | char *kwnames[] = { | |
0f774bef | 27654 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27655 | }; |
27656 | ||
27657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuBar_GetHelpString",kwnames,&obj0,&arg2)) goto fail; | |
27658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27659 | { | |
27660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27661 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
27662 | ||
27663 | wxPyEndAllowThreads(__tstate); | |
27664 | if (PyErr_Occurred()) SWIG_fail; | |
27665 | } | |
27666 | { | |
27667 | #if wxUSE_UNICODE | |
27668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27669 | #else | |
27670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27671 | #endif | |
27672 | } | |
27673 | return resultobj; | |
27674 | fail: | |
27675 | return NULL; | |
27676 | } | |
27677 | ||
27678 | ||
27679 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27680 | PyObject *resultobj; | |
27681 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27682 | wxFrame *result; | |
27683 | PyObject * obj0 = 0 ; | |
27684 | char *kwnames[] = { | |
27685 | (char *) "self", NULL | |
27686 | }; | |
27687 | ||
27688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
27689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27690 | { | |
27691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27692 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
27693 | ||
27694 | wxPyEndAllowThreads(__tstate); | |
27695 | if (PyErr_Occurred()) SWIG_fail; | |
27696 | } | |
27697 | { | |
27698 | resultobj = wxPyMake_wxObject(result); | |
27699 | } | |
27700 | return resultobj; | |
27701 | fail: | |
27702 | return NULL; | |
27703 | } | |
27704 | ||
27705 | ||
27706 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27707 | PyObject *resultobj; | |
27708 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27709 | bool result; | |
27710 | PyObject * obj0 = 0 ; | |
27711 | char *kwnames[] = { | |
27712 | (char *) "self", NULL | |
27713 | }; | |
27714 | ||
27715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
27716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27717 | { | |
27718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27719 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
27720 | ||
27721 | wxPyEndAllowThreads(__tstate); | |
27722 | if (PyErr_Occurred()) SWIG_fail; | |
27723 | } | |
27724 | resultobj = PyInt_FromLong((long)result); | |
27725 | return resultobj; | |
27726 | fail: | |
27727 | return NULL; | |
27728 | } | |
27729 | ||
27730 | ||
27731 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27732 | PyObject *resultobj; | |
27733 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27734 | wxFrame *arg2 = (wxFrame *) 0 ; | |
27735 | PyObject * obj0 = 0 ; | |
27736 | PyObject * obj1 = 0 ; | |
27737 | char *kwnames[] = { | |
27738 | (char *) "self",(char *) "frame", NULL | |
27739 | }; | |
27740 | ||
27741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
27742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27743 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27744 | { | |
27745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27746 | (arg1)->Attach(arg2); | |
27747 | ||
27748 | wxPyEndAllowThreads(__tstate); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
27751 | Py_INCREF(Py_None); resultobj = Py_None; | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
27758 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27759 | PyObject *resultobj; | |
27760 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
27761 | PyObject * obj0 = 0 ; | |
27762 | char *kwnames[] = { | |
27763 | (char *) "self", NULL | |
27764 | }; | |
27765 | ||
27766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
27767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27768 | { | |
27769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27770 | (arg1)->Detach(); | |
27771 | ||
27772 | wxPyEndAllowThreads(__tstate); | |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
27774 | } | |
27775 | Py_INCREF(Py_None); resultobj = Py_None; | |
27776 | return resultobj; | |
27777 | fail: | |
27778 | return NULL; | |
27779 | } | |
27780 | ||
27781 | ||
27782 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
27783 | PyObject *obj; | |
27784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27785 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
27786 | Py_INCREF(obj); | |
27787 | return Py_BuildValue((char *)""); | |
27788 | } | |
27789 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27790 | PyObject *resultobj; | |
27791 | wxMenu *arg1 = (wxMenu *) NULL ; | |
27792 | int arg2 = (int) wxID_SEPARATOR ; | |
27793 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
27794 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27795 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27796 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27797 | int arg5 = (int) wxITEM_NORMAL ; | |
27798 | wxMenu *arg6 = (wxMenu *) NULL ; | |
27799 | wxMenuItem *result; | |
423f194a RD |
27800 | bool temp3 = False ; |
27801 | bool temp4 = False ; | |
d14a1e28 RD |
27802 | PyObject * obj0 = 0 ; |
27803 | PyObject * obj2 = 0 ; | |
27804 | PyObject * obj3 = 0 ; | |
27805 | PyObject * obj5 = 0 ; | |
27806 | char *kwnames[] = { | |
27807 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
27808 | }; | |
27809 | ||
27810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiOOiO:new_MenuItem",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
27811 | if (obj0) { | |
27812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27813 | } | |
27814 | if (obj2) { | |
27815 | { | |
27816 | arg3 = wxString_in_helper(obj2); | |
27817 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27818 | temp3 = True; |
d14a1e28 RD |
27819 | } |
27820 | } | |
27821 | if (obj3) { | |
27822 | { | |
27823 | arg4 = wxString_in_helper(obj3); | |
27824 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27825 | temp4 = True; |
d14a1e28 RD |
27826 | } |
27827 | } | |
27828 | if (obj5) { | |
27829 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27830 | } | |
27831 | { | |
27832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27833 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
27834 | ||
27835 | wxPyEndAllowThreads(__tstate); | |
27836 | if (PyErr_Occurred()) SWIG_fail; | |
27837 | } | |
27838 | { | |
27839 | resultobj = wxPyMake_wxObject(result); | |
27840 | } | |
27841 | { | |
27842 | if (temp3) | |
27843 | delete arg3; | |
27844 | } | |
27845 | { | |
27846 | if (temp4) | |
27847 | delete arg4; | |
27848 | } | |
27849 | return resultobj; | |
27850 | fail: | |
27851 | { | |
27852 | if (temp3) | |
27853 | delete arg3; | |
27854 | } | |
27855 | { | |
27856 | if (temp4) | |
27857 | delete arg4; | |
27858 | } | |
27859 | return NULL; | |
27860 | } | |
27861 | ||
27862 | ||
27863 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27864 | PyObject *resultobj; | |
27865 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27866 | wxMenu *result; | |
27867 | PyObject * obj0 = 0 ; | |
27868 | char *kwnames[] = { | |
27869 | (char *) "self", NULL | |
27870 | }; | |
27871 | ||
27872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
27873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27874 | { | |
27875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27876 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
27877 | ||
27878 | wxPyEndAllowThreads(__tstate); | |
27879 | if (PyErr_Occurred()) SWIG_fail; | |
27880 | } | |
27881 | { | |
27882 | resultobj = wxPyMake_wxObject(result); | |
27883 | } | |
27884 | return resultobj; | |
27885 | fail: | |
27886 | return NULL; | |
27887 | } | |
27888 | ||
27889 | ||
27890 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27891 | PyObject *resultobj; | |
27892 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27893 | wxMenu *arg2 = (wxMenu *) 0 ; | |
27894 | PyObject * obj0 = 0 ; | |
27895 | PyObject * obj1 = 0 ; | |
27896 | char *kwnames[] = { | |
27897 | (char *) "self",(char *) "menu", NULL | |
27898 | }; | |
27899 | ||
27900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
27901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27902 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27903 | { | |
27904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27905 | (arg1)->SetMenu(arg2); | |
27906 | ||
27907 | wxPyEndAllowThreads(__tstate); | |
27908 | if (PyErr_Occurred()) SWIG_fail; | |
27909 | } | |
27910 | Py_INCREF(Py_None); resultobj = Py_None; | |
27911 | return resultobj; | |
27912 | fail: | |
27913 | return NULL; | |
27914 | } | |
27915 | ||
27916 | ||
27917 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27918 | PyObject *resultobj; | |
27919 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27920 | int arg2 ; | |
27921 | PyObject * obj0 = 0 ; | |
27922 | char *kwnames[] = { | |
0f774bef | 27923 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
27924 | }; |
27925 | ||
27926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:MenuItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
27927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27928 | { | |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | (arg1)->SetId(arg2); | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
27935 | Py_INCREF(Py_None); resultobj = Py_None; | |
27936 | return resultobj; | |
27937 | fail: | |
27938 | return NULL; | |
27939 | } | |
27940 | ||
27941 | ||
27942 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27943 | PyObject *resultobj; | |
27944 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27945 | int result; | |
27946 | PyObject * obj0 = 0 ; | |
27947 | char *kwnames[] = { | |
27948 | (char *) "self", NULL | |
27949 | }; | |
27950 | ||
27951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
27952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27953 | { | |
27954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27955 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
27956 | ||
27957 | wxPyEndAllowThreads(__tstate); | |
27958 | if (PyErr_Occurred()) SWIG_fail; | |
27959 | } | |
27960 | resultobj = PyInt_FromLong((long)result); | |
27961 | return resultobj; | |
27962 | fail: | |
27963 | return NULL; | |
27964 | } | |
27965 | ||
27966 | ||
27967 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27968 | PyObject *resultobj; | |
27969 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27970 | bool result; | |
27971 | PyObject * obj0 = 0 ; | |
27972 | char *kwnames[] = { | |
27973 | (char *) "self", NULL | |
27974 | }; | |
27975 | ||
27976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
27977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27978 | { | |
27979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27980 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
27981 | ||
27982 | wxPyEndAllowThreads(__tstate); | |
27983 | if (PyErr_Occurred()) SWIG_fail; | |
27984 | } | |
27985 | resultobj = PyInt_FromLong((long)result); | |
27986 | return resultobj; | |
27987 | fail: | |
27988 | return NULL; | |
27989 | } | |
27990 | ||
27991 | ||
27992 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27993 | PyObject *resultobj; | |
27994 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
27995 | wxString *arg2 = 0 ; | |
423f194a | 27996 | bool temp2 = False ; |
d14a1e28 RD |
27997 | PyObject * obj0 = 0 ; |
27998 | PyObject * obj1 = 0 ; | |
27999 | char *kwnames[] = { | |
28000 | (char *) "self",(char *) "str", NULL | |
28001 | }; | |
28002 | ||
28003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
28004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28005 | { | |
28006 | arg2 = wxString_in_helper(obj1); | |
28007 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28008 | temp2 = True; |
d14a1e28 RD |
28009 | } |
28010 | { | |
28011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28012 | (arg1)->SetText((wxString const &)*arg2); | |
28013 | ||
28014 | wxPyEndAllowThreads(__tstate); | |
28015 | if (PyErr_Occurred()) SWIG_fail; | |
28016 | } | |
28017 | Py_INCREF(Py_None); resultobj = Py_None; | |
28018 | { | |
28019 | if (temp2) | |
28020 | delete arg2; | |
28021 | } | |
28022 | return resultobj; | |
28023 | fail: | |
28024 | { | |
28025 | if (temp2) | |
28026 | delete arg2; | |
28027 | } | |
28028 | return NULL; | |
28029 | } | |
28030 | ||
28031 | ||
28032 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28033 | PyObject *resultobj; | |
28034 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28035 | wxString result; | |
28036 | PyObject * obj0 = 0 ; | |
28037 | char *kwnames[] = { | |
28038 | (char *) "self", NULL | |
28039 | }; | |
28040 | ||
28041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
28042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28043 | { | |
28044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28045 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
28046 | ||
28047 | wxPyEndAllowThreads(__tstate); | |
28048 | if (PyErr_Occurred()) SWIG_fail; | |
28049 | } | |
28050 | { | |
28051 | #if wxUSE_UNICODE | |
28052 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28053 | #else | |
28054 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28055 | #endif | |
28056 | } | |
28057 | return resultobj; | |
28058 | fail: | |
28059 | return NULL; | |
28060 | } | |
28061 | ||
28062 | ||
28063 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28064 | PyObject *resultobj; | |
28065 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28066 | wxString *result; | |
28067 | PyObject * obj0 = 0 ; | |
28068 | char *kwnames[] = { | |
28069 | (char *) "self", NULL | |
28070 | }; | |
28071 | ||
28072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
28073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28074 | { | |
28075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28076 | { | |
28077 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
28078 | result = (wxString *) &_result_ref; | |
28079 | } | |
28080 | ||
28081 | wxPyEndAllowThreads(__tstate); | |
28082 | if (PyErr_Occurred()) SWIG_fail; | |
28083 | } | |
0f774bef RD |
28084 | { |
28085 | #if wxUSE_UNICODE | |
28086 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28087 | #else | |
28088 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28089 | #endif | |
28090 | } | |
d14a1e28 RD |
28091 | return resultobj; |
28092 | fail: | |
28093 | return NULL; | |
28094 | } | |
28095 | ||
28096 | ||
28097 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28098 | PyObject *resultobj; | |
28099 | wxString *arg1 = 0 ; | |
28100 | wxString result; | |
423f194a | 28101 | bool temp1 = False ; |
d14a1e28 RD |
28102 | PyObject * obj0 = 0 ; |
28103 | char *kwnames[] = { | |
28104 | (char *) "text", NULL | |
28105 | }; | |
28106 | ||
28107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
28108 | { | |
28109 | arg1 = wxString_in_helper(obj0); | |
28110 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 28111 | temp1 = True; |
d14a1e28 RD |
28112 | } |
28113 | { | |
28114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28115 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
28116 | ||
28117 | wxPyEndAllowThreads(__tstate); | |
28118 | if (PyErr_Occurred()) SWIG_fail; | |
28119 | } | |
28120 | { | |
28121 | #if wxUSE_UNICODE | |
28122 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28123 | #else | |
28124 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28125 | #endif | |
28126 | } | |
28127 | { | |
28128 | if (temp1) | |
28129 | delete arg1; | |
28130 | } | |
28131 | return resultobj; | |
28132 | fail: | |
28133 | { | |
28134 | if (temp1) | |
28135 | delete arg1; | |
28136 | } | |
28137 | return NULL; | |
28138 | } | |
28139 | ||
28140 | ||
28141 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28142 | PyObject *resultobj; | |
28143 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28144 | int result; | |
28145 | PyObject * obj0 = 0 ; | |
28146 | char *kwnames[] = { | |
28147 | (char *) "self", NULL | |
28148 | }; | |
28149 | ||
28150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
28151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28152 | { | |
28153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28154 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
28155 | ||
28156 | wxPyEndAllowThreads(__tstate); | |
28157 | if (PyErr_Occurred()) SWIG_fail; | |
28158 | } | |
28159 | resultobj = PyInt_FromLong((long)result); | |
28160 | return resultobj; | |
28161 | fail: | |
28162 | return NULL; | |
28163 | } | |
28164 | ||
28165 | ||
28166 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28167 | PyObject *resultobj; | |
28168 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28169 | bool arg2 ; | |
28170 | PyObject * obj0 = 0 ; | |
28171 | PyObject * obj1 = 0 ; | |
28172 | char *kwnames[] = { | |
28173 | (char *) "self",(char *) "checkable", NULL | |
28174 | }; | |
28175 | ||
28176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
28177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28178 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28179 | if (PyErr_Occurred()) SWIG_fail; | |
28180 | { | |
28181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28182 | (arg1)->SetCheckable(arg2); | |
28183 | ||
28184 | wxPyEndAllowThreads(__tstate); | |
28185 | if (PyErr_Occurred()) SWIG_fail; | |
28186 | } | |
28187 | Py_INCREF(Py_None); resultobj = Py_None; | |
28188 | return resultobj; | |
28189 | fail: | |
28190 | return NULL; | |
28191 | } | |
28192 | ||
28193 | ||
28194 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28195 | PyObject *resultobj; | |
28196 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28197 | bool result; | |
28198 | PyObject * obj0 = 0 ; | |
28199 | char *kwnames[] = { | |
28200 | (char *) "self", NULL | |
28201 | }; | |
28202 | ||
28203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
28204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28205 | { | |
28206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28207 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
28208 | ||
28209 | wxPyEndAllowThreads(__tstate); | |
28210 | if (PyErr_Occurred()) SWIG_fail; | |
28211 | } | |
28212 | resultobj = PyInt_FromLong((long)result); | |
28213 | return resultobj; | |
28214 | fail: | |
28215 | return NULL; | |
28216 | } | |
28217 | ||
28218 | ||
28219 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28220 | PyObject *resultobj; | |
28221 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28222 | bool result; | |
28223 | PyObject * obj0 = 0 ; | |
28224 | char *kwnames[] = { | |
28225 | (char *) "self", NULL | |
28226 | }; | |
28227 | ||
28228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
28229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28230 | { | |
28231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28232 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
28233 | ||
28234 | wxPyEndAllowThreads(__tstate); | |
28235 | if (PyErr_Occurred()) SWIG_fail; | |
28236 | } | |
28237 | resultobj = PyInt_FromLong((long)result); | |
28238 | return resultobj; | |
28239 | fail: | |
28240 | return NULL; | |
28241 | } | |
28242 | ||
28243 | ||
28244 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28245 | PyObject *resultobj; | |
28246 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28247 | wxMenu *arg2 = (wxMenu *) 0 ; | |
28248 | PyObject * obj0 = 0 ; | |
28249 | PyObject * obj1 = 0 ; | |
28250 | char *kwnames[] = { | |
28251 | (char *) "self",(char *) "menu", NULL | |
28252 | }; | |
28253 | ||
28254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
28255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28256 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28257 | { | |
28258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28259 | (arg1)->SetSubMenu(arg2); | |
28260 | ||
28261 | wxPyEndAllowThreads(__tstate); | |
28262 | if (PyErr_Occurred()) SWIG_fail; | |
28263 | } | |
28264 | Py_INCREF(Py_None); resultobj = Py_None; | |
28265 | return resultobj; | |
28266 | fail: | |
28267 | return NULL; | |
28268 | } | |
28269 | ||
28270 | ||
28271 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28272 | PyObject *resultobj; | |
28273 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28274 | wxMenu *result; | |
28275 | PyObject * obj0 = 0 ; | |
28276 | char *kwnames[] = { | |
28277 | (char *) "self", NULL | |
28278 | }; | |
28279 | ||
28280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
28281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28282 | { | |
28283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28284 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
28285 | ||
28286 | wxPyEndAllowThreads(__tstate); | |
28287 | if (PyErr_Occurred()) SWIG_fail; | |
28288 | } | |
28289 | { | |
28290 | resultobj = wxPyMake_wxObject(result); | |
28291 | } | |
28292 | return resultobj; | |
28293 | fail: | |
28294 | return NULL; | |
28295 | } | |
28296 | ||
28297 | ||
28298 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28299 | PyObject *resultobj; | |
28300 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 28301 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28302 | PyObject * obj0 = 0 ; |
28303 | PyObject * obj1 = 0 ; | |
28304 | char *kwnames[] = { | |
28305 | (char *) "self",(char *) "enable", NULL | |
28306 | }; | |
28307 | ||
28308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
28309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28310 | if (obj1) { | |
28311 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28312 | if (PyErr_Occurred()) SWIG_fail; | |
28313 | } | |
28314 | { | |
28315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28316 | (arg1)->Enable(arg2); | |
28317 | ||
28318 | wxPyEndAllowThreads(__tstate); | |
28319 | if (PyErr_Occurred()) SWIG_fail; | |
28320 | } | |
28321 | Py_INCREF(Py_None); resultobj = Py_None; | |
28322 | return resultobj; | |
28323 | fail: | |
28324 | return NULL; | |
28325 | } | |
28326 | ||
28327 | ||
28328 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28329 | PyObject *resultobj; | |
28330 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28331 | bool result; | |
28332 | PyObject * obj0 = 0 ; | |
28333 | char *kwnames[] = { | |
28334 | (char *) "self", NULL | |
28335 | }; | |
28336 | ||
28337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
28338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28339 | { | |
28340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28341 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
28342 | ||
28343 | wxPyEndAllowThreads(__tstate); | |
28344 | if (PyErr_Occurred()) SWIG_fail; | |
28345 | } | |
28346 | resultobj = PyInt_FromLong((long)result); | |
28347 | return resultobj; | |
28348 | fail: | |
28349 | return NULL; | |
28350 | } | |
28351 | ||
28352 | ||
28353 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28354 | PyObject *resultobj; | |
28355 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 28356 | bool arg2 = (bool) True ; |
d14a1e28 RD |
28357 | PyObject * obj0 = 0 ; |
28358 | PyObject * obj1 = 0 ; | |
28359 | char *kwnames[] = { | |
28360 | (char *) "self",(char *) "check", NULL | |
28361 | }; | |
28362 | ||
28363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
28364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28365 | if (obj1) { | |
28366 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
28367 | if (PyErr_Occurred()) SWIG_fail; | |
28368 | } | |
28369 | { | |
28370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28371 | (arg1)->Check(arg2); | |
28372 | ||
28373 | wxPyEndAllowThreads(__tstate); | |
28374 | if (PyErr_Occurred()) SWIG_fail; | |
28375 | } | |
28376 | Py_INCREF(Py_None); resultobj = Py_None; | |
28377 | return resultobj; | |
28378 | fail: | |
28379 | return NULL; | |
28380 | } | |
28381 | ||
28382 | ||
28383 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28384 | PyObject *resultobj; | |
28385 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28386 | bool result; | |
28387 | PyObject * obj0 = 0 ; | |
28388 | char *kwnames[] = { | |
28389 | (char *) "self", NULL | |
28390 | }; | |
28391 | ||
28392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
28393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28394 | { | |
28395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28396 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
28397 | ||
28398 | wxPyEndAllowThreads(__tstate); | |
28399 | if (PyErr_Occurred()) SWIG_fail; | |
28400 | } | |
28401 | resultobj = PyInt_FromLong((long)result); | |
28402 | return resultobj; | |
28403 | fail: | |
28404 | return NULL; | |
28405 | } | |
28406 | ||
28407 | ||
28408 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28409 | PyObject *resultobj; | |
28410 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28411 | PyObject * obj0 = 0 ; | |
28412 | char *kwnames[] = { | |
28413 | (char *) "self", NULL | |
28414 | }; | |
28415 | ||
28416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
28417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28418 | { | |
28419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28420 | (arg1)->Toggle(); | |
28421 | ||
28422 | wxPyEndAllowThreads(__tstate); | |
28423 | if (PyErr_Occurred()) SWIG_fail; | |
28424 | } | |
28425 | Py_INCREF(Py_None); resultobj = Py_None; | |
28426 | return resultobj; | |
28427 | fail: | |
28428 | return NULL; | |
28429 | } | |
28430 | ||
28431 | ||
28432 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28433 | PyObject *resultobj; | |
28434 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28435 | wxString *arg2 = 0 ; | |
423f194a | 28436 | bool temp2 = False ; |
d14a1e28 RD |
28437 | PyObject * obj0 = 0 ; |
28438 | PyObject * obj1 = 0 ; | |
28439 | char *kwnames[] = { | |
28440 | (char *) "self",(char *) "str", NULL | |
28441 | }; | |
28442 | ||
28443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
28444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28445 | { | |
28446 | arg2 = wxString_in_helper(obj1); | |
28447 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28448 | temp2 = True; |
d14a1e28 RD |
28449 | } |
28450 | { | |
28451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28452 | (arg1)->SetHelp((wxString const &)*arg2); | |
28453 | ||
28454 | wxPyEndAllowThreads(__tstate); | |
28455 | if (PyErr_Occurred()) SWIG_fail; | |
28456 | } | |
28457 | Py_INCREF(Py_None); resultobj = Py_None; | |
28458 | { | |
28459 | if (temp2) | |
28460 | delete arg2; | |
28461 | } | |
28462 | return resultobj; | |
28463 | fail: | |
28464 | { | |
28465 | if (temp2) | |
28466 | delete arg2; | |
28467 | } | |
28468 | return NULL; | |
28469 | } | |
28470 | ||
28471 | ||
28472 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28473 | PyObject *resultobj; | |
28474 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28475 | wxString *result; | |
28476 | PyObject * obj0 = 0 ; | |
28477 | char *kwnames[] = { | |
28478 | (char *) "self", NULL | |
28479 | }; | |
28480 | ||
28481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
28482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28483 | { | |
28484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28485 | { | |
28486 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
28487 | result = (wxString *) &_result_ref; | |
28488 | } | |
28489 | ||
28490 | wxPyEndAllowThreads(__tstate); | |
28491 | if (PyErr_Occurred()) SWIG_fail; | |
28492 | } | |
0f774bef RD |
28493 | { |
28494 | #if wxUSE_UNICODE | |
28495 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28496 | #else | |
28497 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28498 | #endif | |
28499 | } | |
d14a1e28 RD |
28500 | return resultobj; |
28501 | fail: | |
28502 | return NULL; | |
28503 | } | |
28504 | ||
28505 | ||
28506 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28507 | PyObject *resultobj; | |
28508 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28509 | wxAcceleratorEntry *result; | |
28510 | PyObject * obj0 = 0 ; | |
28511 | char *kwnames[] = { | |
28512 | (char *) "self", NULL | |
28513 | }; | |
28514 | ||
28515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
28516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28517 | { | |
28518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28519 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
28520 | ||
28521 | wxPyEndAllowThreads(__tstate); | |
28522 | if (PyErr_Occurred()) SWIG_fail; | |
28523 | } | |
28524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
28525 | return resultobj; | |
28526 | fail: | |
28527 | return NULL; | |
28528 | } | |
28529 | ||
28530 | ||
28531 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28532 | PyObject *resultobj; | |
28533 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28534 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
28535 | PyObject * obj0 = 0 ; | |
28536 | PyObject * obj1 = 0 ; | |
28537 | char *kwnames[] = { | |
28538 | (char *) "self",(char *) "accel", NULL | |
28539 | }; | |
28540 | ||
28541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
28542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28544 | { | |
28545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28546 | (arg1)->SetAccel(arg2); | |
28547 | ||
28548 | wxPyEndAllowThreads(__tstate); | |
28549 | if (PyErr_Occurred()) SWIG_fail; | |
28550 | } | |
28551 | Py_INCREF(Py_None); resultobj = Py_None; | |
28552 | return resultobj; | |
28553 | fail: | |
28554 | return NULL; | |
28555 | } | |
28556 | ||
28557 | ||
28558 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28559 | PyObject *resultobj; | |
28560 | int result; | |
28561 | char *kwnames[] = { | |
28562 | NULL | |
28563 | }; | |
28564 | ||
28565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
28566 | { | |
28567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28568 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
28569 | ||
28570 | wxPyEndAllowThreads(__tstate); | |
28571 | if (PyErr_Occurred()) SWIG_fail; | |
28572 | } | |
28573 | resultobj = PyInt_FromLong((long)result); | |
28574 | return resultobj; | |
28575 | fail: | |
28576 | return NULL; | |
28577 | } | |
28578 | ||
28579 | ||
28580 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28581 | PyObject *resultobj; | |
28582 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28583 | wxBitmap *arg2 = 0 ; | |
28584 | PyObject * obj0 = 0 ; | |
28585 | PyObject * obj1 = 0 ; | |
28586 | char *kwnames[] = { | |
28587 | (char *) "self",(char *) "bitmap", NULL | |
28588 | }; | |
28589 | ||
28590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
28591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28592 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28593 | if (arg2 == NULL) { | |
28594 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28595 | } | |
28596 | { | |
28597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28598 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
28599 | ||
28600 | wxPyEndAllowThreads(__tstate); | |
28601 | if (PyErr_Occurred()) SWIG_fail; | |
28602 | } | |
28603 | Py_INCREF(Py_None); resultobj = Py_None; | |
28604 | return resultobj; | |
28605 | fail: | |
28606 | return NULL; | |
28607 | } | |
28608 | ||
28609 | ||
28610 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28611 | PyObject *resultobj; | |
28612 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
28613 | wxBitmap *result; | |
28614 | PyObject * obj0 = 0 ; | |
28615 | char *kwnames[] = { | |
28616 | (char *) "self", NULL | |
28617 | }; | |
28618 | ||
28619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
28620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28621 | { | |
28622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28623 | { | |
28624 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
28625 | result = (wxBitmap *) &_result_ref; | |
28626 | } | |
28627 | ||
28628 | wxPyEndAllowThreads(__tstate); | |
28629 | if (PyErr_Occurred()) SWIG_fail; | |
28630 | } | |
28631 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
28632 | return resultobj; | |
28633 | fail: | |
28634 | return NULL; | |
28635 | } | |
28636 | ||
28637 | ||
28638 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
28639 | PyObject *obj; | |
28640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28641 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
28642 | Py_INCREF(obj); | |
28643 | return Py_BuildValue((char *)""); | |
28644 | } | |
28645 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28646 | PyObject *resultobj; | |
28647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28648 | int arg2 ; |
d14a1e28 RD |
28649 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28650 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28651 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28652 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28653 | long arg5 = (long) 0 ; | |
28654 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28655 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28656 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28657 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28658 | wxControl *result; | |
28659 | wxPoint temp3 ; | |
28660 | wxSize temp4 ; | |
423f194a | 28661 | bool temp7 = False ; |
d14a1e28 RD |
28662 | PyObject * obj0 = 0 ; |
28663 | PyObject * obj2 = 0 ; | |
28664 | PyObject * obj3 = 0 ; | |
28665 | PyObject * obj5 = 0 ; | |
28666 | PyObject * obj6 = 0 ; | |
28667 | char *kwnames[] = { | |
28668 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28669 | }; | |
28670 | ||
28671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_Control",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
28672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28673 | if (obj2) { | |
28674 | { | |
28675 | arg3 = &temp3; | |
28676 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28677 | } | |
28678 | } | |
28679 | if (obj3) { | |
28680 | { | |
28681 | arg4 = &temp4; | |
28682 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28683 | } | |
28684 | } | |
28685 | if (obj5) { | |
28686 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28687 | if (arg6 == NULL) { | |
28688 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28689 | } | |
28690 | } | |
28691 | if (obj6) { | |
28692 | { | |
28693 | arg7 = wxString_in_helper(obj6); | |
28694 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 28695 | temp7 = True; |
d14a1e28 RD |
28696 | } |
28697 | } | |
28698 | { | |
28699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28700 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28701 | ||
28702 | wxPyEndAllowThreads(__tstate); | |
28703 | if (PyErr_Occurred()) SWIG_fail; | |
28704 | } | |
28705 | { | |
28706 | resultobj = wxPyMake_wxObject(result); | |
28707 | } | |
28708 | { | |
28709 | if (temp7) | |
28710 | delete arg7; | |
28711 | } | |
28712 | return resultobj; | |
28713 | fail: | |
28714 | { | |
28715 | if (temp7) | |
28716 | delete arg7; | |
28717 | } | |
28718 | return NULL; | |
28719 | } | |
28720 | ||
28721 | ||
28722 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28723 | PyObject *resultobj; | |
28724 | wxControl *result; | |
28725 | char *kwnames[] = { | |
28726 | NULL | |
28727 | }; | |
28728 | ||
28729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
28730 | { | |
28731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28732 | result = (wxControl *)new wxControl(); | |
28733 | ||
28734 | wxPyEndAllowThreads(__tstate); | |
28735 | if (PyErr_Occurred()) SWIG_fail; | |
28736 | } | |
28737 | { | |
28738 | resultobj = wxPyMake_wxObject(result); | |
28739 | } | |
28740 | return resultobj; | |
28741 | fail: | |
28742 | return NULL; | |
28743 | } | |
28744 | ||
28745 | ||
28746 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28747 | PyObject *resultobj; | |
28748 | wxControl *arg1 = (wxControl *) 0 ; | |
28749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 28750 | int arg3 ; |
d14a1e28 RD |
28751 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28752 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28753 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28754 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28755 | long arg6 = (long) 0 ; | |
28756 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28757 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28758 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
28759 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28760 | bool result; | |
28761 | wxPoint temp4 ; | |
28762 | wxSize temp5 ; | |
423f194a | 28763 | bool temp8 = False ; |
d14a1e28 RD |
28764 | PyObject * obj0 = 0 ; |
28765 | PyObject * obj1 = 0 ; | |
28766 | PyObject * obj3 = 0 ; | |
28767 | PyObject * obj4 = 0 ; | |
28768 | PyObject * obj6 = 0 ; | |
28769 | PyObject * obj7 = 0 ; | |
28770 | char *kwnames[] = { | |
28771 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28772 | }; | |
28773 | ||
28774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlOO:Control_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
28775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28776 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28777 | if (obj3) { | |
28778 | { | |
28779 | arg4 = &temp4; | |
28780 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28781 | } | |
28782 | } | |
28783 | if (obj4) { | |
28784 | { | |
28785 | arg5 = &temp5; | |
28786 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28787 | } | |
28788 | } | |
28789 | if (obj6) { | |
28790 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28791 | if (arg7 == NULL) { | |
28792 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28793 | } | |
28794 | } | |
28795 | if (obj7) { | |
28796 | { | |
28797 | arg8 = wxString_in_helper(obj7); | |
28798 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 28799 | temp8 = True; |
d14a1e28 RD |
28800 | } |
28801 | } | |
28802 | { | |
28803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28804 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28805 | ||
28806 | wxPyEndAllowThreads(__tstate); | |
28807 | if (PyErr_Occurred()) SWIG_fail; | |
28808 | } | |
28809 | resultobj = PyInt_FromLong((long)result); | |
28810 | { | |
28811 | if (temp8) | |
28812 | delete arg8; | |
28813 | } | |
28814 | return resultobj; | |
28815 | fail: | |
28816 | { | |
28817 | if (temp8) | |
28818 | delete arg8; | |
28819 | } | |
28820 | return NULL; | |
28821 | } | |
28822 | ||
28823 | ||
28824 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28825 | PyObject *resultobj; | |
28826 | wxControl *arg1 = (wxControl *) 0 ; | |
28827 | wxCommandEvent *arg2 = 0 ; | |
28828 | PyObject * obj0 = 0 ; | |
28829 | PyObject * obj1 = 0 ; | |
28830 | char *kwnames[] = { | |
28831 | (char *) "self",(char *) "event", NULL | |
28832 | }; | |
28833 | ||
28834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
28835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28836 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28837 | if (arg2 == NULL) { | |
28838 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
28839 | } | |
28840 | { | |
28841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28842 | (arg1)->Command(*arg2); | |
28843 | ||
28844 | wxPyEndAllowThreads(__tstate); | |
28845 | if (PyErr_Occurred()) SWIG_fail; | |
28846 | } | |
28847 | Py_INCREF(Py_None); resultobj = Py_None; | |
28848 | return resultobj; | |
28849 | fail: | |
28850 | return NULL; | |
28851 | } | |
28852 | ||
28853 | ||
28854 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28855 | PyObject *resultobj; | |
28856 | wxControl *arg1 = (wxControl *) 0 ; | |
28857 | wxString result; | |
28858 | PyObject * obj0 = 0 ; | |
28859 | char *kwnames[] = { | |
28860 | (char *) "self", NULL | |
28861 | }; | |
28862 | ||
28863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
28864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28865 | { | |
28866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28867 | result = (arg1)->GetLabel(); | |
28868 | ||
28869 | wxPyEndAllowThreads(__tstate); | |
28870 | if (PyErr_Occurred()) SWIG_fail; | |
28871 | } | |
28872 | { | |
28873 | #if wxUSE_UNICODE | |
28874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28875 | #else | |
28876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28877 | #endif | |
28878 | } | |
28879 | return resultobj; | |
28880 | fail: | |
28881 | return NULL; | |
28882 | } | |
28883 | ||
28884 | ||
28885 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28886 | PyObject *resultobj; | |
28887 | wxControl *arg1 = (wxControl *) 0 ; | |
28888 | wxString *arg2 = 0 ; | |
423f194a | 28889 | bool temp2 = False ; |
d14a1e28 RD |
28890 | PyObject * obj0 = 0 ; |
28891 | PyObject * obj1 = 0 ; | |
28892 | char *kwnames[] = { | |
28893 | (char *) "self",(char *) "label", NULL | |
28894 | }; | |
28895 | ||
28896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
28897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28898 | { | |
28899 | arg2 = wxString_in_helper(obj1); | |
28900 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28901 | temp2 = True; |
d14a1e28 RD |
28902 | } |
28903 | { | |
28904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28905 | (arg1)->SetLabel((wxString const &)*arg2); | |
28906 | ||
28907 | wxPyEndAllowThreads(__tstate); | |
28908 | if (PyErr_Occurred()) SWIG_fail; | |
28909 | } | |
28910 | Py_INCREF(Py_None); resultobj = Py_None; | |
28911 | { | |
28912 | if (temp2) | |
28913 | delete arg2; | |
28914 | } | |
28915 | return resultobj; | |
28916 | fail: | |
28917 | { | |
28918 | if (temp2) | |
28919 | delete arg2; | |
28920 | } | |
28921 | return NULL; | |
28922 | } | |
28923 | ||
28924 | ||
28925 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
28926 | PyObject *obj; | |
28927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28928 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
28929 | Py_INCREF(obj); | |
28930 | return Py_BuildValue((char *)""); | |
28931 | } | |
28932 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28933 | PyObject *resultobj; | |
28934 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
28935 | wxString *arg2 = 0 ; | |
28936 | PyObject *arg3 = (PyObject *) NULL ; | |
28937 | int result; | |
423f194a | 28938 | bool temp2 = False ; |
d14a1e28 RD |
28939 | PyObject * obj0 = 0 ; |
28940 | PyObject * obj1 = 0 ; | |
28941 | PyObject * obj2 = 0 ; | |
28942 | char *kwnames[] = { | |
28943 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
28944 | }; | |
28945 | ||
28946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28948 | { | |
28949 | arg2 = wxString_in_helper(obj1); | |
28950 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28951 | temp2 = True; |
d14a1e28 RD |
28952 | } |
28953 | if (obj2) { | |
28954 | arg3 = obj2; | |
28955 | } | |
28956 | { | |
28957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28958 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
28959 | ||
28960 | wxPyEndAllowThreads(__tstate); | |
28961 | if (PyErr_Occurred()) SWIG_fail; | |
28962 | } | |
28963 | resultobj = PyInt_FromLong((long)result); | |
28964 | { | |
28965 | if (temp2) | |
28966 | delete arg2; | |
28967 | } | |
28968 | return resultobj; | |
28969 | fail: | |
28970 | { | |
28971 | if (temp2) | |
28972 | delete arg2; | |
28973 | } | |
28974 | return NULL; | |
28975 | } | |
28976 | ||
28977 | ||
28978 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28979 | PyObject *resultobj; | |
28980 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
28981 | wxArrayString *arg2 = 0 ; | |
28982 | PyObject * obj0 = 0 ; | |
28983 | PyObject * obj1 = 0 ; | |
28984 | char *kwnames[] = { | |
28985 | (char *) "self",(char *) "strings", NULL | |
28986 | }; | |
28987 | ||
28988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
28989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28990 | { | |
28991 | if (! PySequence_Check(obj1)) { | |
28992 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
28993 | SWIG_fail; | |
28994 | } | |
28995 | arg2 = new wxArrayString; | |
28996 | int i, len=PySequence_Length(obj1); | |
28997 | for (i=0; i<len; i++) { | |
28998 | PyObject* item = PySequence_GetItem(obj1, i); | |
28999 | #if wxUSE_UNICODE | |
29000 | PyObject* str = PyObject_Unicode(item); | |
29001 | #else | |
29002 | PyObject* str = PyObject_Str(item); | |
29003 | #endif | |
29004 | arg2->Add(Py2wxString(str)); | |
29005 | Py_DECREF(item); | |
29006 | Py_DECREF(str); | |
29007 | } | |
29008 | } | |
29009 | { | |
29010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29011 | (arg1)->Append((wxArrayString const &)*arg2); | |
29012 | ||
29013 | wxPyEndAllowThreads(__tstate); | |
29014 | if (PyErr_Occurred()) SWIG_fail; | |
29015 | } | |
29016 | Py_INCREF(Py_None); resultobj = Py_None; | |
29017 | { | |
29018 | if (arg2) delete arg2; | |
29019 | } | |
29020 | return resultobj; | |
29021 | fail: | |
29022 | { | |
29023 | if (arg2) delete arg2; | |
29024 | } | |
29025 | return NULL; | |
29026 | } | |
29027 | ||
29028 | ||
29029 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29030 | PyObject *resultobj; | |
29031 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29032 | wxString *arg2 = 0 ; | |
29033 | int arg3 ; | |
29034 | PyObject *arg4 = (PyObject *) NULL ; | |
29035 | int result; | |
423f194a | 29036 | bool temp2 = False ; |
d14a1e28 RD |
29037 | PyObject * obj0 = 0 ; |
29038 | PyObject * obj1 = 0 ; | |
29039 | PyObject * obj3 = 0 ; | |
29040 | char *kwnames[] = { | |
29041 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
29042 | }; | |
29043 | ||
29044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
29045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29046 | { | |
29047 | arg2 = wxString_in_helper(obj1); | |
29048 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29049 | temp2 = True; |
d14a1e28 RD |
29050 | } |
29051 | if (obj3) { | |
29052 | arg4 = obj3; | |
29053 | } | |
29054 | { | |
29055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29056 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
29057 | ||
29058 | wxPyEndAllowThreads(__tstate); | |
29059 | if (PyErr_Occurred()) SWIG_fail; | |
29060 | } | |
29061 | resultobj = PyInt_FromLong((long)result); | |
29062 | { | |
29063 | if (temp2) | |
29064 | delete arg2; | |
29065 | } | |
29066 | return resultobj; | |
29067 | fail: | |
29068 | { | |
29069 | if (temp2) | |
29070 | delete arg2; | |
29071 | } | |
29072 | return NULL; | |
29073 | } | |
29074 | ||
29075 | ||
29076 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29077 | PyObject *resultobj; | |
29078 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29079 | PyObject * obj0 = 0 ; | |
29080 | char *kwnames[] = { | |
29081 | (char *) "self", NULL | |
29082 | }; | |
29083 | ||
29084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
29085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29086 | { | |
29087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29088 | (arg1)->Clear(); | |
29089 | ||
29090 | wxPyEndAllowThreads(__tstate); | |
29091 | if (PyErr_Occurred()) SWIG_fail; | |
29092 | } | |
29093 | Py_INCREF(Py_None); resultobj = Py_None; | |
29094 | return resultobj; | |
29095 | fail: | |
29096 | return NULL; | |
29097 | } | |
29098 | ||
29099 | ||
29100 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29101 | PyObject *resultobj; | |
29102 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29103 | int arg2 ; | |
29104 | PyObject * obj0 = 0 ; | |
29105 | char *kwnames[] = { | |
29106 | (char *) "self",(char *) "n", NULL | |
29107 | }; | |
29108 | ||
29109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Delete",kwnames,&obj0,&arg2)) goto fail; | |
29110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29111 | { | |
29112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29113 | (arg1)->Delete(arg2); | |
29114 | ||
29115 | wxPyEndAllowThreads(__tstate); | |
29116 | if (PyErr_Occurred()) SWIG_fail; | |
29117 | } | |
29118 | Py_INCREF(Py_None); resultobj = Py_None; | |
29119 | return resultobj; | |
29120 | fail: | |
29121 | return NULL; | |
29122 | } | |
29123 | ||
29124 | ||
29125 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29126 | PyObject *resultobj; | |
29127 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29128 | int result; | |
29129 | PyObject * obj0 = 0 ; | |
29130 | char *kwnames[] = { | |
29131 | (char *) "self", NULL | |
29132 | }; | |
29133 | ||
29134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
29135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29136 | { | |
29137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29138 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
29139 | ||
29140 | wxPyEndAllowThreads(__tstate); | |
29141 | if (PyErr_Occurred()) SWIG_fail; | |
29142 | } | |
29143 | resultobj = PyInt_FromLong((long)result); | |
29144 | return resultobj; | |
29145 | fail: | |
29146 | return NULL; | |
29147 | } | |
29148 | ||
29149 | ||
29150 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29151 | PyObject *resultobj; | |
29152 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29153 | bool result; | |
29154 | PyObject * obj0 = 0 ; | |
29155 | char *kwnames[] = { | |
29156 | (char *) "self", NULL | |
29157 | }; | |
29158 | ||
29159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
29160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29161 | { | |
29162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29163 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
29164 | ||
29165 | wxPyEndAllowThreads(__tstate); | |
29166 | if (PyErr_Occurred()) SWIG_fail; | |
29167 | } | |
29168 | resultobj = PyInt_FromLong((long)result); | |
29169 | return resultobj; | |
29170 | fail: | |
29171 | return NULL; | |
29172 | } | |
29173 | ||
29174 | ||
29175 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29176 | PyObject *resultobj; | |
29177 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29178 | int arg2 ; | |
29179 | wxString result; | |
29180 | PyObject * obj0 = 0 ; | |
29181 | char *kwnames[] = { | |
29182 | (char *) "self",(char *) "n", NULL | |
29183 | }; | |
29184 | ||
29185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetString",kwnames,&obj0,&arg2)) goto fail; | |
29186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29187 | { | |
29188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29189 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
29190 | ||
29191 | wxPyEndAllowThreads(__tstate); | |
29192 | if (PyErr_Occurred()) SWIG_fail; | |
29193 | } | |
29194 | { | |
29195 | #if wxUSE_UNICODE | |
29196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29197 | #else | |
29198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29199 | #endif | |
29200 | } | |
29201 | return resultobj; | |
29202 | fail: | |
29203 | return NULL; | |
29204 | } | |
29205 | ||
29206 | ||
29207 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29208 | PyObject *resultobj; | |
29209 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29210 | wxArrayString result; | |
29211 | PyObject * obj0 = 0 ; | |
29212 | char *kwnames[] = { | |
29213 | (char *) "self", NULL | |
29214 | }; | |
29215 | ||
29216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
29217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29218 | { | |
29219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29220 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
29221 | ||
29222 | wxPyEndAllowThreads(__tstate); | |
29223 | if (PyErr_Occurred()) SWIG_fail; | |
29224 | } | |
29225 | { | |
29226 | resultobj = wxArrayString2PyList_helper(result); | |
29227 | } | |
29228 | return resultobj; | |
29229 | fail: | |
29230 | return NULL; | |
29231 | } | |
29232 | ||
29233 | ||
29234 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29235 | PyObject *resultobj; | |
29236 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29237 | int arg2 ; | |
29238 | wxString *arg3 = 0 ; | |
423f194a | 29239 | bool temp3 = False ; |
d14a1e28 RD |
29240 | PyObject * obj0 = 0 ; |
29241 | PyObject * obj2 = 0 ; | |
29242 | char *kwnames[] = { | |
29243 | (char *) "self",(char *) "n",(char *) "s", NULL | |
29244 | }; | |
29245 | ||
29246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29248 | { | |
29249 | arg3 = wxString_in_helper(obj2); | |
29250 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29251 | temp3 = True; |
d14a1e28 RD |
29252 | } |
29253 | { | |
29254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29255 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
29256 | ||
29257 | wxPyEndAllowThreads(__tstate); | |
29258 | if (PyErr_Occurred()) SWIG_fail; | |
29259 | } | |
29260 | Py_INCREF(Py_None); resultobj = Py_None; | |
29261 | { | |
29262 | if (temp3) | |
29263 | delete arg3; | |
29264 | } | |
29265 | return resultobj; | |
29266 | fail: | |
29267 | { | |
29268 | if (temp3) | |
29269 | delete arg3; | |
29270 | } | |
29271 | return NULL; | |
29272 | } | |
29273 | ||
29274 | ||
29275 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29276 | PyObject *resultobj; | |
29277 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29278 | wxString *arg2 = 0 ; | |
29279 | int result; | |
423f194a | 29280 | bool temp2 = False ; |
d14a1e28 RD |
29281 | PyObject * obj0 = 0 ; |
29282 | PyObject * obj1 = 0 ; | |
29283 | char *kwnames[] = { | |
29284 | (char *) "self",(char *) "s", NULL | |
29285 | }; | |
29286 | ||
29287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
29288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29289 | { | |
29290 | arg2 = wxString_in_helper(obj1); | |
29291 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29292 | temp2 = True; |
d14a1e28 RD |
29293 | } |
29294 | { | |
29295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29296 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
29297 | ||
29298 | wxPyEndAllowThreads(__tstate); | |
29299 | if (PyErr_Occurred()) SWIG_fail; | |
29300 | } | |
29301 | resultobj = PyInt_FromLong((long)result); | |
29302 | { | |
29303 | if (temp2) | |
29304 | delete arg2; | |
29305 | } | |
29306 | return resultobj; | |
29307 | fail: | |
29308 | { | |
29309 | if (temp2) | |
29310 | delete arg2; | |
29311 | } | |
29312 | return NULL; | |
29313 | } | |
29314 | ||
29315 | ||
29316 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29317 | PyObject *resultobj; | |
29318 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29319 | int arg2 ; | |
29320 | PyObject * obj0 = 0 ; | |
29321 | char *kwnames[] = { | |
29322 | (char *) "self",(char *) "n", NULL | |
29323 | }; | |
29324 | ||
29325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_Select",kwnames,&obj0,&arg2)) goto fail; | |
29326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29327 | { | |
29328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29329 | (arg1)->Select(arg2); | |
29330 | ||
29331 | wxPyEndAllowThreads(__tstate); | |
29332 | if (PyErr_Occurred()) SWIG_fail; | |
29333 | } | |
29334 | Py_INCREF(Py_None); resultobj = Py_None; | |
29335 | return resultobj; | |
29336 | fail: | |
29337 | return NULL; | |
29338 | } | |
29339 | ||
29340 | ||
29341 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29342 | PyObject *resultobj; | |
29343 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29344 | int result; | |
29345 | PyObject * obj0 = 0 ; | |
29346 | char *kwnames[] = { | |
29347 | (char *) "self", NULL | |
29348 | }; | |
29349 | ||
29350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
29351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29352 | { | |
29353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29354 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
29355 | ||
29356 | wxPyEndAllowThreads(__tstate); | |
29357 | if (PyErr_Occurred()) SWIG_fail; | |
29358 | } | |
29359 | resultobj = PyInt_FromLong((long)result); | |
29360 | return resultobj; | |
29361 | fail: | |
29362 | return NULL; | |
29363 | } | |
29364 | ||
29365 | ||
29366 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29367 | PyObject *resultobj; | |
29368 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29369 | wxString result; | |
29370 | PyObject * obj0 = 0 ; | |
29371 | char *kwnames[] = { | |
29372 | (char *) "self", NULL | |
29373 | }; | |
29374 | ||
29375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
29376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29377 | { | |
29378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29379 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
29380 | ||
29381 | wxPyEndAllowThreads(__tstate); | |
29382 | if (PyErr_Occurred()) SWIG_fail; | |
29383 | } | |
29384 | { | |
29385 | #if wxUSE_UNICODE | |
29386 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29387 | #else | |
29388 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29389 | #endif | |
29390 | } | |
29391 | return resultobj; | |
29392 | fail: | |
29393 | return NULL; | |
29394 | } | |
29395 | ||
29396 | ||
29397 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29398 | PyObject *resultobj; | |
29399 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29400 | int arg2 ; | |
29401 | PyObject *result; | |
29402 | PyObject * obj0 = 0 ; | |
29403 | char *kwnames[] = { | |
29404 | (char *) "self",(char *) "n", NULL | |
29405 | }; | |
29406 | ||
29407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ItemContainer_GetClientData",kwnames,&obj0,&arg2)) goto fail; | |
29408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29409 | { | |
29410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29411 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
29412 | ||
29413 | wxPyEndAllowThreads(__tstate); | |
29414 | if (PyErr_Occurred()) SWIG_fail; | |
29415 | } | |
29416 | resultobj = result; | |
29417 | return resultobj; | |
29418 | fail: | |
29419 | return NULL; | |
29420 | } | |
29421 | ||
29422 | ||
29423 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29424 | PyObject *resultobj; | |
29425 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
29426 | int arg2 ; | |
29427 | PyObject *arg3 = (PyObject *) 0 ; | |
29428 | PyObject * obj0 = 0 ; | |
29429 | PyObject * obj2 = 0 ; | |
29430 | char *kwnames[] = { | |
29431 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
29432 | }; | |
29433 | ||
29434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ItemContainer_SetClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
29435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29436 | arg3 = obj2; | |
29437 | { | |
29438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29439 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
29440 | ||
29441 | wxPyEndAllowThreads(__tstate); | |
29442 | if (PyErr_Occurred()) SWIG_fail; | |
29443 | } | |
29444 | Py_INCREF(Py_None); resultobj = Py_None; | |
29445 | return resultobj; | |
29446 | fail: | |
29447 | return NULL; | |
29448 | } | |
29449 | ||
29450 | ||
29451 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
29452 | PyObject *obj; | |
29453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29454 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
29455 | Py_INCREF(obj); | |
29456 | return Py_BuildValue((char *)""); | |
29457 | } | |
29458 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
29459 | PyObject *obj; | |
29460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29461 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
29462 | Py_INCREF(obj); | |
29463 | return Py_BuildValue((char *)""); | |
29464 | } | |
29465 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29466 | PyObject *resultobj; | |
29467 | wxSizerItem *result; | |
29468 | char *kwnames[] = { | |
29469 | NULL | |
29470 | }; | |
29471 | ||
29472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
29473 | { | |
29474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29475 | result = (wxSizerItem *)new wxSizerItem(); | |
29476 | ||
29477 | wxPyEndAllowThreads(__tstate); | |
29478 | if (PyErr_Occurred()) SWIG_fail; | |
29479 | } | |
29480 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29481 | return resultobj; | |
29482 | fail: | |
29483 | return NULL; | |
29484 | } | |
29485 | ||
29486 | ||
29487 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29488 | PyObject *resultobj; | |
29489 | int arg1 ; | |
29490 | int arg2 ; | |
29491 | int arg3 ; | |
29492 | int arg4 ; | |
29493 | int arg5 ; | |
29494 | wxObject *arg6 = (wxObject *) 0 ; | |
29495 | wxSizerItem *result; | |
29496 | PyObject * obj5 = 0 ; | |
29497 | char *kwnames[] = { | |
29498 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29499 | }; | |
29500 | ||
29501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiiiiO:new_SizerItemSpacer",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
29502 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29503 | { | |
29504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29505 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
29506 | ||
29507 | wxPyEndAllowThreads(__tstate); | |
29508 | if (PyErr_Occurred()) SWIG_fail; | |
29509 | } | |
29510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29511 | return resultobj; | |
29512 | fail: | |
29513 | return NULL; | |
29514 | } | |
29515 | ||
29516 | ||
29517 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29518 | PyObject *resultobj; | |
29519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29520 | int arg2 ; | |
29521 | int arg3 ; | |
29522 | int arg4 ; | |
29523 | wxObject *arg5 = (wxObject *) 0 ; | |
29524 | wxSizerItem *result; | |
29525 | PyObject * obj0 = 0 ; | |
29526 | PyObject * obj4 = 0 ; | |
29527 | char *kwnames[] = { | |
29528 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29529 | }; | |
29530 | ||
29531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
29532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29533 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29534 | { | |
29535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29536 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
29537 | ||
29538 | wxPyEndAllowThreads(__tstate); | |
29539 | if (PyErr_Occurred()) SWIG_fail; | |
29540 | } | |
29541 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29542 | return resultobj; | |
29543 | fail: | |
29544 | return NULL; | |
29545 | } | |
29546 | ||
29547 | ||
29548 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29549 | PyObject *resultobj; | |
29550 | wxSizer *arg1 = (wxSizer *) 0 ; | |
29551 | int arg2 ; | |
29552 | int arg3 ; | |
29553 | int arg4 ; | |
29554 | wxObject *arg5 = (wxObject *) 0 ; | |
29555 | wxSizerItem *result; | |
29556 | PyObject * obj0 = 0 ; | |
29557 | PyObject * obj4 = 0 ; | |
29558 | char *kwnames[] = { | |
29559 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
29560 | }; | |
29561 | ||
29562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiO:new_SizerItemSizer",kwnames,&obj0,&arg2,&arg3,&arg4,&obj4)) goto fail; | |
29563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29564 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29565 | { | |
29566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29567 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
29568 | ||
29569 | wxPyEndAllowThreads(__tstate); | |
29570 | if (PyErr_Occurred()) SWIG_fail; | |
29571 | } | |
29572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
29573 | return resultobj; | |
29574 | fail: | |
29575 | return NULL; | |
29576 | } | |
29577 | ||
29578 | ||
29579 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29580 | PyObject *resultobj; | |
29581 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29582 | PyObject * obj0 = 0 ; | |
29583 | char *kwnames[] = { | |
29584 | (char *) "self", NULL | |
29585 | }; | |
29586 | ||
29587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
29588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29589 | { | |
29590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29591 | (arg1)->DeleteWindows(); | |
29592 | ||
29593 | wxPyEndAllowThreads(__tstate); | |
29594 | if (PyErr_Occurred()) SWIG_fail; | |
29595 | } | |
29596 | Py_INCREF(Py_None); resultobj = Py_None; | |
29597 | return resultobj; | |
29598 | fail: | |
29599 | return NULL; | |
29600 | } | |
29601 | ||
29602 | ||
29603 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29604 | PyObject *resultobj; | |
29605 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29606 | PyObject * obj0 = 0 ; | |
29607 | char *kwnames[] = { | |
29608 | (char *) "self", NULL | |
29609 | }; | |
29610 | ||
29611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
29612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29613 | { | |
29614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29615 | (arg1)->DetachSizer(); | |
29616 | ||
29617 | wxPyEndAllowThreads(__tstate); | |
29618 | if (PyErr_Occurred()) SWIG_fail; | |
29619 | } | |
29620 | Py_INCREF(Py_None); resultobj = Py_None; | |
29621 | return resultobj; | |
29622 | fail: | |
29623 | return NULL; | |
29624 | } | |
29625 | ||
29626 | ||
29627 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29628 | PyObject *resultobj; | |
29629 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29630 | wxSize result; | |
29631 | PyObject * obj0 = 0 ; | |
29632 | char *kwnames[] = { | |
29633 | (char *) "self", NULL | |
29634 | }; | |
29635 | ||
29636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
29637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29638 | { | |
29639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29640 | result = (arg1)->GetSize(); | |
29641 | ||
29642 | wxPyEndAllowThreads(__tstate); | |
29643 | if (PyErr_Occurred()) SWIG_fail; | |
29644 | } | |
29645 | { | |
29646 | wxSize * resultptr; | |
29647 | resultptr = new wxSize((wxSize &) result); | |
29648 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
29649 | } | |
29650 | return resultobj; | |
29651 | fail: | |
29652 | return NULL; | |
29653 | } | |
29654 | ||
29655 | ||
29656 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29657 | PyObject *resultobj; | |
29658 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29659 | wxSize result; | |
29660 | PyObject * obj0 = 0 ; | |
29661 | char *kwnames[] = { | |
29662 | (char *) "self", NULL | |
29663 | }; | |
29664 | ||
29665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
29666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29667 | { | |
29668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29669 | result = (arg1)->CalcMin(); | |
29670 | ||
29671 | wxPyEndAllowThreads(__tstate); | |
29672 | if (PyErr_Occurred()) SWIG_fail; | |
29673 | } | |
29674 | { | |
29675 | wxSize * resultptr; | |
29676 | resultptr = new wxSize((wxSize &) result); | |
29677 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
29678 | } | |
29679 | return resultobj; | |
29680 | fail: | |
29681 | return NULL; | |
29682 | } | |
29683 | ||
29684 | ||
29685 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29686 | PyObject *resultobj; | |
29687 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29688 | wxPoint arg2 ; | |
29689 | wxSize arg3 ; | |
29690 | wxPoint *argp2 ; | |
29691 | wxSize *argp3 ; | |
29692 | PyObject * obj0 = 0 ; | |
29693 | PyObject * obj1 = 0 ; | |
29694 | PyObject * obj2 = 0 ; | |
29695 | char *kwnames[] = { | |
29696 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
29697 | }; | |
29698 | ||
29699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29701 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29702 | arg2 = *argp2; | |
29703 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29704 | arg3 = *argp3; | |
29705 | { | |
29706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29707 | (arg1)->SetDimension(arg2,arg3); | |
29708 | ||
29709 | wxPyEndAllowThreads(__tstate); | |
29710 | if (PyErr_Occurred()) SWIG_fail; | |
29711 | } | |
29712 | Py_INCREF(Py_None); resultobj = Py_None; | |
29713 | return resultobj; | |
29714 | fail: | |
29715 | return NULL; | |
29716 | } | |
29717 | ||
29718 | ||
29719 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29720 | PyObject *resultobj; | |
29721 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29722 | wxSize result; | |
29723 | PyObject * obj0 = 0 ; | |
29724 | char *kwnames[] = { | |
29725 | (char *) "self", NULL | |
29726 | }; | |
29727 | ||
29728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
29729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29730 | { | |
29731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29732 | result = (arg1)->GetMinSize(); | |
29733 | ||
29734 | wxPyEndAllowThreads(__tstate); | |
29735 | if (PyErr_Occurred()) SWIG_fail; | |
29736 | } | |
29737 | { | |
29738 | wxSize * resultptr; | |
29739 | resultptr = new wxSize((wxSize &) result); | |
29740 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
29741 | } | |
29742 | return resultobj; | |
29743 | fail: | |
29744 | return NULL; | |
29745 | } | |
29746 | ||
29747 | ||
29748 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29749 | PyObject *resultobj; | |
29750 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29751 | int arg2 ; | |
29752 | int arg3 ; | |
29753 | PyObject * obj0 = 0 ; | |
29754 | char *kwnames[] = { | |
29755 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29756 | }; | |
29757 | ||
29758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetInitSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
29759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29760 | { | |
29761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29762 | (arg1)->SetInitSize(arg2,arg3); | |
29763 | ||
29764 | wxPyEndAllowThreads(__tstate); | |
29765 | if (PyErr_Occurred()) SWIG_fail; | |
29766 | } | |
29767 | Py_INCREF(Py_None); resultobj = Py_None; | |
29768 | return resultobj; | |
29769 | fail: | |
29770 | return NULL; | |
29771 | } | |
29772 | ||
29773 | ||
29774 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29775 | PyObject *resultobj; | |
29776 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29777 | int arg2 ; | |
29778 | int arg3 ; | |
29779 | PyObject * obj0 = 0 ; | |
29780 | char *kwnames[] = { | |
29781 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29782 | }; | |
29783 | ||
29784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SizerItem_SetRatioWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
29785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29786 | { | |
29787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29788 | (arg1)->SetRatio(arg2,arg3); | |
29789 | ||
29790 | wxPyEndAllowThreads(__tstate); | |
29791 | if (PyErr_Occurred()) SWIG_fail; | |
29792 | } | |
29793 | Py_INCREF(Py_None); resultobj = Py_None; | |
29794 | return resultobj; | |
29795 | fail: | |
29796 | return NULL; | |
29797 | } | |
29798 | ||
29799 | ||
29800 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29801 | PyObject *resultobj; | |
29802 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29803 | wxSize arg2 ; | |
29804 | wxSize *argp2 ; | |
29805 | PyObject * obj0 = 0 ; | |
29806 | PyObject * obj1 = 0 ; | |
29807 | char *kwnames[] = { | |
29808 | (char *) "self",(char *) "size", NULL | |
29809 | }; | |
29810 | ||
29811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
29812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29813 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
29814 | arg2 = *argp2; | |
29815 | { | |
29816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29817 | (arg1)->SetRatio(arg2); | |
29818 | ||
29819 | wxPyEndAllowThreads(__tstate); | |
29820 | if (PyErr_Occurred()) SWIG_fail; | |
29821 | } | |
29822 | Py_INCREF(Py_None); resultobj = Py_None; | |
29823 | return resultobj; | |
29824 | fail: | |
29825 | return NULL; | |
29826 | } | |
29827 | ||
29828 | ||
29829 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29830 | PyObject *resultobj; | |
29831 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29832 | float arg2 ; | |
29833 | PyObject * obj0 = 0 ; | |
29834 | char *kwnames[] = { | |
29835 | (char *) "self",(char *) "ratio", NULL | |
29836 | }; | |
29837 | ||
29838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Of:SizerItem_SetRatio",kwnames,&obj0,&arg2)) goto fail; | |
29839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29840 | { | |
29841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29842 | (arg1)->SetRatio(arg2); | |
29843 | ||
29844 | wxPyEndAllowThreads(__tstate); | |
29845 | if (PyErr_Occurred()) SWIG_fail; | |
29846 | } | |
29847 | Py_INCREF(Py_None); resultobj = Py_None; | |
29848 | return resultobj; | |
29849 | fail: | |
29850 | return NULL; | |
29851 | } | |
29852 | ||
29853 | ||
29854 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj; | |
29856 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29857 | float result; | |
29858 | PyObject * obj0 = 0 ; | |
29859 | char *kwnames[] = { | |
29860 | (char *) "self", NULL | |
29861 | }; | |
29862 | ||
29863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
29864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29865 | { | |
29866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29867 | result = (float)(arg1)->GetRatio(); | |
29868 | ||
29869 | wxPyEndAllowThreads(__tstate); | |
29870 | if (PyErr_Occurred()) SWIG_fail; | |
29871 | } | |
29872 | resultobj = PyFloat_FromDouble(result); | |
29873 | return resultobj; | |
29874 | fail: | |
29875 | return NULL; | |
29876 | } | |
29877 | ||
29878 | ||
29879 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29880 | PyObject *resultobj; | |
29881 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29882 | bool result; | |
29883 | PyObject * obj0 = 0 ; | |
29884 | char *kwnames[] = { | |
29885 | (char *) "self", NULL | |
29886 | }; | |
29887 | ||
29888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
29889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29890 | { | |
29891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29892 | result = (bool)(arg1)->IsWindow(); | |
29893 | ||
29894 | wxPyEndAllowThreads(__tstate); | |
29895 | if (PyErr_Occurred()) SWIG_fail; | |
29896 | } | |
29897 | resultobj = PyInt_FromLong((long)result); | |
29898 | return resultobj; | |
29899 | fail: | |
29900 | return NULL; | |
29901 | } | |
29902 | ||
29903 | ||
29904 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29905 | PyObject *resultobj; | |
29906 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29907 | bool result; | |
29908 | PyObject * obj0 = 0 ; | |
29909 | char *kwnames[] = { | |
29910 | (char *) "self", NULL | |
29911 | }; | |
29912 | ||
29913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
29914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29915 | { | |
29916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29917 | result = (bool)(arg1)->IsSizer(); | |
29918 | ||
29919 | wxPyEndAllowThreads(__tstate); | |
29920 | if (PyErr_Occurred()) SWIG_fail; | |
29921 | } | |
29922 | resultobj = PyInt_FromLong((long)result); | |
29923 | return resultobj; | |
29924 | fail: | |
29925 | return NULL; | |
29926 | } | |
29927 | ||
29928 | ||
29929 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29930 | PyObject *resultobj; | |
29931 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29932 | bool result; | |
29933 | PyObject * obj0 = 0 ; | |
29934 | char *kwnames[] = { | |
29935 | (char *) "self", NULL | |
29936 | }; | |
29937 | ||
29938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
29939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29940 | { | |
29941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29942 | result = (bool)(arg1)->IsSpacer(); | |
29943 | ||
29944 | wxPyEndAllowThreads(__tstate); | |
29945 | if (PyErr_Occurred()) SWIG_fail; | |
29946 | } | |
29947 | resultobj = PyInt_FromLong((long)result); | |
29948 | return resultobj; | |
29949 | fail: | |
29950 | return NULL; | |
29951 | } | |
29952 | ||
29953 | ||
29954 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29955 | PyObject *resultobj; | |
29956 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29957 | int arg2 ; | |
29958 | PyObject * obj0 = 0 ; | |
29959 | char *kwnames[] = { | |
29960 | (char *) "self",(char *) "proportion", NULL | |
29961 | }; | |
29962 | ||
29963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetProportion",kwnames,&obj0,&arg2)) goto fail; | |
29964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29965 | { | |
29966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29967 | (arg1)->SetProportion(arg2); | |
29968 | ||
29969 | wxPyEndAllowThreads(__tstate); | |
29970 | if (PyErr_Occurred()) SWIG_fail; | |
29971 | } | |
29972 | Py_INCREF(Py_None); resultobj = Py_None; | |
29973 | return resultobj; | |
29974 | fail: | |
29975 | return NULL; | |
29976 | } | |
29977 | ||
29978 | ||
29979 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29980 | PyObject *resultobj; | |
29981 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
29982 | int result; | |
29983 | PyObject * obj0 = 0 ; | |
29984 | char *kwnames[] = { | |
29985 | (char *) "self", NULL | |
29986 | }; | |
29987 | ||
29988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
29989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29990 | { | |
29991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29992 | result = (int)(arg1)->GetProportion(); | |
29993 | ||
29994 | wxPyEndAllowThreads(__tstate); | |
29995 | if (PyErr_Occurred()) SWIG_fail; | |
29996 | } | |
29997 | resultobj = PyInt_FromLong((long)result); | |
29998 | return resultobj; | |
29999 | fail: | |
30000 | return NULL; | |
30001 | } | |
30002 | ||
30003 | ||
30004 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30005 | PyObject *resultobj; | |
30006 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30007 | int arg2 ; | |
30008 | PyObject * obj0 = 0 ; | |
30009 | char *kwnames[] = { | |
30010 | (char *) "self",(char *) "flag", NULL | |
30011 | }; | |
30012 | ||
30013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetFlag",kwnames,&obj0,&arg2)) goto fail; | |
30014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30015 | { | |
30016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30017 | (arg1)->SetFlag(arg2); | |
30018 | ||
30019 | wxPyEndAllowThreads(__tstate); | |
30020 | if (PyErr_Occurred()) SWIG_fail; | |
30021 | } | |
30022 | Py_INCREF(Py_None); resultobj = Py_None; | |
30023 | return resultobj; | |
30024 | fail: | |
30025 | return NULL; | |
30026 | } | |
30027 | ||
30028 | ||
30029 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30030 | PyObject *resultobj; | |
30031 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30032 | int result; | |
30033 | PyObject * obj0 = 0 ; | |
30034 | char *kwnames[] = { | |
30035 | (char *) "self", NULL | |
30036 | }; | |
30037 | ||
30038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
30039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30040 | { | |
30041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30042 | result = (int)(arg1)->GetFlag(); | |
30043 | ||
30044 | wxPyEndAllowThreads(__tstate); | |
30045 | if (PyErr_Occurred()) SWIG_fail; | |
30046 | } | |
30047 | resultobj = PyInt_FromLong((long)result); | |
30048 | return resultobj; | |
30049 | fail: | |
30050 | return NULL; | |
30051 | } | |
30052 | ||
30053 | ||
30054 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30055 | PyObject *resultobj; | |
30056 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30057 | int arg2 ; | |
30058 | PyObject * obj0 = 0 ; | |
30059 | char *kwnames[] = { | |
30060 | (char *) "self",(char *) "border", NULL | |
30061 | }; | |
30062 | ||
30063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SizerItem_SetBorder",kwnames,&obj0,&arg2)) goto fail; | |
30064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30065 | { | |
30066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30067 | (arg1)->SetBorder(arg2); | |
30068 | ||
30069 | wxPyEndAllowThreads(__tstate); | |
30070 | if (PyErr_Occurred()) SWIG_fail; | |
30071 | } | |
30072 | Py_INCREF(Py_None); resultobj = Py_None; | |
30073 | return resultobj; | |
30074 | fail: | |
30075 | return NULL; | |
30076 | } | |
30077 | ||
30078 | ||
30079 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30080 | PyObject *resultobj; | |
30081 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30082 | int result; | |
30083 | PyObject * obj0 = 0 ; | |
30084 | char *kwnames[] = { | |
30085 | (char *) "self", NULL | |
30086 | }; | |
30087 | ||
30088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
30089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30090 | { | |
30091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30092 | result = (int)(arg1)->GetBorder(); | |
30093 | ||
30094 | wxPyEndAllowThreads(__tstate); | |
30095 | if (PyErr_Occurred()) SWIG_fail; | |
30096 | } | |
30097 | resultobj = PyInt_FromLong((long)result); | |
30098 | return resultobj; | |
30099 | fail: | |
30100 | return NULL; | |
30101 | } | |
30102 | ||
30103 | ||
30104 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30105 | PyObject *resultobj; | |
30106 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30107 | wxWindow *result; | |
30108 | PyObject * obj0 = 0 ; | |
30109 | char *kwnames[] = { | |
30110 | (char *) "self", NULL | |
30111 | }; | |
30112 | ||
30113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
30114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30115 | { | |
30116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30117 | result = (wxWindow *)(arg1)->GetWindow(); | |
30118 | ||
30119 | wxPyEndAllowThreads(__tstate); | |
30120 | if (PyErr_Occurred()) SWIG_fail; | |
30121 | } | |
30122 | { | |
30123 | resultobj = wxPyMake_wxObject(result); | |
30124 | } | |
30125 | return resultobj; | |
30126 | fail: | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj; | |
30133 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30135 | PyObject * obj0 = 0 ; | |
30136 | PyObject * obj1 = 0 ; | |
30137 | char *kwnames[] = { | |
30138 | (char *) "self",(char *) "window", NULL | |
30139 | }; | |
30140 | ||
30141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
30142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30143 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30144 | { | |
30145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30146 | (arg1)->SetWindow(arg2); | |
30147 | ||
30148 | wxPyEndAllowThreads(__tstate); | |
30149 | if (PyErr_Occurred()) SWIG_fail; | |
30150 | } | |
30151 | Py_INCREF(Py_None); resultobj = Py_None; | |
30152 | return resultobj; | |
30153 | fail: | |
30154 | return NULL; | |
30155 | } | |
30156 | ||
30157 | ||
30158 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30159 | PyObject *resultobj; | |
30160 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30161 | wxSizer *result; | |
30162 | PyObject * obj0 = 0 ; | |
30163 | char *kwnames[] = { | |
30164 | (char *) "self", NULL | |
30165 | }; | |
30166 | ||
30167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
30168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30169 | { | |
30170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30171 | result = (wxSizer *)(arg1)->GetSizer(); | |
30172 | ||
30173 | wxPyEndAllowThreads(__tstate); | |
30174 | if (PyErr_Occurred()) SWIG_fail; | |
30175 | } | |
30176 | { | |
30177 | resultobj = wxPyMake_wxSizer(result); | |
30178 | } | |
30179 | return resultobj; | |
30180 | fail: | |
30181 | return NULL; | |
30182 | } | |
30183 | ||
30184 | ||
30185 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30186 | PyObject *resultobj; | |
30187 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30188 | wxSizer *arg2 = (wxSizer *) 0 ; | |
30189 | PyObject * obj0 = 0 ; | |
30190 | PyObject * obj1 = 0 ; | |
30191 | char *kwnames[] = { | |
30192 | (char *) "self",(char *) "sizer", NULL | |
30193 | }; | |
30194 | ||
30195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) 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 **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30198 | { | |
30199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30200 | (arg1)->SetSizer(arg2); | |
30201 | ||
30202 | wxPyEndAllowThreads(__tstate); | |
30203 | if (PyErr_Occurred()) SWIG_fail; | |
30204 | } | |
30205 | Py_INCREF(Py_None); resultobj = Py_None; | |
30206 | return resultobj; | |
30207 | fail: | |
30208 | return NULL; | |
30209 | } | |
30210 | ||
30211 | ||
30212 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30213 | PyObject *resultobj; | |
30214 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30215 | wxSize *result; | |
30216 | PyObject * obj0 = 0 ; | |
30217 | char *kwnames[] = { | |
30218 | (char *) "self", NULL | |
30219 | }; | |
30220 | ||
30221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
30222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30223 | { | |
30224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30225 | { | |
30226 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
30227 | result = (wxSize *) &_result_ref; | |
30228 | } | |
30229 | ||
30230 | wxPyEndAllowThreads(__tstate); | |
30231 | if (PyErr_Occurred()) SWIG_fail; | |
30232 | } | |
30233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
30234 | return resultobj; | |
30235 | fail: | |
30236 | return NULL; | |
30237 | } | |
30238 | ||
30239 | ||
30240 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30241 | PyObject *resultobj; | |
30242 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30243 | wxSize *arg2 = 0 ; | |
30244 | wxSize temp2 ; | |
30245 | PyObject * obj0 = 0 ; | |
30246 | PyObject * obj1 = 0 ; | |
30247 | char *kwnames[] = { | |
30248 | (char *) "self",(char *) "size", NULL | |
30249 | }; | |
30250 | ||
30251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
30252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30253 | { | |
30254 | arg2 = &temp2; | |
30255 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
30256 | } | |
30257 | { | |
30258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30259 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
30260 | ||
30261 | wxPyEndAllowThreads(__tstate); | |
30262 | if (PyErr_Occurred()) SWIG_fail; | |
30263 | } | |
30264 | Py_INCREF(Py_None); resultobj = Py_None; | |
30265 | return resultobj; | |
30266 | fail: | |
30267 | return NULL; | |
30268 | } | |
30269 | ||
30270 | ||
30271 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30272 | PyObject *resultobj; | |
30273 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30274 | bool arg2 ; | |
30275 | PyObject * obj0 = 0 ; | |
30276 | PyObject * obj1 = 0 ; | |
30277 | char *kwnames[] = { | |
30278 | (char *) "self",(char *) "show", NULL | |
30279 | }; | |
30280 | ||
30281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
30282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30283 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
30284 | if (PyErr_Occurred()) SWIG_fail; | |
30285 | { | |
30286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30287 | (arg1)->Show(arg2); | |
30288 | ||
30289 | wxPyEndAllowThreads(__tstate); | |
30290 | if (PyErr_Occurred()) SWIG_fail; | |
30291 | } | |
30292 | Py_INCREF(Py_None); resultobj = Py_None; | |
30293 | return resultobj; | |
30294 | fail: | |
30295 | return NULL; | |
30296 | } | |
30297 | ||
30298 | ||
30299 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30300 | PyObject *resultobj; | |
30301 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30302 | bool result; | |
30303 | PyObject * obj0 = 0 ; | |
30304 | char *kwnames[] = { | |
30305 | (char *) "self", NULL | |
30306 | }; | |
30307 | ||
30308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
30309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30310 | { | |
30311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30312 | result = (bool)(arg1)->IsShown(); | |
30313 | ||
30314 | wxPyEndAllowThreads(__tstate); | |
30315 | if (PyErr_Occurred()) SWIG_fail; | |
30316 | } | |
30317 | resultobj = PyInt_FromLong((long)result); | |
30318 | return resultobj; | |
30319 | fail: | |
30320 | return NULL; | |
30321 | } | |
30322 | ||
30323 | ||
30324 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30325 | PyObject *resultobj; | |
30326 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30327 | wxPoint result; | |
30328 | PyObject * obj0 = 0 ; | |
30329 | char *kwnames[] = { | |
30330 | (char *) "self", NULL | |
30331 | }; | |
30332 | ||
30333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
30334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30335 | { | |
30336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30337 | result = (arg1)->GetPosition(); | |
30338 | ||
30339 | wxPyEndAllowThreads(__tstate); | |
30340 | if (PyErr_Occurred()) SWIG_fail; | |
30341 | } | |
30342 | { | |
30343 | wxPoint * resultptr; | |
30344 | resultptr = new wxPoint((wxPoint &) result); | |
30345 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
30346 | } | |
30347 | return resultobj; | |
30348 | fail: | |
30349 | return NULL; | |
30350 | } | |
30351 | ||
30352 | ||
30353 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30354 | PyObject *resultobj; | |
30355 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
30356 | PyObject *result; | |
30357 | PyObject * obj0 = 0 ; | |
30358 | char *kwnames[] = { | |
30359 | (char *) "self", NULL | |
30360 | }; | |
30361 | ||
30362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
30363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30364 | { | |
30365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30366 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
30367 | ||
30368 | wxPyEndAllowThreads(__tstate); | |
30369 | if (PyErr_Occurred()) SWIG_fail; | |
30370 | } | |
30371 | resultobj = result; | |
30372 | return resultobj; | |
30373 | fail: | |
30374 | return NULL; | |
30375 | } | |
30376 | ||
30377 | ||
30378 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
30379 | PyObject *obj; | |
30380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30381 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
30382 | Py_INCREF(obj); | |
30383 | return Py_BuildValue((char *)""); | |
30384 | } | |
30385 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30386 | PyObject *resultobj; | |
30387 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30388 | PyObject *arg2 = (PyObject *) 0 ; | |
30389 | PyObject * obj0 = 0 ; | |
30390 | PyObject * obj1 = 0 ; | |
30391 | char *kwnames[] = { | |
30392 | (char *) "self",(char *) "_self", NULL | |
30393 | }; | |
30394 | ||
30395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
30396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30397 | arg2 = obj1; | |
30398 | { | |
30399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30400 | wxSizer__setOORInfo(arg1,arg2); | |
30401 | ||
30402 | wxPyEndAllowThreads(__tstate); | |
30403 | if (PyErr_Occurred()) SWIG_fail; | |
30404 | } | |
30405 | Py_INCREF(Py_None); resultobj = Py_None; | |
30406 | return resultobj; | |
30407 | fail: | |
30408 | return NULL; | |
30409 | } | |
30410 | ||
30411 | ||
30412 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30413 | PyObject *resultobj; | |
30414 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30415 | PyObject *arg2 = (PyObject *) 0 ; | |
30416 | int arg3 = (int) 0 ; | |
30417 | int arg4 = (int) 0 ; | |
30418 | int arg5 = (int) 0 ; | |
30419 | PyObject *arg6 = (PyObject *) NULL ; | |
30420 | PyObject * obj0 = 0 ; | |
30421 | PyObject * obj1 = 0 ; | |
30422 | PyObject * obj5 = 0 ; | |
30423 | char *kwnames[] = { | |
30424 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30425 | }; | |
30426 | ||
30427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Add",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30429 | arg2 = obj1; | |
30430 | if (obj5) { | |
30431 | arg6 = obj5; | |
30432 | } | |
30433 | { | |
30434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30435 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
30436 | ||
30437 | wxPyEndAllowThreads(__tstate); | |
30438 | if (PyErr_Occurred()) SWIG_fail; | |
30439 | } | |
30440 | Py_INCREF(Py_None); resultobj = Py_None; | |
30441 | return resultobj; | |
30442 | fail: | |
30443 | return NULL; | |
30444 | } | |
30445 | ||
30446 | ||
30447 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30448 | PyObject *resultobj; | |
30449 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30450 | int arg2 ; | |
30451 | PyObject *arg3 = (PyObject *) 0 ; | |
30452 | int arg4 = (int) 0 ; | |
30453 | int arg5 = (int) 0 ; | |
30454 | int arg6 = (int) 0 ; | |
30455 | PyObject *arg7 = (PyObject *) NULL ; | |
30456 | PyObject * obj0 = 0 ; | |
30457 | PyObject * obj2 = 0 ; | |
30458 | PyObject * obj6 = 0 ; | |
30459 | char *kwnames[] = { | |
30460 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30461 | }; | |
30462 | ||
30463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|iiiO:Sizer_Insert",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
30464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30465 | arg3 = obj2; | |
30466 | if (obj6) { | |
30467 | arg7 = obj6; | |
30468 | } | |
30469 | { | |
30470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30471 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
30472 | ||
30473 | wxPyEndAllowThreads(__tstate); | |
30474 | if (PyErr_Occurred()) SWIG_fail; | |
30475 | } | |
30476 | Py_INCREF(Py_None); resultobj = Py_None; | |
30477 | return resultobj; | |
30478 | fail: | |
30479 | return NULL; | |
30480 | } | |
30481 | ||
30482 | ||
30483 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30484 | PyObject *resultobj; | |
30485 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30486 | PyObject *arg2 = (PyObject *) 0 ; | |
30487 | int arg3 = (int) 0 ; | |
30488 | int arg4 = (int) 0 ; | |
30489 | int arg5 = (int) 0 ; | |
30490 | PyObject *arg6 = (PyObject *) NULL ; | |
30491 | PyObject * obj0 = 0 ; | |
30492 | PyObject * obj1 = 0 ; | |
30493 | PyObject * obj5 = 0 ; | |
30494 | char *kwnames[] = { | |
30495 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
30496 | }; | |
30497 | ||
30498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiiO:Sizer_Prepend",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
30499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30500 | arg2 = obj1; | |
30501 | if (obj5) { | |
30502 | arg6 = obj5; | |
30503 | } | |
30504 | { | |
30505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30506 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
30507 | ||
30508 | wxPyEndAllowThreads(__tstate); | |
30509 | if (PyErr_Occurred()) SWIG_fail; | |
30510 | } | |
30511 | Py_INCREF(Py_None); resultobj = Py_None; | |
30512 | return resultobj; | |
30513 | fail: | |
30514 | return NULL; | |
30515 | } | |
30516 | ||
30517 | ||
30518 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30519 | PyObject *resultobj; | |
30520 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30521 | PyObject *arg2 = (PyObject *) 0 ; | |
30522 | bool result; | |
30523 | PyObject * obj0 = 0 ; | |
30524 | PyObject * obj1 = 0 ; | |
30525 | char *kwnames[] = { | |
30526 | (char *) "self",(char *) "item", NULL | |
30527 | }; | |
30528 | ||
30529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30531 | arg2 = obj1; | |
30532 | { | |
30533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30534 | result = (bool)wxSizer_Remove(arg1,arg2); | |
30535 | ||
30536 | wxPyEndAllowThreads(__tstate); | |
30537 | if (PyErr_Occurred()) SWIG_fail; | |
30538 | } | |
30539 | resultobj = PyInt_FromLong((long)result); | |
30540 | return resultobj; | |
30541 | fail: | |
30542 | return NULL; | |
30543 | } | |
30544 | ||
30545 | ||
30546 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30547 | PyObject *resultobj; | |
30548 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30549 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
30550 | wxSize *arg3 = 0 ; |
30551 | wxSize temp3 ; | |
d14a1e28 RD |
30552 | PyObject * obj0 = 0 ; |
30553 | PyObject * obj1 = 0 ; | |
30554 | PyObject * obj2 = 0 ; | |
30555 | char *kwnames[] = { | |
30556 | (char *) "self",(char *) "item",(char *) "size", NULL | |
30557 | }; | |
30558 | ||
30559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30561 | arg2 = obj1; | |
423f194a RD |
30562 | { |
30563 | arg3 = &temp3; | |
30564 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
30565 | } | |
d14a1e28 RD |
30566 | { |
30567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 30568 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
30569 | |
30570 | wxPyEndAllowThreads(__tstate); | |
30571 | if (PyErr_Occurred()) SWIG_fail; | |
30572 | } | |
30573 | Py_INCREF(Py_None); resultobj = Py_None; | |
30574 | return resultobj; | |
30575 | fail: | |
30576 | return NULL; | |
30577 | } | |
30578 | ||
30579 | ||
30580 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30581 | PyObject *resultobj; | |
30582 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30583 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
30584 | PyObject * obj0 = 0 ; | |
30585 | PyObject * obj1 = 0 ; | |
30586 | char *kwnames[] = { | |
30587 | (char *) "self",(char *) "item", NULL | |
30588 | }; | |
30589 | ||
30590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
30591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30592 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30593 | { | |
30594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30595 | (arg1)->Add(arg2); | |
30596 | ||
30597 | wxPyEndAllowThreads(__tstate); | |
30598 | if (PyErr_Occurred()) SWIG_fail; | |
30599 | } | |
30600 | Py_INCREF(Py_None); resultobj = Py_None; | |
30601 | return resultobj; | |
30602 | fail: | |
30603 | return NULL; | |
30604 | } | |
30605 | ||
30606 | ||
30607 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30608 | PyObject *resultobj; | |
30609 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30610 | size_t arg2 ; | |
30611 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
30612 | PyObject * obj0 = 0 ; | |
30613 | PyObject * obj1 = 0 ; | |
30614 | PyObject * obj2 = 0 ; | |
30615 | char *kwnames[] = { | |
30616 | (char *) "self",(char *) "index",(char *) "item", NULL | |
30617 | }; | |
30618 | ||
30619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30621 | arg2 = (size_t) PyInt_AsLong(obj1); | |
30622 | if (PyErr_Occurred()) SWIG_fail; | |
30623 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30624 | { | |
30625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30626 | (arg1)->Insert(arg2,arg3); | |
30627 | ||
30628 | wxPyEndAllowThreads(__tstate); | |
30629 | if (PyErr_Occurred()) SWIG_fail; | |
30630 | } | |
30631 | Py_INCREF(Py_None); resultobj = Py_None; | |
30632 | return resultobj; | |
30633 | fail: | |
30634 | return NULL; | |
30635 | } | |
30636 | ||
30637 | ||
30638 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30639 | PyObject *resultobj; | |
30640 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30641 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
30642 | PyObject * obj0 = 0 ; | |
30643 | PyObject * obj1 = 0 ; | |
30644 | char *kwnames[] = { | |
30645 | (char *) "self",(char *) "item", NULL | |
30646 | }; | |
30647 | ||
30648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30650 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30651 | { | |
30652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30653 | (arg1)->Prepend(arg2); | |
30654 | ||
30655 | wxPyEndAllowThreads(__tstate); | |
30656 | if (PyErr_Occurred()) SWIG_fail; | |
30657 | } | |
30658 | Py_INCREF(Py_None); resultobj = Py_None; | |
30659 | return resultobj; | |
30660 | fail: | |
30661 | return NULL; | |
30662 | } | |
30663 | ||
30664 | ||
30665 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30666 | PyObject *resultobj; | |
30667 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30668 | int arg2 ; | |
30669 | int arg3 ; | |
30670 | int arg4 ; | |
30671 | int arg5 ; | |
30672 | PyObject * obj0 = 0 ; | |
30673 | char *kwnames[] = { | |
30674 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
30675 | }; | |
30676 | ||
30677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Sizer_SetDimension",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
30678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30679 | { | |
30680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30681 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
30682 | ||
30683 | wxPyEndAllowThreads(__tstate); | |
30684 | if (PyErr_Occurred()) SWIG_fail; | |
30685 | } | |
30686 | Py_INCREF(Py_None); resultobj = Py_None; | |
30687 | return resultobj; | |
30688 | fail: | |
30689 | return NULL; | |
30690 | } | |
30691 | ||
30692 | ||
30693 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30694 | PyObject *resultobj; | |
30695 | wxSizer *arg1 = (wxSizer *) 0 ; | |
41f1cec7 RD |
30696 | wxSize *arg2 = 0 ; |
30697 | wxSize temp2 ; | |
d14a1e28 RD |
30698 | PyObject * obj0 = 0 ; |
30699 | PyObject * obj1 = 0 ; | |
30700 | char *kwnames[] = { | |
30701 | (char *) "self",(char *) "size", NULL | |
30702 | }; | |
30703 | ||
30704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
30705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
41f1cec7 RD |
30706 | { |
30707 | arg2 = &temp2; | |
30708 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
30709 | } | |
d14a1e28 RD |
30710 | { |
30711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41f1cec7 | 30712 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
30713 | |
30714 | wxPyEndAllowThreads(__tstate); | |
30715 | if (PyErr_Occurred()) SWIG_fail; | |
30716 | } | |
30717 | Py_INCREF(Py_None); resultobj = Py_None; | |
30718 | return resultobj; | |
30719 | fail: | |
30720 | return NULL; | |
30721 | } | |
30722 | ||
30723 | ||
30724 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30725 | PyObject *resultobj; | |
30726 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30727 | wxSize result; | |
30728 | PyObject * obj0 = 0 ; | |
30729 | char *kwnames[] = { | |
30730 | (char *) "self", NULL | |
30731 | }; | |
30732 | ||
30733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
30734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30735 | { | |
30736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30737 | result = (arg1)->GetSize(); | |
30738 | ||
30739 | wxPyEndAllowThreads(__tstate); | |
30740 | if (PyErr_Occurred()) SWIG_fail; | |
30741 | } | |
30742 | { | |
30743 | wxSize * resultptr; | |
30744 | resultptr = new wxSize((wxSize &) result); | |
30745 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30746 | } | |
30747 | return resultobj; | |
30748 | fail: | |
30749 | return NULL; | |
30750 | } | |
30751 | ||
30752 | ||
30753 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30754 | PyObject *resultobj; | |
30755 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30756 | wxPoint result; | |
30757 | PyObject * obj0 = 0 ; | |
30758 | char *kwnames[] = { | |
30759 | (char *) "self", NULL | |
30760 | }; | |
30761 | ||
30762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
30763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30764 | { | |
30765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30766 | result = (arg1)->GetPosition(); | |
30767 | ||
30768 | wxPyEndAllowThreads(__tstate); | |
30769 | if (PyErr_Occurred()) SWIG_fail; | |
30770 | } | |
30771 | { | |
30772 | wxPoint * resultptr; | |
30773 | resultptr = new wxPoint((wxPoint &) result); | |
30774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
30775 | } | |
30776 | return resultobj; | |
30777 | fail: | |
30778 | return NULL; | |
30779 | } | |
30780 | ||
30781 | ||
30782 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30783 | PyObject *resultobj; | |
30784 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30785 | wxSize result; | |
30786 | PyObject * obj0 = 0 ; | |
30787 | char *kwnames[] = { | |
30788 | (char *) "self", NULL | |
30789 | }; | |
30790 | ||
30791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
30792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30793 | { | |
30794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30795 | result = (arg1)->GetMinSize(); | |
30796 | ||
30797 | wxPyEndAllowThreads(__tstate); | |
30798 | if (PyErr_Occurred()) SWIG_fail; | |
30799 | } | |
30800 | { | |
30801 | wxSize * resultptr; | |
30802 | resultptr = new wxSize((wxSize &) result); | |
30803 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30804 | } | |
30805 | return resultobj; | |
30806 | fail: | |
30807 | return NULL; | |
30808 | } | |
30809 | ||
30810 | ||
30811 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30812 | PyObject *resultobj; | |
30813 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30814 | PyObject * obj0 = 0 ; | |
30815 | char *kwnames[] = { | |
30816 | (char *) "self", NULL | |
30817 | }; | |
30818 | ||
30819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
30820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30821 | { | |
30822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30823 | (arg1)->RecalcSizes(); | |
30824 | ||
30825 | wxPyEndAllowThreads(__tstate); | |
30826 | if (PyErr_Occurred()) SWIG_fail; | |
30827 | } | |
30828 | Py_INCREF(Py_None); resultobj = Py_None; | |
30829 | return resultobj; | |
30830 | fail: | |
30831 | return NULL; | |
30832 | } | |
30833 | ||
30834 | ||
30835 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30836 | PyObject *resultobj; | |
30837 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30838 | wxSize result; | |
30839 | PyObject * obj0 = 0 ; | |
30840 | char *kwnames[] = { | |
30841 | (char *) "self", NULL | |
30842 | }; | |
30843 | ||
30844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
30845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30846 | { | |
30847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30848 | result = (arg1)->CalcMin(); | |
30849 | ||
30850 | wxPyEndAllowThreads(__tstate); | |
30851 | if (PyErr_Occurred()) SWIG_fail; | |
30852 | } | |
30853 | { | |
30854 | wxSize * resultptr; | |
30855 | resultptr = new wxSize((wxSize &) result); | |
30856 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30857 | } | |
30858 | return resultobj; | |
30859 | fail: | |
30860 | return NULL; | |
30861 | } | |
30862 | ||
30863 | ||
30864 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30865 | PyObject *resultobj; | |
30866 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30867 | PyObject * obj0 = 0 ; | |
30868 | char *kwnames[] = { | |
30869 | (char *) "self", NULL | |
30870 | }; | |
30871 | ||
30872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
30873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30874 | { | |
30875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30876 | (arg1)->Layout(); | |
30877 | ||
30878 | wxPyEndAllowThreads(__tstate); | |
30879 | if (PyErr_Occurred()) SWIG_fail; | |
30880 | } | |
30881 | Py_INCREF(Py_None); resultobj = Py_None; | |
30882 | return resultobj; | |
30883 | fail: | |
30884 | return NULL; | |
30885 | } | |
30886 | ||
30887 | ||
30888 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30889 | PyObject *resultobj; | |
30890 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30892 | wxSize result; | |
30893 | PyObject * obj0 = 0 ; | |
30894 | PyObject * obj1 = 0 ; | |
30895 | char *kwnames[] = { | |
30896 | (char *) "self",(char *) "window", NULL | |
30897 | }; | |
30898 | ||
30899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
30900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30901 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30902 | { | |
30903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30904 | result = (arg1)->Fit(arg2); | |
30905 | ||
30906 | wxPyEndAllowThreads(__tstate); | |
30907 | if (PyErr_Occurred()) SWIG_fail; | |
30908 | } | |
30909 | { | |
30910 | wxSize * resultptr; | |
30911 | resultptr = new wxSize((wxSize &) result); | |
30912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
30913 | } | |
30914 | return resultobj; | |
30915 | fail: | |
30916 | return NULL; | |
30917 | } | |
30918 | ||
30919 | ||
30920 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30921 | PyObject *resultobj; | |
30922 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30923 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30924 | PyObject * obj0 = 0 ; | |
30925 | PyObject * obj1 = 0 ; | |
30926 | char *kwnames[] = { | |
30927 | (char *) "self",(char *) "window", NULL | |
30928 | }; | |
30929 | ||
30930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
30931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30933 | { | |
30934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30935 | (arg1)->FitInside(arg2); | |
30936 | ||
30937 | wxPyEndAllowThreads(__tstate); | |
30938 | if (PyErr_Occurred()) SWIG_fail; | |
30939 | } | |
30940 | Py_INCREF(Py_None); resultobj = Py_None; | |
30941 | return resultobj; | |
30942 | fail: | |
30943 | return NULL; | |
30944 | } | |
30945 | ||
30946 | ||
30947 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30948 | PyObject *resultobj; | |
30949 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30950 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30951 | PyObject * obj0 = 0 ; | |
30952 | PyObject * obj1 = 0 ; | |
30953 | char *kwnames[] = { | |
30954 | (char *) "self",(char *) "window", NULL | |
30955 | }; | |
30956 | ||
30957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
30958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30959 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30960 | { | |
30961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30962 | (arg1)->SetSizeHints(arg2); | |
30963 | ||
30964 | wxPyEndAllowThreads(__tstate); | |
30965 | if (PyErr_Occurred()) SWIG_fail; | |
30966 | } | |
30967 | Py_INCREF(Py_None); resultobj = Py_None; | |
30968 | return resultobj; | |
30969 | fail: | |
30970 | return NULL; | |
30971 | } | |
30972 | ||
30973 | ||
30974 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30975 | PyObject *resultobj; | |
30976 | wxSizer *arg1 = (wxSizer *) 0 ; | |
30977 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30978 | PyObject * obj0 = 0 ; | |
30979 | PyObject * obj1 = 0 ; | |
30980 | char *kwnames[] = { | |
30981 | (char *) "self",(char *) "window", NULL | |
30982 | }; | |
30983 | ||
30984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
30985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30987 | { | |
30988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30989 | (arg1)->SetVirtualSizeHints(arg2); | |
30990 | ||
30991 | wxPyEndAllowThreads(__tstate); | |
30992 | if (PyErr_Occurred()) SWIG_fail; | |
30993 | } | |
30994 | Py_INCREF(Py_None); resultobj = Py_None; | |
30995 | return resultobj; | |
30996 | fail: | |
30997 | return NULL; | |
30998 | } | |
30999 | ||
31000 | ||
31001 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31002 | PyObject *resultobj; | |
31003 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 31004 | bool arg2 = (bool) False ; |
d14a1e28 RD |
31005 | PyObject * obj0 = 0 ; |
31006 | PyObject * obj1 = 0 ; | |
31007 | char *kwnames[] = { | |
31008 | (char *) "self",(char *) "delete_windows", NULL | |
31009 | }; | |
31010 | ||
31011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
31012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31013 | if (obj1) { | |
31014 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
31015 | if (PyErr_Occurred()) SWIG_fail; | |
31016 | } | |
31017 | { | |
31018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31019 | (arg1)->Clear(arg2); | |
31020 | ||
31021 | wxPyEndAllowThreads(__tstate); | |
31022 | if (PyErr_Occurred()) SWIG_fail; | |
31023 | } | |
31024 | Py_INCREF(Py_None); resultobj = Py_None; | |
31025 | return resultobj; | |
31026 | fail: | |
31027 | return NULL; | |
31028 | } | |
31029 | ||
31030 | ||
31031 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31032 | PyObject *resultobj; | |
31033 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31034 | PyObject * obj0 = 0 ; | |
31035 | char *kwnames[] = { | |
31036 | (char *) "self", NULL | |
31037 | }; | |
31038 | ||
31039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
31040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31041 | { | |
31042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31043 | (arg1)->DeleteWindows(); | |
31044 | ||
31045 | wxPyEndAllowThreads(__tstate); | |
31046 | if (PyErr_Occurred()) SWIG_fail; | |
31047 | } | |
31048 | Py_INCREF(Py_None); resultobj = Py_None; | |
31049 | return resultobj; | |
31050 | fail: | |
31051 | return NULL; | |
31052 | } | |
31053 | ||
31054 | ||
31055 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31056 | PyObject *resultobj; | |
31057 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31058 | PyObject *result; | |
31059 | PyObject * obj0 = 0 ; | |
31060 | char *kwnames[] = { | |
31061 | (char *) "self", NULL | |
31062 | }; | |
31063 | ||
31064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
31065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31066 | { | |
31067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31068 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
31069 | ||
31070 | wxPyEndAllowThreads(__tstate); | |
31071 | if (PyErr_Occurred()) SWIG_fail; | |
31072 | } | |
31073 | resultobj = result; | |
31074 | return resultobj; | |
31075 | fail: | |
31076 | return NULL; | |
31077 | } | |
31078 | ||
31079 | ||
31080 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31081 | PyObject *resultobj; | |
31082 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31083 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 31084 | bool arg3 = (bool) True ; |
d14a1e28 RD |
31085 | PyObject * obj0 = 0 ; |
31086 | PyObject * obj1 = 0 ; | |
31087 | PyObject * obj2 = 0 ; | |
31088 | char *kwnames[] = { | |
31089 | (char *) "self",(char *) "item",(char *) "show", NULL | |
31090 | }; | |
31091 | ||
31092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31094 | arg2 = obj1; | |
31095 | if (obj2) { | |
31096 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
31097 | if (PyErr_Occurred()) SWIG_fail; | |
31098 | } | |
31099 | { | |
31100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31101 | wxSizer_Show(arg1,arg2,arg3); | |
31102 | ||
31103 | wxPyEndAllowThreads(__tstate); | |
31104 | if (PyErr_Occurred()) SWIG_fail; | |
31105 | } | |
31106 | Py_INCREF(Py_None); resultobj = Py_None; | |
31107 | return resultobj; | |
31108 | fail: | |
31109 | return NULL; | |
31110 | } | |
31111 | ||
31112 | ||
31113 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31114 | PyObject *resultobj; | |
31115 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31116 | PyObject *arg2 = (PyObject *) 0 ; | |
31117 | PyObject * obj0 = 0 ; | |
31118 | PyObject * obj1 = 0 ; | |
31119 | char *kwnames[] = { | |
31120 | (char *) "self",(char *) "item", NULL | |
31121 | }; | |
31122 | ||
31123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
31124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31125 | arg2 = obj1; | |
31126 | { | |
31127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31128 | wxSizer_Hide(arg1,arg2); | |
31129 | ||
31130 | wxPyEndAllowThreads(__tstate); | |
31131 | if (PyErr_Occurred()) SWIG_fail; | |
31132 | } | |
31133 | Py_INCREF(Py_None); resultobj = Py_None; | |
31134 | return resultobj; | |
31135 | fail: | |
31136 | return NULL; | |
31137 | } | |
31138 | ||
31139 | ||
31140 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31141 | PyObject *resultobj; | |
31142 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31143 | PyObject *arg2 = (PyObject *) 0 ; | |
31144 | bool result; | |
31145 | PyObject * obj0 = 0 ; | |
31146 | PyObject * obj1 = 0 ; | |
31147 | char *kwnames[] = { | |
31148 | (char *) "self",(char *) "item", NULL | |
31149 | }; | |
31150 | ||
31151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
31152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31153 | arg2 = obj1; | |
31154 | { | |
31155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31156 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
31157 | ||
31158 | wxPyEndAllowThreads(__tstate); | |
31159 | if (PyErr_Occurred()) SWIG_fail; | |
31160 | } | |
31161 | resultobj = PyInt_FromLong((long)result); | |
31162 | return resultobj; | |
31163 | fail: | |
31164 | return NULL; | |
31165 | } | |
31166 | ||
31167 | ||
31168 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31169 | PyObject *resultobj; | |
31170 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31171 | bool arg2 ; | |
31172 | PyObject * obj0 = 0 ; | |
31173 | PyObject * obj1 = 0 ; | |
31174 | char *kwnames[] = { | |
31175 | (char *) "self",(char *) "show", NULL | |
31176 | }; | |
31177 | ||
31178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
31179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31180 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
31181 | if (PyErr_Occurred()) SWIG_fail; | |
31182 | { | |
31183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31184 | (arg1)->ShowItems(arg2); | |
31185 | ||
31186 | wxPyEndAllowThreads(__tstate); | |
31187 | if (PyErr_Occurred()) SWIG_fail; | |
31188 | } | |
31189 | Py_INCREF(Py_None); resultobj = Py_None; | |
31190 | return resultobj; | |
31191 | fail: | |
31192 | return NULL; | |
31193 | } | |
31194 | ||
31195 | ||
31196 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
31197 | PyObject *obj; | |
31198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31199 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
31200 | Py_INCREF(obj); | |
31201 | return Py_BuildValue((char *)""); | |
31202 | } | |
31203 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31204 | PyObject *resultobj; | |
31205 | wxPySizer *result; | |
31206 | char *kwnames[] = { | |
31207 | NULL | |
31208 | }; | |
31209 | ||
31210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
31211 | { | |
31212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31213 | result = (wxPySizer *)new wxPySizer(); | |
31214 | ||
31215 | wxPyEndAllowThreads(__tstate); | |
31216 | if (PyErr_Occurred()) SWIG_fail; | |
31217 | } | |
31218 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
31219 | return resultobj; | |
31220 | fail: | |
31221 | return NULL; | |
31222 | } | |
31223 | ||
31224 | ||
31225 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31226 | PyObject *resultobj; | |
31227 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
31228 | PyObject *arg2 = (PyObject *) 0 ; | |
31229 | PyObject *arg3 = (PyObject *) 0 ; | |
31230 | PyObject * obj0 = 0 ; | |
31231 | PyObject * obj1 = 0 ; | |
31232 | PyObject * obj2 = 0 ; | |
31233 | char *kwnames[] = { | |
31234 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
31235 | }; | |
31236 | ||
31237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31239 | arg2 = obj1; | |
31240 | arg3 = obj2; | |
31241 | { | |
31242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31243 | (arg1)->_setCallbackInfo(arg2,arg3); | |
31244 | ||
31245 | wxPyEndAllowThreads(__tstate); | |
31246 | if (PyErr_Occurred()) SWIG_fail; | |
31247 | } | |
31248 | Py_INCREF(Py_None); resultobj = Py_None; | |
31249 | return resultobj; | |
31250 | fail: | |
31251 | return NULL; | |
31252 | } | |
31253 | ||
31254 | ||
31255 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
31256 | PyObject *obj; | |
31257 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31258 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
31259 | Py_INCREF(obj); | |
31260 | return Py_BuildValue((char *)""); | |
31261 | } | |
31262 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31263 | PyObject *resultobj; | |
31264 | int arg1 = (int) wxHORIZONTAL ; | |
31265 | wxBoxSizer *result; | |
31266 | char *kwnames[] = { | |
31267 | (char *) "orient", NULL | |
31268 | }; | |
31269 | ||
31270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_BoxSizer",kwnames,&arg1)) goto fail; | |
31271 | { | |
31272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31273 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
31274 | ||
31275 | wxPyEndAllowThreads(__tstate); | |
31276 | if (PyErr_Occurred()) SWIG_fail; | |
31277 | } | |
31278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
31279 | return resultobj; | |
31280 | fail: | |
31281 | return NULL; | |
31282 | } | |
31283 | ||
31284 | ||
31285 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31286 | PyObject *resultobj; | |
31287 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31288 | int result; | |
31289 | PyObject * obj0 = 0 ; | |
31290 | char *kwnames[] = { | |
31291 | (char *) "self", NULL | |
31292 | }; | |
31293 | ||
31294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
31295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31296 | { | |
31297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31298 | result = (int)(arg1)->GetOrientation(); | |
31299 | ||
31300 | wxPyEndAllowThreads(__tstate); | |
31301 | if (PyErr_Occurred()) SWIG_fail; | |
31302 | } | |
31303 | resultobj = PyInt_FromLong((long)result); | |
31304 | return resultobj; | |
31305 | fail: | |
31306 | return NULL; | |
31307 | } | |
31308 | ||
31309 | ||
31310 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31311 | PyObject *resultobj; | |
31312 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31313 | int arg2 ; | |
31314 | PyObject * obj0 = 0 ; | |
31315 | char *kwnames[] = { | |
31316 | (char *) "self",(char *) "orient", NULL | |
31317 | }; | |
31318 | ||
31319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BoxSizer_SetOrientation",kwnames,&obj0,&arg2)) goto fail; | |
31320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31321 | { | |
31322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31323 | (arg1)->SetOrientation(arg2); | |
31324 | ||
31325 | wxPyEndAllowThreads(__tstate); | |
31326 | if (PyErr_Occurred()) SWIG_fail; | |
31327 | } | |
31328 | Py_INCREF(Py_None); resultobj = Py_None; | |
31329 | return resultobj; | |
31330 | fail: | |
31331 | return NULL; | |
31332 | } | |
31333 | ||
31334 | ||
31335 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31336 | PyObject *resultobj; | |
31337 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31338 | PyObject * obj0 = 0 ; | |
31339 | char *kwnames[] = { | |
31340 | (char *) "self", NULL | |
31341 | }; | |
31342 | ||
31343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31345 | { | |
31346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31347 | (arg1)->RecalcSizes(); | |
31348 | ||
31349 | wxPyEndAllowThreads(__tstate); | |
31350 | if (PyErr_Occurred()) SWIG_fail; | |
31351 | } | |
31352 | Py_INCREF(Py_None); resultobj = Py_None; | |
31353 | return resultobj; | |
31354 | fail: | |
31355 | return NULL; | |
31356 | } | |
31357 | ||
31358 | ||
31359 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31360 | PyObject *resultobj; | |
31361 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
31362 | wxSize result; | |
31363 | PyObject * obj0 = 0 ; | |
31364 | char *kwnames[] = { | |
31365 | (char *) "self", NULL | |
31366 | }; | |
31367 | ||
31368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31370 | { | |
31371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31372 | result = (arg1)->CalcMin(); | |
31373 | ||
31374 | wxPyEndAllowThreads(__tstate); | |
31375 | if (PyErr_Occurred()) SWIG_fail; | |
31376 | } | |
31377 | { | |
31378 | wxSize * resultptr; | |
31379 | resultptr = new wxSize((wxSize &) result); | |
31380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31381 | } | |
31382 | return resultobj; | |
31383 | fail: | |
31384 | return NULL; | |
31385 | } | |
31386 | ||
31387 | ||
31388 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31389 | PyObject *obj; | |
31390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31391 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
31392 | Py_INCREF(obj); | |
31393 | return Py_BuildValue((char *)""); | |
31394 | } | |
31395 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31396 | PyObject *resultobj; | |
31397 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
31398 | int arg2 = (int) wxHORIZONTAL ; | |
31399 | wxStaticBoxSizer *result; | |
31400 | PyObject * obj0 = 0 ; | |
31401 | char *kwnames[] = { | |
31402 | (char *) "box",(char *) "orient", NULL | |
31403 | }; | |
31404 | ||
31405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_StaticBoxSizer",kwnames,&obj0,&arg2)) goto fail; | |
31406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31407 | { | |
31408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31409 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
31410 | ||
31411 | wxPyEndAllowThreads(__tstate); | |
31412 | if (PyErr_Occurred()) SWIG_fail; | |
31413 | } | |
31414 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
31415 | return resultobj; | |
31416 | fail: | |
31417 | return NULL; | |
31418 | } | |
31419 | ||
31420 | ||
31421 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31422 | PyObject *resultobj; | |
31423 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31424 | wxStaticBox *result; | |
31425 | PyObject * obj0 = 0 ; | |
31426 | char *kwnames[] = { | |
31427 | (char *) "self", NULL | |
31428 | }; | |
31429 | ||
31430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
31431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31432 | { | |
31433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31434 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
31435 | ||
31436 | wxPyEndAllowThreads(__tstate); | |
31437 | if (PyErr_Occurred()) SWIG_fail; | |
31438 | } | |
31439 | { | |
31440 | resultobj = wxPyMake_wxObject(result); | |
31441 | } | |
31442 | return resultobj; | |
31443 | fail: | |
31444 | return NULL; | |
31445 | } | |
31446 | ||
31447 | ||
31448 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31449 | PyObject *resultobj; | |
31450 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31451 | PyObject * obj0 = 0 ; | |
31452 | char *kwnames[] = { | |
31453 | (char *) "self", NULL | |
31454 | }; | |
31455 | ||
31456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31458 | { | |
31459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31460 | (arg1)->RecalcSizes(); | |
31461 | ||
31462 | wxPyEndAllowThreads(__tstate); | |
31463 | if (PyErr_Occurred()) SWIG_fail; | |
31464 | } | |
31465 | Py_INCREF(Py_None); resultobj = Py_None; | |
31466 | return resultobj; | |
31467 | fail: | |
31468 | return NULL; | |
31469 | } | |
31470 | ||
31471 | ||
31472 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31473 | PyObject *resultobj; | |
31474 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
31475 | wxSize result; | |
31476 | PyObject * obj0 = 0 ; | |
31477 | char *kwnames[] = { | |
31478 | (char *) "self", NULL | |
31479 | }; | |
31480 | ||
31481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31483 | { | |
31484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31485 | result = (arg1)->CalcMin(); | |
31486 | ||
31487 | wxPyEndAllowThreads(__tstate); | |
31488 | if (PyErr_Occurred()) SWIG_fail; | |
31489 | } | |
31490 | { | |
31491 | wxSize * resultptr; | |
31492 | resultptr = new wxSize((wxSize &) result); | |
31493 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31494 | } | |
31495 | return resultobj; | |
31496 | fail: | |
31497 | return NULL; | |
31498 | } | |
31499 | ||
31500 | ||
31501 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
31502 | PyObject *obj; | |
31503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31504 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
31505 | Py_INCREF(obj); | |
31506 | return Py_BuildValue((char *)""); | |
31507 | } | |
31508 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31509 | PyObject *resultobj; | |
31510 | int arg1 = (int) 1 ; | |
31511 | int arg2 = (int) 0 ; | |
31512 | int arg3 = (int) 0 ; | |
31513 | int arg4 = (int) 0 ; | |
31514 | wxGridSizer *result; | |
31515 | char *kwnames[] = { | |
31516 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
31517 | }; | |
31518 | ||
31519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_GridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
31520 | { | |
31521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31522 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
31523 | ||
31524 | wxPyEndAllowThreads(__tstate); | |
31525 | if (PyErr_Occurred()) SWIG_fail; | |
31526 | } | |
31527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
31528 | return resultobj; | |
31529 | fail: | |
31530 | return NULL; | |
31531 | } | |
31532 | ||
31533 | ||
31534 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31535 | PyObject *resultobj; | |
31536 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31537 | PyObject * obj0 = 0 ; | |
31538 | char *kwnames[] = { | |
31539 | (char *) "self", NULL | |
31540 | }; | |
31541 | ||
31542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31544 | { | |
31545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31546 | (arg1)->RecalcSizes(); | |
31547 | ||
31548 | wxPyEndAllowThreads(__tstate); | |
31549 | if (PyErr_Occurred()) SWIG_fail; | |
31550 | } | |
31551 | Py_INCREF(Py_None); resultobj = Py_None; | |
31552 | return resultobj; | |
31553 | fail: | |
31554 | return NULL; | |
31555 | } | |
31556 | ||
31557 | ||
31558 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31559 | PyObject *resultobj; | |
31560 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31561 | wxSize result; | |
31562 | PyObject * obj0 = 0 ; | |
31563 | char *kwnames[] = { | |
31564 | (char *) "self", NULL | |
31565 | }; | |
31566 | ||
31567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31569 | { | |
31570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31571 | result = (arg1)->CalcMin(); | |
31572 | ||
31573 | wxPyEndAllowThreads(__tstate); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | } | |
31576 | { | |
31577 | wxSize * resultptr; | |
31578 | resultptr = new wxSize((wxSize &) result); | |
31579 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31580 | } | |
31581 | return resultobj; | |
31582 | fail: | |
31583 | return NULL; | |
31584 | } | |
31585 | ||
31586 | ||
31587 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31588 | PyObject *resultobj; | |
31589 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31590 | int arg2 ; | |
31591 | PyObject * obj0 = 0 ; | |
31592 | char *kwnames[] = { | |
31593 | (char *) "self",(char *) "cols", NULL | |
31594 | }; | |
31595 | ||
31596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetCols",kwnames,&obj0,&arg2)) goto fail; | |
31597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31598 | { | |
31599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31600 | (arg1)->SetCols(arg2); | |
31601 | ||
31602 | wxPyEndAllowThreads(__tstate); | |
31603 | if (PyErr_Occurred()) SWIG_fail; | |
31604 | } | |
31605 | Py_INCREF(Py_None); resultobj = Py_None; | |
31606 | return resultobj; | |
31607 | fail: | |
31608 | return NULL; | |
31609 | } | |
31610 | ||
31611 | ||
31612 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31613 | PyObject *resultobj; | |
31614 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31615 | int arg2 ; | |
31616 | PyObject * obj0 = 0 ; | |
31617 | char *kwnames[] = { | |
31618 | (char *) "self",(char *) "rows", NULL | |
31619 | }; | |
31620 | ||
31621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
31622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31623 | { | |
31624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31625 | (arg1)->SetRows(arg2); | |
31626 | ||
31627 | wxPyEndAllowThreads(__tstate); | |
31628 | if (PyErr_Occurred()) SWIG_fail; | |
31629 | } | |
31630 | Py_INCREF(Py_None); resultobj = Py_None; | |
31631 | return resultobj; | |
31632 | fail: | |
31633 | return NULL; | |
31634 | } | |
31635 | ||
31636 | ||
31637 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31638 | PyObject *resultobj; | |
31639 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31640 | int arg2 ; | |
31641 | PyObject * obj0 = 0 ; | |
31642 | char *kwnames[] = { | |
31643 | (char *) "self",(char *) "gap", NULL | |
31644 | }; | |
31645 | ||
31646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetVGap",kwnames,&obj0,&arg2)) goto fail; | |
31647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31648 | { | |
31649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31650 | (arg1)->SetVGap(arg2); | |
31651 | ||
31652 | wxPyEndAllowThreads(__tstate); | |
31653 | if (PyErr_Occurred()) SWIG_fail; | |
31654 | } | |
31655 | Py_INCREF(Py_None); resultobj = Py_None; | |
31656 | return resultobj; | |
31657 | fail: | |
31658 | return NULL; | |
31659 | } | |
31660 | ||
31661 | ||
31662 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31663 | PyObject *resultobj; | |
31664 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31665 | int arg2 ; | |
31666 | PyObject * obj0 = 0 ; | |
31667 | char *kwnames[] = { | |
31668 | (char *) "self",(char *) "gap", NULL | |
31669 | }; | |
31670 | ||
31671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridSizer_SetHGap",kwnames,&obj0,&arg2)) goto fail; | |
31672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31673 | { | |
31674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31675 | (arg1)->SetHGap(arg2); | |
31676 | ||
31677 | wxPyEndAllowThreads(__tstate); | |
31678 | if (PyErr_Occurred()) SWIG_fail; | |
31679 | } | |
31680 | Py_INCREF(Py_None); resultobj = Py_None; | |
31681 | return resultobj; | |
31682 | fail: | |
31683 | return NULL; | |
31684 | } | |
31685 | ||
31686 | ||
31687 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31688 | PyObject *resultobj; | |
31689 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31690 | int result; | |
31691 | PyObject * obj0 = 0 ; | |
31692 | char *kwnames[] = { | |
31693 | (char *) "self", NULL | |
31694 | }; | |
31695 | ||
31696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
31697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31698 | { | |
31699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31700 | result = (int)(arg1)->GetCols(); | |
31701 | ||
31702 | wxPyEndAllowThreads(__tstate); | |
31703 | if (PyErr_Occurred()) SWIG_fail; | |
31704 | } | |
31705 | resultobj = PyInt_FromLong((long)result); | |
31706 | return resultobj; | |
31707 | fail: | |
31708 | return NULL; | |
31709 | } | |
31710 | ||
31711 | ||
31712 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31713 | PyObject *resultobj; | |
31714 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31715 | int result; | |
31716 | PyObject * obj0 = 0 ; | |
31717 | char *kwnames[] = { | |
31718 | (char *) "self", NULL | |
31719 | }; | |
31720 | ||
31721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
31722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31723 | { | |
31724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31725 | result = (int)(arg1)->GetRows(); | |
31726 | ||
31727 | wxPyEndAllowThreads(__tstate); | |
31728 | if (PyErr_Occurred()) SWIG_fail; | |
31729 | } | |
31730 | resultobj = PyInt_FromLong((long)result); | |
31731 | return resultobj; | |
31732 | fail: | |
31733 | return NULL; | |
31734 | } | |
31735 | ||
31736 | ||
31737 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31738 | PyObject *resultobj; | |
31739 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31740 | int result; | |
31741 | PyObject * obj0 = 0 ; | |
31742 | char *kwnames[] = { | |
31743 | (char *) "self", NULL | |
31744 | }; | |
31745 | ||
31746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
31747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31748 | { | |
31749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31750 | result = (int)(arg1)->GetVGap(); | |
31751 | ||
31752 | wxPyEndAllowThreads(__tstate); | |
31753 | if (PyErr_Occurred()) SWIG_fail; | |
31754 | } | |
31755 | resultobj = PyInt_FromLong((long)result); | |
31756 | return resultobj; | |
31757 | fail: | |
31758 | return NULL; | |
31759 | } | |
31760 | ||
31761 | ||
31762 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31763 | PyObject *resultobj; | |
31764 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
31765 | int result; | |
31766 | PyObject * obj0 = 0 ; | |
31767 | char *kwnames[] = { | |
31768 | (char *) "self", NULL | |
31769 | }; | |
31770 | ||
31771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
31772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31773 | { | |
31774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31775 | result = (int)(arg1)->GetHGap(); | |
31776 | ||
31777 | wxPyEndAllowThreads(__tstate); | |
31778 | if (PyErr_Occurred()) SWIG_fail; | |
31779 | } | |
31780 | resultobj = PyInt_FromLong((long)result); | |
31781 | return resultobj; | |
31782 | fail: | |
31783 | return NULL; | |
31784 | } | |
31785 | ||
31786 | ||
31787 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
31788 | PyObject *obj; | |
31789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31790 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
31791 | Py_INCREF(obj); | |
31792 | return Py_BuildValue((char *)""); | |
31793 | } | |
31794 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31795 | PyObject *resultobj; | |
31796 | int arg1 = (int) 1 ; | |
31797 | int arg2 = (int) 0 ; | |
31798 | int arg3 = (int) 0 ; | |
31799 | int arg4 = (int) 0 ; | |
31800 | wxFlexGridSizer *result; | |
31801 | char *kwnames[] = { | |
31802 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
31803 | }; | |
31804 | ||
31805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_FlexGridSizer",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
31806 | { | |
31807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31808 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
31809 | ||
31810 | wxPyEndAllowThreads(__tstate); | |
31811 | if (PyErr_Occurred()) SWIG_fail; | |
31812 | } | |
31813 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
31814 | return resultobj; | |
31815 | fail: | |
31816 | return NULL; | |
31817 | } | |
31818 | ||
31819 | ||
31820 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31821 | PyObject *resultobj; | |
31822 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31823 | PyObject * obj0 = 0 ; | |
31824 | char *kwnames[] = { | |
31825 | (char *) "self", NULL | |
31826 | }; | |
31827 | ||
31828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
31829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31830 | { | |
31831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31832 | (arg1)->RecalcSizes(); | |
31833 | ||
31834 | wxPyEndAllowThreads(__tstate); | |
31835 | if (PyErr_Occurred()) SWIG_fail; | |
31836 | } | |
31837 | Py_INCREF(Py_None); resultobj = Py_None; | |
31838 | return resultobj; | |
31839 | fail: | |
31840 | return NULL; | |
31841 | } | |
31842 | ||
31843 | ||
31844 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31845 | PyObject *resultobj; | |
31846 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31847 | wxSize result; | |
31848 | PyObject * obj0 = 0 ; | |
31849 | char *kwnames[] = { | |
31850 | (char *) "self", NULL | |
31851 | }; | |
31852 | ||
31853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
31854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31855 | { | |
31856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31857 | result = (arg1)->CalcMin(); | |
31858 | ||
31859 | wxPyEndAllowThreads(__tstate); | |
31860 | if (PyErr_Occurred()) SWIG_fail; | |
31861 | } | |
31862 | { | |
31863 | wxSize * resultptr; | |
31864 | resultptr = new wxSize((wxSize &) result); | |
31865 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
31866 | } | |
31867 | return resultobj; | |
31868 | fail: | |
31869 | return NULL; | |
31870 | } | |
31871 | ||
31872 | ||
31873 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31874 | PyObject *resultobj; | |
31875 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31876 | size_t arg2 ; | |
31877 | int arg3 = (int) 0 ; | |
31878 | PyObject * obj0 = 0 ; | |
31879 | PyObject * obj1 = 0 ; | |
31880 | char *kwnames[] = { | |
31881 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
31882 | }; | |
31883 | ||
31884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
31885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31886 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31887 | if (PyErr_Occurred()) SWIG_fail; | |
31888 | { | |
31889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31890 | (arg1)->AddGrowableRow(arg2,arg3); | |
31891 | ||
31892 | wxPyEndAllowThreads(__tstate); | |
31893 | if (PyErr_Occurred()) SWIG_fail; | |
31894 | } | |
31895 | Py_INCREF(Py_None); resultobj = Py_None; | |
31896 | return resultobj; | |
31897 | fail: | |
31898 | return NULL; | |
31899 | } | |
31900 | ||
31901 | ||
31902 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31903 | PyObject *resultobj; | |
31904 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31905 | size_t arg2 ; | |
31906 | PyObject * obj0 = 0 ; | |
31907 | PyObject * obj1 = 0 ; | |
31908 | char *kwnames[] = { | |
31909 | (char *) "self",(char *) "idx", NULL | |
31910 | }; | |
31911 | ||
31912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
31913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31914 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31915 | if (PyErr_Occurred()) SWIG_fail; | |
31916 | { | |
31917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31918 | (arg1)->RemoveGrowableRow(arg2); | |
31919 | ||
31920 | wxPyEndAllowThreads(__tstate); | |
31921 | if (PyErr_Occurred()) SWIG_fail; | |
31922 | } | |
31923 | Py_INCREF(Py_None); resultobj = Py_None; | |
31924 | return resultobj; | |
31925 | fail: | |
31926 | return NULL; | |
31927 | } | |
31928 | ||
31929 | ||
31930 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31931 | PyObject *resultobj; | |
31932 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31933 | size_t arg2 ; | |
31934 | int arg3 = (int) 0 ; | |
31935 | PyObject * obj0 = 0 ; | |
31936 | PyObject * obj1 = 0 ; | |
31937 | char *kwnames[] = { | |
31938 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
31939 | }; | |
31940 | ||
31941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
31942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31943 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31944 | if (PyErr_Occurred()) SWIG_fail; | |
31945 | { | |
31946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31947 | (arg1)->AddGrowableCol(arg2,arg3); | |
31948 | ||
31949 | wxPyEndAllowThreads(__tstate); | |
31950 | if (PyErr_Occurred()) SWIG_fail; | |
31951 | } | |
31952 | Py_INCREF(Py_None); resultobj = Py_None; | |
31953 | return resultobj; | |
31954 | fail: | |
31955 | return NULL; | |
31956 | } | |
31957 | ||
31958 | ||
31959 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31960 | PyObject *resultobj; | |
31961 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31962 | size_t arg2 ; | |
31963 | PyObject * obj0 = 0 ; | |
31964 | PyObject * obj1 = 0 ; | |
31965 | char *kwnames[] = { | |
31966 | (char *) "self",(char *) "idx", NULL | |
31967 | }; | |
31968 | ||
31969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
31970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31971 | arg2 = (size_t) PyInt_AsLong(obj1); | |
31972 | if (PyErr_Occurred()) SWIG_fail; | |
31973 | { | |
31974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31975 | (arg1)->RemoveGrowableCol(arg2); | |
31976 | ||
31977 | wxPyEndAllowThreads(__tstate); | |
31978 | if (PyErr_Occurred()) SWIG_fail; | |
31979 | } | |
31980 | Py_INCREF(Py_None); resultobj = Py_None; | |
31981 | return resultobj; | |
31982 | fail: | |
31983 | return NULL; | |
31984 | } | |
31985 | ||
31986 | ||
31987 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31988 | PyObject *resultobj; | |
31989 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
31990 | int arg2 ; | |
31991 | PyObject * obj0 = 0 ; | |
31992 | char *kwnames[] = { | |
31993 | (char *) "self",(char *) "direction", NULL | |
31994 | }; | |
31995 | ||
31996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&arg2)) goto fail; | |
31997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31998 | { | |
31999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32000 | (arg1)->SetFlexibleDirection(arg2); | |
32001 | ||
32002 | wxPyEndAllowThreads(__tstate); | |
32003 | if (PyErr_Occurred()) SWIG_fail; | |
32004 | } | |
32005 | Py_INCREF(Py_None); resultobj = Py_None; | |
32006 | return resultobj; | |
32007 | fail: | |
32008 | return NULL; | |
32009 | } | |
32010 | ||
32011 | ||
32012 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32013 | PyObject *resultobj; | |
32014 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32015 | int result; | |
32016 | PyObject * obj0 = 0 ; | |
32017 | char *kwnames[] = { | |
32018 | (char *) "self", NULL | |
32019 | }; | |
32020 | ||
32021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
32022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32023 | { | |
32024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32025 | result = (int)(arg1)->GetFlexibleDirection(); | |
32026 | ||
32027 | wxPyEndAllowThreads(__tstate); | |
32028 | if (PyErr_Occurred()) SWIG_fail; | |
32029 | } | |
32030 | resultobj = PyInt_FromLong((long)result); | |
32031 | return resultobj; | |
32032 | fail: | |
32033 | return NULL; | |
32034 | } | |
32035 | ||
32036 | ||
32037 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32038 | PyObject *resultobj; | |
32039 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32040 | int arg2 ; | |
32041 | PyObject * obj0 = 0 ; | |
32042 | char *kwnames[] = { | |
32043 | (char *) "self",(char *) "mode", NULL | |
32044 | }; | |
32045 | ||
32046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&arg2)) goto fail; | |
32047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32048 | { | |
32049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32050 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
32051 | ||
32052 | wxPyEndAllowThreads(__tstate); | |
32053 | if (PyErr_Occurred()) SWIG_fail; | |
32054 | } | |
32055 | Py_INCREF(Py_None); resultobj = Py_None; | |
32056 | return resultobj; | |
32057 | fail: | |
32058 | return NULL; | |
32059 | } | |
32060 | ||
32061 | ||
32062 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32063 | PyObject *resultobj; | |
32064 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32065 | int result; | |
32066 | PyObject * obj0 = 0 ; | |
32067 | char *kwnames[] = { | |
32068 | (char *) "self", NULL | |
32069 | }; | |
32070 | ||
32071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
32072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32073 | { | |
32074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32075 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
32076 | ||
32077 | wxPyEndAllowThreads(__tstate); | |
32078 | if (PyErr_Occurred()) SWIG_fail; | |
32079 | } | |
32080 | resultobj = PyInt_FromLong((long)result); | |
32081 | return resultobj; | |
32082 | fail: | |
32083 | return NULL; | |
32084 | } | |
32085 | ||
32086 | ||
423f194a RD |
32087 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
32088 | PyObject *resultobj; | |
32089 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32090 | wxArrayInt *result; | |
32091 | PyObject * obj0 = 0 ; | |
32092 | char *kwnames[] = { | |
32093 | (char *) "self", NULL | |
32094 | }; | |
32095 | ||
32096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
32097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32098 | { | |
32099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32100 | { | |
32101 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
32102 | result = (wxArrayInt *) &_result_ref; | |
32103 | } | |
32104 | ||
32105 | wxPyEndAllowThreads(__tstate); | |
32106 | if (PyErr_Occurred()) SWIG_fail; | |
32107 | } | |
32108 | { | |
32109 | resultobj = PyList_New(0); | |
32110 | size_t idx; | |
32111 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
32112 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
32113 | PyList_Append(resultobj, val); | |
32114 | Py_DECREF(val); | |
32115 | } | |
32116 | } | |
32117 | return resultobj; | |
32118 | fail: | |
32119 | return NULL; | |
32120 | } | |
32121 | ||
32122 | ||
32123 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32124 | PyObject *resultobj; | |
32125 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
32126 | wxArrayInt *result; | |
32127 | PyObject * obj0 = 0 ; | |
32128 | char *kwnames[] = { | |
32129 | (char *) "self", NULL | |
32130 | }; | |
32131 | ||
32132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
32133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32134 | { | |
32135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32136 | { | |
32137 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
32138 | result = (wxArrayInt *) &_result_ref; | |
32139 | } | |
32140 | ||
32141 | wxPyEndAllowThreads(__tstate); | |
32142 | if (PyErr_Occurred()) SWIG_fail; | |
32143 | } | |
32144 | { | |
32145 | resultobj = PyList_New(0); | |
32146 | size_t idx; | |
32147 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
32148 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
32149 | PyList_Append(resultobj, val); | |
32150 | Py_DECREF(val); | |
32151 | } | |
32152 | } | |
32153 | return resultobj; | |
32154 | fail: | |
32155 | return NULL; | |
32156 | } | |
32157 | ||
32158 | ||
d14a1e28 RD |
32159 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
32160 | PyObject *obj; | |
32161 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32162 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
32163 | Py_INCREF(obj); | |
32164 | return Py_BuildValue((char *)""); | |
32165 | } | |
32166 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32167 | PyObject *resultobj; | |
32168 | int arg1 = (int) 0 ; | |
32169 | int arg2 = (int) 0 ; | |
32170 | wxGBPosition *result; | |
32171 | char *kwnames[] = { | |
32172 | (char *) "row",(char *) "col", NULL | |
32173 | }; | |
32174 | ||
32175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBPosition",kwnames,&arg1,&arg2)) goto fail; | |
32176 | { | |
32177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32178 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
32179 | ||
32180 | wxPyEndAllowThreads(__tstate); | |
32181 | if (PyErr_Occurred()) SWIG_fail; | |
32182 | } | |
32183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
32184 | return resultobj; | |
32185 | fail: | |
32186 | return NULL; | |
32187 | } | |
32188 | ||
32189 | ||
32190 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32191 | PyObject *resultobj; | |
32192 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32193 | int result; | |
32194 | PyObject * obj0 = 0 ; | |
32195 | char *kwnames[] = { | |
32196 | (char *) "self", NULL | |
32197 | }; | |
32198 | ||
32199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
32200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32201 | { | |
32202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32203 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
32204 | ||
32205 | wxPyEndAllowThreads(__tstate); | |
32206 | if (PyErr_Occurred()) SWIG_fail; | |
32207 | } | |
32208 | resultobj = PyInt_FromLong((long)result); | |
32209 | return resultobj; | |
32210 | fail: | |
32211 | return NULL; | |
32212 | } | |
32213 | ||
32214 | ||
32215 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32216 | PyObject *resultobj; | |
32217 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32218 | int result; | |
32219 | PyObject * obj0 = 0 ; | |
32220 | char *kwnames[] = { | |
32221 | (char *) "self", NULL | |
32222 | }; | |
32223 | ||
32224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
32225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32226 | { | |
32227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32228 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
32229 | ||
32230 | wxPyEndAllowThreads(__tstate); | |
32231 | if (PyErr_Occurred()) SWIG_fail; | |
32232 | } | |
32233 | resultobj = PyInt_FromLong((long)result); | |
32234 | return resultobj; | |
32235 | fail: | |
32236 | return NULL; | |
32237 | } | |
32238 | ||
32239 | ||
32240 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32241 | PyObject *resultobj; | |
32242 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32243 | int arg2 ; | |
32244 | PyObject * obj0 = 0 ; | |
32245 | char *kwnames[] = { | |
32246 | (char *) "self",(char *) "row", NULL | |
32247 | }; | |
32248 | ||
32249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetRow",kwnames,&obj0,&arg2)) goto fail; | |
32250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32251 | { | |
32252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32253 | (arg1)->SetRow(arg2); | |
32254 | ||
32255 | wxPyEndAllowThreads(__tstate); | |
32256 | if (PyErr_Occurred()) SWIG_fail; | |
32257 | } | |
32258 | Py_INCREF(Py_None); resultobj = Py_None; | |
32259 | return resultobj; | |
32260 | fail: | |
32261 | return NULL; | |
32262 | } | |
32263 | ||
32264 | ||
32265 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32266 | PyObject *resultobj; | |
32267 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32268 | int arg2 ; | |
32269 | PyObject * obj0 = 0 ; | |
32270 | char *kwnames[] = { | |
32271 | (char *) "self",(char *) "col", NULL | |
32272 | }; | |
32273 | ||
32274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBPosition_SetCol",kwnames,&obj0,&arg2)) goto fail; | |
32275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32276 | { | |
32277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32278 | (arg1)->SetCol(arg2); | |
32279 | ||
32280 | wxPyEndAllowThreads(__tstate); | |
32281 | if (PyErr_Occurred()) SWIG_fail; | |
32282 | } | |
32283 | Py_INCREF(Py_None); resultobj = Py_None; | |
32284 | return resultobj; | |
32285 | fail: | |
32286 | return NULL; | |
32287 | } | |
32288 | ||
32289 | ||
32290 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32291 | PyObject *resultobj; | |
32292 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32293 | wxGBPosition *arg2 = 0 ; | |
32294 | bool result; | |
32295 | wxGBPosition temp2 ; | |
32296 | PyObject * obj0 = 0 ; | |
32297 | PyObject * obj1 = 0 ; | |
32298 | char *kwnames[] = { | |
32299 | (char *) "self",(char *) "p", NULL | |
32300 | }; | |
32301 | ||
32302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
32303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32304 | { | |
32305 | arg2 = &temp2; | |
32306 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32307 | } | |
32308 | { | |
32309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32310 | result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2); | |
32311 | ||
32312 | wxPyEndAllowThreads(__tstate); | |
32313 | if (PyErr_Occurred()) SWIG_fail; | |
32314 | } | |
32315 | resultobj = PyInt_FromLong((long)result); | |
32316 | return resultobj; | |
32317 | fail: | |
32318 | return NULL; | |
32319 | } | |
32320 | ||
32321 | ||
32322 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32323 | PyObject *resultobj; | |
32324 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32325 | wxGBPosition *arg2 = 0 ; | |
32326 | bool result; | |
32327 | wxGBPosition temp2 ; | |
32328 | PyObject * obj0 = 0 ; | |
32329 | PyObject * obj1 = 0 ; | |
32330 | char *kwnames[] = { | |
32331 | (char *) "self",(char *) "p", NULL | |
32332 | }; | |
32333 | ||
32334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
32335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32336 | { | |
32337 | arg2 = &temp2; | |
32338 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32339 | } | |
32340 | { | |
32341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32342 | result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2); | |
32343 | ||
32344 | wxPyEndAllowThreads(__tstate); | |
32345 | if (PyErr_Occurred()) SWIG_fail; | |
32346 | } | |
32347 | resultobj = PyInt_FromLong((long)result); | |
32348 | return resultobj; | |
32349 | fail: | |
32350 | return NULL; | |
32351 | } | |
32352 | ||
32353 | ||
423f194a RD |
32354 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
32355 | PyObject *resultobj; | |
32356 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32357 | int arg2 = (int) 0 ; | |
32358 | int arg3 = (int) 0 ; | |
32359 | PyObject * obj0 = 0 ; | |
32360 | char *kwnames[] = { | |
32361 | (char *) "self",(char *) "row",(char *) "col", NULL | |
32362 | }; | |
32363 | ||
32364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:GBPosition_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
32365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32366 | { | |
32367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32368 | wxGBPosition_Set(arg1,arg2,arg3); | |
32369 | ||
32370 | wxPyEndAllowThreads(__tstate); | |
32371 | if (PyErr_Occurred()) SWIG_fail; | |
32372 | } | |
32373 | Py_INCREF(Py_None); resultobj = Py_None; | |
32374 | return resultobj; | |
32375 | fail: | |
32376 | return NULL; | |
32377 | } | |
32378 | ||
32379 | ||
32380 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
32381 | PyObject *resultobj; |
32382 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
32383 | PyObject *result; | |
32384 | PyObject * obj0 = 0 ; | |
32385 | char *kwnames[] = { | |
32386 | (char *) "self", NULL | |
32387 | }; | |
32388 | ||
423f194a | 32389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
32390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32391 | { | |
32392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 32393 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
32394 | |
32395 | wxPyEndAllowThreads(__tstate); | |
32396 | if (PyErr_Occurred()) SWIG_fail; | |
32397 | } | |
32398 | resultobj = result; | |
32399 | return resultobj; | |
32400 | fail: | |
32401 | return NULL; | |
32402 | } | |
32403 | ||
32404 | ||
32405 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
32406 | PyObject *obj; | |
32407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32408 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
32409 | Py_INCREF(obj); | |
32410 | return Py_BuildValue((char *)""); | |
32411 | } | |
32412 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32413 | PyObject *resultobj; | |
32414 | int arg1 = (int) 1 ; | |
32415 | int arg2 = (int) 1 ; | |
32416 | wxGBSpan *result; | |
32417 | char *kwnames[] = { | |
32418 | (char *) "rowspan",(char *) "colspan", NULL | |
32419 | }; | |
32420 | ||
32421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GBSpan",kwnames,&arg1,&arg2)) goto fail; | |
32422 | { | |
32423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32424 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
32425 | ||
32426 | wxPyEndAllowThreads(__tstate); | |
32427 | if (PyErr_Occurred()) SWIG_fail; | |
32428 | } | |
32429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
32430 | return resultobj; | |
32431 | fail: | |
32432 | return NULL; | |
32433 | } | |
32434 | ||
32435 | ||
32436 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32437 | PyObject *resultobj; | |
32438 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32439 | int result; | |
32440 | PyObject * obj0 = 0 ; | |
32441 | char *kwnames[] = { | |
32442 | (char *) "self", NULL | |
32443 | }; | |
32444 | ||
32445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
32446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32447 | { | |
32448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32449 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
32450 | ||
32451 | wxPyEndAllowThreads(__tstate); | |
32452 | if (PyErr_Occurred()) SWIG_fail; | |
32453 | } | |
32454 | resultobj = PyInt_FromLong((long)result); | |
32455 | return resultobj; | |
32456 | fail: | |
32457 | return NULL; | |
32458 | } | |
32459 | ||
32460 | ||
32461 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32462 | PyObject *resultobj; | |
32463 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32464 | int result; | |
32465 | PyObject * obj0 = 0 ; | |
32466 | char *kwnames[] = { | |
32467 | (char *) "self", NULL | |
32468 | }; | |
32469 | ||
32470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
32471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32472 | { | |
32473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32474 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
32475 | ||
32476 | wxPyEndAllowThreads(__tstate); | |
32477 | if (PyErr_Occurred()) SWIG_fail; | |
32478 | } | |
32479 | resultobj = PyInt_FromLong((long)result); | |
32480 | return resultobj; | |
32481 | fail: | |
32482 | return NULL; | |
32483 | } | |
32484 | ||
32485 | ||
32486 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32487 | PyObject *resultobj; | |
32488 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32489 | int arg2 ; | |
32490 | PyObject * obj0 = 0 ; | |
32491 | char *kwnames[] = { | |
32492 | (char *) "self",(char *) "rowspan", NULL | |
32493 | }; | |
32494 | ||
32495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetRowspan",kwnames,&obj0,&arg2)) goto fail; | |
32496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32497 | { | |
32498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32499 | (arg1)->SetRowspan(arg2); | |
32500 | ||
32501 | wxPyEndAllowThreads(__tstate); | |
32502 | if (PyErr_Occurred()) SWIG_fail; | |
32503 | } | |
32504 | Py_INCREF(Py_None); resultobj = Py_None; | |
32505 | return resultobj; | |
32506 | fail: | |
32507 | return NULL; | |
32508 | } | |
32509 | ||
32510 | ||
32511 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32512 | PyObject *resultobj; | |
32513 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32514 | int arg2 ; | |
32515 | PyObject * obj0 = 0 ; | |
32516 | char *kwnames[] = { | |
32517 | (char *) "self",(char *) "colspan", NULL | |
32518 | }; | |
32519 | ||
32520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GBSpan_SetColspan",kwnames,&obj0,&arg2)) goto fail; | |
32521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32522 | { | |
32523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32524 | (arg1)->SetColspan(arg2); | |
32525 | ||
32526 | wxPyEndAllowThreads(__tstate); | |
32527 | if (PyErr_Occurred()) SWIG_fail; | |
32528 | } | |
32529 | Py_INCREF(Py_None); resultobj = Py_None; | |
32530 | return resultobj; | |
32531 | fail: | |
32532 | return NULL; | |
32533 | } | |
32534 | ||
32535 | ||
32536 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32537 | PyObject *resultobj; | |
32538 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32539 | wxGBSpan *arg2 = 0 ; | |
32540 | bool result; | |
32541 | wxGBSpan temp2 ; | |
32542 | PyObject * obj0 = 0 ; | |
32543 | PyObject * obj1 = 0 ; | |
32544 | char *kwnames[] = { | |
32545 | (char *) "self",(char *) "o", NULL | |
32546 | }; | |
32547 | ||
32548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
32549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32550 | { | |
32551 | arg2 = &temp2; | |
32552 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
32553 | } | |
32554 | { | |
32555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32556 | result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2); | |
32557 | ||
32558 | wxPyEndAllowThreads(__tstate); | |
32559 | if (PyErr_Occurred()) SWIG_fail; | |
32560 | } | |
32561 | resultobj = PyInt_FromLong((long)result); | |
32562 | return resultobj; | |
32563 | fail: | |
32564 | return NULL; | |
32565 | } | |
32566 | ||
32567 | ||
32568 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32569 | PyObject *resultobj; | |
32570 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32571 | wxGBSpan *arg2 = 0 ; | |
32572 | bool result; | |
32573 | wxGBSpan temp2 ; | |
32574 | PyObject * obj0 = 0 ; | |
32575 | PyObject * obj1 = 0 ; | |
32576 | char *kwnames[] = { | |
32577 | (char *) "self",(char *) "o", NULL | |
32578 | }; | |
32579 | ||
32580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
32581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32582 | { | |
32583 | arg2 = &temp2; | |
32584 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
32585 | } | |
32586 | { | |
32587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32588 | result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2); | |
32589 | ||
32590 | wxPyEndAllowThreads(__tstate); | |
32591 | if (PyErr_Occurred()) SWIG_fail; | |
32592 | } | |
32593 | resultobj = PyInt_FromLong((long)result); | |
32594 | return resultobj; | |
32595 | fail: | |
32596 | return NULL; | |
32597 | } | |
32598 | ||
32599 | ||
423f194a RD |
32600 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
32601 | PyObject *resultobj; | |
32602 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32603 | int arg2 = (int) 1 ; | |
32604 | int arg3 = (int) 1 ; | |
32605 | PyObject * obj0 = 0 ; | |
32606 | char *kwnames[] = { | |
32607 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
32608 | }; | |
32609 | ||
32610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:GBSpan_Set",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
32611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32612 | { | |
32613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32614 | wxGBSpan_Set(arg1,arg2,arg3); | |
32615 | ||
32616 | wxPyEndAllowThreads(__tstate); | |
32617 | if (PyErr_Occurred()) SWIG_fail; | |
32618 | } | |
32619 | Py_INCREF(Py_None); resultobj = Py_None; | |
32620 | return resultobj; | |
32621 | fail: | |
32622 | return NULL; | |
32623 | } | |
32624 | ||
32625 | ||
32626 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
32627 | PyObject *resultobj; |
32628 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
32629 | PyObject *result; | |
32630 | PyObject * obj0 = 0 ; | |
32631 | char *kwnames[] = { | |
32632 | (char *) "self", NULL | |
32633 | }; | |
32634 | ||
423f194a | 32635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
32636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32637 | { | |
32638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 32639 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
32640 | |
32641 | wxPyEndAllowThreads(__tstate); | |
32642 | if (PyErr_Occurred()) SWIG_fail; | |
32643 | } | |
32644 | resultobj = result; | |
32645 | return resultobj; | |
32646 | fail: | |
32647 | return NULL; | |
32648 | } | |
32649 | ||
32650 | ||
32651 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
32652 | PyObject *obj; | |
32653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32654 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
32655 | Py_INCREF(obj); | |
32656 | return Py_BuildValue((char *)""); | |
32657 | } | |
32658 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
32659 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
32660 | return 1; | |
32661 | } | |
32662 | ||
32663 | ||
32664 | static PyObject *_wrap_DefaultSpan_get() { | |
32665 | PyObject *pyobj; | |
32666 | ||
32667 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
32668 | return pyobj; | |
32669 | } | |
32670 | ||
32671 | ||
32672 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32673 | PyObject *resultobj; | |
32674 | wxGBSizerItem *result; | |
32675 | char *kwnames[] = { | |
32676 | NULL | |
32677 | }; | |
32678 | ||
32679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
32680 | { | |
32681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32682 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
32683 | ||
32684 | wxPyEndAllowThreads(__tstate); | |
32685 | if (PyErr_Occurred()) SWIG_fail; | |
32686 | } | |
32687 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32688 | return resultobj; | |
32689 | fail: | |
32690 | return NULL; | |
32691 | } | |
32692 | ||
32693 | ||
32694 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32695 | PyObject *resultobj; | |
32696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32697 | wxGBPosition *arg2 = 0 ; | |
32698 | wxGBSpan *arg3 = 0 ; | |
32699 | int arg4 ; | |
32700 | int arg5 ; | |
32701 | wxObject *arg6 = (wxObject *) 0 ; | |
32702 | wxGBSizerItem *result; | |
32703 | wxGBPosition temp2 ; | |
32704 | wxGBSpan temp3 ; | |
32705 | PyObject * obj0 = 0 ; | |
32706 | PyObject * obj1 = 0 ; | |
32707 | PyObject * obj2 = 0 ; | |
32708 | PyObject * obj5 = 0 ; | |
32709 | char *kwnames[] = { | |
32710 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32711 | }; | |
32712 | ||
32713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
32714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32715 | { | |
32716 | arg2 = &temp2; | |
32717 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32718 | } | |
32719 | { | |
32720 | arg3 = &temp3; | |
32721 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
32722 | } | |
32723 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32724 | { | |
32725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32726 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
32727 | ||
32728 | wxPyEndAllowThreads(__tstate); | |
32729 | if (PyErr_Occurred()) SWIG_fail; | |
32730 | } | |
32731 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32732 | return resultobj; | |
32733 | fail: | |
32734 | return NULL; | |
32735 | } | |
32736 | ||
32737 | ||
32738 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32739 | PyObject *resultobj; | |
32740 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32741 | wxGBPosition *arg2 = 0 ; | |
32742 | wxGBSpan *arg3 = 0 ; | |
32743 | int arg4 ; | |
32744 | int arg5 ; | |
32745 | wxObject *arg6 = (wxObject *) 0 ; | |
32746 | wxGBSizerItem *result; | |
32747 | wxGBPosition temp2 ; | |
32748 | wxGBSpan temp3 ; | |
32749 | PyObject * obj0 = 0 ; | |
32750 | PyObject * obj1 = 0 ; | |
32751 | PyObject * obj2 = 0 ; | |
32752 | PyObject * obj5 = 0 ; | |
32753 | char *kwnames[] = { | |
32754 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32755 | }; | |
32756 | ||
32757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOiiO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
32758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32759 | { | |
32760 | arg2 = &temp2; | |
32761 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32762 | } | |
32763 | { | |
32764 | arg3 = &temp3; | |
32765 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
32766 | } | |
32767 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32768 | { | |
32769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32770 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
32771 | ||
32772 | wxPyEndAllowThreads(__tstate); | |
32773 | if (PyErr_Occurred()) SWIG_fail; | |
32774 | } | |
32775 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32776 | return resultobj; | |
32777 | fail: | |
32778 | return NULL; | |
32779 | } | |
32780 | ||
32781 | ||
32782 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32783 | PyObject *resultobj; | |
32784 | int arg1 ; | |
32785 | int arg2 ; | |
32786 | wxGBPosition *arg3 = 0 ; | |
32787 | wxGBSpan *arg4 = 0 ; | |
32788 | int arg5 ; | |
32789 | int arg6 ; | |
32790 | wxObject *arg7 = (wxObject *) 0 ; | |
32791 | wxGBSizerItem *result; | |
32792 | wxGBPosition temp3 ; | |
32793 | wxGBSpan temp4 ; | |
32794 | PyObject * obj2 = 0 ; | |
32795 | PyObject * obj3 = 0 ; | |
32796 | PyObject * obj6 = 0 ; | |
32797 | char *kwnames[] = { | |
32798 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32799 | }; | |
32800 | ||
32801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOiiO:new_GBSizerItemSpacer",kwnames,&arg1,&arg2,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
32802 | { | |
32803 | arg3 = &temp3; | |
32804 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
32805 | } | |
32806 | { | |
32807 | arg4 = &temp4; | |
32808 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
32809 | } | |
32810 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32811 | { | |
32812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32813 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
32814 | ||
32815 | wxPyEndAllowThreads(__tstate); | |
32816 | if (PyErr_Occurred()) SWIG_fail; | |
32817 | } | |
32818 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
32819 | return resultobj; | |
32820 | fail: | |
32821 | return NULL; | |
32822 | } | |
32823 | ||
32824 | ||
32825 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32826 | PyObject *resultobj; | |
32827 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32828 | wxGBPosition result; | |
32829 | PyObject * obj0 = 0 ; | |
32830 | char *kwnames[] = { | |
32831 | (char *) "self", NULL | |
32832 | }; | |
32833 | ||
32834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
32835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32836 | { | |
32837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32838 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
32839 | ||
32840 | wxPyEndAllowThreads(__tstate); | |
32841 | if (PyErr_Occurred()) SWIG_fail; | |
32842 | } | |
32843 | { | |
32844 | wxGBPosition * resultptr; | |
32845 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
32846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
32847 | } | |
32848 | return resultobj; | |
32849 | fail: | |
32850 | return NULL; | |
32851 | } | |
32852 | ||
32853 | ||
32854 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32855 | PyObject *resultobj; | |
32856 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32857 | wxGBSpan result; | |
32858 | PyObject * obj0 = 0 ; | |
32859 | char *kwnames[] = { | |
32860 | (char *) "self", NULL | |
32861 | }; | |
32862 | ||
32863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
32864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32865 | { | |
32866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32867 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
32868 | ||
32869 | wxPyEndAllowThreads(__tstate); | |
32870 | if (PyErr_Occurred()) SWIG_fail; | |
32871 | } | |
32872 | { | |
32873 | wxGBSpan * resultptr; | |
32874 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
32875 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
32876 | } | |
32877 | return resultobj; | |
32878 | fail: | |
32879 | return NULL; | |
32880 | } | |
32881 | ||
32882 | ||
32883 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32884 | PyObject *resultobj; | |
32885 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32886 | wxGBPosition *arg2 = 0 ; | |
32887 | bool result; | |
32888 | wxGBPosition temp2 ; | |
32889 | PyObject * obj0 = 0 ; | |
32890 | PyObject * obj1 = 0 ; | |
32891 | char *kwnames[] = { | |
32892 | (char *) "self",(char *) "pos", NULL | |
32893 | }; | |
32894 | ||
32895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
32896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32897 | { | |
32898 | arg2 = &temp2; | |
32899 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32900 | } | |
32901 | { | |
32902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32903 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
32904 | ||
32905 | wxPyEndAllowThreads(__tstate); | |
32906 | if (PyErr_Occurred()) SWIG_fail; | |
32907 | } | |
32908 | resultobj = PyInt_FromLong((long)result); | |
32909 | return resultobj; | |
32910 | fail: | |
32911 | return NULL; | |
32912 | } | |
32913 | ||
32914 | ||
32915 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32916 | PyObject *resultobj; | |
32917 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32918 | wxGBSpan *arg2 = 0 ; | |
32919 | bool result; | |
32920 | wxGBSpan temp2 ; | |
32921 | PyObject * obj0 = 0 ; | |
32922 | PyObject * obj1 = 0 ; | |
32923 | char *kwnames[] = { | |
32924 | (char *) "self",(char *) "span", NULL | |
32925 | }; | |
32926 | ||
32927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
32928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32929 | { | |
32930 | arg2 = &temp2; | |
32931 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
32932 | } | |
32933 | { | |
32934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32935 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
32936 | ||
32937 | wxPyEndAllowThreads(__tstate); | |
32938 | if (PyErr_Occurred()) SWIG_fail; | |
32939 | } | |
32940 | resultobj = PyInt_FromLong((long)result); | |
32941 | return resultobj; | |
32942 | fail: | |
32943 | return NULL; | |
32944 | } | |
32945 | ||
32946 | ||
32947 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
32948 | PyObject *resultobj; | |
32949 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32950 | wxGBSizerItem *arg2 = 0 ; | |
32951 | bool result; | |
32952 | PyObject * obj0 = 0 ; | |
32953 | PyObject * obj1 = 0 ; | |
32954 | ||
32955 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
32956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32957 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32958 | if (arg2 == NULL) { | |
32959 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
32960 | } | |
32961 | { | |
32962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32963 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
32964 | ||
32965 | wxPyEndAllowThreads(__tstate); | |
32966 | if (PyErr_Occurred()) SWIG_fail; | |
32967 | } | |
32968 | resultobj = PyInt_FromLong((long)result); | |
32969 | return resultobj; | |
32970 | fail: | |
32971 | return NULL; | |
32972 | } | |
32973 | ||
32974 | ||
32975 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
32976 | PyObject *resultobj; | |
32977 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
32978 | wxGBPosition *arg2 = 0 ; | |
32979 | wxGBSpan *arg3 = 0 ; | |
32980 | bool result; | |
32981 | wxGBPosition temp2 ; | |
32982 | wxGBSpan temp3 ; | |
32983 | PyObject * obj0 = 0 ; | |
32984 | PyObject * obj1 = 0 ; | |
32985 | PyObject * obj2 = 0 ; | |
32986 | ||
32987 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
32988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32989 | { | |
32990 | arg2 = &temp2; | |
32991 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
32992 | } | |
32993 | { | |
32994 | arg3 = &temp3; | |
32995 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
32996 | } | |
32997 | { | |
32998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32999 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
33000 | ||
33001 | wxPyEndAllowThreads(__tstate); | |
33002 | if (PyErr_Occurred()) SWIG_fail; | |
33003 | } | |
33004 | resultobj = PyInt_FromLong((long)result); | |
33005 | return resultobj; | |
33006 | fail: | |
33007 | return NULL; | |
33008 | } | |
33009 | ||
33010 | ||
33011 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
33012 | int argc; | |
33013 | PyObject *argv[4]; | |
33014 | int ii; | |
33015 | ||
33016 | argc = PyObject_Length(args); | |
33017 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33018 | argv[ii] = PyTuple_GetItem(args,ii); | |
33019 | } | |
33020 | if (argc == 2) { | |
33021 | int _v; | |
33022 | { | |
33023 | void *ptr; | |
33024 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33025 | _v = 0; | |
33026 | PyErr_Clear(); | |
33027 | } else { | |
33028 | _v = 1; | |
33029 | } | |
33030 | } | |
33031 | if (_v) { | |
33032 | { | |
33033 | void *ptr; | |
33034 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33035 | _v = 0; | |
33036 | PyErr_Clear(); | |
33037 | } else { | |
33038 | _v = 1; | |
33039 | } | |
33040 | } | |
33041 | if (_v) { | |
33042 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
33043 | } | |
33044 | } | |
33045 | } | |
33046 | if (argc == 3) { | |
33047 | int _v; | |
33048 | { | |
33049 | void *ptr; | |
33050 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
33051 | _v = 0; | |
33052 | PyErr_Clear(); | |
33053 | } else { | |
33054 | _v = 1; | |
33055 | } | |
33056 | } | |
33057 | if (_v) { | |
33058 | { | |
33059 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
33060 | } | |
33061 | if (_v) { | |
33062 | { | |
33063 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
33064 | } | |
33065 | if (_v) { | |
33066 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
33067 | } | |
33068 | } | |
33069 | } | |
33070 | } | |
33071 | ||
33072 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
33073 | return NULL; | |
33074 | } | |
33075 | ||
33076 | ||
33077 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33078 | PyObject *resultobj; | |
33079 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33080 | int *arg2 = 0 ; | |
33081 | int *arg3 = 0 ; | |
33082 | PyObject * obj0 = 0 ; | |
33083 | PyObject * obj1 = 0 ; | |
33084 | PyObject * obj2 = 0 ; | |
33085 | char *kwnames[] = { | |
33086 | (char *) "self",(char *) "row",(char *) "col", NULL | |
33087 | }; | |
33088 | ||
33089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33091 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33092 | if (arg2 == NULL) { | |
33093 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33094 | } | |
33095 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33096 | if (arg3 == NULL) { | |
33097 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
33098 | } | |
33099 | { | |
33100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33101 | (arg1)->GetEndPos(*arg2,*arg3); | |
33102 | ||
33103 | wxPyEndAllowThreads(__tstate); | |
33104 | if (PyErr_Occurred()) SWIG_fail; | |
33105 | } | |
33106 | Py_INCREF(Py_None); resultobj = Py_None; | |
33107 | return resultobj; | |
33108 | fail: | |
33109 | return NULL; | |
33110 | } | |
33111 | ||
33112 | ||
33113 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33114 | PyObject *resultobj; | |
33115 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33116 | wxGridBagSizer *result; | |
33117 | PyObject * obj0 = 0 ; | |
33118 | char *kwnames[] = { | |
33119 | (char *) "self", NULL | |
33120 | }; | |
33121 | ||
33122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
33123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33124 | { | |
33125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33126 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
33127 | ||
33128 | wxPyEndAllowThreads(__tstate); | |
33129 | if (PyErr_Occurred()) SWIG_fail; | |
33130 | } | |
33131 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
33132 | return resultobj; | |
33133 | fail: | |
33134 | return NULL; | |
33135 | } | |
33136 | ||
33137 | ||
33138 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33139 | PyObject *resultobj; | |
33140 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
33141 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
33142 | PyObject * obj0 = 0 ; | |
33143 | PyObject * obj1 = 0 ; | |
33144 | char *kwnames[] = { | |
33145 | (char *) "self",(char *) "sizer", NULL | |
33146 | }; | |
33147 | ||
33148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
33149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33150 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33151 | { | |
33152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33153 | (arg1)->SetGBSizer(arg2); | |
33154 | ||
33155 | wxPyEndAllowThreads(__tstate); | |
33156 | if (PyErr_Occurred()) SWIG_fail; | |
33157 | } | |
33158 | Py_INCREF(Py_None); resultobj = Py_None; | |
33159 | return resultobj; | |
33160 | fail: | |
33161 | return NULL; | |
33162 | } | |
33163 | ||
33164 | ||
33165 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
33166 | PyObject *obj; | |
33167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33168 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
33169 | Py_INCREF(obj); | |
33170 | return Py_BuildValue((char *)""); | |
33171 | } | |
33172 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33173 | PyObject *resultobj; | |
33174 | int arg1 = (int) 0 ; | |
33175 | int arg2 = (int) 0 ; | |
33176 | wxGridBagSizer *result; | |
33177 | char *kwnames[] = { | |
33178 | (char *) "vgap",(char *) "hgap", NULL | |
33179 | }; | |
33180 | ||
33181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridBagSizer",kwnames,&arg1,&arg2)) goto fail; | |
33182 | { | |
33183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33184 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
33185 | ||
33186 | wxPyEndAllowThreads(__tstate); | |
33187 | if (PyErr_Occurred()) SWIG_fail; | |
33188 | } | |
33189 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
33190 | return resultobj; | |
33191 | fail: | |
33192 | return NULL; | |
33193 | } | |
33194 | ||
33195 | ||
33196 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33197 | PyObject *resultobj; | |
33198 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33199 | PyObject *arg2 = (PyObject *) 0 ; | |
33200 | wxGBPosition *arg3 = 0 ; | |
33201 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
33202 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
33203 | int arg5 = (int) 0 ; | |
33204 | int arg6 = (int) 0 ; | |
33205 | PyObject *arg7 = (PyObject *) NULL ; | |
33206 | bool result; | |
33207 | wxGBPosition temp3 ; | |
33208 | wxGBSpan temp4 ; | |
33209 | PyObject * obj0 = 0 ; | |
33210 | PyObject * obj1 = 0 ; | |
33211 | PyObject * obj2 = 0 ; | |
33212 | PyObject * obj3 = 0 ; | |
33213 | PyObject * obj6 = 0 ; | |
33214 | char *kwnames[] = { | |
33215 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33216 | }; | |
33217 | ||
33218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
33219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33220 | arg2 = obj1; | |
33221 | { | |
33222 | arg3 = &temp3; | |
33223 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33224 | } | |
33225 | if (obj3) { | |
33226 | { | |
33227 | arg4 = &temp4; | |
33228 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
33229 | } | |
33230 | } | |
33231 | if (obj6) { | |
33232 | arg7 = obj6; | |
33233 | } | |
33234 | { | |
33235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33236 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
33237 | ||
33238 | wxPyEndAllowThreads(__tstate); | |
33239 | if (PyErr_Occurred()) SWIG_fail; | |
33240 | } | |
33241 | resultobj = PyInt_FromLong((long)result); | |
33242 | return resultobj; | |
33243 | fail: | |
33244 | return NULL; | |
33245 | } | |
33246 | ||
33247 | ||
33248 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33249 | PyObject *resultobj; | |
33250 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33251 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
33252 | bool result; | |
33253 | PyObject * obj0 = 0 ; | |
33254 | PyObject * obj1 = 0 ; | |
33255 | char *kwnames[] = { | |
33256 | (char *) "self",(char *) "item", NULL | |
33257 | }; | |
33258 | ||
33259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33262 | { | |
33263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33264 | result = (bool)(arg1)->Add(arg2); | |
33265 | ||
33266 | wxPyEndAllowThreads(__tstate); | |
33267 | if (PyErr_Occurred()) SWIG_fail; | |
33268 | } | |
33269 | resultobj = PyInt_FromLong((long)result); | |
33270 | return resultobj; | |
33271 | fail: | |
33272 | return NULL; | |
33273 | } | |
33274 | ||
33275 | ||
33276 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33277 | PyObject *resultobj; | |
33278 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33279 | wxSize result; | |
33280 | PyObject * obj0 = 0 ; | |
33281 | char *kwnames[] = { | |
33282 | (char *) "self", NULL | |
33283 | }; | |
33284 | ||
33285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
33286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33287 | { | |
33288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33289 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
33290 | ||
33291 | wxPyEndAllowThreads(__tstate); | |
33292 | if (PyErr_Occurred()) SWIG_fail; | |
33293 | } | |
33294 | { | |
33295 | wxSize * resultptr; | |
33296 | resultptr = new wxSize((wxSize &) result); | |
33297 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33298 | } | |
33299 | return resultobj; | |
33300 | fail: | |
33301 | return NULL; | |
33302 | } | |
33303 | ||
33304 | ||
33305 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33306 | PyObject *resultobj; | |
33307 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33308 | wxSize *arg2 = 0 ; | |
33309 | wxSize temp2 ; | |
33310 | PyObject * obj0 = 0 ; | |
33311 | PyObject * obj1 = 0 ; | |
33312 | char *kwnames[] = { | |
33313 | (char *) "self",(char *) "sz", NULL | |
33314 | }; | |
33315 | ||
33316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
33317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33318 | { | |
33319 | arg2 = &temp2; | |
33320 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33321 | } | |
33322 | { | |
33323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33324 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
33325 | ||
33326 | wxPyEndAllowThreads(__tstate); | |
33327 | if (PyErr_Occurred()) SWIG_fail; | |
33328 | } | |
33329 | Py_INCREF(Py_None); resultobj = Py_None; | |
33330 | return resultobj; | |
33331 | fail: | |
33332 | return NULL; | |
33333 | } | |
33334 | ||
33335 | ||
33336 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
33337 | PyObject *resultobj; | |
33338 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33339 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33340 | wxGBPosition result; | |
33341 | PyObject * obj0 = 0 ; | |
33342 | PyObject * obj1 = 0 ; | |
33343 | ||
33344 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33346 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33347 | { | |
33348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33349 | result = (arg1)->GetItemPosition(arg2); | |
33350 | ||
33351 | wxPyEndAllowThreads(__tstate); | |
33352 | if (PyErr_Occurred()) SWIG_fail; | |
33353 | } | |
33354 | { | |
33355 | wxGBPosition * resultptr; | |
33356 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33357 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33358 | } | |
33359 | return resultobj; | |
33360 | fail: | |
33361 | return NULL; | |
33362 | } | |
33363 | ||
33364 | ||
33365 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
33366 | PyObject *resultobj; | |
33367 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33368 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33369 | wxGBPosition result; | |
33370 | PyObject * obj0 = 0 ; | |
33371 | PyObject * obj1 = 0 ; | |
33372 | ||
33373 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33375 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33376 | { | |
33377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33378 | result = (arg1)->GetItemPosition(arg2); | |
33379 | ||
33380 | wxPyEndAllowThreads(__tstate); | |
33381 | if (PyErr_Occurred()) SWIG_fail; | |
33382 | } | |
33383 | { | |
33384 | wxGBPosition * resultptr; | |
33385 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33386 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33387 | } | |
33388 | return resultobj; | |
33389 | fail: | |
33390 | return NULL; | |
33391 | } | |
33392 | ||
33393 | ||
33394 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
33395 | PyObject *resultobj; | |
33396 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33397 | size_t arg2 ; | |
33398 | wxGBPosition result; | |
33399 | PyObject * obj0 = 0 ; | |
33400 | PyObject * obj1 = 0 ; | |
33401 | ||
33402 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
33403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33404 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33405 | if (PyErr_Occurred()) SWIG_fail; | |
33406 | { | |
33407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33408 | result = (arg1)->GetItemPosition(arg2); | |
33409 | ||
33410 | wxPyEndAllowThreads(__tstate); | |
33411 | if (PyErr_Occurred()) SWIG_fail; | |
33412 | } | |
33413 | { | |
33414 | wxGBPosition * resultptr; | |
33415 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
33416 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
33417 | } | |
33418 | return resultobj; | |
33419 | fail: | |
33420 | return NULL; | |
33421 | } | |
33422 | ||
33423 | ||
33424 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
33425 | int argc; | |
33426 | PyObject *argv[3]; | |
33427 | int ii; | |
33428 | ||
33429 | argc = PyObject_Length(args); | |
33430 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
33431 | argv[ii] = PyTuple_GetItem(args,ii); | |
33432 | } | |
33433 | if (argc == 2) { | |
33434 | int _v; | |
33435 | { | |
33436 | void *ptr; | |
33437 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33438 | _v = 0; | |
33439 | PyErr_Clear(); | |
33440 | } else { | |
33441 | _v = 1; | |
33442 | } | |
33443 | } | |
33444 | if (_v) { | |
33445 | { | |
33446 | void *ptr; | |
33447 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33448 | _v = 0; | |
33449 | PyErr_Clear(); | |
33450 | } else { | |
33451 | _v = 1; | |
33452 | } | |
33453 | } | |
33454 | if (_v) { | |
33455 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
33456 | } | |
33457 | } | |
33458 | } | |
33459 | if (argc == 2) { | |
33460 | int _v; | |
33461 | { | |
33462 | void *ptr; | |
33463 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33464 | _v = 0; | |
33465 | PyErr_Clear(); | |
33466 | } else { | |
33467 | _v = 1; | |
33468 | } | |
33469 | } | |
33470 | if (_v) { | |
33471 | { | |
33472 | void *ptr; | |
33473 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33474 | _v = 0; | |
33475 | PyErr_Clear(); | |
33476 | } else { | |
33477 | _v = 1; | |
33478 | } | |
33479 | } | |
33480 | if (_v) { | |
33481 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
33482 | } | |
33483 | } | |
33484 | } | |
33485 | if (argc == 2) { | |
33486 | int _v; | |
33487 | { | |
33488 | void *ptr; | |
33489 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33490 | _v = 0; | |
33491 | PyErr_Clear(); | |
33492 | } else { | |
33493 | _v = 1; | |
33494 | } | |
33495 | } | |
33496 | if (_v) { | |
33497 | { | |
33498 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33499 | } | |
33500 | if (_v) { | |
33501 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
33502 | } | |
33503 | } | |
33504 | } | |
33505 | ||
33506 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
33507 | return NULL; | |
33508 | } | |
33509 | ||
33510 | ||
33511 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
33512 | PyObject *resultobj; | |
33513 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33514 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33515 | wxGBPosition *arg3 = 0 ; | |
33516 | bool result; | |
33517 | wxGBPosition temp3 ; | |
33518 | PyObject * obj0 = 0 ; | |
33519 | PyObject * obj1 = 0 ; | |
33520 | PyObject * obj2 = 0 ; | |
33521 | ||
33522 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
33523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33524 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33525 | { | |
33526 | arg3 = &temp3; | |
33527 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33528 | } | |
33529 | { | |
33530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33531 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
33532 | ||
33533 | wxPyEndAllowThreads(__tstate); | |
33534 | if (PyErr_Occurred()) SWIG_fail; | |
33535 | } | |
33536 | resultobj = PyInt_FromLong((long)result); | |
33537 | return resultobj; | |
33538 | fail: | |
33539 | return NULL; | |
33540 | } | |
33541 | ||
33542 | ||
33543 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
33544 | PyObject *resultobj; | |
33545 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33546 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33547 | wxGBPosition *arg3 = 0 ; | |
33548 | bool result; | |
33549 | wxGBPosition temp3 ; | |
33550 | PyObject * obj0 = 0 ; | |
33551 | PyObject * obj1 = 0 ; | |
33552 | PyObject * obj2 = 0 ; | |
33553 | ||
33554 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
33555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33557 | { | |
33558 | arg3 = &temp3; | |
33559 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33560 | } | |
33561 | { | |
33562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33563 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
33564 | ||
33565 | wxPyEndAllowThreads(__tstate); | |
33566 | if (PyErr_Occurred()) SWIG_fail; | |
33567 | } | |
33568 | resultobj = PyInt_FromLong((long)result); | |
33569 | return resultobj; | |
33570 | fail: | |
33571 | return NULL; | |
33572 | } | |
33573 | ||
33574 | ||
33575 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
33576 | PyObject *resultobj; | |
33577 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33578 | size_t arg2 ; | |
33579 | wxGBPosition *arg3 = 0 ; | |
33580 | bool result; | |
33581 | wxGBPosition temp3 ; | |
33582 | PyObject * obj0 = 0 ; | |
33583 | PyObject * obj1 = 0 ; | |
33584 | PyObject * obj2 = 0 ; | |
33585 | ||
33586 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
33587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33588 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33589 | if (PyErr_Occurred()) SWIG_fail; | |
33590 | { | |
33591 | arg3 = &temp3; | |
33592 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
33593 | } | |
33594 | { | |
33595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33596 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
33597 | ||
33598 | wxPyEndAllowThreads(__tstate); | |
33599 | if (PyErr_Occurred()) SWIG_fail; | |
33600 | } | |
33601 | resultobj = PyInt_FromLong((long)result); | |
33602 | return resultobj; | |
33603 | fail: | |
33604 | return NULL; | |
33605 | } | |
33606 | ||
33607 | ||
33608 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
33609 | int argc; | |
33610 | PyObject *argv[4]; | |
33611 | int ii; | |
33612 | ||
33613 | argc = PyObject_Length(args); | |
33614 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33615 | argv[ii] = PyTuple_GetItem(args,ii); | |
33616 | } | |
33617 | if (argc == 3) { | |
33618 | int _v; | |
33619 | { | |
33620 | void *ptr; | |
33621 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33622 | _v = 0; | |
33623 | PyErr_Clear(); | |
33624 | } else { | |
33625 | _v = 1; | |
33626 | } | |
33627 | } | |
33628 | if (_v) { | |
33629 | { | |
33630 | void *ptr; | |
33631 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33632 | _v = 0; | |
33633 | PyErr_Clear(); | |
33634 | } else { | |
33635 | _v = 1; | |
33636 | } | |
33637 | } | |
33638 | if (_v) { | |
33639 | { | |
33640 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
33641 | } | |
33642 | if (_v) { | |
33643 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
33644 | } | |
33645 | } | |
33646 | } | |
33647 | } | |
33648 | if (argc == 3) { | |
33649 | int _v; | |
33650 | { | |
33651 | void *ptr; | |
33652 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33653 | _v = 0; | |
33654 | PyErr_Clear(); | |
33655 | } else { | |
33656 | _v = 1; | |
33657 | } | |
33658 | } | |
33659 | if (_v) { | |
33660 | { | |
33661 | void *ptr; | |
33662 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33663 | _v = 0; | |
33664 | PyErr_Clear(); | |
33665 | } else { | |
33666 | _v = 1; | |
33667 | } | |
33668 | } | |
33669 | if (_v) { | |
33670 | { | |
33671 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
33672 | } | |
33673 | if (_v) { | |
33674 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
33675 | } | |
33676 | } | |
33677 | } | |
33678 | } | |
33679 | if (argc == 3) { | |
33680 | int _v; | |
33681 | { | |
33682 | void *ptr; | |
33683 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33684 | _v = 0; | |
33685 | PyErr_Clear(); | |
33686 | } else { | |
33687 | _v = 1; | |
33688 | } | |
33689 | } | |
33690 | if (_v) { | |
33691 | { | |
33692 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33693 | } | |
33694 | if (_v) { | |
33695 | { | |
33696 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
33697 | } | |
33698 | if (_v) { | |
33699 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
33700 | } | |
33701 | } | |
33702 | } | |
33703 | } | |
33704 | ||
33705 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
33706 | return NULL; | |
33707 | } | |
33708 | ||
33709 | ||
33710 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
33711 | PyObject *resultobj; | |
33712 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33713 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33714 | wxGBSpan result; | |
33715 | PyObject * obj0 = 0 ; | |
33716 | PyObject * obj1 = 0 ; | |
33717 | ||
33718 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
33719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33721 | { | |
33722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33723 | result = (arg1)->GetItemSpan(arg2); | |
33724 | ||
33725 | wxPyEndAllowThreads(__tstate); | |
33726 | if (PyErr_Occurred()) SWIG_fail; | |
33727 | } | |
33728 | { | |
33729 | wxGBSpan * resultptr; | |
33730 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33731 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33732 | } | |
33733 | return resultobj; | |
33734 | fail: | |
33735 | return NULL; | |
33736 | } | |
33737 | ||
33738 | ||
33739 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
33740 | PyObject *resultobj; | |
33741 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33742 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33743 | wxGBSpan result; | |
33744 | PyObject * obj0 = 0 ; | |
33745 | PyObject * obj1 = 0 ; | |
33746 | ||
33747 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
33748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33750 | { | |
33751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33752 | result = (arg1)->GetItemSpan(arg2); | |
33753 | ||
33754 | wxPyEndAllowThreads(__tstate); | |
33755 | if (PyErr_Occurred()) SWIG_fail; | |
33756 | } | |
33757 | { | |
33758 | wxGBSpan * resultptr; | |
33759 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33760 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33761 | } | |
33762 | return resultobj; | |
33763 | fail: | |
33764 | return NULL; | |
33765 | } | |
33766 | ||
33767 | ||
33768 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
33769 | PyObject *resultobj; | |
33770 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33771 | size_t arg2 ; | |
33772 | wxGBSpan result; | |
33773 | PyObject * obj0 = 0 ; | |
33774 | PyObject * obj1 = 0 ; | |
33775 | ||
33776 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
33777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33778 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33779 | if (PyErr_Occurred()) SWIG_fail; | |
33780 | { | |
33781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33782 | result = (arg1)->GetItemSpan(arg2); | |
33783 | ||
33784 | wxPyEndAllowThreads(__tstate); | |
33785 | if (PyErr_Occurred()) SWIG_fail; | |
33786 | } | |
33787 | { | |
33788 | wxGBSpan * resultptr; | |
33789 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
33790 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
33791 | } | |
33792 | return resultobj; | |
33793 | fail: | |
33794 | return NULL; | |
33795 | } | |
33796 | ||
33797 | ||
33798 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
33799 | int argc; | |
33800 | PyObject *argv[3]; | |
33801 | int ii; | |
33802 | ||
33803 | argc = PyObject_Length(args); | |
33804 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
33805 | argv[ii] = PyTuple_GetItem(args,ii); | |
33806 | } | |
33807 | if (argc == 2) { | |
33808 | int _v; | |
33809 | { | |
33810 | void *ptr; | |
33811 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33812 | _v = 0; | |
33813 | PyErr_Clear(); | |
33814 | } else { | |
33815 | _v = 1; | |
33816 | } | |
33817 | } | |
33818 | if (_v) { | |
33819 | { | |
33820 | void *ptr; | |
33821 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
33822 | _v = 0; | |
33823 | PyErr_Clear(); | |
33824 | } else { | |
33825 | _v = 1; | |
33826 | } | |
33827 | } | |
33828 | if (_v) { | |
33829 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
33830 | } | |
33831 | } | |
33832 | } | |
33833 | if (argc == 2) { | |
33834 | int _v; | |
33835 | { | |
33836 | void *ptr; | |
33837 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33838 | _v = 0; | |
33839 | PyErr_Clear(); | |
33840 | } else { | |
33841 | _v = 1; | |
33842 | } | |
33843 | } | |
33844 | if (_v) { | |
33845 | { | |
33846 | void *ptr; | |
33847 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
33848 | _v = 0; | |
33849 | PyErr_Clear(); | |
33850 | } else { | |
33851 | _v = 1; | |
33852 | } | |
33853 | } | |
33854 | if (_v) { | |
33855 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
33856 | } | |
33857 | } | |
33858 | } | |
33859 | if (argc == 2) { | |
33860 | int _v; | |
33861 | { | |
33862 | void *ptr; | |
33863 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33864 | _v = 0; | |
33865 | PyErr_Clear(); | |
33866 | } else { | |
33867 | _v = 1; | |
33868 | } | |
33869 | } | |
33870 | if (_v) { | |
33871 | { | |
33872 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
33873 | } | |
33874 | if (_v) { | |
33875 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
33876 | } | |
33877 | } | |
33878 | } | |
33879 | ||
33880 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
33881 | return NULL; | |
33882 | } | |
33883 | ||
33884 | ||
33885 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
33886 | PyObject *resultobj; | |
33887 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33888 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33889 | wxGBSpan *arg3 = 0 ; | |
33890 | bool result; | |
33891 | wxGBSpan temp3 ; | |
33892 | PyObject * obj0 = 0 ; | |
33893 | PyObject * obj1 = 0 ; | |
33894 | PyObject * obj2 = 0 ; | |
33895 | ||
33896 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
33897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33898 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33899 | { | |
33900 | arg3 = &temp3; | |
33901 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33902 | } | |
33903 | { | |
33904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33905 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
33906 | ||
33907 | wxPyEndAllowThreads(__tstate); | |
33908 | if (PyErr_Occurred()) SWIG_fail; | |
33909 | } | |
33910 | resultobj = PyInt_FromLong((long)result); | |
33911 | return resultobj; | |
33912 | fail: | |
33913 | return NULL; | |
33914 | } | |
33915 | ||
33916 | ||
33917 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
33918 | PyObject *resultobj; | |
33919 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33920 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33921 | wxGBSpan *arg3 = 0 ; | |
33922 | bool result; | |
33923 | wxGBSpan temp3 ; | |
33924 | PyObject * obj0 = 0 ; | |
33925 | PyObject * obj1 = 0 ; | |
33926 | PyObject * obj2 = 0 ; | |
33927 | ||
33928 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
33929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33931 | { | |
33932 | arg3 = &temp3; | |
33933 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33934 | } | |
33935 | { | |
33936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33937 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
33938 | ||
33939 | wxPyEndAllowThreads(__tstate); | |
33940 | if (PyErr_Occurred()) SWIG_fail; | |
33941 | } | |
33942 | resultobj = PyInt_FromLong((long)result); | |
33943 | return resultobj; | |
33944 | fail: | |
33945 | return NULL; | |
33946 | } | |
33947 | ||
33948 | ||
33949 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
33950 | PyObject *resultobj; | |
33951 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
33952 | size_t arg2 ; | |
33953 | wxGBSpan *arg3 = 0 ; | |
33954 | bool result; | |
33955 | wxGBSpan temp3 ; | |
33956 | PyObject * obj0 = 0 ; | |
33957 | PyObject * obj1 = 0 ; | |
33958 | PyObject * obj2 = 0 ; | |
33959 | ||
33960 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
33961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33962 | arg2 = (size_t) PyInt_AsLong(obj1); | |
33963 | if (PyErr_Occurred()) SWIG_fail; | |
33964 | { | |
33965 | arg3 = &temp3; | |
33966 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
33967 | } | |
33968 | { | |
33969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33970 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
33971 | ||
33972 | wxPyEndAllowThreads(__tstate); | |
33973 | if (PyErr_Occurred()) SWIG_fail; | |
33974 | } | |
33975 | resultobj = PyInt_FromLong((long)result); | |
33976 | return resultobj; | |
33977 | fail: | |
33978 | return NULL; | |
33979 | } | |
33980 | ||
33981 | ||
33982 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
33983 | int argc; | |
33984 | PyObject *argv[4]; | |
33985 | int ii; | |
33986 | ||
33987 | argc = PyObject_Length(args); | |
33988 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
33989 | argv[ii] = PyTuple_GetItem(args,ii); | |
33990 | } | |
33991 | if (argc == 3) { | |
33992 | int _v; | |
33993 | { | |
33994 | void *ptr; | |
33995 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
33996 | _v = 0; | |
33997 | PyErr_Clear(); | |
33998 | } else { | |
33999 | _v = 1; | |
34000 | } | |
34001 | } | |
34002 | if (_v) { | |
34003 | { | |
34004 | void *ptr; | |
34005 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34006 | _v = 0; | |
34007 | PyErr_Clear(); | |
34008 | } else { | |
34009 | _v = 1; | |
34010 | } | |
34011 | } | |
34012 | if (_v) { | |
34013 | { | |
34014 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34015 | } | |
34016 | if (_v) { | |
34017 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
34018 | } | |
34019 | } | |
34020 | } | |
34021 | } | |
34022 | if (argc == 3) { | |
34023 | int _v; | |
34024 | { | |
34025 | void *ptr; | |
34026 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34027 | _v = 0; | |
34028 | PyErr_Clear(); | |
34029 | } else { | |
34030 | _v = 1; | |
34031 | } | |
34032 | } | |
34033 | if (_v) { | |
34034 | { | |
34035 | void *ptr; | |
34036 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34037 | _v = 0; | |
34038 | PyErr_Clear(); | |
34039 | } else { | |
34040 | _v = 1; | |
34041 | } | |
34042 | } | |
34043 | if (_v) { | |
34044 | { | |
34045 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34046 | } | |
34047 | if (_v) { | |
34048 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
34049 | } | |
34050 | } | |
34051 | } | |
34052 | } | |
34053 | if (argc == 3) { | |
34054 | int _v; | |
34055 | { | |
34056 | void *ptr; | |
34057 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34058 | _v = 0; | |
34059 | PyErr_Clear(); | |
34060 | } else { | |
34061 | _v = 1; | |
34062 | } | |
34063 | } | |
34064 | if (_v) { | |
34065 | { | |
34066 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
34067 | } | |
34068 | if (_v) { | |
34069 | { | |
34070 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34071 | } | |
34072 | if (_v) { | |
34073 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
34074 | } | |
34075 | } | |
34076 | } | |
34077 | } | |
34078 | ||
34079 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
34080 | return NULL; | |
34081 | } | |
34082 | ||
34083 | ||
34084 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
34085 | PyObject *resultobj; | |
34086 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34087 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34088 | wxGBSizerItem *result; | |
34089 | PyObject * obj0 = 0 ; | |
34090 | PyObject * obj1 = 0 ; | |
34091 | ||
34092 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34094 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34095 | { | |
34096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34097 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34098 | ||
34099 | wxPyEndAllowThreads(__tstate); | |
34100 | if (PyErr_Occurred()) SWIG_fail; | |
34101 | } | |
34102 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34103 | return resultobj; | |
34104 | fail: | |
34105 | return NULL; | |
34106 | } | |
34107 | ||
34108 | ||
34109 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
34110 | PyObject *resultobj; | |
34111 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34112 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34113 | wxGBSizerItem *result; | |
34114 | PyObject * obj0 = 0 ; | |
34115 | PyObject * obj1 = 0 ; | |
34116 | ||
34117 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
34118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34119 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34120 | { | |
34121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34122 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
34123 | ||
34124 | wxPyEndAllowThreads(__tstate); | |
34125 | if (PyErr_Occurred()) SWIG_fail; | |
34126 | } | |
34127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34128 | return resultobj; | |
34129 | fail: | |
34130 | return NULL; | |
34131 | } | |
34132 | ||
34133 | ||
34134 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
34135 | int argc; | |
34136 | PyObject *argv[3]; | |
34137 | int ii; | |
34138 | ||
34139 | argc = PyObject_Length(args); | |
34140 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
34141 | argv[ii] = PyTuple_GetItem(args,ii); | |
34142 | } | |
34143 | if (argc == 2) { | |
34144 | int _v; | |
34145 | { | |
34146 | void *ptr; | |
34147 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34148 | _v = 0; | |
34149 | PyErr_Clear(); | |
34150 | } else { | |
34151 | _v = 1; | |
34152 | } | |
34153 | } | |
34154 | if (_v) { | |
34155 | { | |
34156 | void *ptr; | |
34157 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
34158 | _v = 0; | |
34159 | PyErr_Clear(); | |
34160 | } else { | |
34161 | _v = 1; | |
34162 | } | |
34163 | } | |
34164 | if (_v) { | |
34165 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
34166 | } | |
34167 | } | |
34168 | } | |
34169 | if (argc == 2) { | |
34170 | int _v; | |
34171 | { | |
34172 | void *ptr; | |
34173 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34174 | _v = 0; | |
34175 | PyErr_Clear(); | |
34176 | } else { | |
34177 | _v = 1; | |
34178 | } | |
34179 | } | |
34180 | if (_v) { | |
34181 | { | |
34182 | void *ptr; | |
34183 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
34184 | _v = 0; | |
34185 | PyErr_Clear(); | |
34186 | } else { | |
34187 | _v = 1; | |
34188 | } | |
34189 | } | |
34190 | if (_v) { | |
34191 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
34192 | } | |
34193 | } | |
34194 | } | |
34195 | ||
34196 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
34197 | return NULL; | |
34198 | } | |
34199 | ||
34200 | ||
34201 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34202 | PyObject *resultobj; | |
34203 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34204 | wxGBPosition *arg2 = 0 ; | |
34205 | wxGBSizerItem *result; | |
34206 | wxGBPosition temp2 ; | |
34207 | PyObject * obj0 = 0 ; | |
34208 | PyObject * obj1 = 0 ; | |
34209 | char *kwnames[] = { | |
34210 | (char *) "self",(char *) "pos", NULL | |
34211 | }; | |
34212 | ||
34213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
34214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34215 | { | |
34216 | arg2 = &temp2; | |
34217 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34218 | } | |
34219 | { | |
34220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34221 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
34222 | ||
34223 | wxPyEndAllowThreads(__tstate); | |
34224 | if (PyErr_Occurred()) SWIG_fail; | |
34225 | } | |
34226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34227 | return resultobj; | |
34228 | fail: | |
34229 | return NULL; | |
34230 | } | |
34231 | ||
34232 | ||
423f194a RD |
34233 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
34234 | PyObject *resultobj; | |
34235 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34236 | wxPoint *arg2 = 0 ; | |
34237 | wxGBSizerItem *result; | |
34238 | wxPoint temp2 ; | |
34239 | PyObject * obj0 = 0 ; | |
34240 | PyObject * obj1 = 0 ; | |
34241 | char *kwnames[] = { | |
34242 | (char *) "self",(char *) "pt", NULL | |
34243 | }; | |
34244 | ||
34245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
34246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34247 | { | |
34248 | arg2 = &temp2; | |
34249 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34250 | } | |
34251 | { | |
34252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34253 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
34254 | ||
34255 | wxPyEndAllowThreads(__tstate); | |
34256 | if (PyErr_Occurred()) SWIG_fail; | |
34257 | } | |
34258 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34259 | return resultobj; | |
34260 | fail: | |
34261 | return NULL; | |
34262 | } | |
34263 | ||
34264 | ||
d14a1e28 RD |
34265 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
34266 | PyObject *resultobj; | |
34267 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34268 | wxObject *arg2 = (wxObject *) 0 ; | |
34269 | wxGBSizerItem *result; | |
34270 | PyObject * obj0 = 0 ; | |
34271 | PyObject * obj1 = 0 ; | |
34272 | char *kwnames[] = { | |
34273 | (char *) "self",(char *) "userData", NULL | |
34274 | }; | |
34275 | ||
34276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
34277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34278 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34279 | { | |
34280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34281 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
34282 | ||
34283 | wxPyEndAllowThreads(__tstate); | |
34284 | if (PyErr_Occurred()) SWIG_fail; | |
34285 | } | |
34286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
34287 | return resultobj; | |
34288 | fail: | |
34289 | return NULL; | |
34290 | } | |
34291 | ||
34292 | ||
34293 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34294 | PyObject *resultobj; | |
34295 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34296 | PyObject * obj0 = 0 ; | |
34297 | char *kwnames[] = { | |
34298 | (char *) "self", NULL | |
34299 | }; | |
34300 | ||
34301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34303 | { | |
34304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34305 | (arg1)->RecalcSizes(); | |
34306 | ||
34307 | wxPyEndAllowThreads(__tstate); | |
34308 | if (PyErr_Occurred()) SWIG_fail; | |
34309 | } | |
34310 | Py_INCREF(Py_None); resultobj = Py_None; | |
34311 | return resultobj; | |
34312 | fail: | |
34313 | return NULL; | |
34314 | } | |
34315 | ||
34316 | ||
34317 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34318 | PyObject *resultobj; | |
34319 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34320 | wxSize result; | |
34321 | PyObject * obj0 = 0 ; | |
34322 | char *kwnames[] = { | |
34323 | (char *) "self", NULL | |
34324 | }; | |
34325 | ||
34326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34328 | { | |
34329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34330 | result = (arg1)->CalcMin(); | |
34331 | ||
34332 | wxPyEndAllowThreads(__tstate); | |
34333 | if (PyErr_Occurred()) SWIG_fail; | |
34334 | } | |
34335 | { | |
34336 | wxSize * resultptr; | |
34337 | resultptr = new wxSize((wxSize &) result); | |
34338 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34339 | } | |
34340 | return resultobj; | |
34341 | fail: | |
34342 | return NULL; | |
34343 | } | |
34344 | ||
34345 | ||
34346 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
34347 | PyObject *resultobj; | |
34348 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34349 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
34350 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
34351 | bool result; | |
34352 | PyObject * obj0 = 0 ; | |
34353 | PyObject * obj1 = 0 ; | |
34354 | PyObject * obj2 = 0 ; | |
34355 | ||
34356 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
34357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34358 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34359 | if (obj2) { | |
34360 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34361 | } | |
34362 | { | |
34363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34364 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
34365 | ||
34366 | wxPyEndAllowThreads(__tstate); | |
34367 | if (PyErr_Occurred()) SWIG_fail; | |
34368 | } | |
34369 | resultobj = PyInt_FromLong((long)result); | |
34370 | return resultobj; | |
34371 | fail: | |
34372 | return NULL; | |
34373 | } | |
34374 | ||
34375 | ||
34376 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
34377 | PyObject *resultobj; | |
34378 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
34379 | wxGBPosition *arg2 = 0 ; | |
34380 | wxGBSpan *arg3 = 0 ; | |
34381 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
34382 | bool result; | |
34383 | wxGBPosition temp2 ; | |
34384 | wxGBSpan temp3 ; | |
34385 | PyObject * obj0 = 0 ; | |
34386 | PyObject * obj1 = 0 ; | |
34387 | PyObject * obj2 = 0 ; | |
34388 | PyObject * obj3 = 0 ; | |
34389 | ||
34390 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34392 | { | |
34393 | arg2 = &temp2; | |
34394 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
34395 | } | |
34396 | { | |
34397 | arg3 = &temp3; | |
34398 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
34399 | } | |
34400 | if (obj3) { | |
34401 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34402 | } | |
34403 | { | |
34404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34405 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
34406 | ||
34407 | wxPyEndAllowThreads(__tstate); | |
34408 | if (PyErr_Occurred()) SWIG_fail; | |
34409 | } | |
34410 | resultobj = PyInt_FromLong((long)result); | |
34411 | return resultobj; | |
34412 | fail: | |
34413 | return NULL; | |
34414 | } | |
34415 | ||
34416 | ||
34417 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
34418 | int argc; | |
34419 | PyObject *argv[5]; | |
34420 | int ii; | |
34421 | ||
34422 | argc = PyObject_Length(args); | |
34423 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
34424 | argv[ii] = PyTuple_GetItem(args,ii); | |
34425 | } | |
34426 | if ((argc >= 2) && (argc <= 3)) { | |
34427 | int _v; | |
34428 | { | |
34429 | void *ptr; | |
34430 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34431 | _v = 0; | |
34432 | PyErr_Clear(); | |
34433 | } else { | |
34434 | _v = 1; | |
34435 | } | |
34436 | } | |
34437 | if (_v) { | |
34438 | { | |
34439 | void *ptr; | |
34440 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34441 | _v = 0; | |
34442 | PyErr_Clear(); | |
34443 | } else { | |
34444 | _v = 1; | |
34445 | } | |
34446 | } | |
34447 | if (_v) { | |
34448 | if (argc <= 2) { | |
34449 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34450 | } | |
34451 | { | |
34452 | void *ptr; | |
34453 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34454 | _v = 0; | |
34455 | PyErr_Clear(); | |
34456 | } else { | |
34457 | _v = 1; | |
34458 | } | |
34459 | } | |
34460 | if (_v) { | |
34461 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
34462 | } | |
34463 | } | |
34464 | } | |
34465 | } | |
34466 | if ((argc >= 3) && (argc <= 4)) { | |
34467 | int _v; | |
34468 | { | |
34469 | void *ptr; | |
34470 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
34471 | _v = 0; | |
34472 | PyErr_Clear(); | |
34473 | } else { | |
34474 | _v = 1; | |
34475 | } | |
34476 | } | |
34477 | if (_v) { | |
34478 | { | |
34479 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
34480 | } | |
34481 | if (_v) { | |
34482 | { | |
34483 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
34484 | } | |
34485 | if (_v) { | |
34486 | if (argc <= 3) { | |
34487 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
34488 | } | |
34489 | { | |
34490 | void *ptr; | |
34491 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
34492 | _v = 0; | |
34493 | PyErr_Clear(); | |
34494 | } else { | |
34495 | _v = 1; | |
34496 | } | |
34497 | } | |
34498 | if (_v) { | |
34499 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
34500 | } | |
34501 | } | |
34502 | } | |
34503 | } | |
34504 | } | |
34505 | ||
34506 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
34507 | return NULL; | |
34508 | } | |
34509 | ||
34510 | ||
34511 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
34512 | PyObject *obj; | |
34513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34514 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
34515 | Py_INCREF(obj); | |
34516 | return Py_BuildValue((char *)""); | |
34517 | } | |
34518 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34519 | PyObject *resultobj; | |
34520 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34521 | int arg2 ; | |
34522 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34523 | int arg4 ; | |
34524 | int arg5 = (int) 0 ; | |
34525 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
34526 | PyObject * obj0 = 0 ; | |
34527 | PyObject * obj2 = 0 ; | |
34528 | char *kwnames[] = { | |
34529 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
34530 | }; | |
34531 | ||
34532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOi|ii:IndividualLayoutConstraint_Set",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6)) goto fail; | |
34533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34534 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34535 | { | |
34536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34537 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
34538 | ||
34539 | wxPyEndAllowThreads(__tstate); | |
34540 | if (PyErr_Occurred()) SWIG_fail; | |
34541 | } | |
34542 | Py_INCREF(Py_None); resultobj = Py_None; | |
34543 | return resultobj; | |
34544 | fail: | |
34545 | return NULL; | |
34546 | } | |
34547 | ||
34548 | ||
34549 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34550 | PyObject *resultobj; | |
34551 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34552 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34553 | int arg3 = (int) 0 ; | |
34554 | PyObject * obj0 = 0 ; | |
34555 | PyObject * obj1 = 0 ; | |
34556 | char *kwnames[] = { | |
34557 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34558 | }; | |
34559 | ||
34560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34562 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34563 | { | |
34564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34565 | (arg1)->LeftOf(arg2,arg3); | |
34566 | ||
34567 | wxPyEndAllowThreads(__tstate); | |
34568 | if (PyErr_Occurred()) SWIG_fail; | |
34569 | } | |
34570 | Py_INCREF(Py_None); resultobj = Py_None; | |
34571 | return resultobj; | |
34572 | fail: | |
34573 | return NULL; | |
34574 | } | |
34575 | ||
34576 | ||
34577 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34578 | PyObject *resultobj; | |
34579 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34580 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34581 | int arg3 = (int) 0 ; | |
34582 | PyObject * obj0 = 0 ; | |
34583 | PyObject * obj1 = 0 ; | |
34584 | char *kwnames[] = { | |
34585 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34586 | }; | |
34587 | ||
34588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,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 | (arg1)->RightOf(arg2,arg3); | |
34594 | ||
34595 | wxPyEndAllowThreads(__tstate); | |
34596 | if (PyErr_Occurred()) SWIG_fail; | |
34597 | } | |
34598 | Py_INCREF(Py_None); resultobj = Py_None; | |
34599 | return resultobj; | |
34600 | fail: | |
34601 | return NULL; | |
34602 | } | |
34603 | ||
34604 | ||
34605 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34606 | PyObject *resultobj; | |
34607 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34608 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34609 | int arg3 = (int) 0 ; | |
34610 | PyObject * obj0 = 0 ; | |
34611 | PyObject * obj1 = 0 ; | |
34612 | char *kwnames[] = { | |
34613 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34614 | }; | |
34615 | ||
34616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34619 | { | |
34620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34621 | (arg1)->Above(arg2,arg3); | |
34622 | ||
34623 | wxPyEndAllowThreads(__tstate); | |
34624 | if (PyErr_Occurred()) SWIG_fail; | |
34625 | } | |
34626 | Py_INCREF(Py_None); resultobj = Py_None; | |
34627 | return resultobj; | |
34628 | fail: | |
34629 | return NULL; | |
34630 | } | |
34631 | ||
34632 | ||
34633 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34634 | PyObject *resultobj; | |
34635 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34637 | int arg3 = (int) 0 ; | |
34638 | PyObject * obj0 = 0 ; | |
34639 | PyObject * obj1 = 0 ; | |
34640 | char *kwnames[] = { | |
34641 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
34642 | }; | |
34643 | ||
34644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
34645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34646 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34647 | { | |
34648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34649 | (arg1)->Below(arg2,arg3); | |
34650 | ||
34651 | wxPyEndAllowThreads(__tstate); | |
34652 | if (PyErr_Occurred()) SWIG_fail; | |
34653 | } | |
34654 | Py_INCREF(Py_None); resultobj = Py_None; | |
34655 | return resultobj; | |
34656 | fail: | |
34657 | return NULL; | |
34658 | } | |
34659 | ||
34660 | ||
34661 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34662 | PyObject *resultobj; | |
34663 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34664 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34665 | int arg3 ; | |
34666 | int arg4 = (int) 0 ; | |
34667 | PyObject * obj0 = 0 ; | |
34668 | PyObject * obj1 = 0 ; | |
34669 | char *kwnames[] = { | |
34670 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
34671 | }; | |
34672 | ||
34673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
34674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34675 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34676 | { | |
34677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34678 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
34679 | ||
34680 | wxPyEndAllowThreads(__tstate); | |
34681 | if (PyErr_Occurred()) SWIG_fail; | |
34682 | } | |
34683 | Py_INCREF(Py_None); resultobj = Py_None; | |
34684 | return resultobj; | |
34685 | fail: | |
34686 | return NULL; | |
34687 | } | |
34688 | ||
34689 | ||
34690 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34691 | PyObject *resultobj; | |
34692 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34693 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34694 | int arg3 ; | |
34695 | int arg4 ; | |
34696 | PyObject * obj0 = 0 ; | |
34697 | PyObject * obj1 = 0 ; | |
34698 | char *kwnames[] = { | |
34699 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
34700 | }; | |
34701 | ||
34702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
34703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34704 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34705 | { | |
34706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34707 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
34708 | ||
34709 | wxPyEndAllowThreads(__tstate); | |
34710 | if (PyErr_Occurred()) SWIG_fail; | |
34711 | } | |
34712 | Py_INCREF(Py_None); resultobj = Py_None; | |
34713 | return resultobj; | |
34714 | fail: | |
34715 | return NULL; | |
34716 | } | |
34717 | ||
34718 | ||
34719 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34720 | PyObject *resultobj; | |
34721 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34722 | int arg2 ; | |
34723 | PyObject * obj0 = 0 ; | |
34724 | char *kwnames[] = { | |
34725 | (char *) "self",(char *) "val", NULL | |
34726 | }; | |
34727 | ||
34728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&arg2)) goto fail; | |
34729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34730 | { | |
34731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34732 | (arg1)->Absolute(arg2); | |
34733 | ||
34734 | wxPyEndAllowThreads(__tstate); | |
34735 | if (PyErr_Occurred()) SWIG_fail; | |
34736 | } | |
34737 | Py_INCREF(Py_None); resultobj = Py_None; | |
34738 | return resultobj; | |
34739 | fail: | |
34740 | return NULL; | |
34741 | } | |
34742 | ||
34743 | ||
34744 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34745 | PyObject *resultobj; | |
34746 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34747 | PyObject * obj0 = 0 ; | |
34748 | char *kwnames[] = { | |
34749 | (char *) "self", NULL | |
34750 | }; | |
34751 | ||
34752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
34753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34754 | { | |
34755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34756 | (arg1)->Unconstrained(); | |
34757 | ||
34758 | wxPyEndAllowThreads(__tstate); | |
34759 | if (PyErr_Occurred()) SWIG_fail; | |
34760 | } | |
34761 | Py_INCREF(Py_None); resultobj = Py_None; | |
34762 | return resultobj; | |
34763 | fail: | |
34764 | return NULL; | |
34765 | } | |
34766 | ||
34767 | ||
34768 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34769 | PyObject *resultobj; | |
34770 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34771 | PyObject * obj0 = 0 ; | |
34772 | char *kwnames[] = { | |
34773 | (char *) "self", NULL | |
34774 | }; | |
34775 | ||
34776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
34777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34778 | { | |
34779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34780 | (arg1)->AsIs(); | |
34781 | ||
34782 | wxPyEndAllowThreads(__tstate); | |
34783 | if (PyErr_Occurred()) SWIG_fail; | |
34784 | } | |
34785 | Py_INCREF(Py_None); resultobj = Py_None; | |
34786 | return resultobj; | |
34787 | fail: | |
34788 | return NULL; | |
34789 | } | |
34790 | ||
34791 | ||
34792 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34793 | PyObject *resultobj; | |
34794 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34795 | wxWindow *result; | |
34796 | PyObject * obj0 = 0 ; | |
34797 | char *kwnames[] = { | |
34798 | (char *) "self", NULL | |
34799 | }; | |
34800 | ||
34801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
34802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34803 | { | |
34804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34805 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
34806 | ||
34807 | wxPyEndAllowThreads(__tstate); | |
34808 | if (PyErr_Occurred()) SWIG_fail; | |
34809 | } | |
34810 | { | |
34811 | resultobj = wxPyMake_wxObject(result); | |
34812 | } | |
34813 | return resultobj; | |
34814 | fail: | |
34815 | return NULL; | |
34816 | } | |
34817 | ||
34818 | ||
34819 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34820 | PyObject *resultobj; | |
34821 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34822 | int result; | |
34823 | PyObject * obj0 = 0 ; | |
34824 | char *kwnames[] = { | |
34825 | (char *) "self", NULL | |
34826 | }; | |
34827 | ||
34828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
34829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34830 | { | |
34831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34832 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
34833 | ||
34834 | wxPyEndAllowThreads(__tstate); | |
34835 | if (PyErr_Occurred()) SWIG_fail; | |
34836 | } | |
34837 | resultobj = PyInt_FromLong((long)result); | |
34838 | return resultobj; | |
34839 | fail: | |
34840 | return NULL; | |
34841 | } | |
34842 | ||
34843 | ||
34844 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34845 | PyObject *resultobj; | |
34846 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34847 | int arg2 ; | |
34848 | PyObject * obj0 = 0 ; | |
34849 | char *kwnames[] = { | |
34850 | (char *) "self",(char *) "which", NULL | |
34851 | }; | |
34852 | ||
34853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&arg2)) goto fail; | |
34854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34855 | { | |
34856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34857 | (arg1)->SetEdge((wxEdge )arg2); | |
34858 | ||
34859 | wxPyEndAllowThreads(__tstate); | |
34860 | if (PyErr_Occurred()) SWIG_fail; | |
34861 | } | |
34862 | Py_INCREF(Py_None); resultobj = Py_None; | |
34863 | return resultobj; | |
34864 | fail: | |
34865 | return NULL; | |
34866 | } | |
34867 | ||
34868 | ||
34869 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34870 | PyObject *resultobj; | |
34871 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34872 | int arg2 ; | |
34873 | PyObject * obj0 = 0 ; | |
34874 | char *kwnames[] = { | |
34875 | (char *) "self",(char *) "v", NULL | |
34876 | }; | |
34877 | ||
34878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
34879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34880 | { | |
34881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34882 | (arg1)->SetValue(arg2); | |
34883 | ||
34884 | wxPyEndAllowThreads(__tstate); | |
34885 | if (PyErr_Occurred()) SWIG_fail; | |
34886 | } | |
34887 | Py_INCREF(Py_None); resultobj = Py_None; | |
34888 | return resultobj; | |
34889 | fail: | |
34890 | return NULL; | |
34891 | } | |
34892 | ||
34893 | ||
34894 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34895 | PyObject *resultobj; | |
34896 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34897 | int result; | |
34898 | PyObject * obj0 = 0 ; | |
34899 | char *kwnames[] = { | |
34900 | (char *) "self", NULL | |
34901 | }; | |
34902 | ||
34903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
34904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34905 | { | |
34906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34907 | result = (int)(arg1)->GetMargin(); | |
34908 | ||
34909 | wxPyEndAllowThreads(__tstate); | |
34910 | if (PyErr_Occurred()) SWIG_fail; | |
34911 | } | |
34912 | resultobj = PyInt_FromLong((long)result); | |
34913 | return resultobj; | |
34914 | fail: | |
34915 | return NULL; | |
34916 | } | |
34917 | ||
34918 | ||
34919 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34920 | PyObject *resultobj; | |
34921 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34922 | int arg2 ; | |
34923 | PyObject * obj0 = 0 ; | |
34924 | char *kwnames[] = { | |
34925 | (char *) "self",(char *) "m", NULL | |
34926 | }; | |
34927 | ||
34928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&arg2)) goto fail; | |
34929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34930 | { | |
34931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34932 | (arg1)->SetMargin(arg2); | |
34933 | ||
34934 | wxPyEndAllowThreads(__tstate); | |
34935 | if (PyErr_Occurred()) SWIG_fail; | |
34936 | } | |
34937 | Py_INCREF(Py_None); resultobj = Py_None; | |
34938 | return resultobj; | |
34939 | fail: | |
34940 | return NULL; | |
34941 | } | |
34942 | ||
34943 | ||
34944 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34945 | PyObject *resultobj; | |
34946 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34947 | int result; | |
34948 | PyObject * obj0 = 0 ; | |
34949 | char *kwnames[] = { | |
34950 | (char *) "self", NULL | |
34951 | }; | |
34952 | ||
34953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
34954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34955 | { | |
34956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34957 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
34958 | ||
34959 | wxPyEndAllowThreads(__tstate); | |
34960 | if (PyErr_Occurred()) SWIG_fail; | |
34961 | } | |
34962 | resultobj = PyInt_FromLong((long)result); | |
34963 | return resultobj; | |
34964 | fail: | |
34965 | return NULL; | |
34966 | } | |
34967 | ||
34968 | ||
34969 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34970 | PyObject *resultobj; | |
34971 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34972 | int result; | |
34973 | PyObject * obj0 = 0 ; | |
34974 | char *kwnames[] = { | |
34975 | (char *) "self", NULL | |
34976 | }; | |
34977 | ||
34978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
34979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34980 | { | |
34981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34982 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
34983 | ||
34984 | wxPyEndAllowThreads(__tstate); | |
34985 | if (PyErr_Occurred()) SWIG_fail; | |
34986 | } | |
34987 | resultobj = PyInt_FromLong((long)result); | |
34988 | return resultobj; | |
34989 | fail: | |
34990 | return NULL; | |
34991 | } | |
34992 | ||
34993 | ||
34994 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34995 | PyObject *resultobj; | |
34996 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
34997 | int result; | |
34998 | PyObject * obj0 = 0 ; | |
34999 | char *kwnames[] = { | |
35000 | (char *) "self", NULL | |
35001 | }; | |
35002 | ||
35003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
35004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35005 | { | |
35006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35007 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
35008 | ||
35009 | wxPyEndAllowThreads(__tstate); | |
35010 | if (PyErr_Occurred()) SWIG_fail; | |
35011 | } | |
35012 | resultobj = PyInt_FromLong((long)result); | |
35013 | return resultobj; | |
35014 | fail: | |
35015 | return NULL; | |
35016 | } | |
35017 | ||
35018 | ||
35019 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35020 | PyObject *resultobj; | |
35021 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35022 | bool result; | |
35023 | PyObject * obj0 = 0 ; | |
35024 | char *kwnames[] = { | |
35025 | (char *) "self", NULL | |
35026 | }; | |
35027 | ||
35028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
35029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35030 | { | |
35031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35032 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
35033 | ||
35034 | wxPyEndAllowThreads(__tstate); | |
35035 | if (PyErr_Occurred()) SWIG_fail; | |
35036 | } | |
35037 | resultobj = PyInt_FromLong((long)result); | |
35038 | return resultobj; | |
35039 | fail: | |
35040 | return NULL; | |
35041 | } | |
35042 | ||
35043 | ||
35044 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35045 | PyObject *resultobj; | |
35046 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35047 | bool arg2 ; | |
35048 | PyObject * obj0 = 0 ; | |
35049 | PyObject * obj1 = 0 ; | |
35050 | char *kwnames[] = { | |
35051 | (char *) "self",(char *) "d", NULL | |
35052 | }; | |
35053 | ||
35054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
35055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35056 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
35057 | if (PyErr_Occurred()) SWIG_fail; | |
35058 | { | |
35059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35060 | (arg1)->SetDone(arg2); | |
35061 | ||
35062 | wxPyEndAllowThreads(__tstate); | |
35063 | if (PyErr_Occurred()) SWIG_fail; | |
35064 | } | |
35065 | Py_INCREF(Py_None); resultobj = Py_None; | |
35066 | return resultobj; | |
35067 | fail: | |
35068 | return NULL; | |
35069 | } | |
35070 | ||
35071 | ||
35072 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35073 | PyObject *resultobj; | |
35074 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35075 | int result; | |
35076 | PyObject * obj0 = 0 ; | |
35077 | char *kwnames[] = { | |
35078 | (char *) "self", NULL | |
35079 | }; | |
35080 | ||
35081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
35082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35083 | { | |
35084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35085 | result = (int)(arg1)->GetRelationship(); | |
35086 | ||
35087 | wxPyEndAllowThreads(__tstate); | |
35088 | if (PyErr_Occurred()) SWIG_fail; | |
35089 | } | |
35090 | resultobj = PyInt_FromLong((long)result); | |
35091 | return resultobj; | |
35092 | fail: | |
35093 | return NULL; | |
35094 | } | |
35095 | ||
35096 | ||
35097 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35098 | PyObject *resultobj; | |
35099 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35100 | int arg2 ; | |
35101 | PyObject * obj0 = 0 ; | |
35102 | char *kwnames[] = { | |
35103 | (char *) "self",(char *) "r", NULL | |
35104 | }; | |
35105 | ||
35106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&arg2)) goto fail; | |
35107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35108 | { | |
35109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35110 | (arg1)->SetRelationship((wxRelationship )arg2); | |
35111 | ||
35112 | wxPyEndAllowThreads(__tstate); | |
35113 | if (PyErr_Occurred()) SWIG_fail; | |
35114 | } | |
35115 | Py_INCREF(Py_None); resultobj = Py_None; | |
35116 | return resultobj; | |
35117 | fail: | |
35118 | return NULL; | |
35119 | } | |
35120 | ||
35121 | ||
35122 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35123 | PyObject *resultobj; | |
35124 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35125 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35126 | bool result; | |
35127 | PyObject * obj0 = 0 ; | |
35128 | PyObject * obj1 = 0 ; | |
35129 | char *kwnames[] = { | |
35130 | (char *) "self",(char *) "otherW", NULL | |
35131 | }; | |
35132 | ||
35133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
35134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35135 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35136 | { | |
35137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35138 | result = (bool)(arg1)->ResetIfWin(arg2); | |
35139 | ||
35140 | wxPyEndAllowThreads(__tstate); | |
35141 | if (PyErr_Occurred()) SWIG_fail; | |
35142 | } | |
35143 | resultobj = PyInt_FromLong((long)result); | |
35144 | return resultobj; | |
35145 | fail: | |
35146 | return NULL; | |
35147 | } | |
35148 | ||
35149 | ||
35150 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35151 | PyObject *resultobj; | |
35152 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35153 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
35154 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35155 | bool result; | |
35156 | PyObject * obj0 = 0 ; | |
35157 | PyObject * obj1 = 0 ; | |
35158 | PyObject * obj2 = 0 ; | |
35159 | char *kwnames[] = { | |
35160 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
35161 | }; | |
35162 | ||
35163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35165 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35166 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35167 | { | |
35168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35169 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
35170 | ||
35171 | wxPyEndAllowThreads(__tstate); | |
35172 | if (PyErr_Occurred()) SWIG_fail; | |
35173 | } | |
35174 | resultobj = PyInt_FromLong((long)result); | |
35175 | return resultobj; | |
35176 | fail: | |
35177 | return NULL; | |
35178 | } | |
35179 | ||
35180 | ||
35181 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35182 | PyObject *resultobj; | |
35183 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
35184 | int arg2 ; | |
35185 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35186 | wxWindow *arg4 = (wxWindow *) 0 ; | |
35187 | int result; | |
35188 | PyObject * obj0 = 0 ; | |
35189 | PyObject * obj2 = 0 ; | |
35190 | PyObject * obj3 = 0 ; | |
35191 | char *kwnames[] = { | |
35192 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
35193 | }; | |
35194 | ||
35195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
35196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35197 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35198 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35199 | { | |
35200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35201 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
35202 | ||
35203 | wxPyEndAllowThreads(__tstate); | |
35204 | if (PyErr_Occurred()) SWIG_fail; | |
35205 | } | |
35206 | resultobj = PyInt_FromLong((long)result); | |
35207 | return resultobj; | |
35208 | fail: | |
35209 | return NULL; | |
35210 | } | |
35211 | ||
35212 | ||
35213 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
35214 | PyObject *obj; | |
35215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35216 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
35217 | Py_INCREF(obj); | |
35218 | return Py_BuildValue((char *)""); | |
35219 | } | |
35220 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35221 | PyObject *resultobj; | |
35222 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35223 | wxIndividualLayoutConstraint *result; | |
35224 | PyObject * obj0 = 0 ; | |
35225 | char *kwnames[] = { | |
35226 | (char *) "self", NULL | |
35227 | }; | |
35228 | ||
35229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
35230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35231 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
35232 | ||
35233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35234 | return resultobj; | |
35235 | fail: | |
35236 | return NULL; | |
35237 | } | |
35238 | ||
35239 | ||
35240 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35241 | PyObject *resultobj; | |
35242 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35243 | wxIndividualLayoutConstraint *result; | |
35244 | PyObject * obj0 = 0 ; | |
35245 | char *kwnames[] = { | |
35246 | (char *) "self", NULL | |
35247 | }; | |
35248 | ||
35249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
35250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35251 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
35252 | ||
35253 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35254 | return resultobj; | |
35255 | fail: | |
35256 | return NULL; | |
35257 | } | |
35258 | ||
35259 | ||
35260 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35261 | PyObject *resultobj; | |
35262 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35263 | wxIndividualLayoutConstraint *result; | |
35264 | PyObject * obj0 = 0 ; | |
35265 | char *kwnames[] = { | |
35266 | (char *) "self", NULL | |
35267 | }; | |
35268 | ||
35269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
35270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35271 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
35272 | ||
35273 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35274 | return resultobj; | |
35275 | fail: | |
35276 | return NULL; | |
35277 | } | |
35278 | ||
35279 | ||
35280 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35281 | PyObject *resultobj; | |
35282 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35283 | wxIndividualLayoutConstraint *result; | |
35284 | PyObject * obj0 = 0 ; | |
35285 | char *kwnames[] = { | |
35286 | (char *) "self", NULL | |
35287 | }; | |
35288 | ||
35289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
35290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35291 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
35292 | ||
35293 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35294 | return resultobj; | |
35295 | fail: | |
35296 | return NULL; | |
35297 | } | |
35298 | ||
35299 | ||
35300 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35301 | PyObject *resultobj; | |
35302 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35303 | wxIndividualLayoutConstraint *result; | |
35304 | PyObject * obj0 = 0 ; | |
35305 | char *kwnames[] = { | |
35306 | (char *) "self", NULL | |
35307 | }; | |
35308 | ||
35309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
35310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35311 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
35312 | ||
35313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35314 | return resultobj; | |
35315 | fail: | |
35316 | return NULL; | |
35317 | } | |
35318 | ||
35319 | ||
35320 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35321 | PyObject *resultobj; | |
35322 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35323 | wxIndividualLayoutConstraint *result; | |
35324 | PyObject * obj0 = 0 ; | |
35325 | char *kwnames[] = { | |
35326 | (char *) "self", NULL | |
35327 | }; | |
35328 | ||
35329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
35330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35331 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
35332 | ||
35333 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35334 | return resultobj; | |
35335 | fail: | |
35336 | return NULL; | |
35337 | } | |
35338 | ||
35339 | ||
35340 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35341 | PyObject *resultobj; | |
35342 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35343 | wxIndividualLayoutConstraint *result; | |
35344 | PyObject * obj0 = 0 ; | |
35345 | char *kwnames[] = { | |
35346 | (char *) "self", NULL | |
35347 | }; | |
35348 | ||
35349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
35350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35351 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
35352 | ||
35353 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35354 | return resultobj; | |
35355 | fail: | |
35356 | return NULL; | |
35357 | } | |
35358 | ||
35359 | ||
35360 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35361 | PyObject *resultobj; | |
35362 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35363 | wxIndividualLayoutConstraint *result; | |
35364 | PyObject * obj0 = 0 ; | |
35365 | char *kwnames[] = { | |
35366 | (char *) "self", NULL | |
35367 | }; | |
35368 | ||
35369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
35370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35371 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
35372 | ||
35373 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
35374 | return resultobj; | |
35375 | fail: | |
35376 | return NULL; | |
35377 | } | |
35378 | ||
35379 | ||
35380 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35381 | PyObject *resultobj; | |
35382 | wxLayoutConstraints *result; | |
35383 | char *kwnames[] = { | |
35384 | NULL | |
35385 | }; | |
35386 | ||
35387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
35388 | { | |
35389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35390 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
35391 | ||
35392 | wxPyEndAllowThreads(__tstate); | |
35393 | if (PyErr_Occurred()) SWIG_fail; | |
35394 | } | |
35395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
35396 | return resultobj; | |
35397 | fail: | |
35398 | return NULL; | |
35399 | } | |
35400 | ||
35401 | ||
35402 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35403 | PyObject *resultobj; | |
35404 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35405 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35406 | int *arg3 = (int *) 0 ; | |
35407 | bool result; | |
35408 | int temp3 ; | |
35409 | PyObject * obj0 = 0 ; | |
35410 | PyObject * obj1 = 0 ; | |
35411 | char *kwnames[] = { | |
35412 | (char *) "self",(char *) "win", NULL | |
35413 | }; | |
35414 | ||
35415 | arg3 = &temp3; | |
35416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
35417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35418 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35419 | { | |
35420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35421 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
35422 | ||
35423 | wxPyEndAllowThreads(__tstate); | |
35424 | if (PyErr_Occurred()) SWIG_fail; | |
35425 | } | |
35426 | resultobj = PyInt_FromLong((long)result); | |
35427 | { | |
35428 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
35429 | resultobj = t_output_helper(resultobj,o); | |
35430 | } | |
35431 | return resultobj; | |
35432 | fail: | |
35433 | return NULL; | |
35434 | } | |
35435 | ||
35436 | ||
35437 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35438 | PyObject *resultobj; | |
35439 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
35440 | bool result; | |
35441 | PyObject * obj0 = 0 ; | |
35442 | char *kwnames[] = { | |
35443 | (char *) "self", NULL | |
35444 | }; | |
35445 | ||
35446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
35447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35448 | { | |
35449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35450 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
35451 | ||
35452 | wxPyEndAllowThreads(__tstate); | |
35453 | if (PyErr_Occurred()) SWIG_fail; | |
35454 | } | |
35455 | resultobj = PyInt_FromLong((long)result); | |
35456 | return resultobj; | |
35457 | fail: | |
35458 | return NULL; | |
35459 | } | |
35460 | ||
35461 | ||
35462 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
35463 | PyObject *obj; | |
35464 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35465 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
35466 | Py_INCREF(obj); | |
35467 | return Py_BuildValue((char *)""); | |
35468 | } | |
35469 | static PyMethodDef SwigMethods[] = { | |
35470 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
35471 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
35472 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
35473 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
35474 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
35475 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
35476 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
35477 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
35478 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
35479 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
35480 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35481 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35482 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
35483 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
35484 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
35485 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
35486 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
35487 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35488 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35489 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35490 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 35491 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
35492 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
35493 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35494 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35495 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35496 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35497 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
35498 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
35499 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
35500 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
35501 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
35502 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 35503 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 35504 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
35505 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
35506 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35507 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35508 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35509 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35510 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
35511 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
35512 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35513 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35514 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
35515 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
35516 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
35517 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
35518 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 35519 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
35520 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
35521 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
35522 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
35523 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
35524 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
35525 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35526 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
35527 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35528 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
35529 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35530 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35531 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35532 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35533 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35534 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35535 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
35536 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
35537 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
35538 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
35539 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
35540 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
35541 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
35542 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
35543 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
35544 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
35545 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
35546 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
35547 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
35548 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
35549 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
35550 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
35551 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
35552 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
35553 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
35554 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
35555 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
35556 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35557 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
35558 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
35559 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
35560 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
35561 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35562 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35563 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35564 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35565 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
35566 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
35567 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
35568 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
35569 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 35570 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
35571 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
35572 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
35573 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
35574 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
35575 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
35576 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
35577 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
35578 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
35579 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
35580 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
35581 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
35582 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
35583 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
35584 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
35585 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
35586 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
35587 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
35588 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
35589 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
35590 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
35591 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
35592 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
35593 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
35594 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35595 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35596 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35597 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 35598 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
35599 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
35600 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
35601 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
35602 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
35603 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
35604 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
35605 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
35606 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
35607 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
35608 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
35609 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
35610 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
35611 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
35612 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
35613 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
35614 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
35615 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
35616 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
35617 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
35618 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
35619 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
35620 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
35621 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
35622 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
35623 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
35624 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
35625 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
35626 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
35627 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
35628 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
35629 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
35630 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
35631 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35632 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35633 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35634 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35635 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
35636 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
35637 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
35638 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
35639 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
35640 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
35641 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
35642 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
35643 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
35644 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
35645 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35646 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35647 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35648 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
35649 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
35650 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
35651 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
35652 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
35653 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
35654 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35655 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35656 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
35657 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
35658 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35659 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35660 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35661 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35662 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
35663 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
35664 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35665 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
35666 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
35667 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
35668 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
35669 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
35670 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
35671 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
35672 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
35673 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
35674 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
35675 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
35676 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
35677 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
35678 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
35679 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
35680 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
35681 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
35682 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
35683 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
35684 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
35685 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
35686 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
35687 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
35688 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
35689 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
35690 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
35691 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
35692 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
35693 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35694 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
35695 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
35696 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
35697 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
35698 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
35699 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
35700 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
35701 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
35702 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
35703 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
35704 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
35705 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
35706 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
35707 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
35708 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
35709 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
35710 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
35711 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
35712 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
35713 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
35714 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
35715 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
35716 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
35717 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
35718 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
35719 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
35720 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
35721 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
35722 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
35723 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
35724 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
35725 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
35726 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35727 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35728 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
35729 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
35730 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35731 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
35732 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
35733 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
35734 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
35735 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
35736 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
35737 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
35738 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
35739 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
35740 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
35741 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
35742 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
35743 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
35744 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
35745 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
35746 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
35747 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
35748 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
35749 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
35750 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
35751 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
35752 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
35753 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
35754 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35755 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
35756 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
35757 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
35758 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
35759 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
35760 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
35761 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
35762 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
35763 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
35764 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
35765 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
35766 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
35767 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
35768 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
35769 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
35770 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
35771 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
35772 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
35773 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
35774 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
35775 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
35776 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
35777 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
35778 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
35779 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
35780 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
35781 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
35782 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
35783 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
35784 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
35785 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
35786 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
35787 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
35788 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
35789 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
35790 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
35791 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
35792 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
35793 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
35794 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
35795 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
35796 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
35797 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
35798 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
35799 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
35800 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
35801 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
35802 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
35803 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
35804 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
35805 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
35806 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
35807 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
35808 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
35809 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
35810 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
35811 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
35812 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
35813 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
35814 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
35815 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
35816 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
35817 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
35818 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
35819 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
35820 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
35821 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
35822 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
35823 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
35824 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
35825 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
35826 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
35827 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
35828 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
35829 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
35830 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
35831 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
35832 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
35833 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
35834 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
35835 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
35836 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35837 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35838 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35839 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35840 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
35841 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
35842 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35843 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35844 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
35845 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35846 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
35847 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
35848 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
35849 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
35850 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
35851 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
35852 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
35853 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35854 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
35855 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
35856 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
35857 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
35858 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
35859 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
35860 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
35861 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
35862 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
35863 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
35864 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
35865 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
35866 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
35867 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
35868 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35869 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35870 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
35871 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
35872 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
35873 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
35874 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
35875 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35876 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
35877 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
35878 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35879 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35880 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
35881 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
35882 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
35883 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
35884 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35885 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35886 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35887 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35888 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35889 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35890 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35891 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35892 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35893 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35894 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35895 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35896 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35897 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35898 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35899 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35900 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35901 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35902 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
35903 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
35904 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
35905 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
35906 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
35907 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
35908 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
35909 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
35910 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35911 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35912 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
35913 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
35914 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
35915 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
35916 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
35917 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
35918 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
35919 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
35920 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
35921 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
35922 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
35923 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
35924 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
35925 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
35926 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35927 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
35928 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
35929 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
35930 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
35931 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
35932 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
35933 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
35934 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
35935 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
35936 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35937 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35938 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35939 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35940 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35941 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35942 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
35943 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
35944 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
35945 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
35946 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
35947 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
35948 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
35949 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
35950 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
35951 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
35952 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
35953 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
35954 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
35955 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
35956 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
35957 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
35958 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
35959 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
35960 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
35961 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
35962 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35963 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
35964 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
35965 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
35966 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
35967 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
35968 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
35969 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
35970 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
35971 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
35972 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
35973 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
35974 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
35975 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
35976 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
35977 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
35978 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
35979 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35980 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35981 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
35982 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
35983 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
35984 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
35985 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
35986 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
35987 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
35988 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
35989 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
35990 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
35991 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
35992 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
35993 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
35994 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
35995 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
35996 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
35997 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
35998 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
35999 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
36000 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
36001 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
36002 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
36003 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
36004 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
36005 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
36006 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
36007 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36008 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
36009 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
36010 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
36011 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
36012 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36013 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
36014 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
36015 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
36016 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
36017 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
36018 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36019 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36020 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
36021 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
36022 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36023 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
36024 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36025 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36026 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
36027 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
36028 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
36029 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
36030 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
36031 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
36032 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
36033 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36034 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
36035 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36036 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36037 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
36038 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36039 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
36040 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
36041 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36042 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
36043 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
36044 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
36045 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
36046 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
36047 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
36048 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36049 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
36050 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
36051 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
36052 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
36053 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
36054 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
36055 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
36056 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
36057 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36058 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
36059 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36060 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36061 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
36062 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
36063 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36064 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36065 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
36066 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
36067 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
36068 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
36069 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
36070 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
36071 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
36072 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
36073 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36074 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
36075 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36076 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36077 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
36078 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36079 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
36080 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36081 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
36082 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
36083 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36084 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
36085 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36086 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36087 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
36088 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36089 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
36090 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36091 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
36092 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
36093 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
36094 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36095 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36096 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36097 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36098 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
36099 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
36100 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
36101 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
36102 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36103 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
36104 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36105 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
36106 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36107 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
36108 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36109 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
36110 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
36111 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 36112 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 36113 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36114 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
36115 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36116 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36117 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36118 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36119 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
36120 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36121 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36122 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
36123 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
36124 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
36125 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
36126 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
36127 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
36128 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
36129 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
36130 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
36131 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
36132 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
36133 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
36134 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
36135 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
36136 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
36137 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
36138 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36139 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36140 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
36141 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
36142 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
36143 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
36144 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36145 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36146 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
36147 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
36148 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36149 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
36150 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
36151 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
36152 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
36153 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36154 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
36155 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
36156 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36157 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36158 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36159 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36160 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
36161 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
36162 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36163 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36164 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
36165 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
36166 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
36167 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
36168 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
36169 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
36170 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36171 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
36172 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
36173 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
36174 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
36175 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36176 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36177 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36178 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36179 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
36180 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36181 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36182 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
36183 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
36184 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36185 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
36186 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36187 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36188 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36189 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
36190 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
36191 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
36192 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
36193 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
36194 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
36195 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36196 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36197 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
36198 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
36199 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
36200 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
36201 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
36202 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36203 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
36204 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36205 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
36206 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
36207 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
36208 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
36209 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36210 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
36211 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36212 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36213 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36214 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
36215 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36216 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
36217 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
36218 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
36219 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36220 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
36221 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
36222 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36223 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36224 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
36225 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
36226 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
36227 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
36228 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
36229 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
36230 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36231 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36232 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
36233 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
36234 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36235 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
36236 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
36237 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
36238 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
36239 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
36240 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36241 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36242 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36243 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36244 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36245 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36246 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36247 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36248 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
36249 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36250 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
36251 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36252 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
36253 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36254 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
36255 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
36256 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
36257 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36258 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
36259 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
36260 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
36261 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
36262 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
36263 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
36264 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
36265 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
36266 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
36267 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
36268 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
36269 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
36270 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
36271 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
36272 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
36273 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
36274 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
36275 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
36276 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36277 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36278 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36279 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
36280 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36281 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
36282 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
36283 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
36284 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36285 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
36286 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
36287 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
36288 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36289 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
36290 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
36291 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
36292 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
36293 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
36294 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
36295 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
36296 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
36297 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36298 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
36299 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
36300 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
36301 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
36302 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36303 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
36304 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36305 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
36306 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
36307 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
36308 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
36309 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
36310 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
36311 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
36312 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
36313 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
36314 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
36315 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36316 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
36317 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
36318 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
36319 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36320 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
36321 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36322 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
36323 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36324 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36325 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36326 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
36327 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
36328 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36329 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
36330 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36331 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36332 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
36333 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
36334 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
36335 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
36336 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
36337 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
36338 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
36339 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
36340 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
36341 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
36342 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
36343 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36344 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36345 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
36346 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
36347 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
36348 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
36349 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36350 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
36351 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
36352 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
36353 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36354 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36355 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36356 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
36357 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
36358 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
36359 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
36360 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36361 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36362 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36363 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36364 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
36365 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
36366 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
36367 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36368 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
36369 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
36370 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
36371 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36372 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
36373 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36374 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
36375 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
36376 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
36377 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
36378 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
36379 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
36380 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
36381 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36382 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
36383 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36384 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36385 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
36386 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36387 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36388 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36389 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36390 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36391 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36392 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
36393 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36394 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
36395 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36396 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
36397 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
36398 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
36399 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36400 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36401 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36402 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36403 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
36404 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
36405 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
36406 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
36407 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
36408 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36409 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
36410 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36411 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
36412 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36413 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
36414 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
36415 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36416 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
36417 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36418 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
36419 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
36420 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36421 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
36422 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36423 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36424 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36425 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36426 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36427 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
36428 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
36429 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
36430 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
36431 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
36432 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
36433 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
36434 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36435 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
36436 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
36437 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
36438 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
36439 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
36440 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36441 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
36442 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
36443 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
36444 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36445 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
36446 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36447 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36448 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
36449 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
36450 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
36451 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
36452 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
36453 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
36454 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36455 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
36456 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36457 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
36458 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
36459 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36460 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
36461 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
36462 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
36463 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
36464 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
36465 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
36466 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36467 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
36468 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
36469 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
36470 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
36471 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36472 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
36473 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
36474 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
36475 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
36476 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
36477 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
36478 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
36479 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
36480 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
36481 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
36482 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
36483 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
36484 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
36485 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
36486 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
36487 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
36488 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36489 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
36490 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
36491 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
36492 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
36493 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36494 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36495 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
36496 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36497 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
36498 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
36499 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
36500 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
36501 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
36502 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
36503 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
36504 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36505 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
36506 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
36507 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
36508 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
36509 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36510 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
36511 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36512 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
36513 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36514 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
36515 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36516 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36517 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
36518 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36519 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36520 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
36521 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
36522 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
36523 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
36524 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
36525 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
36526 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
36527 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36528 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
36529 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
36530 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
36531 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
36532 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36533 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
36534 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
36535 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
36536 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36537 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36538 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
36539 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
36540 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
36541 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36542 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
36543 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
36544 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
36545 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
36546 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
36547 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
36548 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
36549 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
36550 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
36551 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
36552 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
36553 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
36554 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
36555 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36556 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
36557 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36558 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36559 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
36560 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
36561 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
36562 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36563 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36564 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
36565 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
36566 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36567 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36568 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
36569 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
36570 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
36571 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
36572 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
36573 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
36574 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
36575 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
36576 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
36577 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
36578 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36579 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36580 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
36581 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
36582 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
36583 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
36584 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
36585 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
36586 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
36587 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
36588 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
36589 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36590 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
36591 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
36592 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
36593 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
36594 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
36595 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
36596 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36597 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
36598 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
36599 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36600 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
36601 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
36602 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
36603 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
36604 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
36605 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
36606 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
36607 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
36608 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
36609 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
36610 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
36611 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
36612 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
36613 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
36614 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
36615 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
36616 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
36617 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
36618 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
36619 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
36620 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
36621 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
36622 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
36623 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
36624 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
36625 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
36626 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
36627 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
36628 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
36629 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
36630 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
36631 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
36632 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
36633 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
36634 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 36635 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
36636 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
36637 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
36638 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
36639 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
36640 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
36641 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
36642 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
36643 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
36644 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
36645 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
36646 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
36647 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
36648 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
36649 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
36650 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
36651 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
36652 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
36653 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
36654 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
36655 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
36656 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
36657 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
36658 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
36659 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
36660 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
36661 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
36662 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
36663 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
36664 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
36665 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
36666 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
36667 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
36668 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
36669 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
36670 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
36671 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
36672 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
36673 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
36674 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
36675 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
36676 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36677 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
36678 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
36679 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
36680 | { NULL, NULL } | |
36681 | }; | |
36682 | ||
36683 | ||
36684 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
36685 | ||
36686 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
36687 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
36688 | } | |
36689 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
36690 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
36691 | } | |
36692 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
36693 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36694 | } | |
36695 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
36696 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36697 | } | |
36698 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
36699 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
36700 | } | |
36701 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
36702 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36703 | } | |
36704 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
36705 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
36706 | } | |
36707 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
36708 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36709 | } | |
36710 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
36711 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36712 | } | |
36713 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
36714 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
36715 | } | |
36716 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
36717 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
36718 | } | |
36719 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
36720 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
36721 | } | |
36722 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
36723 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
36724 | } | |
36725 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
36726 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
36727 | } | |
36728 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
36729 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
36730 | } | |
36731 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
36732 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
36733 | } | |
36734 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
36735 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
36736 | } | |
36737 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
36738 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36739 | } | |
36740 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
36741 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
36742 | } | |
36743 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
36744 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36745 | } | |
36746 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
36747 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36748 | } | |
36749 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
36750 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
36751 | } | |
36752 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
36753 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
36754 | } | |
36755 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
36756 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
36757 | } | |
36758 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
36759 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
36760 | } | |
36761 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
36762 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
36763 | } | |
36764 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
36765 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
36766 | } | |
36767 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
36768 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
36769 | } | |
36770 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
36771 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36772 | } | |
36773 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
36774 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36775 | } | |
36776 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
36777 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36778 | } | |
36779 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
36780 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36781 | } | |
36782 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
36783 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36784 | } | |
36785 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
36786 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
36787 | } | |
36788 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
36789 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
36790 | } | |
36791 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
36792 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36793 | } | |
36794 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
36795 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
36796 | } | |
36797 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
36798 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
36799 | } | |
36800 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
36801 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36802 | } | |
36803 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
36804 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36805 | } | |
36806 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
36807 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36808 | } | |
36809 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
36810 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
36811 | } | |
36812 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
36813 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
36814 | } | |
36815 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
36816 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36817 | } | |
36818 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
36819 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36820 | } | |
36821 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
36822 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36823 | } | |
36824 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
36825 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
36826 | } | |
36827 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
36828 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
36829 | } | |
36830 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
36831 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
36832 | } | |
36833 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
36834 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
36835 | } | |
36836 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
36837 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36838 | } | |
36839 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
36840 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
36841 | } | |
36842 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
36843 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
36844 | } | |
36845 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
36846 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
36847 | } | |
36848 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
36849 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
36850 | } | |
36851 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
36852 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
36853 | } | |
36854 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
36855 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
36856 | } | |
36857 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
36858 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
36859 | } | |
36860 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
36861 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
36862 | } | |
36863 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
36864 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
36865 | } | |
36866 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
36867 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
36868 | } | |
36869 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
36870 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36871 | } | |
36872 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
36873 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
36874 | } | |
36875 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
36876 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
36877 | } | |
36878 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
36879 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36880 | } | |
36881 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
36882 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36883 | } | |
36884 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
36885 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
36886 | } | |
36887 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
36888 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
36889 | } | |
36890 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
36891 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
36892 | } | |
36893 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
36894 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
36895 | } | |
36896 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
36897 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
36898 | } | |
36899 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
36900 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
36901 | } | |
36902 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
36903 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
36904 | } | |
36905 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
36906 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
36907 | } | |
36908 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
36909 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
36910 | } | |
36911 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
36912 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
36913 | } | |
36914 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
36915 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
36916 | } | |
36917 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36918 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36919 | } | |
36920 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36921 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36922 | } | |
36923 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36924 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36925 | } | |
36926 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36927 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36928 | } | |
36929 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36930 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36931 | } | |
36932 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36933 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36934 | } | |
36935 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36936 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36937 | } | |
36938 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36939 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36940 | } | |
36941 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36942 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36943 | } | |
36944 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36945 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36946 | } | |
36947 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36948 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36949 | } | |
36950 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36951 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36952 | } | |
36953 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
36954 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36955 | } | |
36956 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36957 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36958 | } | |
36959 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36960 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36961 | } | |
36962 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36963 | return (void *)((wxObject *) ((wxImage *) x)); | |
36964 | } | |
36965 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36966 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36967 | } | |
36968 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36969 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36970 | } | |
36971 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36972 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36973 | } | |
36974 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36975 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36976 | } | |
36977 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36978 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36979 | } | |
41f1cec7 RD |
36980 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
36981 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36982 | } | |
d14a1e28 RD |
36983 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
36984 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36985 | } | |
36986 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36987 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36988 | } | |
36989 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36990 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36991 | } | |
36992 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36993 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36994 | } | |
36995 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36996 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36997 | } | |
36998 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36999 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
37000 | } | |
37001 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
37002 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
37003 | } | |
37004 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
37005 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
37006 | } | |
37007 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
37008 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
37009 | } | |
37010 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
37011 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37012 | } | |
37013 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
37014 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37015 | } | |
37016 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
37017 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
37018 | } | |
37019 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
37020 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37021 | } | |
37022 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
37023 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
37024 | } | |
37025 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
37026 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
37027 | } | |
37028 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
37029 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
37030 | } | |
37031 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
37032 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
37033 | } | |
37034 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
37035 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
37036 | } | |
37037 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
37038 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
37039 | } | |
37040 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
37041 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37042 | } | |
37043 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
37044 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
37045 | } | |
37046 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
37047 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
37048 | } | |
37049 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
37050 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
37051 | } | |
37052 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
37053 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
37054 | } | |
37055 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
37056 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
37057 | } | |
37058 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
37059 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
37060 | } | |
37061 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
37062 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
37063 | } | |
37064 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
37065 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
37066 | } | |
37067 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
37068 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37069 | } | |
37070 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
37071 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37072 | } | |
37073 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
37074 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37075 | } | |
37076 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
37077 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37078 | } | |
37079 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
37080 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37081 | } | |
37082 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
37083 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
37084 | } | |
37085 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
37086 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
37087 | } | |
37088 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
37089 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37090 | } | |
37091 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
37092 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
37093 | } | |
37094 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
37095 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
37096 | } | |
37097 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
37098 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
37099 | } | |
37100 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
37101 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
37102 | } | |
37103 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
37104 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
37105 | } | |
37106 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
37107 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
37108 | } | |
37109 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
37110 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
37111 | } | |
37112 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
37113 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37114 | } | |
37115 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
37116 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
37117 | } | |
37118 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
37119 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37120 | } | |
37121 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
37122 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37123 | } | |
37124 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
37125 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37126 | } | |
37127 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
37128 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
37129 | } | |
37130 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
37131 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
37132 | } | |
37133 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
37134 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
37135 | } | |
37136 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
37137 | return (void *)((wxWindow *) ((wxControl *) x)); | |
37138 | } | |
37139 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
37140 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
37141 | } | |
37142 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
37143 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
37144 | } | |
37145 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
37146 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37147 | } | |
37148 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
37149 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
37150 | } | |
37151 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
37152 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37153 | } | |
37154 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
37155 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37156 | } | |
37157 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
37158 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37159 | } | |
37160 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
37161 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37162 | } | |
37163 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
37164 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37165 | } | |
37166 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
37167 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37168 | } | |
37169 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
37170 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
37171 | } | |
37172 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
37173 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
37174 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
37175 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
37176 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
37177 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
37178 | 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}}; | |
37179 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
37180 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
37181 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
37182 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
37183 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
37184 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
37185 | 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}}; | |
37186 | 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}}; | |
37187 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
37188 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
37189 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
37190 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
37191 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
37192 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
37193 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
37194 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
37195 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
37196 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
37197 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
37198 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
37199 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
37200 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
37201 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
37202 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
37203 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
37204 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
37205 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
37206 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
37207 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
37208 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
37209 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
37210 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
37211 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
37212 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
37213 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
37214 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
37215 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; | |
37216 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; | |
37217 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
37218 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
37219 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
37220 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; | |
37221 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
37222 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
37223 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
37224 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
37225 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
37226 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
37227 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
37228 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
37229 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
37230 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
37231 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
37232 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
37233 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
37234 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
37235 | 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}}; | |
37236 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
37237 | 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}}; | |
37238 | 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}}; | |
37239 | 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}}; | |
37240 | 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}}; | |
37241 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
37242 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
37243 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; | |
37244 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
37245 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
37246 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
37247 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
37248 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; | |
37249 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
37250 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
37251 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
37252 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
37253 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37254 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
37255 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 37256 | 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 |
37257 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; |
37258 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
37259 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
37260 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
37261 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
37262 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
37263 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
37264 | 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}}; | |
37265 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
37266 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
37267 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; | |
37268 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
37269 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
37270 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
37271 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
37272 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
37273 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
37274 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
37275 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
37276 | 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}}; | |
37277 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
44127b65 | 37278 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}}; |
d14a1e28 RD |
37279 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; |
37280 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
37281 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
37282 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
37283 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
37284 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
37285 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
37286 | ||
37287 | static swig_type_info *swig_types_initial[] = { | |
37288 | _swigt__p_wxLayoutConstraints, | |
37289 | _swigt__p_wxRealPoint, | |
37290 | _swigt__p_wxSizerItem, | |
37291 | _swigt__p_wxGBSizerItem, | |
37292 | _swigt__p_wxScrollEvent, | |
37293 | _swigt__p_wxIndividualLayoutConstraint, | |
37294 | _swigt__p_wxSizer, | |
37295 | _swigt__p_wxBoxSizer, | |
37296 | _swigt__p_wxStaticBoxSizer, | |
37297 | _swigt__p_wxGridBagSizer, | |
37298 | _swigt__p_wxAcceleratorEntry, | |
37299 | _swigt__p_wxUpdateUIEvent, | |
37300 | _swigt__p_wxMenu, | |
37301 | _swigt__p_wxEvent, | |
37302 | _swigt__p_wxGridSizer, | |
37303 | _swigt__p_wxFlexGridSizer, | |
37304 | _swigt__p_wxInitDialogEvent, | |
37305 | _swigt__p_wxItemContainer, | |
37306 | _swigt__p_wxNcPaintEvent, | |
37307 | _swigt__p_wxPaintEvent, | |
37308 | _swigt__p_wxSysColourChangedEvent, | |
37309 | _swigt__p_wxMouseCaptureChangedEvent, | |
37310 | _swigt__p_wxDisplayChangedEvent, | |
37311 | _swigt__p_wxPaletteChangedEvent, | |
37312 | _swigt__p_wxControl, | |
37313 | _swigt__p_wxFont, | |
37314 | _swigt__p_wxMenuBarBase, | |
37315 | _swigt__p_wxSetCursorEvent, | |
37316 | _swigt__p_wxFSFile, | |
37317 | _swigt__p_wxCaret, | |
37318 | _swigt__p_wxRegion, | |
37319 | _swigt__p_wxPoint2D, | |
37320 | _swigt__p_int, | |
37321 | _swigt__p_wxSize, | |
37322 | _swigt__p_wxDC, | |
37323 | _swigt__p_wxPySizer, | |
37324 | _swigt__p_wxNotifyEvent, | |
37325 | _swigt__p_wxPyEvent, | |
37326 | _swigt__p_wxPropagationDisabler, | |
37327 | _swigt__p_wxAppTraits, | |
37328 | _swigt__p_wxArrayString, | |
37329 | _swigt__p_wxShowEvent, | |
37330 | _swigt__p_wxToolTip, | |
37331 | _swigt__p_wxMaximizeEvent, | |
37332 | _swigt__p_wxIconizeEvent, | |
37333 | _swigt__p_wxActivateEvent, | |
37334 | _swigt__p_wxMoveEvent, | |
37335 | _swigt__p_wxSizeEvent, | |
37336 | _swigt__p_wxQueryNewPaletteEvent, | |
37337 | _swigt__p_wxWindowCreateEvent, | |
37338 | _swigt__p_wxIdleEvent, | |
37339 | _swigt__p_wxMenuItem, | |
37340 | _swigt__p_wxStaticBox, | |
37341 | _swigt__p_long, | |
37342 | _swigt__p_wxTIFFHandler, | |
37343 | _swigt__p_wxXPMHandler, | |
37344 | _swigt__p_wxPNMHandler, | |
37345 | _swigt__p_wxJPEGHandler, | |
37346 | _swigt__p_wxPCXHandler, | |
37347 | _swigt__p_wxGIFHandler, | |
37348 | _swigt__p_wxPNGHandler, | |
37349 | _swigt__p_wxANIHandler, | |
37350 | _swigt__p_wxMemoryFSHandler, | |
37351 | _swigt__p_wxEvtHandler, | |
37352 | _swigt__p_wxCURHandler, | |
37353 | _swigt__p_wxICOHandler, | |
37354 | _swigt__p_wxBMPHandler, | |
37355 | _swigt__p_wxImageHandler, | |
37356 | _swigt__p_wxFileSystemHandler, | |
37357 | _swigt__p_wxPyFileSystemHandler, | |
37358 | _swigt__p_wxInternetFSHandler, | |
37359 | _swigt__p_wxZipFSHandler, | |
37360 | _swigt__p_wxRect, | |
37361 | _swigt__p_wxGBSpan, | |
37362 | _swigt__p_wxPropagateOnce, | |
37363 | _swigt__p_wxAcceleratorTable, | |
37364 | _swigt__p_wxGBPosition, | |
37365 | _swigt__p_wxImage, | |
37366 | _swigt__p_wxFrame, | |
37367 | _swigt__p_wxScrollWinEvent, | |
37368 | _swigt__p_wxImageHistogram, | |
37369 | _swigt__p_byte, | |
37370 | _swigt__p_wxPoint, | |
37371 | _swigt__p_wxCursor, | |
37372 | _swigt__p_wxObject, | |
37373 | _swigt__p_wxPyInputStream, | |
37374 | _swigt__p_wxOutputStream, | |
37375 | _swigt__p_wxInputStream, | |
37376 | _swigt__p_wxDateTime, | |
37377 | _swigt__p_wxKeyEvent, | |
37378 | _swigt__p_wxNavigationKeyEvent, | |
37379 | _swigt__p_wxWindowDestroyEvent, | |
37380 | _swigt__p_wxWindow, | |
37381 | _swigt__p_wxMenuBar, | |
37382 | _swigt__p_wxString, | |
37383 | _swigt__p_wxFileSystem, | |
37384 | _swigt__p_wxBitmap, | |
37385 | _swigt__p_wxMenuEvent, | |
37386 | _swigt__p_wxContextMenuEvent, | |
37387 | _swigt__p_unsigned_char, | |
37388 | _swigt__p_wxCloseEvent, | |
37389 | _swigt__p_wxEraseEvent, | |
37390 | _swigt__p_wxMouseEvent, | |
37391 | _swigt__p_wxPyApp, | |
37392 | _swigt__p_wxCommandEvent, | |
37393 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 37394 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
37395 | _swigt__p_wxChildFocusEvent, |
37396 | _swigt__p_wxFocusEvent, | |
37397 | _swigt__p_wxDropFilesEvent, | |
37398 | _swigt__p_wxControlWithItems, | |
37399 | _swigt__p_wxColour, | |
37400 | _swigt__p_wxValidator, | |
37401 | _swigt__p_wxPyValidator, | |
37402 | 0 | |
37403 | }; | |
37404 | ||
37405 | ||
37406 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37407 | ||
37408 | static swig_const_info swig_const_table[] = { | |
37409 | { SWIG_PY_INT, (char *)"NOT_FOUND", (long) wxNOT_FOUND, 0, 0, 0}, | |
37410 | { SWIG_PY_INT, (char *)"VSCROLL", (long) wxVSCROLL, 0, 0, 0}, | |
37411 | { SWIG_PY_INT, (char *)"HSCROLL", (long) wxHSCROLL, 0, 0, 0}, | |
37412 | { SWIG_PY_INT, (char *)"CAPTION", (long) wxCAPTION, 0, 0, 0}, | |
37413 | { SWIG_PY_INT, (char *)"DOUBLE_BORDER", (long) wxDOUBLE_BORDER, 0, 0, 0}, | |
37414 | { SWIG_PY_INT, (char *)"SUNKEN_BORDER", (long) wxSUNKEN_BORDER, 0, 0, 0}, | |
37415 | { SWIG_PY_INT, (char *)"RAISED_BORDER", (long) wxRAISED_BORDER, 0, 0, 0}, | |
37416 | { SWIG_PY_INT, (char *)"BORDER", (long) wxBORDER, 0, 0, 0}, | |
37417 | { SWIG_PY_INT, (char *)"SIMPLE_BORDER", (long) wxSIMPLE_BORDER, 0, 0, 0}, | |
37418 | { SWIG_PY_INT, (char *)"STATIC_BORDER", (long) wxSTATIC_BORDER, 0, 0, 0}, | |
37419 | { SWIG_PY_INT, (char *)"TRANSPARENT_WINDOW", (long) wxTRANSPARENT_WINDOW, 0, 0, 0}, | |
37420 | { SWIG_PY_INT, (char *)"NO_BORDER", (long) wxNO_BORDER, 0, 0, 0}, | |
37421 | { SWIG_PY_INT, (char *)"USER_COLOURS", (long) wxUSER_COLOURS, 0, 0, 0}, | |
37422 | { SWIG_PY_INT, (char *)"NO_3D", (long) wxNO_3D, 0, 0, 0}, | |
37423 | { SWIG_PY_INT, (char *)"TAB_TRAVERSAL", (long) wxTAB_TRAVERSAL, 0, 0, 0}, | |
37424 | { SWIG_PY_INT, (char *)"WANTS_CHARS", (long) wxWANTS_CHARS, 0, 0, 0}, | |
37425 | { SWIG_PY_INT, (char *)"POPUP_WINDOW", (long) wxPOPUP_WINDOW, 0, 0, 0}, | |
37426 | { SWIG_PY_INT, (char *)"CENTER_FRAME", (long) wxCENTER_FRAME, 0, 0, 0}, | |
37427 | { SWIG_PY_INT, (char *)"CENTRE_ON_SCREEN", (long) wxCENTRE_ON_SCREEN, 0, 0, 0}, | |
37428 | { SWIG_PY_INT, (char *)"CENTER_ON_SCREEN", (long) wxCENTER_ON_SCREEN, 0, 0, 0}, | |
37429 | { SWIG_PY_INT, (char *)"STAY_ON_TOP", (long) wxSTAY_ON_TOP, 0, 0, 0}, | |
37430 | { SWIG_PY_INT, (char *)"ICONIZE", (long) wxICONIZE, 0, 0, 0}, | |
37431 | { SWIG_PY_INT, (char *)"MINIMIZE", (long) wxMINIMIZE, 0, 0, 0}, | |
37432 | { SWIG_PY_INT, (char *)"MAXIMIZE", (long) wxMAXIMIZE, 0, 0, 0}, | |
37433 | { SWIG_PY_INT, (char *)"CLOSE_BOX", (long) wxCLOSE_BOX, 0, 0, 0}, | |
37434 | { SWIG_PY_INT, (char *)"THICK_FRAME", (long) wxTHICK_FRAME, 0, 0, 0}, | |
37435 | { SWIG_PY_INT, (char *)"SYSTEM_MENU", (long) wxSYSTEM_MENU, 0, 0, 0}, | |
37436 | { SWIG_PY_INT, (char *)"MINIMIZE_BOX", (long) wxMINIMIZE_BOX, 0, 0, 0}, | |
37437 | { SWIG_PY_INT, (char *)"MAXIMIZE_BOX", (long) wxMAXIMIZE_BOX, 0, 0, 0}, | |
37438 | { SWIG_PY_INT, (char *)"TINY_CAPTION_HORIZ", (long) wxTINY_CAPTION_HORIZ, 0, 0, 0}, | |
37439 | { SWIG_PY_INT, (char *)"TINY_CAPTION_VERT", (long) wxTINY_CAPTION_VERT, 0, 0, 0}, | |
37440 | { SWIG_PY_INT, (char *)"RESIZE_BOX", (long) wxRESIZE_BOX, 0, 0, 0}, | |
37441 | { SWIG_PY_INT, (char *)"RESIZE_BORDER", (long) wxRESIZE_BORDER, 0, 0, 0}, | |
37442 | { SWIG_PY_INT, (char *)"DIALOG_MODAL", (long) wxDIALOG_MODAL, 0, 0, 0}, | |
37443 | { SWIG_PY_INT, (char *)"DIALOG_MODELESS", (long) wxDIALOG_MODELESS, 0, 0, 0}, | |
37444 | { SWIG_PY_INT, (char *)"DIALOG_NO_PARENT", (long) wxDIALOG_NO_PARENT, 0, 0, 0}, | |
37445 | { SWIG_PY_INT, (char *)"DEFAULT_FRAME_STYLE", (long) wxDEFAULT_FRAME_STYLE, 0, 0, 0}, | |
37446 | { SWIG_PY_INT, (char *)"DEFAULT_DIALOG_STYLE", (long) wxDEFAULT_DIALOG_STYLE, 0, 0, 0}, | |
37447 | { SWIG_PY_INT, (char *)"FRAME_TOOL_WINDOW", (long) wxFRAME_TOOL_WINDOW, 0, 0, 0}, | |
37448 | { SWIG_PY_INT, (char *)"FRAME_FLOAT_ON_PARENT", (long) wxFRAME_FLOAT_ON_PARENT, 0, 0, 0}, | |
37449 | { SWIG_PY_INT, (char *)"FRAME_NO_WINDOW_MENU", (long) wxFRAME_NO_WINDOW_MENU, 0, 0, 0}, | |
37450 | { SWIG_PY_INT, (char *)"FRAME_NO_TASKBAR", (long) wxFRAME_NO_TASKBAR, 0, 0, 0}, | |
37451 | { SWIG_PY_INT, (char *)"FRAME_SHAPED", (long) wxFRAME_SHAPED, 0, 0, 0}, | |
37452 | { SWIG_PY_INT, (char *)"ED_CLIENT_MARGIN", (long) wxED_CLIENT_MARGIN, 0, 0, 0}, | |
37453 | { SWIG_PY_INT, (char *)"ED_BUTTONS_BOTTOM", (long) wxED_BUTTONS_BOTTOM, 0, 0, 0}, | |
37454 | { SWIG_PY_INT, (char *)"ED_BUTTONS_RIGHT", (long) wxED_BUTTONS_RIGHT, 0, 0, 0}, | |
37455 | { SWIG_PY_INT, (char *)"ED_STATIC_LINE", (long) wxED_STATIC_LINE, 0, 0, 0}, | |
37456 | { SWIG_PY_INT, (char *)"EXT_DIALOG_STYLE", (long) wxEXT_DIALOG_STYLE, 0, 0, 0}, | |
37457 | { SWIG_PY_INT, (char *)"CLIP_CHILDREN", (long) wxCLIP_CHILDREN, 0, 0, 0}, | |
37458 | { SWIG_PY_INT, (char *)"CLIP_SIBLINGS", (long) wxCLIP_SIBLINGS, 0, 0, 0}, | |
37459 | { SWIG_PY_INT, (char *)"RETAINED", (long) wxRETAINED, 0, 0, 0}, | |
37460 | { SWIG_PY_INT, (char *)"BACKINGSTORE", (long) wxBACKINGSTORE, 0, 0, 0}, | |
37461 | { SWIG_PY_INT, (char *)"COLOURED", (long) wxCOLOURED, 0, 0, 0}, | |
37462 | { SWIG_PY_INT, (char *)"FIXED_LENGTH", (long) wxFIXED_LENGTH, 0, 0, 0}, | |
37463 | { SWIG_PY_INT, (char *)"LB_NEEDED_SB", (long) wxLB_NEEDED_SB, 0, 0, 0}, | |
37464 | { SWIG_PY_INT, (char *)"LB_ALWAYS_SB", (long) wxLB_ALWAYS_SB, 0, 0, 0}, | |
37465 | { SWIG_PY_INT, (char *)"LB_SORT", (long) wxLB_SORT, 0, 0, 0}, | |
37466 | { SWIG_PY_INT, (char *)"LB_SINGLE", (long) wxLB_SINGLE, 0, 0, 0}, | |
37467 | { SWIG_PY_INT, (char *)"LB_MULTIPLE", (long) wxLB_MULTIPLE, 0, 0, 0}, | |
37468 | { SWIG_PY_INT, (char *)"LB_EXTENDED", (long) wxLB_EXTENDED, 0, 0, 0}, | |
37469 | { SWIG_PY_INT, (char *)"LB_OWNERDRAW", (long) wxLB_OWNERDRAW, 0, 0, 0}, | |
37470 | { SWIG_PY_INT, (char *)"LB_HSCROLL", (long) wxLB_HSCROLL, 0, 0, 0}, | |
37471 | { SWIG_PY_INT, (char *)"PROCESS_ENTER", (long) wxPROCESS_ENTER, 0, 0, 0}, | |
37472 | { SWIG_PY_INT, (char *)"PASSWORD", (long) wxPASSWORD, 0, 0, 0}, | |
37473 | { SWIG_PY_INT, (char *)"CB_SIMPLE", (long) wxCB_SIMPLE, 0, 0, 0}, | |
37474 | { SWIG_PY_INT, (char *)"CB_DROPDOWN", (long) wxCB_DROPDOWN, 0, 0, 0}, | |
37475 | { SWIG_PY_INT, (char *)"CB_SORT", (long) wxCB_SORT, 0, 0, 0}, | |
37476 | { SWIG_PY_INT, (char *)"CB_READONLY", (long) wxCB_READONLY, 0, 0, 0}, | |
37477 | { SWIG_PY_INT, (char *)"RA_HORIZONTAL", (long) wxRA_HORIZONTAL, 0, 0, 0}, | |
37478 | { SWIG_PY_INT, (char *)"RA_VERTICAL", (long) wxRA_VERTICAL, 0, 0, 0}, | |
37479 | { SWIG_PY_INT, (char *)"RA_SPECIFY_ROWS", (long) wxRA_SPECIFY_ROWS, 0, 0, 0}, | |
37480 | { SWIG_PY_INT, (char *)"RA_SPECIFY_COLS", (long) wxRA_SPECIFY_COLS, 0, 0, 0}, | |
37481 | { SWIG_PY_INT, (char *)"RB_GROUP", (long) wxRB_GROUP, 0, 0, 0}, | |
37482 | { SWIG_PY_INT, (char *)"RB_SINGLE", (long) wxRB_SINGLE, 0, 0, 0}, | |
37483 | { SWIG_PY_INT, (char *)"SL_HORIZONTAL", (long) wxSL_HORIZONTAL, 0, 0, 0}, | |
37484 | { SWIG_PY_INT, (char *)"SL_VERTICAL", (long) wxSL_VERTICAL, 0, 0, 0}, | |
37485 | { SWIG_PY_INT, (char *)"SL_AUTOTICKS", (long) wxSL_AUTOTICKS, 0, 0, 0}, | |
37486 | { SWIG_PY_INT, (char *)"SL_LABELS", (long) wxSL_LABELS, 0, 0, 0}, | |
37487 | { SWIG_PY_INT, (char *)"SL_LEFT", (long) wxSL_LEFT, 0, 0, 0}, | |
37488 | { SWIG_PY_INT, (char *)"SL_TOP", (long) wxSL_TOP, 0, 0, 0}, | |
37489 | { SWIG_PY_INT, (char *)"SL_RIGHT", (long) wxSL_RIGHT, 0, 0, 0}, | |
37490 | { SWIG_PY_INT, (char *)"SL_BOTTOM", (long) wxSL_BOTTOM, 0, 0, 0}, | |
37491 | { SWIG_PY_INT, (char *)"SL_BOTH", (long) wxSL_BOTH, 0, 0, 0}, | |
37492 | { SWIG_PY_INT, (char *)"SL_SELRANGE", (long) wxSL_SELRANGE, 0, 0, 0}, | |
37493 | { SWIG_PY_INT, (char *)"SB_HORIZONTAL", (long) wxSB_HORIZONTAL, 0, 0, 0}, | |
37494 | { SWIG_PY_INT, (char *)"SB_VERTICAL", (long) wxSB_VERTICAL, 0, 0, 0}, | |
37495 | { SWIG_PY_INT, (char *)"ST_SIZEGRIP", (long) wxST_SIZEGRIP, 0, 0, 0}, | |
37496 | { SWIG_PY_INT, (char *)"ST_NO_AUTORESIZE", (long) wxST_NO_AUTORESIZE, 0, 0, 0}, | |
37497 | { SWIG_PY_INT, (char *)"FLOOD_SURFACE", (long) wxFLOOD_SURFACE, 0, 0, 0}, | |
37498 | { SWIG_PY_INT, (char *)"FLOOD_BORDER", (long) wxFLOOD_BORDER, 0, 0, 0}, | |
37499 | { SWIG_PY_INT, (char *)"ODDEVEN_RULE", (long) wxODDEVEN_RULE, 0, 0, 0}, | |
37500 | { SWIG_PY_INT, (char *)"WINDING_RULE", (long) wxWINDING_RULE, 0, 0, 0}, | |
37501 | { SWIG_PY_INT, (char *)"TOOL_TOP", (long) wxTOOL_TOP, 0, 0, 0}, | |
37502 | { SWIG_PY_INT, (char *)"TOOL_BOTTOM", (long) wxTOOL_BOTTOM, 0, 0, 0}, | |
37503 | { SWIG_PY_INT, (char *)"TOOL_LEFT", (long) wxTOOL_LEFT, 0, 0, 0}, | |
37504 | { SWIG_PY_INT, (char *)"TOOL_RIGHT", (long) wxTOOL_RIGHT, 0, 0, 0}, | |
37505 | { SWIG_PY_INT, (char *)"OK", (long) wxOK, 0, 0, 0}, | |
37506 | { SWIG_PY_INT, (char *)"YES_NO", (long) wxYES_NO, 0, 0, 0}, | |
37507 | { SWIG_PY_INT, (char *)"CANCEL", (long) wxCANCEL, 0, 0, 0}, | |
37508 | { SWIG_PY_INT, (char *)"YES", (long) wxYES, 0, 0, 0}, | |
37509 | { SWIG_PY_INT, (char *)"NO", (long) wxNO, 0, 0, 0}, | |
37510 | { SWIG_PY_INT, (char *)"NO_DEFAULT", (long) wxNO_DEFAULT, 0, 0, 0}, | |
37511 | { SWIG_PY_INT, (char *)"YES_DEFAULT", (long) wxYES_DEFAULT, 0, 0, 0}, | |
37512 | { SWIG_PY_INT, (char *)"ICON_EXCLAMATION", (long) wxICON_EXCLAMATION, 0, 0, 0}, | |
37513 | { SWIG_PY_INT, (char *)"ICON_HAND", (long) wxICON_HAND, 0, 0, 0}, | |
37514 | { SWIG_PY_INT, (char *)"ICON_QUESTION", (long) wxICON_QUESTION, 0, 0, 0}, | |
37515 | { SWIG_PY_INT, (char *)"ICON_INFORMATION", (long) wxICON_INFORMATION, 0, 0, 0}, | |
37516 | { SWIG_PY_INT, (char *)"ICON_STOP", (long) wxICON_STOP, 0, 0, 0}, | |
37517 | { SWIG_PY_INT, (char *)"ICON_ASTERISK", (long) wxICON_ASTERISK, 0, 0, 0}, | |
37518 | { SWIG_PY_INT, (char *)"ICON_MASK", (long) wxICON_MASK, 0, 0, 0}, | |
37519 | { SWIG_PY_INT, (char *)"ICON_WARNING", (long) wxICON_WARNING, 0, 0, 0}, | |
37520 | { SWIG_PY_INT, (char *)"ICON_ERROR", (long) wxICON_ERROR, 0, 0, 0}, | |
37521 | { SWIG_PY_INT, (char *)"FORWARD", (long) wxFORWARD, 0, 0, 0}, | |
37522 | { SWIG_PY_INT, (char *)"BACKWARD", (long) wxBACKWARD, 0, 0, 0}, | |
37523 | { SWIG_PY_INT, (char *)"RESET", (long) wxRESET, 0, 0, 0}, | |
37524 | { SWIG_PY_INT, (char *)"HELP", (long) wxHELP, 0, 0, 0}, | |
37525 | { SWIG_PY_INT, (char *)"MORE", (long) wxMORE, 0, 0, 0}, | |
37526 | { SWIG_PY_INT, (char *)"SETUP", (long) wxSETUP, 0, 0, 0}, | |
37527 | { SWIG_PY_INT, (char *)"SIZE_AUTO_WIDTH", (long) wxSIZE_AUTO_WIDTH, 0, 0, 0}, | |
37528 | { SWIG_PY_INT, (char *)"SIZE_AUTO_HEIGHT", (long) wxSIZE_AUTO_HEIGHT, 0, 0, 0}, | |
37529 | { SWIG_PY_INT, (char *)"SIZE_AUTO", (long) wxSIZE_AUTO, 0, 0, 0}, | |
37530 | { SWIG_PY_INT, (char *)"SIZE_USE_EXISTING", (long) wxSIZE_USE_EXISTING, 0, 0, 0}, | |
37531 | { SWIG_PY_INT, (char *)"SIZE_ALLOW_MINUS_ONE", (long) wxSIZE_ALLOW_MINUS_ONE, 0, 0, 0}, | |
37532 | { SWIG_PY_INT, (char *)"PORTRAIT", (long) wxPORTRAIT, 0, 0, 0}, | |
37533 | { SWIG_PY_INT, (char *)"LANDSCAPE", (long) wxLANDSCAPE, 0, 0, 0}, | |
37534 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_HIGH", (long) wxPRINT_QUALITY_HIGH, 0, 0, 0}, | |
37535 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_MEDIUM", (long) wxPRINT_QUALITY_MEDIUM, 0, 0, 0}, | |
37536 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_LOW", (long) wxPRINT_QUALITY_LOW, 0, 0, 0}, | |
37537 | { SWIG_PY_INT, (char *)"PRINT_QUALITY_DRAFT", (long) wxPRINT_QUALITY_DRAFT, 0, 0, 0}, | |
37538 | { SWIG_PY_INT, (char *)"ID_ANY", (long) wxID_ANY, 0, 0, 0}, | |
37539 | { SWIG_PY_INT, (char *)"ID_SEPARATOR", (long) wxID_SEPARATOR, 0, 0, 0}, | |
37540 | { SWIG_PY_INT, (char *)"ID_LOWEST", (long) wxID_LOWEST, 0, 0, 0}, | |
37541 | { SWIG_PY_INT, (char *)"ID_OPEN", (long) wxID_OPEN, 0, 0, 0}, | |
37542 | { SWIG_PY_INT, (char *)"ID_CLOSE", (long) wxID_CLOSE, 0, 0, 0}, | |
37543 | { SWIG_PY_INT, (char *)"ID_NEW", (long) wxID_NEW, 0, 0, 0}, | |
37544 | { SWIG_PY_INT, (char *)"ID_SAVE", (long) wxID_SAVE, 0, 0, 0}, | |
37545 | { SWIG_PY_INT, (char *)"ID_SAVEAS", (long) wxID_SAVEAS, 0, 0, 0}, | |
37546 | { SWIG_PY_INT, (char *)"ID_REVERT", (long) wxID_REVERT, 0, 0, 0}, | |
37547 | { SWIG_PY_INT, (char *)"ID_EXIT", (long) wxID_EXIT, 0, 0, 0}, | |
37548 | { SWIG_PY_INT, (char *)"ID_UNDO", (long) wxID_UNDO, 0, 0, 0}, | |
37549 | { SWIG_PY_INT, (char *)"ID_REDO", (long) wxID_REDO, 0, 0, 0}, | |
37550 | { SWIG_PY_INT, (char *)"ID_HELP", (long) wxID_HELP, 0, 0, 0}, | |
37551 | { SWIG_PY_INT, (char *)"ID_PRINT", (long) wxID_PRINT, 0, 0, 0}, | |
37552 | { SWIG_PY_INT, (char *)"ID_PRINT_SETUP", (long) wxID_PRINT_SETUP, 0, 0, 0}, | |
37553 | { SWIG_PY_INT, (char *)"ID_PREVIEW", (long) wxID_PREVIEW, 0, 0, 0}, | |
37554 | { SWIG_PY_INT, (char *)"ID_ABOUT", (long) wxID_ABOUT, 0, 0, 0}, | |
37555 | { SWIG_PY_INT, (char *)"ID_HELP_CONTENTS", (long) wxID_HELP_CONTENTS, 0, 0, 0}, | |
37556 | { SWIG_PY_INT, (char *)"ID_HELP_COMMANDS", (long) wxID_HELP_COMMANDS, 0, 0, 0}, | |
37557 | { SWIG_PY_INT, (char *)"ID_HELP_PROCEDURES", (long) wxID_HELP_PROCEDURES, 0, 0, 0}, | |
37558 | { SWIG_PY_INT, (char *)"ID_HELP_CONTEXT", (long) wxID_HELP_CONTEXT, 0, 0, 0}, | |
37559 | { SWIG_PY_INT, (char *)"ID_CLOSE_ALL", (long) wxID_CLOSE_ALL, 0, 0, 0}, | |
37560 | { SWIG_PY_INT, (char *)"ID_PREFERENCES", (long) wxID_PREFERENCES, 0, 0, 0}, | |
37561 | { SWIG_PY_INT, (char *)"ID_CUT", (long) wxID_CUT, 0, 0, 0}, | |
37562 | { SWIG_PY_INT, (char *)"ID_COPY", (long) wxID_COPY, 0, 0, 0}, | |
37563 | { SWIG_PY_INT, (char *)"ID_PASTE", (long) wxID_PASTE, 0, 0, 0}, | |
37564 | { SWIG_PY_INT, (char *)"ID_CLEAR", (long) wxID_CLEAR, 0, 0, 0}, | |
37565 | { SWIG_PY_INT, (char *)"ID_FIND", (long) wxID_FIND, 0, 0, 0}, | |
37566 | { SWIG_PY_INT, (char *)"ID_DUPLICATE", (long) wxID_DUPLICATE, 0, 0, 0}, | |
37567 | { SWIG_PY_INT, (char *)"ID_SELECTALL", (long) wxID_SELECTALL, 0, 0, 0}, | |
37568 | { SWIG_PY_INT, (char *)"ID_DELETE", (long) wxID_DELETE, 0, 0, 0}, | |
37569 | { SWIG_PY_INT, (char *)"ID_REPLACE", (long) wxID_REPLACE, 0, 0, 0}, | |
37570 | { SWIG_PY_INT, (char *)"ID_REPLACE_ALL", (long) wxID_REPLACE_ALL, 0, 0, 0}, | |
37571 | { SWIG_PY_INT, (char *)"ID_PROPERTIES", (long) wxID_PROPERTIES, 0, 0, 0}, | |
37572 | { SWIG_PY_INT, (char *)"ID_VIEW_DETAILS", (long) wxID_VIEW_DETAILS, 0, 0, 0}, | |
37573 | { SWIG_PY_INT, (char *)"ID_VIEW_LARGEICONS", (long) wxID_VIEW_LARGEICONS, 0, 0, 0}, | |
37574 | { SWIG_PY_INT, (char *)"ID_VIEW_SMALLICONS", (long) wxID_VIEW_SMALLICONS, 0, 0, 0}, | |
37575 | { SWIG_PY_INT, (char *)"ID_VIEW_LIST", (long) wxID_VIEW_LIST, 0, 0, 0}, | |
37576 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTDATE", (long) wxID_VIEW_SORTDATE, 0, 0, 0}, | |
37577 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTNAME", (long) wxID_VIEW_SORTNAME, 0, 0, 0}, | |
37578 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTSIZE", (long) wxID_VIEW_SORTSIZE, 0, 0, 0}, | |
37579 | { SWIG_PY_INT, (char *)"ID_VIEW_SORTTYPE", (long) wxID_VIEW_SORTTYPE, 0, 0, 0}, | |
37580 | { SWIG_PY_INT, (char *)"ID_FILE1", (long) wxID_FILE1, 0, 0, 0}, | |
37581 | { SWIG_PY_INT, (char *)"ID_FILE2", (long) wxID_FILE2, 0, 0, 0}, | |
37582 | { SWIG_PY_INT, (char *)"ID_FILE3", (long) wxID_FILE3, 0, 0, 0}, | |
37583 | { SWIG_PY_INT, (char *)"ID_FILE4", (long) wxID_FILE4, 0, 0, 0}, | |
37584 | { SWIG_PY_INT, (char *)"ID_FILE5", (long) wxID_FILE5, 0, 0, 0}, | |
37585 | { SWIG_PY_INT, (char *)"ID_FILE6", (long) wxID_FILE6, 0, 0, 0}, | |
37586 | { SWIG_PY_INT, (char *)"ID_FILE7", (long) wxID_FILE7, 0, 0, 0}, | |
37587 | { SWIG_PY_INT, (char *)"ID_FILE8", (long) wxID_FILE8, 0, 0, 0}, | |
37588 | { SWIG_PY_INT, (char *)"ID_FILE9", (long) wxID_FILE9, 0, 0, 0}, | |
37589 | { SWIG_PY_INT, (char *)"ID_OK", (long) wxID_OK, 0, 0, 0}, | |
37590 | { SWIG_PY_INT, (char *)"ID_CANCEL", (long) wxID_CANCEL, 0, 0, 0}, | |
37591 | { SWIG_PY_INT, (char *)"ID_APPLY", (long) wxID_APPLY, 0, 0, 0}, | |
37592 | { SWIG_PY_INT, (char *)"ID_YES", (long) wxID_YES, 0, 0, 0}, | |
37593 | { SWIG_PY_INT, (char *)"ID_NO", (long) wxID_NO, 0, 0, 0}, | |
37594 | { SWIG_PY_INT, (char *)"ID_STATIC", (long) wxID_STATIC, 0, 0, 0}, | |
37595 | { SWIG_PY_INT, (char *)"ID_FORWARD", (long) wxID_FORWARD, 0, 0, 0}, | |
37596 | { SWIG_PY_INT, (char *)"ID_BACKWARD", (long) wxID_BACKWARD, 0, 0, 0}, | |
37597 | { SWIG_PY_INT, (char *)"ID_DEFAULT", (long) wxID_DEFAULT, 0, 0, 0}, | |
37598 | { SWIG_PY_INT, (char *)"ID_MORE", (long) wxID_MORE, 0, 0, 0}, | |
37599 | { SWIG_PY_INT, (char *)"ID_SETUP", (long) wxID_SETUP, 0, 0, 0}, | |
37600 | { SWIG_PY_INT, (char *)"ID_RESET", (long) wxID_RESET, 0, 0, 0}, | |
37601 | { SWIG_PY_INT, (char *)"ID_CONTEXT_HELP", (long) wxID_CONTEXT_HELP, 0, 0, 0}, | |
37602 | { SWIG_PY_INT, (char *)"ID_YESTOALL", (long) wxID_YESTOALL, 0, 0, 0}, | |
37603 | { SWIG_PY_INT, (char *)"ID_NOTOALL", (long) wxID_NOTOALL, 0, 0, 0}, | |
37604 | { SWIG_PY_INT, (char *)"ID_ABORT", (long) wxID_ABORT, 0, 0, 0}, | |
37605 | { SWIG_PY_INT, (char *)"ID_RETRY", (long) wxID_RETRY, 0, 0, 0}, | |
37606 | { SWIG_PY_INT, (char *)"ID_IGNORE", (long) wxID_IGNORE, 0, 0, 0}, | |
37607 | { SWIG_PY_INT, (char *)"ID_HIGHEST", (long) wxID_HIGHEST, 0, 0, 0}, | |
37608 | { SWIG_PY_INT, (char *)"OPEN", (long) wxOPEN, 0, 0, 0}, | |
37609 | { SWIG_PY_INT, (char *)"SAVE", (long) wxSAVE, 0, 0, 0}, | |
37610 | { SWIG_PY_INT, (char *)"HIDE_READONLY", (long) wxHIDE_READONLY, 0, 0, 0}, | |
37611 | { SWIG_PY_INT, (char *)"OVERWRITE_PROMPT", (long) wxOVERWRITE_PROMPT, 0, 0, 0}, | |
37612 | { SWIG_PY_INT, (char *)"FILE_MUST_EXIST", (long) wxFILE_MUST_EXIST, 0, 0, 0}, | |
37613 | { SWIG_PY_INT, (char *)"MULTIPLE", (long) wxMULTIPLE, 0, 0, 0}, | |
37614 | { SWIG_PY_INT, (char *)"CHANGE_DIR", (long) wxCHANGE_DIR, 0, 0, 0}, | |
37615 | { SWIG_PY_INT, (char *)"ACCEL_ALT", (long) wxACCEL_ALT, 0, 0, 0}, | |
37616 | { SWIG_PY_INT, (char *)"ACCEL_CTRL", (long) wxACCEL_CTRL, 0, 0, 0}, | |
37617 | { SWIG_PY_INT, (char *)"ACCEL_SHIFT", (long) wxACCEL_SHIFT, 0, 0, 0}, | |
37618 | { SWIG_PY_INT, (char *)"ACCEL_NORMAL", (long) wxACCEL_NORMAL, 0, 0, 0}, | |
37619 | { SWIG_PY_INT, (char *)"PD_AUTO_HIDE", (long) wxPD_AUTO_HIDE, 0, 0, 0}, | |
37620 | { SWIG_PY_INT, (char *)"PD_APP_MODAL", (long) wxPD_APP_MODAL, 0, 0, 0}, | |
37621 | { SWIG_PY_INT, (char *)"PD_CAN_ABORT", (long) wxPD_CAN_ABORT, 0, 0, 0}, | |
37622 | { SWIG_PY_INT, (char *)"PD_ELAPSED_TIME", (long) wxPD_ELAPSED_TIME, 0, 0, 0}, | |
37623 | { SWIG_PY_INT, (char *)"PD_ESTIMATED_TIME", (long) wxPD_ESTIMATED_TIME, 0, 0, 0}, | |
37624 | { SWIG_PY_INT, (char *)"PD_REMAINING_TIME", (long) wxPD_REMAINING_TIME, 0, 0, 0}, | |
37625 | { SWIG_PY_INT, (char *)"DD_NEW_DIR_BUTTON", (long) wxDD_NEW_DIR_BUTTON, 0, 0, 0}, | |
37626 | { SWIG_PY_INT, (char *)"DD_DEFAULT_STYLE", (long) wxDD_DEFAULT_STYLE, 0, 0, 0}, | |
37627 | { SWIG_PY_INT, (char *)"MENU_TEAROFF", (long) wxMENU_TEAROFF, 0, 0, 0}, | |
37628 | { SWIG_PY_INT, (char *)"MB_DOCKABLE", (long) wxMB_DOCKABLE, 0, 0, 0}, | |
37629 | { SWIG_PY_INT, (char *)"NO_FULL_REPAINT_ON_RESIZE", (long) wxNO_FULL_REPAINT_ON_RESIZE, 0, 0, 0}, | |
0f774bef | 37630 | { SWIG_PY_INT, (char *)"FULL_REPAINT_ON_RESIZE", (long) wxFULL_REPAINT_ON_RESIZE, 0, 0, 0}, |
d14a1e28 RD |
37631 | { SWIG_PY_INT, (char *)"LI_HORIZONTAL", (long) wxLI_HORIZONTAL, 0, 0, 0}, |
37632 | { SWIG_PY_INT, (char *)"LI_VERTICAL", (long) wxLI_VERTICAL, 0, 0, 0}, | |
37633 | { SWIG_PY_INT, (char *)"WS_EX_VALIDATE_RECURSIVELY", (long) wxWS_EX_VALIDATE_RECURSIVELY, 0, 0, 0}, | |
37634 | { SWIG_PY_INT, (char *)"WS_EX_BLOCK_EVENTS", (long) wxWS_EX_BLOCK_EVENTS, 0, 0, 0}, | |
37635 | { SWIG_PY_INT, (char *)"WS_EX_TRANSIENT", (long) wxWS_EX_TRANSIENT, 0, 0, 0}, | |
37636 | { SWIG_PY_INT, (char *)"WS_EX_THEMED_BACKGROUND", (long) wxWS_EX_THEMED_BACKGROUND, 0, 0, 0}, | |
37637 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_IDLE", (long) wxWS_EX_PROCESS_IDLE, 0, 0, 0}, | |
37638 | { SWIG_PY_INT, (char *)"WS_EX_PROCESS_UI_UPDATES", (long) wxWS_EX_PROCESS_UI_UPDATES, 0, 0, 0}, | |
37639 | { SWIG_PY_INT, (char *)"MM_TEXT", (long) wxMM_TEXT, 0, 0, 0}, | |
37640 | { SWIG_PY_INT, (char *)"MM_LOMETRIC", (long) wxMM_LOMETRIC, 0, 0, 0}, | |
37641 | { SWIG_PY_INT, (char *)"MM_HIMETRIC", (long) wxMM_HIMETRIC, 0, 0, 0}, | |
37642 | { SWIG_PY_INT, (char *)"MM_LOENGLISH", (long) wxMM_LOENGLISH, 0, 0, 0}, | |
37643 | { SWIG_PY_INT, (char *)"MM_HIENGLISH", (long) wxMM_HIENGLISH, 0, 0, 0}, | |
37644 | { SWIG_PY_INT, (char *)"MM_TWIPS", (long) wxMM_TWIPS, 0, 0, 0}, | |
37645 | { SWIG_PY_INT, (char *)"MM_ISOTROPIC", (long) wxMM_ISOTROPIC, 0, 0, 0}, | |
37646 | { SWIG_PY_INT, (char *)"MM_ANISOTROPIC", (long) wxMM_ANISOTROPIC, 0, 0, 0}, | |
37647 | { SWIG_PY_INT, (char *)"MM_POINTS", (long) wxMM_POINTS, 0, 0, 0}, | |
37648 | { SWIG_PY_INT, (char *)"MM_METRIC", (long) wxMM_METRIC, 0, 0, 0}, | |
37649 | { SWIG_PY_INT, (char *)"CENTRE", (long) wxCENTRE, 0, 0, 0}, | |
37650 | { SWIG_PY_INT, (char *)"CENTER", (long) wxCENTER, 0, 0, 0}, | |
37651 | { SWIG_PY_INT, (char *)"HORIZONTAL", (long) wxHORIZONTAL, 0, 0, 0}, | |
37652 | { SWIG_PY_INT, (char *)"VERTICAL", (long) wxVERTICAL, 0, 0, 0}, | |
37653 | { SWIG_PY_INT, (char *)"BOTH", (long) wxBOTH, 0, 0, 0}, | |
37654 | { SWIG_PY_INT, (char *)"LEFT", (long) wxLEFT, 0, 0, 0}, | |
37655 | { SWIG_PY_INT, (char *)"RIGHT", (long) wxRIGHT, 0, 0, 0}, | |
37656 | { SWIG_PY_INT, (char *)"UP", (long) wxUP, 0, 0, 0}, | |
37657 | { SWIG_PY_INT, (char *)"DOWN", (long) wxDOWN, 0, 0, 0}, | |
37658 | { SWIG_PY_INT, (char *)"TOP", (long) wxTOP, 0, 0, 0}, | |
37659 | { SWIG_PY_INT, (char *)"BOTTOM", (long) wxBOTTOM, 0, 0, 0}, | |
37660 | { SWIG_PY_INT, (char *)"NORTH", (long) wxNORTH, 0, 0, 0}, | |
37661 | { SWIG_PY_INT, (char *)"SOUTH", (long) wxSOUTH, 0, 0, 0}, | |
37662 | { SWIG_PY_INT, (char *)"WEST", (long) wxWEST, 0, 0, 0}, | |
37663 | { SWIG_PY_INT, (char *)"EAST", (long) wxEAST, 0, 0, 0}, | |
37664 | { SWIG_PY_INT, (char *)"ALL", (long) wxALL, 0, 0, 0}, | |
37665 | { SWIG_PY_INT, (char *)"ALIGN_NOT", (long) wxALIGN_NOT, 0, 0, 0}, | |
37666 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_HORIZONTAL", (long) wxALIGN_CENTER_HORIZONTAL, 0, 0, 0}, | |
37667 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_HORIZONTAL", (long) wxALIGN_CENTRE_HORIZONTAL, 0, 0, 0}, | |
37668 | { SWIG_PY_INT, (char *)"ALIGN_LEFT", (long) wxALIGN_LEFT, 0, 0, 0}, | |
37669 | { SWIG_PY_INT, (char *)"ALIGN_TOP", (long) wxALIGN_TOP, 0, 0, 0}, | |
37670 | { SWIG_PY_INT, (char *)"ALIGN_RIGHT", (long) wxALIGN_RIGHT, 0, 0, 0}, | |
37671 | { SWIG_PY_INT, (char *)"ALIGN_BOTTOM", (long) wxALIGN_BOTTOM, 0, 0, 0}, | |
37672 | { SWIG_PY_INT, (char *)"ALIGN_CENTER_VERTICAL", (long) wxALIGN_CENTER_VERTICAL, 0, 0, 0}, | |
37673 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE_VERTICAL", (long) wxALIGN_CENTRE_VERTICAL, 0, 0, 0}, | |
37674 | { SWIG_PY_INT, (char *)"ALIGN_CENTER", (long) wxALIGN_CENTER, 0, 0, 0}, | |
37675 | { SWIG_PY_INT, (char *)"ALIGN_CENTRE", (long) wxALIGN_CENTRE, 0, 0, 0}, | |
37676 | { SWIG_PY_INT, (char *)"ALIGN_MASK", (long) wxALIGN_MASK, 0, 0, 0}, | |
37677 | { SWIG_PY_INT, (char *)"STRETCH_NOT", (long) wxSTRETCH_NOT, 0, 0, 0}, | |
37678 | { SWIG_PY_INT, (char *)"SHRINK", (long) wxSHRINK, 0, 0, 0}, | |
37679 | { SWIG_PY_INT, (char *)"GROW", (long) wxGROW, 0, 0, 0}, | |
37680 | { SWIG_PY_INT, (char *)"EXPAND", (long) wxEXPAND, 0, 0, 0}, | |
37681 | { SWIG_PY_INT, (char *)"SHAPED", (long) wxSHAPED, 0, 0, 0}, | |
37682 | { SWIG_PY_INT, (char *)"ADJUST_MINSIZE", (long) wxADJUST_MINSIZE, 0, 0, 0}, | |
37683 | { SWIG_PY_INT, (char *)"TILE", (long) wxTILE, 0, 0, 0}, | |
37684 | { SWIG_PY_INT, (char *)"BORDER_DEFAULT", (long) wxBORDER_DEFAULT, 0, 0, 0}, | |
37685 | { SWIG_PY_INT, (char *)"BORDER_NONE", (long) wxBORDER_NONE, 0, 0, 0}, | |
37686 | { SWIG_PY_INT, (char *)"BORDER_STATIC", (long) wxBORDER_STATIC, 0, 0, 0}, | |
37687 | { SWIG_PY_INT, (char *)"BORDER_SIMPLE", (long) wxBORDER_SIMPLE, 0, 0, 0}, | |
37688 | { SWIG_PY_INT, (char *)"BORDER_RAISED", (long) wxBORDER_RAISED, 0, 0, 0}, | |
37689 | { SWIG_PY_INT, (char *)"BORDER_SUNKEN", (long) wxBORDER_SUNKEN, 0, 0, 0}, | |
37690 | { SWIG_PY_INT, (char *)"BORDER_DOUBLE", (long) wxBORDER_DOUBLE, 0, 0, 0}, | |
37691 | { SWIG_PY_INT, (char *)"BORDER_MASK", (long) wxBORDER_MASK, 0, 0, 0}, | |
37692 | { SWIG_PY_INT, (char *)"DEFAULT", (long) wxDEFAULT, 0, 0, 0}, | |
37693 | { SWIG_PY_INT, (char *)"DECORATIVE", (long) wxDECORATIVE, 0, 0, 0}, | |
37694 | { SWIG_PY_INT, (char *)"ROMAN", (long) wxROMAN, 0, 0, 0}, | |
37695 | { SWIG_PY_INT, (char *)"SCRIPT", (long) wxSCRIPT, 0, 0, 0}, | |
37696 | { SWIG_PY_INT, (char *)"SWISS", (long) wxSWISS, 0, 0, 0}, | |
37697 | { SWIG_PY_INT, (char *)"MODERN", (long) wxMODERN, 0, 0, 0}, | |
37698 | { SWIG_PY_INT, (char *)"TELETYPE", (long) wxTELETYPE, 0, 0, 0}, | |
37699 | { SWIG_PY_INT, (char *)"VARIABLE", (long) wxVARIABLE, 0, 0, 0}, | |
37700 | { SWIG_PY_INT, (char *)"FIXED", (long) wxFIXED, 0, 0, 0}, | |
37701 | { SWIG_PY_INT, (char *)"NORMAL", (long) wxNORMAL, 0, 0, 0}, | |
37702 | { SWIG_PY_INT, (char *)"LIGHT", (long) wxLIGHT, 0, 0, 0}, | |
37703 | { SWIG_PY_INT, (char *)"BOLD", (long) wxBOLD, 0, 0, 0}, | |
37704 | { SWIG_PY_INT, (char *)"ITALIC", (long) wxITALIC, 0, 0, 0}, | |
37705 | { SWIG_PY_INT, (char *)"SLANT", (long) wxSLANT, 0, 0, 0}, | |
37706 | { SWIG_PY_INT, (char *)"SOLID", (long) wxSOLID, 0, 0, 0}, | |
37707 | { SWIG_PY_INT, (char *)"DOT", (long) wxDOT, 0, 0, 0}, | |
37708 | { SWIG_PY_INT, (char *)"LONG_DASH", (long) wxLONG_DASH, 0, 0, 0}, | |
37709 | { SWIG_PY_INT, (char *)"SHORT_DASH", (long) wxSHORT_DASH, 0, 0, 0}, | |
37710 | { SWIG_PY_INT, (char *)"DOT_DASH", (long) wxDOT_DASH, 0, 0, 0}, | |
37711 | { SWIG_PY_INT, (char *)"USER_DASH", (long) wxUSER_DASH, 0, 0, 0}, | |
37712 | { SWIG_PY_INT, (char *)"TRANSPARENT", (long) wxTRANSPARENT, 0, 0, 0}, | |
37713 | { SWIG_PY_INT, (char *)"STIPPLE", (long) wxSTIPPLE, 0, 0, 0}, | |
37714 | { SWIG_PY_INT, (char *)"BDIAGONAL_HATCH", (long) wxBDIAGONAL_HATCH, 0, 0, 0}, | |
37715 | { SWIG_PY_INT, (char *)"CROSSDIAG_HATCH", (long) wxCROSSDIAG_HATCH, 0, 0, 0}, | |
37716 | { SWIG_PY_INT, (char *)"FDIAGONAL_HATCH", (long) wxFDIAGONAL_HATCH, 0, 0, 0}, | |
37717 | { SWIG_PY_INT, (char *)"CROSS_HATCH", (long) wxCROSS_HATCH, 0, 0, 0}, | |
37718 | { SWIG_PY_INT, (char *)"HORIZONTAL_HATCH", (long) wxHORIZONTAL_HATCH, 0, 0, 0}, | |
37719 | { SWIG_PY_INT, (char *)"VERTICAL_HATCH", (long) wxVERTICAL_HATCH, 0, 0, 0}, | |
37720 | { SWIG_PY_INT, (char *)"JOIN_BEVEL", (long) wxJOIN_BEVEL, 0, 0, 0}, | |
37721 | { SWIG_PY_INT, (char *)"JOIN_MITER", (long) wxJOIN_MITER, 0, 0, 0}, | |
37722 | { SWIG_PY_INT, (char *)"JOIN_ROUND", (long) wxJOIN_ROUND, 0, 0, 0}, | |
37723 | { SWIG_PY_INT, (char *)"CAP_ROUND", (long) wxCAP_ROUND, 0, 0, 0}, | |
37724 | { SWIG_PY_INT, (char *)"CAP_PROJECTING", (long) wxCAP_PROJECTING, 0, 0, 0}, | |
37725 | { SWIG_PY_INT, (char *)"CAP_BUTT", (long) wxCAP_BUTT, 0, 0, 0}, | |
37726 | { SWIG_PY_INT, (char *)"CLEAR", (long) wxCLEAR, 0, 0, 0}, | |
37727 | { SWIG_PY_INT, (char *)"XOR", (long) wxXOR, 0, 0, 0}, | |
37728 | { SWIG_PY_INT, (char *)"INVERT", (long) wxINVERT, 0, 0, 0}, | |
37729 | { SWIG_PY_INT, (char *)"OR_REVERSE", (long) wxOR_REVERSE, 0, 0, 0}, | |
37730 | { SWIG_PY_INT, (char *)"AND_REVERSE", (long) wxAND_REVERSE, 0, 0, 0}, | |
37731 | { SWIG_PY_INT, (char *)"COPY", (long) wxCOPY, 0, 0, 0}, | |
37732 | { SWIG_PY_INT, (char *)"AND", (long) wxAND, 0, 0, 0}, | |
37733 | { SWIG_PY_INT, (char *)"AND_INVERT", (long) wxAND_INVERT, 0, 0, 0}, | |
37734 | { SWIG_PY_INT, (char *)"NO_OP", (long) wxNO_OP, 0, 0, 0}, | |
37735 | { SWIG_PY_INT, (char *)"NOR", (long) wxNOR, 0, 0, 0}, | |
37736 | { SWIG_PY_INT, (char *)"EQUIV", (long) wxEQUIV, 0, 0, 0}, | |
37737 | { SWIG_PY_INT, (char *)"SRC_INVERT", (long) wxSRC_INVERT, 0, 0, 0}, | |
37738 | { SWIG_PY_INT, (char *)"OR_INVERT", (long) wxOR_INVERT, 0, 0, 0}, | |
37739 | { SWIG_PY_INT, (char *)"NAND", (long) wxNAND, 0, 0, 0}, | |
37740 | { SWIG_PY_INT, (char *)"OR", (long) wxOR, 0, 0, 0}, | |
37741 | { SWIG_PY_INT, (char *)"SET", (long) wxSET, 0, 0, 0}, | |
37742 | { SWIG_PY_INT, (char *)"WXK_BACK", (long) WXK_BACK, 0, 0, 0}, | |
37743 | { SWIG_PY_INT, (char *)"WXK_TAB", (long) WXK_TAB, 0, 0, 0}, | |
37744 | { SWIG_PY_INT, (char *)"WXK_RETURN", (long) WXK_RETURN, 0, 0, 0}, | |
37745 | { SWIG_PY_INT, (char *)"WXK_ESCAPE", (long) WXK_ESCAPE, 0, 0, 0}, | |
37746 | { SWIG_PY_INT, (char *)"WXK_SPACE", (long) WXK_SPACE, 0, 0, 0}, | |
37747 | { SWIG_PY_INT, (char *)"WXK_DELETE", (long) WXK_DELETE, 0, 0, 0}, | |
37748 | { SWIG_PY_INT, (char *)"WXK_START", (long) WXK_START, 0, 0, 0}, | |
37749 | { SWIG_PY_INT, (char *)"WXK_LBUTTON", (long) WXK_LBUTTON, 0, 0, 0}, | |
37750 | { SWIG_PY_INT, (char *)"WXK_RBUTTON", (long) WXK_RBUTTON, 0, 0, 0}, | |
37751 | { SWIG_PY_INT, (char *)"WXK_CANCEL", (long) WXK_CANCEL, 0, 0, 0}, | |
37752 | { SWIG_PY_INT, (char *)"WXK_MBUTTON", (long) WXK_MBUTTON, 0, 0, 0}, | |
37753 | { SWIG_PY_INT, (char *)"WXK_CLEAR", (long) WXK_CLEAR, 0, 0, 0}, | |
37754 | { SWIG_PY_INT, (char *)"WXK_SHIFT", (long) WXK_SHIFT, 0, 0, 0}, | |
37755 | { SWIG_PY_INT, (char *)"WXK_ALT", (long) WXK_ALT, 0, 0, 0}, | |
37756 | { SWIG_PY_INT, (char *)"WXK_CONTROL", (long) WXK_CONTROL, 0, 0, 0}, | |
37757 | { SWIG_PY_INT, (char *)"WXK_MENU", (long) WXK_MENU, 0, 0, 0}, | |
37758 | { SWIG_PY_INT, (char *)"WXK_PAUSE", (long) WXK_PAUSE, 0, 0, 0}, | |
37759 | { SWIG_PY_INT, (char *)"WXK_CAPITAL", (long) WXK_CAPITAL, 0, 0, 0}, | |
37760 | { SWIG_PY_INT, (char *)"WXK_PRIOR", (long) WXK_PRIOR, 0, 0, 0}, | |
37761 | { SWIG_PY_INT, (char *)"WXK_NEXT", (long) WXK_NEXT, 0, 0, 0}, | |
37762 | { SWIG_PY_INT, (char *)"WXK_END", (long) WXK_END, 0, 0, 0}, | |
37763 | { SWIG_PY_INT, (char *)"WXK_HOME", (long) WXK_HOME, 0, 0, 0}, | |
37764 | { SWIG_PY_INT, (char *)"WXK_LEFT", (long) WXK_LEFT, 0, 0, 0}, | |
37765 | { SWIG_PY_INT, (char *)"WXK_UP", (long) WXK_UP, 0, 0, 0}, | |
37766 | { SWIG_PY_INT, (char *)"WXK_RIGHT", (long) WXK_RIGHT, 0, 0, 0}, | |
37767 | { SWIG_PY_INT, (char *)"WXK_DOWN", (long) WXK_DOWN, 0, 0, 0}, | |
37768 | { SWIG_PY_INT, (char *)"WXK_SELECT", (long) WXK_SELECT, 0, 0, 0}, | |
37769 | { SWIG_PY_INT, (char *)"WXK_PRINT", (long) WXK_PRINT, 0, 0, 0}, | |
37770 | { SWIG_PY_INT, (char *)"WXK_EXECUTE", (long) WXK_EXECUTE, 0, 0, 0}, | |
37771 | { SWIG_PY_INT, (char *)"WXK_SNAPSHOT", (long) WXK_SNAPSHOT, 0, 0, 0}, | |
37772 | { SWIG_PY_INT, (char *)"WXK_INSERT", (long) WXK_INSERT, 0, 0, 0}, | |
37773 | { SWIG_PY_INT, (char *)"WXK_HELP", (long) WXK_HELP, 0, 0, 0}, | |
37774 | { SWIG_PY_INT, (char *)"WXK_NUMPAD0", (long) WXK_NUMPAD0, 0, 0, 0}, | |
37775 | { SWIG_PY_INT, (char *)"WXK_NUMPAD1", (long) WXK_NUMPAD1, 0, 0, 0}, | |
37776 | { SWIG_PY_INT, (char *)"WXK_NUMPAD2", (long) WXK_NUMPAD2, 0, 0, 0}, | |
37777 | { SWIG_PY_INT, (char *)"WXK_NUMPAD3", (long) WXK_NUMPAD3, 0, 0, 0}, | |
37778 | { SWIG_PY_INT, (char *)"WXK_NUMPAD4", (long) WXK_NUMPAD4, 0, 0, 0}, | |
37779 | { SWIG_PY_INT, (char *)"WXK_NUMPAD5", (long) WXK_NUMPAD5, 0, 0, 0}, | |
37780 | { SWIG_PY_INT, (char *)"WXK_NUMPAD6", (long) WXK_NUMPAD6, 0, 0, 0}, | |
37781 | { SWIG_PY_INT, (char *)"WXK_NUMPAD7", (long) WXK_NUMPAD7, 0, 0, 0}, | |
37782 | { SWIG_PY_INT, (char *)"WXK_NUMPAD8", (long) WXK_NUMPAD8, 0, 0, 0}, | |
37783 | { SWIG_PY_INT, (char *)"WXK_NUMPAD9", (long) WXK_NUMPAD9, 0, 0, 0}, | |
37784 | { SWIG_PY_INT, (char *)"WXK_MULTIPLY", (long) WXK_MULTIPLY, 0, 0, 0}, | |
37785 | { SWIG_PY_INT, (char *)"WXK_ADD", (long) WXK_ADD, 0, 0, 0}, | |
37786 | { SWIG_PY_INT, (char *)"WXK_SEPARATOR", (long) WXK_SEPARATOR, 0, 0, 0}, | |
37787 | { SWIG_PY_INT, (char *)"WXK_SUBTRACT", (long) WXK_SUBTRACT, 0, 0, 0}, | |
37788 | { SWIG_PY_INT, (char *)"WXK_DECIMAL", (long) WXK_DECIMAL, 0, 0, 0}, | |
37789 | { SWIG_PY_INT, (char *)"WXK_DIVIDE", (long) WXK_DIVIDE, 0, 0, 0}, | |
37790 | { SWIG_PY_INT, (char *)"WXK_F1", (long) WXK_F1, 0, 0, 0}, | |
37791 | { SWIG_PY_INT, (char *)"WXK_F2", (long) WXK_F2, 0, 0, 0}, | |
37792 | { SWIG_PY_INT, (char *)"WXK_F3", (long) WXK_F3, 0, 0, 0}, | |
37793 | { SWIG_PY_INT, (char *)"WXK_F4", (long) WXK_F4, 0, 0, 0}, | |
37794 | { SWIG_PY_INT, (char *)"WXK_F5", (long) WXK_F5, 0, 0, 0}, | |
37795 | { SWIG_PY_INT, (char *)"WXK_F6", (long) WXK_F6, 0, 0, 0}, | |
37796 | { SWIG_PY_INT, (char *)"WXK_F7", (long) WXK_F7, 0, 0, 0}, | |
37797 | { SWIG_PY_INT, (char *)"WXK_F8", (long) WXK_F8, 0, 0, 0}, | |
37798 | { SWIG_PY_INT, (char *)"WXK_F9", (long) WXK_F9, 0, 0, 0}, | |
37799 | { SWIG_PY_INT, (char *)"WXK_F10", (long) WXK_F10, 0, 0, 0}, | |
37800 | { SWIG_PY_INT, (char *)"WXK_F11", (long) WXK_F11, 0, 0, 0}, | |
37801 | { SWIG_PY_INT, (char *)"WXK_F12", (long) WXK_F12, 0, 0, 0}, | |
37802 | { SWIG_PY_INT, (char *)"WXK_F13", (long) WXK_F13, 0, 0, 0}, | |
37803 | { SWIG_PY_INT, (char *)"WXK_F14", (long) WXK_F14, 0, 0, 0}, | |
37804 | { SWIG_PY_INT, (char *)"WXK_F15", (long) WXK_F15, 0, 0, 0}, | |
37805 | { SWIG_PY_INT, (char *)"WXK_F16", (long) WXK_F16, 0, 0, 0}, | |
37806 | { SWIG_PY_INT, (char *)"WXK_F17", (long) WXK_F17, 0, 0, 0}, | |
37807 | { SWIG_PY_INT, (char *)"WXK_F18", (long) WXK_F18, 0, 0, 0}, | |
37808 | { SWIG_PY_INT, (char *)"WXK_F19", (long) WXK_F19, 0, 0, 0}, | |
37809 | { SWIG_PY_INT, (char *)"WXK_F20", (long) WXK_F20, 0, 0, 0}, | |
37810 | { SWIG_PY_INT, (char *)"WXK_F21", (long) WXK_F21, 0, 0, 0}, | |
37811 | { SWIG_PY_INT, (char *)"WXK_F22", (long) WXK_F22, 0, 0, 0}, | |
37812 | { SWIG_PY_INT, (char *)"WXK_F23", (long) WXK_F23, 0, 0, 0}, | |
37813 | { SWIG_PY_INT, (char *)"WXK_F24", (long) WXK_F24, 0, 0, 0}, | |
37814 | { SWIG_PY_INT, (char *)"WXK_NUMLOCK", (long) WXK_NUMLOCK, 0, 0, 0}, | |
37815 | { SWIG_PY_INT, (char *)"WXK_SCROLL", (long) WXK_SCROLL, 0, 0, 0}, | |
37816 | { SWIG_PY_INT, (char *)"WXK_PAGEUP", (long) WXK_PAGEUP, 0, 0, 0}, | |
37817 | { SWIG_PY_INT, (char *)"WXK_PAGEDOWN", (long) WXK_PAGEDOWN, 0, 0, 0}, | |
37818 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SPACE", (long) WXK_NUMPAD_SPACE, 0, 0, 0}, | |
37819 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_TAB", (long) WXK_NUMPAD_TAB, 0, 0, 0}, | |
37820 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ENTER", (long) WXK_NUMPAD_ENTER, 0, 0, 0}, | |
37821 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F1", (long) WXK_NUMPAD_F1, 0, 0, 0}, | |
37822 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F2", (long) WXK_NUMPAD_F2, 0, 0, 0}, | |
37823 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F3", (long) WXK_NUMPAD_F3, 0, 0, 0}, | |
37824 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_F4", (long) WXK_NUMPAD_F4, 0, 0, 0}, | |
37825 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_HOME", (long) WXK_NUMPAD_HOME, 0, 0, 0}, | |
37826 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_LEFT", (long) WXK_NUMPAD_LEFT, 0, 0, 0}, | |
37827 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_UP", (long) WXK_NUMPAD_UP, 0, 0, 0}, | |
37828 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_RIGHT", (long) WXK_NUMPAD_RIGHT, 0, 0, 0}, | |
37829 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DOWN", (long) WXK_NUMPAD_DOWN, 0, 0, 0}, | |
37830 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PRIOR", (long) WXK_NUMPAD_PRIOR, 0, 0, 0}, | |
37831 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEUP", (long) WXK_NUMPAD_PAGEUP, 0, 0, 0}, | |
37832 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_NEXT", (long) WXK_NUMPAD_NEXT, 0, 0, 0}, | |
37833 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_PAGEDOWN", (long) WXK_NUMPAD_PAGEDOWN, 0, 0, 0}, | |
37834 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_END", (long) WXK_NUMPAD_END, 0, 0, 0}, | |
37835 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_BEGIN", (long) WXK_NUMPAD_BEGIN, 0, 0, 0}, | |
37836 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_INSERT", (long) WXK_NUMPAD_INSERT, 0, 0, 0}, | |
37837 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DELETE", (long) WXK_NUMPAD_DELETE, 0, 0, 0}, | |
37838 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_EQUAL", (long) WXK_NUMPAD_EQUAL, 0, 0, 0}, | |
37839 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_MULTIPLY", (long) WXK_NUMPAD_MULTIPLY, 0, 0, 0}, | |
37840 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_ADD", (long) WXK_NUMPAD_ADD, 0, 0, 0}, | |
37841 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SEPARATOR", (long) WXK_NUMPAD_SEPARATOR, 0, 0, 0}, | |
37842 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_SUBTRACT", (long) WXK_NUMPAD_SUBTRACT, 0, 0, 0}, | |
37843 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DECIMAL", (long) WXK_NUMPAD_DECIMAL, 0, 0, 0}, | |
37844 | { SWIG_PY_INT, (char *)"WXK_NUMPAD_DIVIDE", (long) WXK_NUMPAD_DIVIDE, 0, 0, 0}, | |
37845 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_LEFT", (long) WXK_WINDOWS_LEFT, 0, 0, 0}, | |
37846 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_RIGHT", (long) WXK_WINDOWS_RIGHT, 0, 0, 0}, | |
37847 | { SWIG_PY_INT, (char *)"WXK_WINDOWS_MENU", (long) WXK_WINDOWS_MENU, 0, 0, 0}, | |
37848 | { SWIG_PY_INT, (char *)"PAPER_NONE", (long) wxPAPER_NONE, 0, 0, 0}, | |
37849 | { SWIG_PY_INT, (char *)"PAPER_LETTER", (long) wxPAPER_LETTER, 0, 0, 0}, | |
37850 | { SWIG_PY_INT, (char *)"PAPER_LEGAL", (long) wxPAPER_LEGAL, 0, 0, 0}, | |
37851 | { SWIG_PY_INT, (char *)"PAPER_A4", (long) wxPAPER_A4, 0, 0, 0}, | |
37852 | { SWIG_PY_INT, (char *)"PAPER_CSHEET", (long) wxPAPER_CSHEET, 0, 0, 0}, | |
37853 | { SWIG_PY_INT, (char *)"PAPER_DSHEET", (long) wxPAPER_DSHEET, 0, 0, 0}, | |
37854 | { SWIG_PY_INT, (char *)"PAPER_ESHEET", (long) wxPAPER_ESHEET, 0, 0, 0}, | |
37855 | { SWIG_PY_INT, (char *)"PAPER_LETTERSMALL", (long) wxPAPER_LETTERSMALL, 0, 0, 0}, | |
37856 | { SWIG_PY_INT, (char *)"PAPER_TABLOID", (long) wxPAPER_TABLOID, 0, 0, 0}, | |
37857 | { SWIG_PY_INT, (char *)"PAPER_LEDGER", (long) wxPAPER_LEDGER, 0, 0, 0}, | |
37858 | { SWIG_PY_INT, (char *)"PAPER_STATEMENT", (long) wxPAPER_STATEMENT, 0, 0, 0}, | |
37859 | { SWIG_PY_INT, (char *)"PAPER_EXECUTIVE", (long) wxPAPER_EXECUTIVE, 0, 0, 0}, | |
37860 | { SWIG_PY_INT, (char *)"PAPER_A3", (long) wxPAPER_A3, 0, 0, 0}, | |
37861 | { SWIG_PY_INT, (char *)"PAPER_A4SMALL", (long) wxPAPER_A4SMALL, 0, 0, 0}, | |
37862 | { SWIG_PY_INT, (char *)"PAPER_A5", (long) wxPAPER_A5, 0, 0, 0}, | |
37863 | { SWIG_PY_INT, (char *)"PAPER_B4", (long) wxPAPER_B4, 0, 0, 0}, | |
37864 | { SWIG_PY_INT, (char *)"PAPER_B5", (long) wxPAPER_B5, 0, 0, 0}, | |
37865 | { SWIG_PY_INT, (char *)"PAPER_FOLIO", (long) wxPAPER_FOLIO, 0, 0, 0}, | |
37866 | { SWIG_PY_INT, (char *)"PAPER_QUARTO", (long) wxPAPER_QUARTO, 0, 0, 0}, | |
37867 | { SWIG_PY_INT, (char *)"PAPER_10X14", (long) wxPAPER_10X14, 0, 0, 0}, | |
37868 | { SWIG_PY_INT, (char *)"PAPER_11X17", (long) wxPAPER_11X17, 0, 0, 0}, | |
37869 | { SWIG_PY_INT, (char *)"PAPER_NOTE", (long) wxPAPER_NOTE, 0, 0, 0}, | |
37870 | { SWIG_PY_INT, (char *)"PAPER_ENV_9", (long) wxPAPER_ENV_9, 0, 0, 0}, | |
37871 | { SWIG_PY_INT, (char *)"PAPER_ENV_10", (long) wxPAPER_ENV_10, 0, 0, 0}, | |
37872 | { SWIG_PY_INT, (char *)"PAPER_ENV_11", (long) wxPAPER_ENV_11, 0, 0, 0}, | |
37873 | { SWIG_PY_INT, (char *)"PAPER_ENV_12", (long) wxPAPER_ENV_12, 0, 0, 0}, | |
37874 | { SWIG_PY_INT, (char *)"PAPER_ENV_14", (long) wxPAPER_ENV_14, 0, 0, 0}, | |
37875 | { SWIG_PY_INT, (char *)"PAPER_ENV_DL", (long) wxPAPER_ENV_DL, 0, 0, 0}, | |
37876 | { SWIG_PY_INT, (char *)"PAPER_ENV_C5", (long) wxPAPER_ENV_C5, 0, 0, 0}, | |
37877 | { SWIG_PY_INT, (char *)"PAPER_ENV_C3", (long) wxPAPER_ENV_C3, 0, 0, 0}, | |
37878 | { SWIG_PY_INT, (char *)"PAPER_ENV_C4", (long) wxPAPER_ENV_C4, 0, 0, 0}, | |
37879 | { SWIG_PY_INT, (char *)"PAPER_ENV_C6", (long) wxPAPER_ENV_C6, 0, 0, 0}, | |
37880 | { SWIG_PY_INT, (char *)"PAPER_ENV_C65", (long) wxPAPER_ENV_C65, 0, 0, 0}, | |
37881 | { SWIG_PY_INT, (char *)"PAPER_ENV_B4", (long) wxPAPER_ENV_B4, 0, 0, 0}, | |
37882 | { SWIG_PY_INT, (char *)"PAPER_ENV_B5", (long) wxPAPER_ENV_B5, 0, 0, 0}, | |
37883 | { SWIG_PY_INT, (char *)"PAPER_ENV_B6", (long) wxPAPER_ENV_B6, 0, 0, 0}, | |
37884 | { SWIG_PY_INT, (char *)"PAPER_ENV_ITALY", (long) wxPAPER_ENV_ITALY, 0, 0, 0}, | |
37885 | { SWIG_PY_INT, (char *)"PAPER_ENV_MONARCH", (long) wxPAPER_ENV_MONARCH, 0, 0, 0}, | |
37886 | { SWIG_PY_INT, (char *)"PAPER_ENV_PERSONAL", (long) wxPAPER_ENV_PERSONAL, 0, 0, 0}, | |
37887 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_US", (long) wxPAPER_FANFOLD_US, 0, 0, 0}, | |
37888 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_STD_GERMAN", (long) wxPAPER_FANFOLD_STD_GERMAN, 0, 0, 0}, | |
37889 | { SWIG_PY_INT, (char *)"PAPER_FANFOLD_LGL_GERMAN", (long) wxPAPER_FANFOLD_LGL_GERMAN, 0, 0, 0}, | |
37890 | { SWIG_PY_INT, (char *)"PAPER_ISO_B4", (long) wxPAPER_ISO_B4, 0, 0, 0}, | |
37891 | { SWIG_PY_INT, (char *)"PAPER_JAPANESE_POSTCARD", (long) wxPAPER_JAPANESE_POSTCARD, 0, 0, 0}, | |
37892 | { SWIG_PY_INT, (char *)"PAPER_9X11", (long) wxPAPER_9X11, 0, 0, 0}, | |
37893 | { SWIG_PY_INT, (char *)"PAPER_10X11", (long) wxPAPER_10X11, 0, 0, 0}, | |
37894 | { SWIG_PY_INT, (char *)"PAPER_15X11", (long) wxPAPER_15X11, 0, 0, 0}, | |
37895 | { SWIG_PY_INT, (char *)"PAPER_ENV_INVITE", (long) wxPAPER_ENV_INVITE, 0, 0, 0}, | |
37896 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA", (long) wxPAPER_LETTER_EXTRA, 0, 0, 0}, | |
37897 | { SWIG_PY_INT, (char *)"PAPER_LEGAL_EXTRA", (long) wxPAPER_LEGAL_EXTRA, 0, 0, 0}, | |
37898 | { SWIG_PY_INT, (char *)"PAPER_TABLOID_EXTRA", (long) wxPAPER_TABLOID_EXTRA, 0, 0, 0}, | |
37899 | { SWIG_PY_INT, (char *)"PAPER_A4_EXTRA", (long) wxPAPER_A4_EXTRA, 0, 0, 0}, | |
37900 | { SWIG_PY_INT, (char *)"PAPER_LETTER_TRANSVERSE", (long) wxPAPER_LETTER_TRANSVERSE, 0, 0, 0}, | |
37901 | { SWIG_PY_INT, (char *)"PAPER_A4_TRANSVERSE", (long) wxPAPER_A4_TRANSVERSE, 0, 0, 0}, | |
37902 | { SWIG_PY_INT, (char *)"PAPER_LETTER_EXTRA_TRANSVERSE", (long) wxPAPER_LETTER_EXTRA_TRANSVERSE, 0, 0, 0}, | |
37903 | { SWIG_PY_INT, (char *)"PAPER_A_PLUS", (long) wxPAPER_A_PLUS, 0, 0, 0}, | |
37904 | { SWIG_PY_INT, (char *)"PAPER_B_PLUS", (long) wxPAPER_B_PLUS, 0, 0, 0}, | |
37905 | { SWIG_PY_INT, (char *)"PAPER_LETTER_PLUS", (long) wxPAPER_LETTER_PLUS, 0, 0, 0}, | |
37906 | { SWIG_PY_INT, (char *)"PAPER_A4_PLUS", (long) wxPAPER_A4_PLUS, 0, 0, 0}, | |
37907 | { SWIG_PY_INT, (char *)"PAPER_A5_TRANSVERSE", (long) wxPAPER_A5_TRANSVERSE, 0, 0, 0}, | |
37908 | { SWIG_PY_INT, (char *)"PAPER_B5_TRANSVERSE", (long) wxPAPER_B5_TRANSVERSE, 0, 0, 0}, | |
37909 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA", (long) wxPAPER_A3_EXTRA, 0, 0, 0}, | |
37910 | { SWIG_PY_INT, (char *)"PAPER_A5_EXTRA", (long) wxPAPER_A5_EXTRA, 0, 0, 0}, | |
37911 | { SWIG_PY_INT, (char *)"PAPER_B5_EXTRA", (long) wxPAPER_B5_EXTRA, 0, 0, 0}, | |
37912 | { SWIG_PY_INT, (char *)"PAPER_A2", (long) wxPAPER_A2, 0, 0, 0}, | |
37913 | { SWIG_PY_INT, (char *)"PAPER_A3_TRANSVERSE", (long) wxPAPER_A3_TRANSVERSE, 0, 0, 0}, | |
37914 | { SWIG_PY_INT, (char *)"PAPER_A3_EXTRA_TRANSVERSE", (long) wxPAPER_A3_EXTRA_TRANSVERSE, 0, 0, 0}, | |
37915 | { SWIG_PY_INT, (char *)"DUPLEX_SIMPLEX", (long) wxDUPLEX_SIMPLEX, 0, 0, 0}, | |
37916 | { SWIG_PY_INT, (char *)"DUPLEX_HORIZONTAL", (long) wxDUPLEX_HORIZONTAL, 0, 0, 0}, | |
37917 | { SWIG_PY_INT, (char *)"DUPLEX_VERTICAL", (long) wxDUPLEX_VERTICAL, 0, 0, 0}, | |
37918 | { SWIG_PY_INT, (char *)"ITEM_SEPARATOR", (long) wxITEM_SEPARATOR, 0, 0, 0}, | |
37919 | { SWIG_PY_INT, (char *)"ITEM_NORMAL", (long) wxITEM_NORMAL, 0, 0, 0}, | |
37920 | { SWIG_PY_INT, (char *)"ITEM_CHECK", (long) wxITEM_CHECK, 0, 0, 0}, | |
37921 | { SWIG_PY_INT, (char *)"ITEM_RADIO", (long) wxITEM_RADIO, 0, 0, 0}, | |
37922 | { SWIG_PY_INT, (char *)"ITEM_MAX", (long) wxITEM_MAX, 0, 0, 0}, | |
37923 | { SWIG_PY_INT, (char *)"HT_NOWHERE", (long) wxHT_NOWHERE, 0, 0, 0}, | |
37924 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_FIRST", (long) wxHT_SCROLLBAR_FIRST, 0, 0, 0}, | |
37925 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_1", (long) wxHT_SCROLLBAR_ARROW_LINE_1, 0, 0, 0}, | |
37926 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_LINE_2", (long) wxHT_SCROLLBAR_ARROW_LINE_2, 0, 0, 0}, | |
37927 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_1", (long) wxHT_SCROLLBAR_ARROW_PAGE_1, 0, 0, 0}, | |
37928 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_ARROW_PAGE_2", (long) wxHT_SCROLLBAR_ARROW_PAGE_2, 0, 0, 0}, | |
37929 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_THUMB", (long) wxHT_SCROLLBAR_THUMB, 0, 0, 0}, | |
37930 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_1", (long) wxHT_SCROLLBAR_BAR_1, 0, 0, 0}, | |
37931 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_BAR_2", (long) wxHT_SCROLLBAR_BAR_2, 0, 0, 0}, | |
37932 | { SWIG_PY_INT, (char *)"HT_SCROLLBAR_LAST", (long) wxHT_SCROLLBAR_LAST, 0, 0, 0}, | |
37933 | { SWIG_PY_INT, (char *)"HT_WINDOW_OUTSIDE", (long) wxHT_WINDOW_OUTSIDE, 0, 0, 0}, | |
37934 | { SWIG_PY_INT, (char *)"HT_WINDOW_INSIDE", (long) wxHT_WINDOW_INSIDE, 0, 0, 0}, | |
37935 | { SWIG_PY_INT, (char *)"HT_WINDOW_VERT_SCROLLBAR", (long) wxHT_WINDOW_VERT_SCROLLBAR, 0, 0, 0}, | |
37936 | { SWIG_PY_INT, (char *)"HT_WINDOW_HORZ_SCROLLBAR", (long) wxHT_WINDOW_HORZ_SCROLLBAR, 0, 0, 0}, | |
37937 | { SWIG_PY_INT, (char *)"HT_WINDOW_CORNER", (long) wxHT_WINDOW_CORNER, 0, 0, 0}, | |
37938 | { SWIG_PY_INT, (char *)"HT_MAX", (long) wxHT_MAX, 0, 0, 0}, | |
37939 | { SWIG_PY_INT, (char *)"MOD_NONE", (long) wxMOD_NONE, 0, 0, 0}, | |
37940 | { SWIG_PY_INT, (char *)"MOD_ALT", (long) wxMOD_ALT, 0, 0, 0}, | |
37941 | { SWIG_PY_INT, (char *)"MOD_CONTROL", (long) wxMOD_CONTROL, 0, 0, 0}, | |
37942 | { SWIG_PY_INT, (char *)"MOD_SHIFT", (long) wxMOD_SHIFT, 0, 0, 0}, | |
37943 | { SWIG_PY_INT, (char *)"MOD_WIN", (long) wxMOD_WIN, 0, 0, 0}, | |
37944 | { SWIG_PY_INT, (char *)"UPDATE_UI_NONE", (long) wxUPDATE_UI_NONE, 0, 0, 0}, | |
37945 | { SWIG_PY_INT, (char *)"UPDATE_UI_RECURSE", (long) wxUPDATE_UI_RECURSE, 0, 0, 0}, | |
37946 | { SWIG_PY_INT, (char *)"UPDATE_UI_FROMIDLE", (long) wxUPDATE_UI_FROMIDLE, 0, 0, 0}, | |
37947 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_INVALID", (long) wxBITMAP_TYPE_INVALID, 0, 0, 0}, | |
37948 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_BMP", (long) wxBITMAP_TYPE_BMP, 0, 0, 0}, | |
37949 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_BMP_RESOURCE", (long) wxBITMAP_TYPE_BMP_RESOURCE, 0, 0, 0}, | |
37950 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_RESOURCE", (long) wxBITMAP_TYPE_RESOURCE, 0, 0, 0}, | |
37951 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICO", (long) wxBITMAP_TYPE_ICO, 0, 0, 0}, | |
37952 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICO_RESOURCE", (long) wxBITMAP_TYPE_ICO_RESOURCE, 0, 0, 0}, | |
37953 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_CUR", (long) wxBITMAP_TYPE_CUR, 0, 0, 0}, | |
37954 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_CUR_RESOURCE", (long) wxBITMAP_TYPE_CUR_RESOURCE, 0, 0, 0}, | |
37955 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM", (long) wxBITMAP_TYPE_XBM, 0, 0, 0}, | |
37956 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XBM_DATA", (long) wxBITMAP_TYPE_XBM_DATA, 0, 0, 0}, | |
37957 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM", (long) wxBITMAP_TYPE_XPM, 0, 0, 0}, | |
37958 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_XPM_DATA", (long) wxBITMAP_TYPE_XPM_DATA, 0, 0, 0}, | |
37959 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_TIF", (long) wxBITMAP_TYPE_TIF, 0, 0, 0}, | |
37960 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_TIF_RESOURCE", (long) wxBITMAP_TYPE_TIF_RESOURCE, 0, 0, 0}, | |
37961 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_GIF", (long) wxBITMAP_TYPE_GIF, 0, 0, 0}, | |
37962 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_GIF_RESOURCE", (long) wxBITMAP_TYPE_GIF_RESOURCE, 0, 0, 0}, | |
37963 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNG", (long) wxBITMAP_TYPE_PNG, 0, 0, 0}, | |
37964 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNG_RESOURCE", (long) wxBITMAP_TYPE_PNG_RESOURCE, 0, 0, 0}, | |
37965 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_JPEG", (long) wxBITMAP_TYPE_JPEG, 0, 0, 0}, | |
37966 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_JPEG_RESOURCE", (long) wxBITMAP_TYPE_JPEG_RESOURCE, 0, 0, 0}, | |
37967 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNM", (long) wxBITMAP_TYPE_PNM, 0, 0, 0}, | |
37968 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PNM_RESOURCE", (long) wxBITMAP_TYPE_PNM_RESOURCE, 0, 0, 0}, | |
37969 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PCX", (long) wxBITMAP_TYPE_PCX, 0, 0, 0}, | |
37970 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PCX_RESOURCE", (long) wxBITMAP_TYPE_PCX_RESOURCE, 0, 0, 0}, | |
37971 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PICT", (long) wxBITMAP_TYPE_PICT, 0, 0, 0}, | |
37972 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_PICT_RESOURCE", (long) wxBITMAP_TYPE_PICT_RESOURCE, 0, 0, 0}, | |
37973 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICON", (long) wxBITMAP_TYPE_ICON, 0, 0, 0}, | |
37974 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ICON_RESOURCE", (long) wxBITMAP_TYPE_ICON_RESOURCE, 0, 0, 0}, | |
37975 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANI", (long) wxBITMAP_TYPE_ANI, 0, 0, 0}, | |
37976 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_IFF", (long) wxBITMAP_TYPE_IFF, 0, 0, 0}, | |
37977 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_MACCURSOR", (long) wxBITMAP_TYPE_MACCURSOR, 0, 0, 0}, | |
37978 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_MACCURSOR_RESOURCE", (long) wxBITMAP_TYPE_MACCURSOR_RESOURCE, 0, 0, 0}, | |
37979 | { SWIG_PY_INT, (char *)"BITMAP_TYPE_ANY", (long) wxBITMAP_TYPE_ANY, 0, 0, 0}, | |
37980 | { SWIG_PY_INT, (char *)"CURSOR_NONE", (long) wxCURSOR_NONE, 0, 0, 0}, | |
37981 | { SWIG_PY_INT, (char *)"CURSOR_ARROW", (long) wxCURSOR_ARROW, 0, 0, 0}, | |
37982 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_ARROW", (long) wxCURSOR_RIGHT_ARROW, 0, 0, 0}, | |
37983 | { SWIG_PY_INT, (char *)"CURSOR_BULLSEYE", (long) wxCURSOR_BULLSEYE, 0, 0, 0}, | |
37984 | { SWIG_PY_INT, (char *)"CURSOR_CHAR", (long) wxCURSOR_CHAR, 0, 0, 0}, | |
37985 | { SWIG_PY_INT, (char *)"CURSOR_CROSS", (long) wxCURSOR_CROSS, 0, 0, 0}, | |
37986 | { SWIG_PY_INT, (char *)"CURSOR_HAND", (long) wxCURSOR_HAND, 0, 0, 0}, | |
37987 | { SWIG_PY_INT, (char *)"CURSOR_IBEAM", (long) wxCURSOR_IBEAM, 0, 0, 0}, | |
37988 | { SWIG_PY_INT, (char *)"CURSOR_LEFT_BUTTON", (long) wxCURSOR_LEFT_BUTTON, 0, 0, 0}, | |
37989 | { SWIG_PY_INT, (char *)"CURSOR_MAGNIFIER", (long) wxCURSOR_MAGNIFIER, 0, 0, 0}, | |
37990 | { SWIG_PY_INT, (char *)"CURSOR_MIDDLE_BUTTON", (long) wxCURSOR_MIDDLE_BUTTON, 0, 0, 0}, | |
37991 | { SWIG_PY_INT, (char *)"CURSOR_NO_ENTRY", (long) wxCURSOR_NO_ENTRY, 0, 0, 0}, | |
37992 | { SWIG_PY_INT, (char *)"CURSOR_PAINT_BRUSH", (long) wxCURSOR_PAINT_BRUSH, 0, 0, 0}, | |
37993 | { SWIG_PY_INT, (char *)"CURSOR_PENCIL", (long) wxCURSOR_PENCIL, 0, 0, 0}, | |
37994 | { SWIG_PY_INT, (char *)"CURSOR_POINT_LEFT", (long) wxCURSOR_POINT_LEFT, 0, 0, 0}, | |
37995 | { SWIG_PY_INT, (char *)"CURSOR_POINT_RIGHT", (long) wxCURSOR_POINT_RIGHT, 0, 0, 0}, | |
37996 | { SWIG_PY_INT, (char *)"CURSOR_QUESTION_ARROW", (long) wxCURSOR_QUESTION_ARROW, 0, 0, 0}, | |
37997 | { SWIG_PY_INT, (char *)"CURSOR_RIGHT_BUTTON", (long) wxCURSOR_RIGHT_BUTTON, 0, 0, 0}, | |
37998 | { SWIG_PY_INT, (char *)"CURSOR_SIZENESW", (long) wxCURSOR_SIZENESW, 0, 0, 0}, | |
37999 | { SWIG_PY_INT, (char *)"CURSOR_SIZENS", (long) wxCURSOR_SIZENS, 0, 0, 0}, | |
38000 | { SWIG_PY_INT, (char *)"CURSOR_SIZENWSE", (long) wxCURSOR_SIZENWSE, 0, 0, 0}, | |
38001 | { SWIG_PY_INT, (char *)"CURSOR_SIZEWE", (long) wxCURSOR_SIZEWE, 0, 0, 0}, | |
38002 | { SWIG_PY_INT, (char *)"CURSOR_SIZING", (long) wxCURSOR_SIZING, 0, 0, 0}, | |
38003 | { SWIG_PY_INT, (char *)"CURSOR_SPRAYCAN", (long) wxCURSOR_SPRAYCAN, 0, 0, 0}, | |
38004 | { SWIG_PY_INT, (char *)"CURSOR_WAIT", (long) wxCURSOR_WAIT, 0, 0, 0}, | |
38005 | { SWIG_PY_INT, (char *)"CURSOR_WATCH", (long) wxCURSOR_WATCH, 0, 0, 0}, | |
38006 | { SWIG_PY_INT, (char *)"CURSOR_BLANK", (long) wxCURSOR_BLANK, 0, 0, 0}, | |
38007 | { SWIG_PY_INT, (char *)"CURSOR_DEFAULT", (long) wxCURSOR_DEFAULT, 0, 0, 0}, | |
38008 | { SWIG_PY_INT, (char *)"CURSOR_COPY_ARROW", (long) wxCURSOR_COPY_ARROW, 0, 0, 0}, | |
38009 | { SWIG_PY_INT, (char *)"CURSOR_ARROWWAIT", (long) wxCURSOR_ARROWWAIT, 0, 0, 0}, | |
38010 | { SWIG_PY_INT, (char *)"CURSOR_MAX", (long) wxCURSOR_MAX, 0, 0, 0}, | |
38011 | { SWIG_PY_INT, (char *)"FromStart", (long) wxFromStart, 0, 0, 0}, | |
38012 | { SWIG_PY_INT, (char *)"FromCurrent", (long) wxFromCurrent, 0, 0, 0}, | |
38013 | { SWIG_PY_INT, (char *)"FromEnd", (long) wxFromEnd, 0, 0, 0}, | |
38014 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_INCHES", (long) wxIMAGE_RESOLUTION_INCHES, 0, 0, 0}, | |
38015 | { SWIG_PY_INT, (char *)"IMAGE_RESOLUTION_CM", (long) wxIMAGE_RESOLUTION_CM, 0, 0, 0}, | |
38016 | { SWIG_PY_INT, (char *)"BMP_24BPP", (long) wxBMP_24BPP, 0, 0, 0}, | |
38017 | { SWIG_PY_INT, (char *)"BMP_8BPP", (long) wxBMP_8BPP, 0, 0, 0}, | |
38018 | { SWIG_PY_INT, (char *)"BMP_8BPP_GREY", (long) wxBMP_8BPP_GREY, 0, 0, 0}, | |
38019 | { SWIG_PY_INT, (char *)"BMP_8BPP_GRAY", (long) wxBMP_8BPP_GRAY, 0, 0, 0}, | |
38020 | { SWIG_PY_INT, (char *)"BMP_8BPP_RED", (long) wxBMP_8BPP_RED, 0, 0, 0}, | |
38021 | { SWIG_PY_INT, (char *)"BMP_8BPP_PALETTE", (long) wxBMP_8BPP_PALETTE, 0, 0, 0}, | |
38022 | { SWIG_PY_INT, (char *)"BMP_4BPP", (long) wxBMP_4BPP, 0, 0, 0}, | |
38023 | { SWIG_PY_INT, (char *)"BMP_1BPP", (long) wxBMP_1BPP, 0, 0, 0}, | |
38024 | { SWIG_PY_INT, (char *)"BMP_1BPP_BW", (long) wxBMP_1BPP_BW, 0, 0, 0}, | |
38025 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_NONE", (long) wxEVENT_PROPAGATE_NONE, 0, 0, 0}, | |
38026 | { SWIG_PY_INT, (char *)"EVENT_PROPAGATE_MAX", (long) wxEVENT_PROPAGATE_MAX, 0, 0, 0}, | |
38027 | { SWIG_PY_INT, (char *)"wxEVT_NULL", (long) wxEVT_NULL, 0, 0, 0}, | |
38028 | { SWIG_PY_INT, (char *)"wxEVT_FIRST", (long) wxEVT_FIRST, 0, 0, 0}, | |
38029 | { SWIG_PY_INT, (char *)"wxEVT_USER_FIRST", (long) wxEVT_USER_FIRST, 0, 0, 0}, | |
38030 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_BUTTON_CLICKED", (long) wxEVT_COMMAND_BUTTON_CLICKED, 0, 0, 0}, | |
38031 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKBOX_CLICKED", (long) wxEVT_COMMAND_CHECKBOX_CLICKED, 0, 0, 0}, | |
38032 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHOICE_SELECTED", (long) wxEVT_COMMAND_CHOICE_SELECTED, 0, 0, 0}, | |
38033 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_SELECTED", (long) wxEVT_COMMAND_LISTBOX_SELECTED, 0, 0, 0}, | |
38034 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", (long) wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 0, 0, 0}, | |
38035 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", (long) wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 0, 0, 0}, | |
38036 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_MENU_SELECTED", (long) wxEVT_COMMAND_MENU_SELECTED, 0, 0, 0}, | |
38037 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_CLICKED", (long) wxEVT_COMMAND_TOOL_CLICKED, 0, 0, 0}, | |
38038 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SLIDER_UPDATED", (long) wxEVT_COMMAND_SLIDER_UPDATED, 0, 0, 0}, | |
38039 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBOX_SELECTED", (long) wxEVT_COMMAND_RADIOBOX_SELECTED, 0, 0, 0}, | |
38040 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RADIOBUTTON_SELECTED", (long) wxEVT_COMMAND_RADIOBUTTON_SELECTED, 0, 0, 0}, | |
38041 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SCROLLBAR_UPDATED", (long) wxEVT_COMMAND_SCROLLBAR_UPDATED, 0, 0, 0}, | |
38042 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_VLBOX_SELECTED", (long) wxEVT_COMMAND_VLBOX_SELECTED, 0, 0, 0}, | |
38043 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_COMBOBOX_SELECTED", (long) wxEVT_COMMAND_COMBOBOX_SELECTED, 0, 0, 0}, | |
38044 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_RCLICKED", (long) wxEVT_COMMAND_TOOL_RCLICKED, 0, 0, 0}, | |
38045 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOOL_ENTER", (long) wxEVT_COMMAND_TOOL_ENTER, 0, 0, 0}, | |
38046 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DOWN", (long) wxEVT_LEFT_DOWN, 0, 0, 0}, | |
38047 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_UP", (long) wxEVT_LEFT_UP, 0, 0, 0}, | |
38048 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DOWN", (long) wxEVT_MIDDLE_DOWN, 0, 0, 0}, | |
38049 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_UP", (long) wxEVT_MIDDLE_UP, 0, 0, 0}, | |
38050 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DOWN", (long) wxEVT_RIGHT_DOWN, 0, 0, 0}, | |
38051 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_UP", (long) wxEVT_RIGHT_UP, 0, 0, 0}, | |
38052 | { SWIG_PY_INT, (char *)"wxEVT_MOTION", (long) wxEVT_MOTION, 0, 0, 0}, | |
38053 | { SWIG_PY_INT, (char *)"wxEVT_ENTER_WINDOW", (long) wxEVT_ENTER_WINDOW, 0, 0, 0}, | |
38054 | { SWIG_PY_INT, (char *)"wxEVT_LEAVE_WINDOW", (long) wxEVT_LEAVE_WINDOW, 0, 0, 0}, | |
38055 | { SWIG_PY_INT, (char *)"wxEVT_LEFT_DCLICK", (long) wxEVT_LEFT_DCLICK, 0, 0, 0}, | |
38056 | { SWIG_PY_INT, (char *)"wxEVT_MIDDLE_DCLICK", (long) wxEVT_MIDDLE_DCLICK, 0, 0, 0}, | |
38057 | { SWIG_PY_INT, (char *)"wxEVT_RIGHT_DCLICK", (long) wxEVT_RIGHT_DCLICK, 0, 0, 0}, | |
38058 | { SWIG_PY_INT, (char *)"wxEVT_SET_FOCUS", (long) wxEVT_SET_FOCUS, 0, 0, 0}, | |
38059 | { SWIG_PY_INT, (char *)"wxEVT_KILL_FOCUS", (long) wxEVT_KILL_FOCUS, 0, 0, 0}, | |
38060 | { SWIG_PY_INT, (char *)"wxEVT_CHILD_FOCUS", (long) wxEVT_CHILD_FOCUS, 0, 0, 0}, | |
38061 | { SWIG_PY_INT, (char *)"wxEVT_MOUSEWHEEL", (long) wxEVT_MOUSEWHEEL, 0, 0, 0}, | |
38062 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DOWN", (long) wxEVT_NC_LEFT_DOWN, 0, 0, 0}, | |
38063 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_UP", (long) wxEVT_NC_LEFT_UP, 0, 0, 0}, | |
38064 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DOWN", (long) wxEVT_NC_MIDDLE_DOWN, 0, 0, 0}, | |
38065 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_UP", (long) wxEVT_NC_MIDDLE_UP, 0, 0, 0}, | |
38066 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DOWN", (long) wxEVT_NC_RIGHT_DOWN, 0, 0, 0}, | |
38067 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_UP", (long) wxEVT_NC_RIGHT_UP, 0, 0, 0}, | |
38068 | { SWIG_PY_INT, (char *)"wxEVT_NC_MOTION", (long) wxEVT_NC_MOTION, 0, 0, 0}, | |
38069 | { SWIG_PY_INT, (char *)"wxEVT_NC_ENTER_WINDOW", (long) wxEVT_NC_ENTER_WINDOW, 0, 0, 0}, | |
38070 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEAVE_WINDOW", (long) wxEVT_NC_LEAVE_WINDOW, 0, 0, 0}, | |
38071 | { SWIG_PY_INT, (char *)"wxEVT_NC_LEFT_DCLICK", (long) wxEVT_NC_LEFT_DCLICK, 0, 0, 0}, | |
38072 | { SWIG_PY_INT, (char *)"wxEVT_NC_MIDDLE_DCLICK", (long) wxEVT_NC_MIDDLE_DCLICK, 0, 0, 0}, | |
38073 | { SWIG_PY_INT, (char *)"wxEVT_NC_RIGHT_DCLICK", (long) wxEVT_NC_RIGHT_DCLICK, 0, 0, 0}, | |
38074 | { SWIG_PY_INT, (char *)"wxEVT_CHAR", (long) wxEVT_CHAR, 0, 0, 0}, | |
38075 | { SWIG_PY_INT, (char *)"wxEVT_CHAR_HOOK", (long) wxEVT_CHAR_HOOK, 0, 0, 0}, | |
38076 | { SWIG_PY_INT, (char *)"wxEVT_NAVIGATION_KEY", (long) wxEVT_NAVIGATION_KEY, 0, 0, 0}, | |
38077 | { SWIG_PY_INT, (char *)"wxEVT_KEY_DOWN", (long) wxEVT_KEY_DOWN, 0, 0, 0}, | |
38078 | { SWIG_PY_INT, (char *)"wxEVT_KEY_UP", (long) wxEVT_KEY_UP, 0, 0, 0}, | |
38079 | { SWIG_PY_INT, (char *)"wxEVT_HOTKEY", (long) wxEVT_HOTKEY, 0, 0, 0}, | |
38080 | { SWIG_PY_INT, (char *)"wxEVT_SET_CURSOR", (long) wxEVT_SET_CURSOR, 0, 0, 0}, | |
38081 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_TOP", (long) wxEVT_SCROLL_TOP, 0, 0, 0}, | |
38082 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_BOTTOM", (long) wxEVT_SCROLL_BOTTOM, 0, 0, 0}, | |
38083 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEUP", (long) wxEVT_SCROLL_LINEUP, 0, 0, 0}, | |
38084 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_LINEDOWN", (long) wxEVT_SCROLL_LINEDOWN, 0, 0, 0}, | |
38085 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEUP", (long) wxEVT_SCROLL_PAGEUP, 0, 0, 0}, | |
38086 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_PAGEDOWN", (long) wxEVT_SCROLL_PAGEDOWN, 0, 0, 0}, | |
38087 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBTRACK", (long) wxEVT_SCROLL_THUMBTRACK, 0, 0, 0}, | |
38088 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_THUMBRELEASE", (long) wxEVT_SCROLL_THUMBRELEASE, 0, 0, 0}, | |
38089 | { SWIG_PY_INT, (char *)"wxEVT_SCROLL_ENDSCROLL", (long) wxEVT_SCROLL_ENDSCROLL, 0, 0, 0}, | |
38090 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_TOP", (long) wxEVT_SCROLLWIN_TOP, 0, 0, 0}, | |
38091 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_BOTTOM", (long) wxEVT_SCROLLWIN_BOTTOM, 0, 0, 0}, | |
38092 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEUP", (long) wxEVT_SCROLLWIN_LINEUP, 0, 0, 0}, | |
38093 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_LINEDOWN", (long) wxEVT_SCROLLWIN_LINEDOWN, 0, 0, 0}, | |
38094 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEUP", (long) wxEVT_SCROLLWIN_PAGEUP, 0, 0, 0}, | |
38095 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_PAGEDOWN", (long) wxEVT_SCROLLWIN_PAGEDOWN, 0, 0, 0}, | |
38096 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBTRACK", (long) wxEVT_SCROLLWIN_THUMBTRACK, 0, 0, 0}, | |
38097 | { SWIG_PY_INT, (char *)"wxEVT_SCROLLWIN_THUMBRELEASE", (long) wxEVT_SCROLLWIN_THUMBRELEASE, 0, 0, 0}, | |
38098 | { SWIG_PY_INT, (char *)"wxEVT_SIZE", (long) wxEVT_SIZE, 0, 0, 0}, | |
38099 | { SWIG_PY_INT, (char *)"wxEVT_MOVE", (long) wxEVT_MOVE, 0, 0, 0}, | |
38100 | { SWIG_PY_INT, (char *)"wxEVT_CLOSE_WINDOW", (long) wxEVT_CLOSE_WINDOW, 0, 0, 0}, | |
38101 | { SWIG_PY_INT, (char *)"wxEVT_END_SESSION", (long) wxEVT_END_SESSION, 0, 0, 0}, | |
38102 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_END_SESSION", (long) wxEVT_QUERY_END_SESSION, 0, 0, 0}, | |
38103 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE_APP", (long) wxEVT_ACTIVATE_APP, 0, 0, 0}, | |
38104 | { SWIG_PY_INT, (char *)"wxEVT_POWER", (long) wxEVT_POWER, 0, 0, 0}, | |
38105 | { SWIG_PY_INT, (char *)"wxEVT_ACTIVATE", (long) wxEVT_ACTIVATE, 0, 0, 0}, | |
38106 | { SWIG_PY_INT, (char *)"wxEVT_CREATE", (long) wxEVT_CREATE, 0, 0, 0}, | |
38107 | { SWIG_PY_INT, (char *)"wxEVT_DESTROY", (long) wxEVT_DESTROY, 0, 0, 0}, | |
38108 | { SWIG_PY_INT, (char *)"wxEVT_SHOW", (long) wxEVT_SHOW, 0, 0, 0}, | |
38109 | { SWIG_PY_INT, (char *)"wxEVT_ICONIZE", (long) wxEVT_ICONIZE, 0, 0, 0}, | |
38110 | { SWIG_PY_INT, (char *)"wxEVT_MAXIMIZE", (long) wxEVT_MAXIMIZE, 0, 0, 0}, | |
38111 | { SWIG_PY_INT, (char *)"wxEVT_MOUSE_CAPTURE_CHANGED", (long) wxEVT_MOUSE_CAPTURE_CHANGED, 0, 0, 0}, | |
38112 | { SWIG_PY_INT, (char *)"wxEVT_PAINT", (long) wxEVT_PAINT, 0, 0, 0}, | |
38113 | { SWIG_PY_INT, (char *)"wxEVT_ERASE_BACKGROUND", (long) wxEVT_ERASE_BACKGROUND, 0, 0, 0}, | |
38114 | { SWIG_PY_INT, (char *)"wxEVT_NC_PAINT", (long) wxEVT_NC_PAINT, 0, 0, 0}, | |
38115 | { SWIG_PY_INT, (char *)"wxEVT_PAINT_ICON", (long) wxEVT_PAINT_ICON, 0, 0, 0}, | |
38116 | { SWIG_PY_INT, (char *)"wxEVT_MENU_OPEN", (long) wxEVT_MENU_OPEN, 0, 0, 0}, | |
38117 | { SWIG_PY_INT, (char *)"wxEVT_MENU_CLOSE", (long) wxEVT_MENU_CLOSE, 0, 0, 0}, | |
38118 | { SWIG_PY_INT, (char *)"wxEVT_MENU_HIGHLIGHT", (long) wxEVT_MENU_HIGHLIGHT, 0, 0, 0}, | |
38119 | { SWIG_PY_INT, (char *)"wxEVT_CONTEXT_MENU", (long) wxEVT_CONTEXT_MENU, 0, 0, 0}, | |
38120 | { SWIG_PY_INT, (char *)"wxEVT_SYS_COLOUR_CHANGED", (long) wxEVT_SYS_COLOUR_CHANGED, 0, 0, 0}, | |
38121 | { SWIG_PY_INT, (char *)"wxEVT_DISPLAY_CHANGED", (long) wxEVT_DISPLAY_CHANGED, 0, 0, 0}, | |
38122 | { SWIG_PY_INT, (char *)"wxEVT_SETTING_CHANGED", (long) wxEVT_SETTING_CHANGED, 0, 0, 0}, | |
38123 | { SWIG_PY_INT, (char *)"wxEVT_QUERY_NEW_PALETTE", (long) wxEVT_QUERY_NEW_PALETTE, 0, 0, 0}, | |
38124 | { SWIG_PY_INT, (char *)"wxEVT_PALETTE_CHANGED", (long) wxEVT_PALETTE_CHANGED, 0, 0, 0}, | |
38125 | { SWIG_PY_INT, (char *)"wxEVT_DROP_FILES", (long) wxEVT_DROP_FILES, 0, 0, 0}, | |
38126 | { SWIG_PY_INT, (char *)"wxEVT_DRAW_ITEM", (long) wxEVT_DRAW_ITEM, 0, 0, 0}, | |
38127 | { SWIG_PY_INT, (char *)"wxEVT_MEASURE_ITEM", (long) wxEVT_MEASURE_ITEM, 0, 0, 0}, | |
38128 | { SWIG_PY_INT, (char *)"wxEVT_COMPARE_ITEM", (long) wxEVT_COMPARE_ITEM, 0, 0, 0}, | |
38129 | { SWIG_PY_INT, (char *)"wxEVT_INIT_DIALOG", (long) wxEVT_INIT_DIALOG, 0, 0, 0}, | |
38130 | { SWIG_PY_INT, (char *)"wxEVT_IDLE", (long) wxEVT_IDLE, 0, 0, 0}, | |
38131 | { SWIG_PY_INT, (char *)"wxEVT_UPDATE_UI", (long) wxEVT_UPDATE_UI, 0, 0, 0}, | |
38132 | { SWIG_PY_INT, (char *)"wxEVT_SIZING", (long) wxEVT_SIZING, 0, 0, 0}, | |
38133 | { SWIG_PY_INT, (char *)"wxEVT_MOVING", (long) wxEVT_MOVING, 0, 0, 0}, | |
38134 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_CLICK", (long) wxEVT_COMMAND_LEFT_CLICK, 0, 0, 0}, | |
38135 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LEFT_DCLICK", (long) wxEVT_COMMAND_LEFT_DCLICK, 0, 0, 0}, | |
38136 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_CLICK", (long) wxEVT_COMMAND_RIGHT_CLICK, 0, 0, 0}, | |
38137 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_RIGHT_DCLICK", (long) wxEVT_COMMAND_RIGHT_DCLICK, 0, 0, 0}, | |
38138 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SET_FOCUS", (long) wxEVT_COMMAND_SET_FOCUS, 0, 0, 0}, | |
38139 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_KILL_FOCUS", (long) wxEVT_COMMAND_KILL_FOCUS, 0, 0, 0}, | |
38140 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_ENTER", (long) wxEVT_COMMAND_ENTER, 0, 0, 0}, | |
38141 | { SWIG_PY_INT, (char *)"MOUSE_BTN_ANY", (long) wxMOUSE_BTN_ANY, 0, 0, 0}, | |
38142 | { SWIG_PY_INT, (char *)"MOUSE_BTN_NONE", (long) wxMOUSE_BTN_NONE, 0, 0, 0}, | |
38143 | { SWIG_PY_INT, (char *)"MOUSE_BTN_LEFT", (long) wxMOUSE_BTN_LEFT, 0, 0, 0}, | |
38144 | { SWIG_PY_INT, (char *)"MOUSE_BTN_MIDDLE", (long) wxMOUSE_BTN_MIDDLE, 0, 0, 0}, | |
38145 | { SWIG_PY_INT, (char *)"MOUSE_BTN_RIGHT", (long) wxMOUSE_BTN_RIGHT, 0, 0, 0}, | |
38146 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_ALL", (long) wxUPDATE_UI_PROCESS_ALL, 0, 0, 0}, | |
38147 | { SWIG_PY_INT, (char *)"UPDATE_UI_PROCESS_SPECIFIED", (long) wxUPDATE_UI_PROCESS_SPECIFIED, 0, 0, 0}, | |
38148 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_ALL", (long) wxIDLE_PROCESS_ALL, 0, 0, 0}, | |
38149 | { SWIG_PY_INT, (char *)"IDLE_PROCESS_SPECIFIED", (long) wxIDLE_PROCESS_SPECIFIED, 0, 0, 0}, | |
38150 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_SUPPRESS", (long) wxPYAPP_ASSERT_SUPPRESS, 0, 0, 0}, | |
38151 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_EXCEPTION", (long) wxPYAPP_ASSERT_EXCEPTION, 0, 0, 0}, | |
38152 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_DIALOG", (long) wxPYAPP_ASSERT_DIALOG, 0, 0, 0}, | |
38153 | { SWIG_PY_INT, (char *)"PYAPP_ASSERT_LOG", (long) wxPYAPP_ASSERT_LOG, 0, 0, 0}, | |
38154 | { SWIG_PY_INT, (char *)"PRINT_WINDOWS", (long) wxPRINT_WINDOWS, 0, 0, 0}, | |
38155 | { SWIG_PY_INT, (char *)"PRINT_POSTSCRIPT", (long) wxPRINT_POSTSCRIPT, 0, 0, 0}, | |
38156 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_NONE", (long) wxFLEX_GROWMODE_NONE, 0, 0, 0}, | |
38157 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_SPECIFIED", (long) wxFLEX_GROWMODE_SPECIFIED, 0, 0, 0}, | |
38158 | { SWIG_PY_INT, (char *)"FLEX_GROWMODE_ALL", (long) wxFLEX_GROWMODE_ALL, 0, 0, 0}, | |
38159 | { SWIG_PY_INT, (char *)"Left", (long) wxLeft, 0, 0, 0}, | |
38160 | { SWIG_PY_INT, (char *)"Top", (long) wxTop, 0, 0, 0}, | |
38161 | { SWIG_PY_INT, (char *)"Right", (long) wxRight, 0, 0, 0}, | |
38162 | { SWIG_PY_INT, (char *)"Bottom", (long) wxBottom, 0, 0, 0}, | |
38163 | { SWIG_PY_INT, (char *)"Width", (long) wxWidth, 0, 0, 0}, | |
38164 | { SWIG_PY_INT, (char *)"Height", (long) wxHeight, 0, 0, 0}, | |
38165 | { SWIG_PY_INT, (char *)"Centre", (long) wxCentre, 0, 0, 0}, | |
38166 | { SWIG_PY_INT, (char *)"Center", (long) wxCenter, 0, 0, 0}, | |
38167 | { SWIG_PY_INT, (char *)"CentreX", (long) wxCentreX, 0, 0, 0}, | |
38168 | { SWIG_PY_INT, (char *)"CentreY", (long) wxCentreY, 0, 0, 0}, | |
38169 | { SWIG_PY_INT, (char *)"Unconstrained", (long) wxUnconstrained, 0, 0, 0}, | |
38170 | { SWIG_PY_INT, (char *)"AsIs", (long) wxAsIs, 0, 0, 0}, | |
38171 | { SWIG_PY_INT, (char *)"PercentOf", (long) wxPercentOf, 0, 0, 0}, | |
38172 | { SWIG_PY_INT, (char *)"Above", (long) wxAbove, 0, 0, 0}, | |
38173 | { SWIG_PY_INT, (char *)"Below", (long) wxBelow, 0, 0, 0}, | |
38174 | { SWIG_PY_INT, (char *)"LeftOf", (long) wxLeftOf, 0, 0, 0}, | |
38175 | { SWIG_PY_INT, (char *)"RightOf", (long) wxRightOf, 0, 0, 0}, | |
38176 | { SWIG_PY_INT, (char *)"SameAs", (long) wxSameAs, 0, 0, 0}, | |
38177 | { SWIG_PY_INT, (char *)"Absolute", (long) wxAbsolute, 0, 0, 0}, | |
38178 | {0}}; | |
38179 | ||
38180 | #ifdef __cplusplus | |
38181 | } | |
38182 | #endif | |
38183 | ||
38184 | #ifdef __cplusplus | |
38185 | extern "C" | |
38186 | #endif | |
38187 | SWIGEXPORT(void) SWIG_init(void) { | |
38188 | static PyObject *SWIG_globals = 0; | |
38189 | static int typeinit = 0; | |
38190 | PyObject *m, *d; | |
38191 | int i; | |
38192 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
38193 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
38194 | d = PyModule_GetDict(m); | |
38195 | ||
38196 | if (!typeinit) { | |
38197 | for (i = 0; swig_types_initial[i]; i++) { | |
38198 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
38199 | } | |
38200 | typeinit = 1; | |
38201 | } | |
38202 | SWIG_InstallConstants(d,swig_const_table); | |
38203 | ||
38204 | ||
38205 | #ifndef wxPyUSE_EXPORT | |
38206 | // Make our API structure a CObject so other modules can import it | |
38207 | // from this module. | |
38208 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
38209 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
38210 | Py_XDECREF(cobj); | |
38211 | #endif | |
38212 | ||
38213 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
38214 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
38215 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
38216 | ||
38217 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
38218 | ||
38219 | ||
38220 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
38221 | ||
38222 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
38223 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
38224 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
38225 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
38226 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
38227 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
38228 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
38229 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
38230 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
38231 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
38232 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
38233 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
38234 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
38235 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
38236 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
38237 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
38238 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
38239 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
38240 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
38241 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
38242 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
38243 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
38244 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
38245 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
38246 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
38247 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
38248 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
38249 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
38250 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
38251 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
38252 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
38253 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
38254 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
38255 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
38256 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
38257 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
38258 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
38259 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
38260 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
38261 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
38262 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
38263 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
38264 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
38265 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
38266 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
38267 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
38268 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
38269 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
38270 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
38271 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
38272 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
38273 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
38274 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
38275 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
38276 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
38277 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
38278 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
38279 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
38280 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
38281 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
38282 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
38283 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
38284 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
38285 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
38286 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
38287 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
38288 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
38289 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
38290 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
38291 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
38292 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
38293 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
38294 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
38295 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
38296 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
38297 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
38298 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
38299 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
38300 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
38301 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
38302 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
38303 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
38304 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
38305 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
38306 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
38307 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
38308 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
38309 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
38310 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
38311 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
38312 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
38313 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
38314 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
38315 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
38316 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
38317 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
38318 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
38319 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
38320 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
38321 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
38322 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
38323 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
38324 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
38325 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
38326 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
38327 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
38328 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
38329 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
38330 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
38331 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
38332 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
38333 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
38334 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
38335 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
38336 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
38337 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
38338 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
38339 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
38340 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
38341 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
41f1cec7 | 38342 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 38343 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 RD |
38344 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
38345 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
38346 | ||
38347 | // Initialize threading, some globals and such | |
38348 | __wxPyPreStart(d); | |
38349 | ||
38350 | ||
38351 | // Although these are defined in __version__ they need to be here too so | |
38352 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
38353 | // versions match. | |
38354 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
38355 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
38356 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
38357 | ||
38358 | } | |
38359 |