]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
554f62e9 | 3 | * Version 1.3.29 |
d55e5bfc RD |
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 | |
554f62e9 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc RD |
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); | |
093d3ff1 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
554f62e9 | 30 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
554f62e9 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
7449af73 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
554f62e9 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d55e5bfc | 47 | |
7449af73 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
554f62e9 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
7449af73 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
554f62e9 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
7449af73 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
554f62e9 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
7449af73 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
554f62e9 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
7449af73 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
554f62e9 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
7449af73 | 126 | |
d55e5bfc | 127 | |
554f62e9 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
554f62e9 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
554f62e9 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
7449af73 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
7449af73 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 147 | #else |
7449af73 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
7449af73 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
7449af73 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
7449af73 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
554f62e9 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
7449af73 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
7449af73 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
7449af73 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
554f62e9 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
7449af73 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
554f62e9 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
7449af73 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
7449af73 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
7449af73 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
7449af73 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
7449af73 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
7449af73 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
7449af73 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
7449af73 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
7449af73 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
554f62e9 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
7449af73 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
7449af73 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
7449af73 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
554f62e9 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
7449af73 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
7449af73 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
7449af73 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
7449af73 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
7449af73 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
7449af73 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
7449af73 | 621 | register char d = *(c++); |
554f62e9 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d55e5bfc | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
554f62e9 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d55e5bfc | 714 | |
554f62e9 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
554f62e9 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
554f62e9 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
554f62e9 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d55e5bfc | 846 | |
554f62e9 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d55e5bfc | 936 | |
554f62e9 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
554f62e9 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
554f62e9 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
554f62e9 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
554f62e9 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
554f62e9 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
554f62e9 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
554f62e9 RD |
988 | /* for raw pointers */ |
989 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
990 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
991 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
992 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
993 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
994 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
995 | #define swig_owntype int | |
d55e5bfc | 996 | |
554f62e9 RD |
997 | /* for raw packed data */ |
998 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
999 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 1000 | |
554f62e9 RD |
1001 | /* for class or struct pointers */ |
1002 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1003 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d55e5bfc | 1004 | |
554f62e9 RD |
1005 | /* for C or C++ function pointers */ |
1006 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1007 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
d55e5bfc | 1008 | |
554f62e9 RD |
1009 | /* for C++ member pointers, ie, member methods */ |
1010 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1011 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
7449af73 | 1012 | |
d55e5bfc | 1013 | |
554f62e9 | 1014 | /* Runtime API */ |
d55e5bfc | 1015 | |
554f62e9 RD |
1016 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1017 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1018 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
7449af73 | 1019 | |
554f62e9 RD |
1020 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1021 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1022 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1023 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1024 | #define SWIG_fail goto fail | |
7449af73 | 1025 | |
d55e5bfc | 1026 | |
554f62e9 | 1027 | /* Runtime API implementation */ |
d55e5bfc | 1028 | |
554f62e9 | 1029 | /* Error manipulation */ |
d55e5bfc | 1030 | |
554f62e9 RD |
1031 | SWIGINTERN void |
1032 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1033 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1034 | PyErr_SetObject(errtype, obj); | |
1035 | Py_DECREF(obj); | |
1036 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1037 | } |
d55e5bfc | 1038 | |
554f62e9 RD |
1039 | SWIGINTERN void |
1040 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1041 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1042 | PyErr_SetString(errtype, (char *) msg); | |
1043 | SWIG_PYTHON_THREAD_END_BLOCK; | |
d55e5bfc RD |
1044 | } |
1045 | ||
554f62e9 | 1046 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
7449af73 | 1047 | |
554f62e9 | 1048 | /* Set a constant value */ |
d55e5bfc | 1049 | |
554f62e9 RD |
1050 | SWIGINTERN void |
1051 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1052 | PyDict_SetItemString(d, (char*) name, obj); | |
1053 | Py_DECREF(obj); | |
c32bde28 | 1054 | } |
d55e5bfc | 1055 | |
554f62e9 | 1056 | /* Append a value to the result obj */ |
d55e5bfc | 1057 | |
554f62e9 RD |
1058 | SWIGINTERN PyObject* |
1059 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1060 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1061 | if (!result) { | |
1062 | result = obj; | |
1063 | } else if (result == Py_None) { | |
1064 | Py_DECREF(result); | |
1065 | result = obj; | |
1066 | } else { | |
1067 | if (!PyList_Check(result)) { | |
1068 | PyObject *o2 = result; | |
1069 | result = PyList_New(1); | |
1070 | PyList_SetItem(result, 0, o2); | |
1071 | } | |
1072 | PyList_Append(result,obj); | |
1073 | Py_DECREF(obj); | |
1074 | } | |
1075 | return result; | |
1076 | #else | |
1077 | PyObject* o2; | |
1078 | PyObject* o3; | |
1079 | if (!result) { | |
1080 | result = obj; | |
1081 | } else if (result == Py_None) { | |
1082 | Py_DECREF(result); | |
1083 | result = obj; | |
093d3ff1 | 1084 | } else { |
554f62e9 RD |
1085 | if (!PyTuple_Check(result)) { |
1086 | o2 = result; | |
1087 | result = PyTuple_New(1); | |
1088 | PyTuple_SET_ITEM(result, 0, o2); | |
1089 | } | |
1090 | o3 = PyTuple_New(1); | |
1091 | PyTuple_SET_ITEM(o3, 0, obj); | |
1092 | o2 = result; | |
1093 | result = PySequence_Concat(o2, o3); | |
1094 | Py_DECREF(o2); | |
1095 | Py_DECREF(o3); | |
c32bde28 | 1096 | } |
554f62e9 RD |
1097 | return result; |
1098 | #endif | |
c32bde28 RD |
1099 | } |
1100 | ||
554f62e9 | 1101 | /* Unpack the argument tuple */ |
d55e5bfc | 1102 | |
554f62e9 RD |
1103 | SWIGINTERN int |
1104 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1105 | { | |
1106 | if (!args) { | |
1107 | if (!min && !max) { | |
1108 | return 1; | |
1109 | } else { | |
1110 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1111 | name, (min == max ? "" : "at least "), min); | |
1112 | return 0; | |
1113 | } | |
1114 | } | |
1115 | if (!PyTuple_Check(args)) { | |
1116 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1117 | return 0; | |
1118 | } else { | |
1119 | register int l = PyTuple_GET_SIZE(args); | |
1120 | if (l < min) { | |
1121 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1122 | name, (min == max ? "" : "at least "), min, l); | |
1123 | return 0; | |
1124 | } else if (l > max) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at most "), max, l); | |
1127 | return 0; | |
1128 | } else { | |
1129 | register int i; | |
1130 | for (i = 0; i < l; ++i) { | |
1131 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1132 | } | |
1133 | for (; l < max; ++l) { | |
1134 | objs[l] = 0; | |
1135 | } | |
1136 | return i + 1; | |
1137 | } | |
1138 | } | |
1139 | } | |
1140 | ||
1141 | /* A functor is a function object with one single object argument */ | |
1142 | #if PY_VERSION_HEX >= 0x02020000 | |
1143 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1144 | #else | |
1145 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1146 | #endif | |
1147 | ||
1148 | /* | |
1149 | Helper for static pointer initialization for both C and C++ code, for example | |
1150 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1151 | */ | |
1152 | #ifdef __cplusplus | |
1153 | #define SWIG_STATIC_POINTER(var) var | |
1154 | #else | |
1155 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1156 | #endif | |
1157 | ||
1158 | /* ----------------------------------------------------------------------------- | |
1159 | * Pointer declarations | |
1160 | * ----------------------------------------------------------------------------- */ | |
1161 | ||
1162 | /* Flags for new pointer objects */ | |
1163 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1164 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1165 | ||
1166 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1167 | ||
1168 | #ifdef __cplusplus | |
1169 | extern "C" { | |
1170 | #if 0 | |
1171 | } /* cc-mode */ | |
1172 | #endif | |
1173 | #endif | |
1174 | ||
1175 | /* How to access Py_None */ | |
1176 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1177 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1178 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1179 | # define SWIG_PYTHON_BUILD_NONE | |
1180 | # endif | |
1181 | # endif | |
1182 | #endif | |
1183 | ||
1184 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1185 | # ifdef Py_None | |
1186 | # undef Py_None | |
1187 | # define Py_None SWIG_Py_None() | |
1188 | # endif | |
1189 | SWIGRUNTIMEINLINE PyObject * | |
1190 | _SWIG_Py_None(void) | |
1191 | { | |
1192 | PyObject *none = Py_BuildValue(""); | |
1193 | Py_DECREF(none); | |
1194 | return none; | |
1195 | } | |
1196 | SWIGRUNTIME PyObject * | |
1197 | SWIG_Py_None(void) | |
1198 | { | |
1199 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1200 | return none; | |
1201 | } | |
1202 | #endif | |
1203 | ||
1204 | /* The python void return value */ | |
1205 | ||
1206 | SWIGRUNTIMEINLINE PyObject * | |
1207 | SWIG_Py_Void(void) | |
1208 | { | |
1209 | PyObject *none = Py_None; | |
1210 | Py_INCREF(none); | |
1211 | return none; | |
1212 | } | |
1213 | ||
1214 | /* PySwigClientData */ | |
1215 | ||
1216 | typedef struct { | |
1217 | PyObject *klass; | |
1218 | PyObject *newraw; | |
1219 | PyObject *newargs; | |
1220 | PyObject *destroy; | |
1221 | int delargs; | |
1222 | int implicitconv; | |
1223 | } PySwigClientData; | |
1224 | ||
1225 | SWIGRUNTIMEINLINE int | |
1226 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1227 | { | |
1228 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1229 | return data ? data->implicitconv : 0; | |
1230 | } | |
1231 | ||
1232 | SWIGRUNTIMEINLINE PyObject * | |
1233 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1234 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1235 | PyObject *klass = data ? data->klass : 0; | |
1236 | return (klass ? klass : PyExc_RuntimeError); | |
1237 | } | |
1238 | ||
1239 | ||
1240 | SWIGRUNTIME PySwigClientData * | |
1241 | PySwigClientData_New(PyObject* obj) | |
1242 | { | |
1243 | if (!obj) { | |
1244 | return 0; | |
1245 | } else { | |
1246 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1247 | /* the klass element */ | |
1248 | data->klass = obj; | |
1249 | Py_INCREF(data->klass); | |
1250 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1251 | if (PyClass_Check(obj)) { | |
1252 | data->newraw = 0; | |
1253 | data->newargs = obj; | |
1254 | Py_INCREF(obj); | |
1255 | } else { | |
1256 | #if (PY_VERSION_HEX < 0x02020000) | |
1257 | data->newraw = 0; | |
1258 | #else | |
1259 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1260 | #endif | |
1261 | if (data->newraw) { | |
1262 | Py_INCREF(data->newraw); | |
1263 | data->newargs = PyTuple_New(1); | |
1264 | PyTuple_SetItem(data->newargs, 0, obj); | |
1265 | } else { | |
1266 | data->newargs = obj; | |
1267 | } | |
1268 | Py_INCREF(data->newargs); | |
1269 | } | |
1270 | /* the destroy method, aka as the C++ delete method */ | |
1271 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1272 | if (PyErr_Occurred()) { | |
1273 | PyErr_Clear(); | |
1274 | data->destroy = 0; | |
1275 | } | |
1276 | if (data->destroy) { | |
1277 | int flags; | |
1278 | Py_INCREF(data->destroy); | |
1279 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1280 | #ifdef METH_O | |
1281 | data->delargs = !(flags & (METH_O)); | |
1282 | #else | |
1283 | data->delargs = 0; | |
1284 | #endif | |
1285 | } else { | |
1286 | data->delargs = 0; | |
1287 | } | |
1288 | data->implicitconv = 0; | |
1289 | return data; | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | SWIGRUNTIME void | |
1294 | PySwigClientData_Del(PySwigClientData* data) | |
1295 | { | |
1296 | Py_XDECREF(data->newraw); | |
1297 | Py_XDECREF(data->newargs); | |
1298 | Py_XDECREF(data->destroy); | |
1299 | } | |
1300 | ||
1301 | /* =============== PySwigObject =====================*/ | |
1302 | ||
1303 | typedef struct { | |
1304 | PyObject_HEAD | |
1305 | void *ptr; | |
1306 | swig_type_info *ty; | |
1307 | int own; | |
1308 | PyObject *next; | |
1309 | } PySwigObject; | |
1310 | ||
1311 | SWIGRUNTIME PyObject * | |
1312 | PySwigObject_long(PySwigObject *v) | |
1313 | { | |
1314 | return PyLong_FromVoidPtr(v->ptr); | |
1315 | } | |
1316 | ||
1317 | SWIGRUNTIME PyObject * | |
1318 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1319 | { | |
1320 | PyObject *res = NULL; | |
1321 | PyObject *args = PyTuple_New(1); | |
1322 | if (args) { | |
1323 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1324 | PyObject *ofmt = PyString_FromString(fmt); | |
1325 | if (ofmt) { | |
1326 | res = PyString_Format(ofmt,args); | |
1327 | Py_DECREF(ofmt); | |
1328 | } | |
1329 | Py_DECREF(args); | |
1330 | } | |
1331 | } | |
1332 | return res; | |
1333 | } | |
1334 | ||
1335 | SWIGRUNTIME PyObject * | |
1336 | PySwigObject_oct(PySwigObject *v) | |
1337 | { | |
1338 | return PySwigObject_format("%o",v); | |
1339 | } | |
1340 | ||
1341 | SWIGRUNTIME PyObject * | |
1342 | PySwigObject_hex(PySwigObject *v) | |
1343 | { | |
1344 | return PySwigObject_format("%x",v); | |
1345 | } | |
1346 | ||
1347 | SWIGRUNTIME PyObject * | |
1348 | #ifdef METH_NOARGS | |
1349 | PySwigObject_repr(PySwigObject *v) | |
1350 | #else | |
1351 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1352 | #endif | |
1353 | { | |
1354 | const char *name = SWIG_TypePrettyName(v->ty); | |
1355 | PyObject *hex = PySwigObject_hex(v); | |
1356 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1357 | Py_DECREF(hex); | |
1358 | if (v->next) { | |
1359 | #ifdef METH_NOARGS | |
1360 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1361 | #else | |
1362 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1363 | #endif | |
1364 | PyString_ConcatAndDel(&repr,nrep); | |
1365 | } | |
1366 | return repr; | |
1367 | } | |
1368 | ||
1369 | SWIGRUNTIME int | |
1370 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1371 | { | |
1372 | #ifdef METH_NOARGS | |
1373 | PyObject *repr = PySwigObject_repr(v); | |
1374 | #else | |
1375 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1376 | #endif | |
1377 | if (repr) { | |
1378 | fputs(PyString_AsString(repr), fp); | |
1379 | Py_DECREF(repr); | |
1380 | return 0; | |
1381 | } else { | |
1382 | return 1; | |
1383 | } | |
1384 | } | |
1385 | ||
1386 | SWIGRUNTIME PyObject * | |
1387 | PySwigObject_str(PySwigObject *v) | |
1388 | { | |
1389 | char result[SWIG_BUFFER_SIZE]; | |
1390 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1391 | PyString_FromString(result) : 0; | |
1392 | } | |
1393 | ||
1394 | SWIGRUNTIME int | |
1395 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1396 | { | |
1397 | void *i = v->ptr; | |
1398 | void *j = w->ptr; | |
1399 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1400 | } | |
1401 | ||
1402 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1403 | ||
1404 | SWIGRUNTIME PyTypeObject* | |
1405 | PySwigObject_type(void) { | |
1406 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1407 | return type; | |
1408 | } | |
1409 | ||
1410 | SWIGRUNTIMEINLINE int | |
1411 | PySwigObject_Check(PyObject *op) { | |
1412 | return ((op)->ob_type == PySwigObject_type()) | |
1413 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1414 | } | |
1415 | ||
1416 | SWIGRUNTIME PyObject * | |
1417 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1418 | ||
1419 | SWIGRUNTIME void | |
1420 | PySwigObject_dealloc(PyObject *v) | |
1421 | { | |
1422 | PySwigObject *sobj = (PySwigObject *) v; | |
1423 | PyObject *next = sobj->next; | |
1424 | if (sobj->own) { | |
1425 | swig_type_info *ty = sobj->ty; | |
1426 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1427 | PyObject *destroy = data ? data->destroy : 0; | |
1428 | if (destroy) { | |
1429 | /* destroy is always a VARARGS method */ | |
1430 | PyObject *res; | |
1431 | if (data->delargs) { | |
1432 | /* we need to create a temporal object to carry the destroy operation */ | |
1433 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1434 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1435 | Py_DECREF(tmp); | |
1436 | } else { | |
1437 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1438 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1439 | res = ((*meth)(mself, v)); | |
1440 | } | |
1441 | Py_XDECREF(res); | |
1442 | } else { | |
1443 | const char *name = SWIG_TypePrettyName(ty); | |
1444 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1445 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1446 | #endif | |
1447 | } | |
1448 | } | |
1449 | Py_XDECREF(next); | |
1450 | PyObject_DEL(v); | |
1451 | } | |
1452 | ||
1453 | SWIGRUNTIME PyObject* | |
1454 | PySwigObject_append(PyObject* v, PyObject* next) | |
1455 | { | |
1456 | PySwigObject *sobj = (PySwigObject *) v; | |
1457 | #ifndef METH_O | |
1458 | PyObject *tmp = 0; | |
1459 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1460 | next = tmp; | |
1461 | #endif | |
1462 | if (!PySwigObject_Check(next)) { | |
1463 | return NULL; | |
1464 | } | |
1465 | sobj->next = next; | |
1466 | Py_INCREF(next); | |
1467 | return SWIG_Py_Void(); | |
1468 | } | |
1469 | ||
1470 | SWIGRUNTIME PyObject* | |
1471 | #ifdef METH_NOARGS | |
1472 | PySwigObject_next(PyObject* v) | |
1473 | #else | |
1474 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1475 | #endif | |
1476 | { | |
1477 | PySwigObject *sobj = (PySwigObject *) v; | |
1478 | if (sobj->next) { | |
1479 | Py_INCREF(sobj->next); | |
1480 | return sobj->next; | |
1481 | } else { | |
1482 | return SWIG_Py_Void(); | |
1483 | } | |
1484 | } | |
1485 | ||
1486 | SWIGINTERN PyObject* | |
1487 | #ifdef METH_NOARGS | |
1488 | PySwigObject_disown(PyObject *v) | |
1489 | #else | |
1490 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1491 | #endif | |
1492 | { | |
1493 | PySwigObject *sobj = (PySwigObject *)v; | |
1494 | sobj->own = 0; | |
1495 | return SWIG_Py_Void(); | |
1496 | } | |
1497 | ||
1498 | SWIGINTERN PyObject* | |
1499 | #ifdef METH_NOARGS | |
1500 | PySwigObject_acquire(PyObject *v) | |
1501 | #else | |
1502 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1503 | #endif | |
1504 | { | |
1505 | PySwigObject *sobj = (PySwigObject *)v; | |
1506 | sobj->own = SWIG_POINTER_OWN; | |
1507 | return SWIG_Py_Void(); | |
1508 | } | |
1509 | ||
1510 | SWIGINTERN PyObject* | |
1511 | PySwigObject_own(PyObject *v, PyObject *args) | |
1512 | { | |
1513 | PyObject *val = 0; | |
1514 | #if (PY_VERSION_HEX < 0x02020000) | |
1515 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1516 | #else | |
1517 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1518 | #endif | |
1519 | { | |
1520 | return NULL; | |
1521 | } | |
1522 | else | |
1523 | { | |
1524 | PySwigObject *sobj = (PySwigObject *)v; | |
1525 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1526 | if (val) { | |
1527 | #ifdef METH_NOARGS | |
1528 | if (PyObject_IsTrue(val)) { | |
1529 | PySwigObject_acquire(v); | |
1530 | } else { | |
1531 | PySwigObject_disown(v); | |
1532 | } | |
1533 | #else | |
1534 | if (PyObject_IsTrue(val)) { | |
1535 | PySwigObject_acquire(v,args); | |
1536 | } else { | |
1537 | PySwigObject_disown(v,args); | |
1538 | } | |
1539 | #endif | |
1540 | } | |
1541 | return obj; | |
1542 | } | |
1543 | } | |
1544 | ||
1545 | #ifdef METH_O | |
1546 | static PyMethodDef | |
1547 | swigobject_methods[] = { | |
1548 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1549 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1550 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1551 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1552 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1553 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1554 | {0, 0, 0, 0} | |
1555 | }; | |
1556 | #else | |
1557 | static PyMethodDef | |
1558 | swigobject_methods[] = { | |
1559 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1560 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1561 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1562 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1563 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1564 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1565 | {0, 0, 0, 0} | |
1566 | }; | |
1567 | #endif | |
1568 | ||
1569 | #if PY_VERSION_HEX < 0x02020000 | |
1570 | SWIGINTERN PyObject * | |
1571 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1572 | { | |
1573 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1574 | } | |
1575 | #endif | |
1576 | ||
1577 | SWIGRUNTIME PyTypeObject* | |
1578 | _PySwigObject_type(void) { | |
1579 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1580 | ||
1581 | static PyNumberMethods PySwigObject_as_number = { | |
1582 | (binaryfunc)0, /*nb_add*/ | |
1583 | (binaryfunc)0, /*nb_subtract*/ | |
1584 | (binaryfunc)0, /*nb_multiply*/ | |
1585 | (binaryfunc)0, /*nb_divide*/ | |
1586 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1587 | (binaryfunc)0, /*nb_divmod*/ |
1588 | (ternaryfunc)0,/*nb_power*/ | |
1589 | (unaryfunc)0, /*nb_negative*/ | |
1590 | (unaryfunc)0, /*nb_positive*/ | |
1591 | (unaryfunc)0, /*nb_absolute*/ | |
1592 | (inquiry)0, /*nb_nonzero*/ | |
1593 | 0, /*nb_invert*/ | |
1594 | 0, /*nb_lshift*/ | |
1595 | 0, /*nb_rshift*/ | |
1596 | 0, /*nb_and*/ | |
1597 | 0, /*nb_xor*/ | |
1598 | 0, /*nb_or*/ | |
1599 | (coercion)0, /*nb_coerce*/ | |
1600 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1601 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1602 | (unaryfunc)0, /*nb_float*/ | |
1603 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1604 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
7449af73 | 1605 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1606 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
7449af73 RD |
1607 | #elif PY_VERSION_HEX >= 0x02000000 |
1608 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1609 | #endif |
1610 | }; | |
1611 | ||
554f62e9 | 1612 | static PyTypeObject pyswigobject_type; |
7449af73 | 1613 | static int type_init = 0; |
093d3ff1 | 1614 | if (!type_init) { |
554f62e9 RD |
1615 | const PyTypeObject tmp |
1616 | = { | |
1617 | PyObject_HEAD_INIT(NULL) | |
1618 | 0, /* ob_size */ | |
1619 | (char *)"PySwigObject", /* tp_name */ | |
1620 | sizeof(PySwigObject), /* tp_basicsize */ | |
1621 | 0, /* tp_itemsize */ | |
1622 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1623 | (printfunc)PySwigObject_print, /* tp_print */ | |
1624 | #if PY_VERSION_HEX < 0x02020000 | |
1625 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1626 | #else | |
1627 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1628 | #endif |
554f62e9 RD |
1629 | (setattrfunc)0, /* tp_setattr */ |
1630 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1631 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1632 | &PySwigObject_as_number, /* tp_as_number */ | |
1633 | 0, /* tp_as_sequence */ | |
1634 | 0, /* tp_as_mapping */ | |
1635 | (hashfunc)0, /* tp_hash */ | |
1636 | (ternaryfunc)0, /* tp_call */ | |
1637 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1638 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1639 | 0, /* tp_setattro */ | |
1640 | 0, /* tp_as_buffer */ | |
1641 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1642 | swigobject_doc, /* tp_doc */ | |
1643 | 0, /* tp_traverse */ | |
1644 | 0, /* tp_clear */ | |
1645 | 0, /* tp_richcompare */ | |
1646 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1647 | #if PY_VERSION_HEX >= 0x02020000 |
554f62e9 RD |
1648 | 0, /* tp_iter */ |
1649 | 0, /* tp_iternext */ | |
1650 | swigobject_methods, /* tp_methods */ | |
1651 | 0, /* tp_members */ | |
1652 | 0, /* tp_getset */ | |
1653 | 0, /* tp_base */ | |
1654 | 0, /* tp_dict */ | |
1655 | 0, /* tp_descr_get */ | |
1656 | 0, /* tp_descr_set */ | |
1657 | 0, /* tp_dictoffset */ | |
1658 | 0, /* tp_init */ | |
1659 | 0, /* tp_alloc */ | |
1660 | 0, /* tp_new */ | |
1661 | 0, /* tp_free */ | |
1662 | 0, /* tp_is_gc */ | |
1663 | 0, /* tp_bases */ | |
1664 | 0, /* tp_mro */ | |
1665 | 0, /* tp_cache */ | |
1666 | 0, /* tp_subclasses */ | |
1667 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1668 | #endif |
1669 | #if PY_VERSION_HEX >= 0x02030000 | |
554f62e9 | 1670 | 0, /* tp_del */ |
093d3ff1 RD |
1671 | #endif |
1672 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1673 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1674 | #endif |
554f62e9 | 1675 | }; |
7449af73 | 1676 | pyswigobject_type = tmp; |
554f62e9 | 1677 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1678 | type_init = 1; |
1679 | } | |
7449af73 | 1680 | return &pyswigobject_type; |
093d3ff1 RD |
1681 | } |
1682 | ||
1683 | SWIGRUNTIME PyObject * | |
554f62e9 | 1684 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
c32bde28 | 1685 | { |
554f62e9 RD |
1686 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1687 | if (sobj) { | |
1688 | sobj->ptr = ptr; | |
1689 | sobj->ty = ty; | |
1690 | sobj->own = own; | |
1691 | sobj->next = 0; | |
7449af73 | 1692 | } |
554f62e9 | 1693 | return (PyObject *)sobj; |
093d3ff1 | 1694 | } |
d55e5bfc | 1695 | |
093d3ff1 RD |
1696 | /* ----------------------------------------------------------------------------- |
1697 | * Implements a simple Swig Packed type, and use it instead of string | |
1698 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 1699 | |
093d3ff1 RD |
1700 | typedef struct { |
1701 | PyObject_HEAD | |
1702 | void *pack; | |
554f62e9 | 1703 | swig_type_info *ty; |
093d3ff1 RD |
1704 | size_t size; |
1705 | } PySwigPacked; | |
c32bde28 | 1706 | |
093d3ff1 | 1707 | SWIGRUNTIME int |
554f62e9 | 1708 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
d55e5bfc | 1709 | { |
093d3ff1 RD |
1710 | char result[SWIG_BUFFER_SIZE]; |
1711 | fputs("<Swig Packed ", fp); | |
1712 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1713 | fputs("at ", fp); | |
1714 | fputs(result, fp); | |
1715 | } | |
554f62e9 | 1716 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1717 | fputs(">", fp); |
1718 | return 0; | |
1719 | } | |
9d7dfdff | 1720 | |
093d3ff1 RD |
1721 | SWIGRUNTIME PyObject * |
1722 | PySwigPacked_repr(PySwigPacked *v) | |
1723 | { | |
1724 | char result[SWIG_BUFFER_SIZE]; | |
1725 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
554f62e9 | 1726 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1727 | } else { |
554f62e9 | 1728 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1729 | } |
d55e5bfc RD |
1730 | } |
1731 | ||
093d3ff1 RD |
1732 | SWIGRUNTIME PyObject * |
1733 | PySwigPacked_str(PySwigPacked *v) | |
1734 | { | |
1735 | char result[SWIG_BUFFER_SIZE]; | |
1736 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
554f62e9 | 1737 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1738 | } else { |
554f62e9 | 1739 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1740 | } |
1741 | } | |
d55e5bfc | 1742 | |
093d3ff1 RD |
1743 | SWIGRUNTIME int |
1744 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1745 | { |
554f62e9 RD |
1746 | size_t i = v->size; |
1747 | size_t j = w->size; | |
1748 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1749 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1750 | } |
1751 | ||
554f62e9 | 1752 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1753 | |
093d3ff1 | 1754 | SWIGRUNTIME PyTypeObject* |
7449af73 | 1755 | PySwigPacked_type(void) { |
554f62e9 RD |
1756 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1757 | return type; | |
1758 | } | |
1759 | ||
1760 | SWIGRUNTIMEINLINE int | |
1761 | PySwigPacked_Check(PyObject *op) { | |
1762 | return ((op)->ob_type == _PySwigPacked_type()) | |
1763 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1764 | } | |
1765 | ||
1766 | SWIGRUNTIME void | |
1767 | PySwigPacked_dealloc(PyObject *v) | |
1768 | { | |
1769 | if (PySwigPacked_Check(v)) { | |
1770 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1771 | free(sobj->pack); | |
1772 | } | |
1773 | PyObject_DEL(v); | |
1774 | } | |
1775 | ||
1776 | SWIGRUNTIME PyTypeObject* | |
1777 | _PySwigPacked_type(void) { | |
1778 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1779 | static PyTypeObject pyswigpacked_type; | |
1780 | static int type_init = 0; | |
1781 | if (!type_init) { | |
1782 | const PyTypeObject tmp | |
1783 | = { | |
1784 | PyObject_HEAD_INIT(NULL) | |
1785 | 0, /* ob_size */ | |
1786 | (char *)"PySwigPacked", /* tp_name */ | |
1787 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1788 | 0, /* tp_itemsize */ | |
1789 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1790 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1791 | (getattrfunc)0, /* tp_getattr */ | |
1792 | (setattrfunc)0, /* tp_setattr */ | |
1793 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1794 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1795 | 0, /* tp_as_number */ | |
1796 | 0, /* tp_as_sequence */ | |
1797 | 0, /* tp_as_mapping */ | |
1798 | (hashfunc)0, /* tp_hash */ | |
1799 | (ternaryfunc)0, /* tp_call */ | |
1800 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1801 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1802 | 0, /* tp_setattro */ | |
1803 | 0, /* tp_as_buffer */ | |
1804 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1805 | swigpacked_doc, /* tp_doc */ | |
1806 | 0, /* tp_traverse */ | |
1807 | 0, /* tp_clear */ | |
1808 | 0, /* tp_richcompare */ | |
1809 | 0, /* tp_weaklistoffset */ | |
1810 | #if PY_VERSION_HEX >= 0x02020000 | |
1811 | 0, /* tp_iter */ | |
1812 | 0, /* tp_iternext */ | |
1813 | 0, /* tp_methods */ | |
1814 | 0, /* tp_members */ | |
1815 | 0, /* tp_getset */ | |
1816 | 0, /* tp_base */ | |
1817 | 0, /* tp_dict */ | |
1818 | 0, /* tp_descr_get */ | |
1819 | 0, /* tp_descr_set */ | |
1820 | 0, /* tp_dictoffset */ | |
1821 | 0, /* tp_init */ | |
1822 | 0, /* tp_alloc */ | |
1823 | 0, /* tp_new */ | |
1824 | 0, /* tp_free */ | |
1825 | 0, /* tp_is_gc */ | |
1826 | 0, /* tp_bases */ | |
1827 | 0, /* tp_mro */ | |
1828 | 0, /* tp_cache */ | |
1829 | 0, /* tp_subclasses */ | |
1830 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1831 | #endif |
1832 | #if PY_VERSION_HEX >= 0x02030000 | |
554f62e9 | 1833 | 0, /* tp_del */ |
093d3ff1 RD |
1834 | #endif |
1835 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1836 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1837 | #endif |
554f62e9 | 1838 | }; |
7449af73 | 1839 | pyswigpacked_type = tmp; |
554f62e9 | 1840 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1841 | type_init = 1; |
1842 | } | |
7449af73 | 1843 | return &pyswigpacked_type; |
093d3ff1 | 1844 | } |
d55e5bfc | 1845 | |
093d3ff1 | 1846 | SWIGRUNTIME PyObject * |
554f62e9 | 1847 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1848 | { |
554f62e9 RD |
1849 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1850 | if (sobj) { | |
093d3ff1 | 1851 | void *pack = malloc(size); |
7449af73 RD |
1852 | if (pack) { |
1853 | memcpy(pack, ptr, size); | |
554f62e9 RD |
1854 | sobj->pack = pack; |
1855 | sobj->ty = ty; | |
1856 | sobj->size = size; | |
1857 | } else { | |
1858 | PyObject_DEL((PyObject *) sobj); | |
1859 | sobj = 0; | |
7449af73 | 1860 | } |
093d3ff1 | 1861 | } |
554f62e9 | 1862 | return (PyObject *) sobj; |
093d3ff1 | 1863 | } |
d55e5bfc | 1864 | |
554f62e9 | 1865 | SWIGRUNTIME swig_type_info * |
093d3ff1 | 1866 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
d55e5bfc | 1867 | { |
554f62e9 RD |
1868 | if (PySwigPacked_Check(obj)) { |
1869 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1870 | if (sobj->size != size) return 0; | |
1871 | memcpy(ptr, sobj->pack, size); | |
1872 | return sobj->ty; | |
1873 | } else { | |
1874 | return 0; | |
1875 | } | |
093d3ff1 | 1876 | } |
d55e5bfc | 1877 | |
093d3ff1 | 1878 | /* ----------------------------------------------------------------------------- |
554f62e9 | 1879 | * pointers/data manipulation |
093d3ff1 | 1880 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1881 | |
554f62e9 RD |
1882 | SWIGRUNTIMEINLINE PyObject * |
1883 | _SWIG_This(void) | |
1884 | { | |
1885 | return PyString_FromString("this"); | |
1886 | } | |
d55e5bfc | 1887 | |
554f62e9 RD |
1888 | SWIGRUNTIME PyObject * |
1889 | SWIG_This(void) | |
1890 | { | |
1891 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1892 | return swig_this; | |
1893 | } | |
d55e5bfc | 1894 | |
554f62e9 | 1895 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1896 | |
554f62e9 RD |
1897 | SWIGRUNTIME PySwigObject * |
1898 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1899 | { |
554f62e9 RD |
1900 | if (PySwigObject_Check(pyobj)) { |
1901 | return (PySwigObject *) pyobj; | |
1902 | } else { | |
1903 | PyObject *obj = 0; | |
1904 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1905 | if (PyInstance_Check(pyobj)) { | |
1906 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1907 | } else { | |
1908 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1909 | if (dictptr != NULL) { | |
1910 | PyObject *dict = *dictptr; | |
1911 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1912 | } else { | |
1913 | #ifdef PyWeakref_CheckProxy | |
1914 | if (PyWeakref_CheckProxy(pyobj)) { | |
1915 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1916 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1917 | } | |
1918 | #endif | |
1919 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1920 | if (obj) { | |
1921 | Py_DECREF(obj); | |
093d3ff1 | 1922 | } else { |
554f62e9 RD |
1923 | if (PyErr_Occurred()) PyErr_Clear(); |
1924 | return 0; | |
093d3ff1 | 1925 | } |
093d3ff1 | 1926 | } |
554f62e9 RD |
1927 | } |
1928 | #else | |
1929 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1930 | if (obj) { | |
1931 | Py_DECREF(obj); | |
1932 | } else { | |
1933 | if (PyErr_Occurred()) PyErr_Clear(); | |
1934 | return 0; | |
1935 | } | |
1936 | #endif | |
1937 | if (obj && !PySwigObject_Check(obj)) { | |
1938 | /* a PyObject is called 'this', try to get the 'real this' | |
1939 | PySwigObject from it */ | |
1940 | return SWIG_Python_GetSwigThis(obj); | |
1941 | } | |
1942 | return (PySwigObject *)obj; | |
093d3ff1 RD |
1943 | } |
1944 | } | |
d55e5bfc | 1945 | |
554f62e9 RD |
1946 | /* Acquire a pointer value */ |
1947 | ||
1948 | SWIGRUNTIME int | |
1949 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1950 | if (own) { | |
1951 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1952 | if (sobj) { | |
1953 | int oldown = sobj->own; | |
1954 | sobj->own = own; | |
1955 | return oldown; | |
1956 | } | |
093d3ff1 | 1957 | } |
554f62e9 | 1958 | return 0; |
093d3ff1 | 1959 | } |
d55e5bfc | 1960 | |
554f62e9 RD |
1961 | /* Convert a pointer value */ |
1962 | ||
093d3ff1 | 1963 | SWIGRUNTIME int |
554f62e9 RD |
1964 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1965 | if (!obj) return SWIG_ERROR; | |
1966 | if (obj == Py_None) { | |
1967 | if (ptr) *ptr = 0; | |
1968 | return SWIG_OK; | |
1969 | } else { | |
1970 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1971 | while (sobj) { | |
1972 | void *vptr = sobj->ptr; | |
1973 | if (ty) { | |
1974 | swig_type_info *to = sobj->ty; | |
1975 | if (to == ty) { | |
1976 | /* no type cast needed */ | |
1977 | if (ptr) *ptr = vptr; | |
1978 | break; | |
1979 | } else { | |
1980 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1981 | if (!tc) { | |
1982 | sobj = (PySwigObject *)sobj->next; | |
1983 | } else { | |
1984 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1985 | break; | |
1986 | } | |
1987 | } | |
093d3ff1 | 1988 | } else { |
554f62e9 RD |
1989 | if (ptr) *ptr = vptr; |
1990 | break; | |
093d3ff1 | 1991 | } |
093d3ff1 | 1992 | } |
554f62e9 RD |
1993 | if (sobj) { |
1994 | if (own) *own = sobj->own; | |
1995 | if (flags & SWIG_POINTER_DISOWN) { | |
1996 | sobj->own = 0; | |
1997 | } | |
1998 | return SWIG_OK; | |
1999 | } else { | |
2000 | int res = SWIG_ERROR; | |
2001 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2002 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2003 | if (data && !data->implicitconv) { | |
2004 | PyObject *klass = data->klass; | |
2005 | if (klass) { | |
2006 | PyObject *impconv; | |
2007 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2008 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2009 | data->implicitconv = 0; | |
2010 | if (PyErr_Occurred()) { | |
2011 | PyErr_Clear(); | |
2012 | impconv = 0; | |
2013 | } | |
2014 | if (impconv) { | |
2015 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2016 | if (iobj) { | |
2017 | void *vptr; | |
2018 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2019 | if (SWIG_IsOK(res)) { | |
2020 | if (ptr) { | |
2021 | *ptr = vptr; | |
2022 | /* transfer the ownership to 'ptr' */ | |
2023 | iobj->own = 0; | |
2024 | res = SWIG_AddCast(res); | |
2025 | res = SWIG_AddNewMask(res); | |
2026 | } else { | |
2027 | res = SWIG_AddCast(res); | |
2028 | } | |
2029 | } | |
2030 | } | |
2031 | Py_DECREF(impconv); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | } | |
2036 | return res; | |
2037 | } | |
093d3ff1 RD |
2038 | } |
2039 | } | |
d55e5bfc | 2040 | |
554f62e9 RD |
2041 | /* Convert a function ptr value */ |
2042 | ||
093d3ff1 | 2043 | SWIGRUNTIME int |
554f62e9 RD |
2044 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2045 | if (!PyCFunction_Check(obj)) { | |
2046 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2047 | } else { |
554f62e9 RD |
2048 | void *vptr = 0; |
2049 | ||
2050 | /* here we get the method pointer for callbacks */ | |
2051 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2052 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2053 | if (desc) { | |
2054 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2055 | if (!desc) return SWIG_ERROR; | |
2056 | } | |
2057 | if (ty) { | |
2058 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2059 | if (!tc) return SWIG_ERROR; | |
2060 | *ptr = SWIG_TypeCast(tc,vptr); | |
2061 | } else { | |
2062 | *ptr = vptr; | |
2063 | } | |
2064 | return SWIG_OK; | |
093d3ff1 RD |
2065 | } |
2066 | } | |
d55e5bfc | 2067 | |
554f62e9 | 2068 | /* Convert a packed value value */ |
d55e5bfc | 2069 | |
093d3ff1 | 2070 | SWIGRUNTIME int |
554f62e9 RD |
2071 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2072 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2073 | if (!to) return SWIG_ERROR; | |
2074 | if (ty) { | |
2075 | if (to != ty) { | |
2076 | /* check type cast? */ | |
2077 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2078 | if (!tc) return SWIG_ERROR; | |
2079 | } | |
093d3ff1 | 2080 | } |
554f62e9 RD |
2081 | return SWIG_OK; |
2082 | } | |
d55e5bfc | 2083 | |
554f62e9 RD |
2084 | /* ----------------------------------------------------------------------------- |
2085 | * Create a new pointer object | |
2086 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2087 | |
554f62e9 RD |
2088 | /* |
2089 | Create a new instance object, whitout calling __init__, and set the | |
2090 | 'this' attribute. | |
2091 | */ | |
d55e5bfc | 2092 | |
554f62e9 RD |
2093 | SWIGRUNTIME PyObject* |
2094 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2095 | { | |
2096 | #if (PY_VERSION_HEX >= 0x02020000) | |
2097 | PyObject *inst = 0; | |
2098 | PyObject *newraw = data->newraw; | |
2099 | if (newraw) { | |
2100 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2101 | if (inst) { | |
2102 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2103 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2104 | if (dictptr != NULL) { | |
2105 | PyObject *dict = *dictptr; | |
2106 | if (dict == NULL) { | |
2107 | dict = PyDict_New(); | |
2108 | *dictptr = dict; | |
2109 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2110 | } | |
093d3ff1 | 2111 | } |
554f62e9 RD |
2112 | #else |
2113 | PyObject *key = SWIG_This(); | |
2114 | PyObject_SetAttr(inst, key, swig_this); | |
2115 | #endif | |
093d3ff1 | 2116 | } |
554f62e9 RD |
2117 | } else { |
2118 | PyObject *dict = PyDict_New(); | |
2119 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2120 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2121 | Py_DECREF(dict); | |
093d3ff1 | 2122 | } |
554f62e9 RD |
2123 | return inst; |
2124 | #else | |
2125 | #if (PY_VERSION_HEX >= 0x02010000) | |
2126 | PyObject *inst; | |
2127 | PyObject *dict = PyDict_New(); | |
2128 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2129 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2130 | Py_DECREF(dict); | |
2131 | return (PyObject *) inst; | |
2132 | #else | |
2133 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2134 | if (inst == NULL) { | |
2135 | return NULL; | |
093d3ff1 | 2136 | } |
554f62e9 RD |
2137 | inst->in_class = (PyClassObject *)data->newargs; |
2138 | Py_INCREF(inst->in_class); | |
2139 | inst->in_dict = PyDict_New(); | |
2140 | if (inst->in_dict == NULL) { | |
2141 | Py_DECREF(inst); | |
2142 | return NULL; | |
093d3ff1 | 2143 | } |
554f62e9 RD |
2144 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2145 | inst->in_weakreflist = NULL; | |
2146 | #endif | |
2147 | #ifdef Py_TPFLAGS_GC | |
2148 | PyObject_GC_Init(inst); | |
2149 | #endif | |
2150 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2151 | return (PyObject *) inst; | |
2152 | #endif | |
2153 | #endif | |
093d3ff1 | 2154 | } |
d55e5bfc | 2155 | |
554f62e9 RD |
2156 | SWIGRUNTIME void |
2157 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2158 | { | |
2159 | PyObject *dict; | |
2160 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2161 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2162 | if (dictptr != NULL) { | |
2163 | dict = *dictptr; | |
2164 | if (dict == NULL) { | |
2165 | dict = PyDict_New(); | |
2166 | *dictptr = dict; | |
2167 | } | |
2168 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2169 | return; | |
2170 | } | |
093d3ff1 | 2171 | #endif |
554f62e9 RD |
2172 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2173 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2174 | Py_DECREF(dict); | |
2175 | } | |
d55e5bfc | 2176 | |
554f62e9 RD |
2177 | |
2178 | SWIGINTERN PyObject * | |
2179 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2180 | PyObject *obj[2]; | |
2181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2182 | return NULL; | |
2183 | } else { | |
2184 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2185 | if (sthis) { | |
2186 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2187 | } else { |
554f62e9 | 2188 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2189 | } |
554f62e9 | 2190 | return SWIG_Py_Void(); |
093d3ff1 | 2191 | } |
554f62e9 RD |
2192 | } |
2193 | ||
2194 | /* Create a new pointer object */ | |
093d3ff1 | 2195 | |
093d3ff1 | 2196 | SWIGRUNTIME PyObject * |
554f62e9 | 2197 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2198 | if (!ptr) { |
554f62e9 RD |
2199 | return SWIG_Py_Void(); |
2200 | } else { | |
2201 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2202 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2203 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2204 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2205 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2206 | if (inst) { | |
2207 | Py_DECREF(robj); | |
2208 | robj = inst; | |
093d3ff1 | 2209 | } |
093d3ff1 | 2210 | } |
554f62e9 | 2211 | return robj; |
093d3ff1 | 2212 | } |
093d3ff1 RD |
2213 | } |
2214 | ||
554f62e9 RD |
2215 | /* Create a new packed object */ |
2216 | ||
2217 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2218 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
554f62e9 | 2219 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 RD |
2220 | } |
2221 | ||
2222 | /* -----------------------------------------------------------------------------* | |
2223 | * Get type list | |
2224 | * -----------------------------------------------------------------------------*/ | |
2225 | ||
2226 | #ifdef SWIG_LINK_RUNTIME | |
2227 | void *SWIG_ReturnGlobalTypeList(void *); | |
2228 | #endif | |
2229 | ||
7449af73 RD |
2230 | SWIGRUNTIME swig_module_info * |
2231 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2232 | static void *type_pointer = (void *)0; |
2233 | /* first check if module already created */ | |
2234 | if (!type_pointer) { | |
2235 | #ifdef SWIG_LINK_RUNTIME | |
2236 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2237 | #else | |
2238 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2239 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2240 | if (PyErr_Occurred()) { | |
2241 | PyErr_Clear(); | |
2242 | type_pointer = (void *)0; | |
2243 | } | |
093d3ff1 | 2244 | #endif |
7449af73 RD |
2245 | } |
2246 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
2247 | } |
2248 | ||
7449af73 RD |
2249 | #if PY_MAJOR_VERSION < 2 |
2250 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
554f62e9 | 2251 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
7449af73 RD |
2252 | SWIGINTERN int |
2253 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2254 | { | |
2255 | PyObject *dict; | |
2256 | if (!PyModule_Check(m)) { | |
2257 | PyErr_SetString(PyExc_TypeError, | |
2258 | "PyModule_AddObject() needs module as first arg"); | |
554f62e9 | 2259 | return SWIG_ERROR; |
7449af73 RD |
2260 | } |
2261 | if (!o) { | |
2262 | PyErr_SetString(PyExc_TypeError, | |
2263 | "PyModule_AddObject() needs non-NULL value"); | |
554f62e9 | 2264 | return SWIG_ERROR; |
7449af73 RD |
2265 | } |
2266 | ||
2267 | dict = PyModule_GetDict(m); | |
2268 | if (dict == NULL) { | |
2269 | /* Internal error -- modules must have a dict! */ | |
2270 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2271 | PyModule_GetName(m)); | |
554f62e9 | 2272 | return SWIG_ERROR; |
7449af73 RD |
2273 | } |
2274 | if (PyDict_SetItemString(dict, name, o)) | |
554f62e9 | 2275 | return SWIG_ERROR; |
7449af73 | 2276 | Py_DECREF(o); |
554f62e9 | 2277 | return SWIG_OK; |
093d3ff1 | 2278 | } |
7449af73 | 2279 | #endif |
093d3ff1 | 2280 | |
554f62e9 RD |
2281 | SWIGRUNTIME void |
2282 | SWIG_Python_DestroyModule(void *vptr) | |
2283 | { | |
2284 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2285 | swig_type_info **types = swig_module->types; | |
2286 | size_t i; | |
2287 | for (i =0; i < swig_module->size; ++i) { | |
2288 | swig_type_info *ty = types[i]; | |
2289 | if (ty->owndata) { | |
2290 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2291 | if (data) PySwigClientData_Del(data); | |
2292 | } | |
2293 | } | |
2294 | Py_DECREF(SWIG_This()); | |
2295 | } | |
2296 | ||
7449af73 RD |
2297 | SWIGRUNTIME void |
2298 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2299 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2300 | ||
2301 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2302 | swig_empty_runtime_method_table); | |
554f62e9 | 2303 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
7449af73 RD |
2304 | if (pointer && module) { |
2305 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
554f62e9 RD |
2306 | } else { |
2307 | Py_XDECREF(pointer); | |
7449af73 RD |
2308 | } |
2309 | } | |
093d3ff1 | 2310 | |
554f62e9 RD |
2311 | /* The python cached type query */ |
2312 | SWIGRUNTIME PyObject * | |
2313 | SWIG_Python_TypeCache() { | |
2314 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2315 | return cache; | |
093d3ff1 | 2316 | } |
093d3ff1 | 2317 | |
554f62e9 RD |
2318 | SWIGRUNTIME swig_type_info * |
2319 | SWIG_Python_TypeQuery(const char *type) | |
2320 | { | |
2321 | PyObject *cache = SWIG_Python_TypeCache(); | |
2322 | PyObject *key = PyString_FromString(type); | |
2323 | PyObject *obj = PyDict_GetItem(cache, key); | |
2324 | swig_type_info *descriptor; | |
2325 | if (obj) { | |
2326 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2327 | } else { | |
2328 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2329 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2330 | if (descriptor) { | |
2331 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2332 | PyDict_SetItem(cache, key, obj); | |
2333 | Py_DECREF(obj); | |
2334 | } | |
2335 | } | |
2336 | Py_DECREF(key); | |
2337 | return descriptor; | |
2338 | } | |
2339 | ||
2340 | /* | |
2341 | For backward compatibility only | |
2342 | */ | |
2343 | #define SWIG_POINTER_EXCEPTION 0 | |
2344 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2345 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2346 | ||
2347 | SWIGRUNTIME int | |
2348 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2349 | { | |
2350 | if (PyErr_Occurred()) { | |
2351 | PyObject *type = 0; | |
2352 | PyObject *value = 0; | |
2353 | PyObject *traceback = 0; | |
2354 | PyErr_Fetch(&type, &value, &traceback); | |
2355 | if (value) { | |
2356 | PyObject *old_str = PyObject_Str(value); | |
2357 | Py_XINCREF(type); | |
2358 | PyErr_Clear(); | |
2359 | if (infront) { | |
2360 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2361 | } else { | |
2362 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2363 | } | |
2364 | Py_DECREF(old_str); | |
2365 | } | |
2366 | return 1; | |
2367 | } else { | |
2368 | return 0; | |
2369 | } | |
2370 | } | |
2371 | ||
2372 | SWIGRUNTIME int | |
2373 | SWIG_Python_ArgFail(int argnum) | |
2374 | { | |
2375 | if (PyErr_Occurred()) { | |
2376 | /* add information about failing argument */ | |
2377 | char mesg[256]; | |
2378 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2379 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2380 | } else { | |
2381 | return 0; | |
2382 | } | |
2383 | } | |
2384 | ||
2385 | SWIGRUNTIMEINLINE const char * | |
2386 | PySwigObject_GetDesc(PyObject *self) | |
2387 | { | |
2388 | PySwigObject *v = (PySwigObject *)self; | |
2389 | swig_type_info *ty = v ? v->ty : 0; | |
2390 | return ty ? ty->str : (char*)""; | |
2391 | } | |
2392 | ||
2393 | SWIGRUNTIME void | |
2394 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2395 | { | |
2396 | if (type) { | |
2397 | #if defined(SWIG_COBJECT_TYPES) | |
2398 | if (obj && PySwigObject_Check(obj)) { | |
2399 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2400 | if (otype) { | |
2401 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2402 | type, otype); | |
2403 | return; | |
2404 | } | |
2405 | } else | |
2406 | #endif | |
2407 | { | |
2408 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2409 | if (otype) { | |
2410 | PyObject *str = PyObject_Str(obj); | |
2411 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2412 | if (cstr) { | |
2413 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2414 | type, otype, cstr); | |
2415 | } else { | |
2416 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2417 | type, otype); | |
2418 | } | |
2419 | Py_XDECREF(str); | |
2420 | return; | |
2421 | } | |
2422 | } | |
2423 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2424 | } else { | |
2425 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2426 | } | |
2427 | } | |
2428 | ||
2429 | ||
2430 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2431 | SWIGRUNTIME void * | |
2432 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2433 | void *result; | |
2434 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2435 | PyErr_Clear(); | |
2436 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2437 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2438 | SWIG_Python_ArgFail(argnum); | |
2439 | } | |
2440 | } | |
2441 | return result; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | #ifdef __cplusplus | |
2446 | #if 0 | |
2447 | { /* cc-mode */ | |
2448 | #endif | |
2449 | } | |
2450 | #endif | |
2451 | ||
2452 | ||
2453 | ||
2454 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2455 | ||
2456 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2457 | ||
2458 | ||
2459 | ||
2460 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2461 | ||
2462 | #define SWIGTYPE_p_char swig_types[0] | |
2463 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
2464 | #define SWIGTYPE_p_int swig_types[2] | |
7449af73 RD |
2465 | #define SWIGTYPE_p_unsigned_char swig_types[3] |
2466 | #define SWIGTYPE_p_unsigned_int swig_types[4] | |
2467 | #define SWIGTYPE_p_unsigned_long swig_types[5] | |
2468 | #define SWIGTYPE_p_wxANIHandler swig_types[6] | |
2469 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[7] | |
2470 | #define SWIGTYPE_p_wxActivateEvent swig_types[8] | |
2471 | #define SWIGTYPE_p_wxArrayInt swig_types[9] | |
2472 | #define SWIGTYPE_p_wxBMPHandler swig_types[10] | |
2473 | #define SWIGTYPE_p_wxBitmap swig_types[11] | |
2474 | #define SWIGTYPE_p_wxBoxSizer swig_types[12] | |
2475 | #define SWIGTYPE_p_wxCURHandler swig_types[13] | |
2476 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[14] | |
2477 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[15] | |
2478 | #define SWIGTYPE_p_wxCloseEvent swig_types[16] | |
2479 | #define SWIGTYPE_p_wxColour swig_types[17] | |
2480 | #define SWIGTYPE_p_wxColourData swig_types[18] | |
2481 | #define SWIGTYPE_p_wxColourDialog swig_types[19] | |
2482 | #define SWIGTYPE_p_wxCommandEvent swig_types[20] | |
2483 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[21] | |
2484 | #define SWIGTYPE_p_wxControl swig_types[22] | |
2485 | #define SWIGTYPE_p_wxControlWithItems swig_types[23] | |
2486 | #define SWIGTYPE_p_wxDC swig_types[24] | |
2487 | #define SWIGTYPE_p_wxDateEvent swig_types[25] | |
2488 | #define SWIGTYPE_p_wxDialog swig_types[26] | |
2489 | #define SWIGTYPE_p_wxDirDialog swig_types[27] | |
2490 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[28] | |
2491 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[29] | |
2492 | #define SWIGTYPE_p_wxDuplexMode swig_types[30] | |
2493 | #define SWIGTYPE_p_wxEraseEvent swig_types[31] | |
2494 | #define SWIGTYPE_p_wxEvent swig_types[32] | |
2495 | #define SWIGTYPE_p_wxEvtHandler swig_types[33] | |
2496 | #define SWIGTYPE_p_wxFSFile swig_types[34] | |
2497 | #define SWIGTYPE_p_wxFileDialog swig_types[35] | |
2498 | #define SWIGTYPE_p_wxFileSystem swig_types[36] | |
2499 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[37] | |
2500 | #define SWIGTYPE_p_wxFindReplaceData swig_types[38] | |
2501 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[39] | |
2502 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[40] | |
2503 | #define SWIGTYPE_p_wxFocusEvent swig_types[41] | |
2504 | #define SWIGTYPE_p_wxFont swig_types[42] | |
2505 | #define SWIGTYPE_p_wxFontData swig_types[43] | |
2506 | #define SWIGTYPE_p_wxFontDialog swig_types[44] | |
2507 | #define SWIGTYPE_p_wxFrame swig_types[45] | |
2508 | #define SWIGTYPE_p_wxGBSizerItem swig_types[46] | |
2509 | #define SWIGTYPE_p_wxGIFHandler swig_types[47] | |
2510 | #define SWIGTYPE_p_wxGridBagSizer swig_types[48] | |
2511 | #define SWIGTYPE_p_wxGridSizer swig_types[49] | |
e9d6f3a4 RD |
2512 | #define SWIGTYPE_p_wxHtmlLinkInfo swig_types[50] |
2513 | #define SWIGTYPE_p_wxICOHandler swig_types[51] | |
2514 | #define SWIGTYPE_p_wxIcon swig_types[52] | |
2515 | #define SWIGTYPE_p_wxIconBundle swig_types[53] | |
2516 | #define SWIGTYPE_p_wxIconizeEvent swig_types[54] | |
2517 | #define SWIGTYPE_p_wxIdleEvent swig_types[55] | |
2518 | #define SWIGTYPE_p_wxImage swig_types[56] | |
2519 | #define SWIGTYPE_p_wxImageHandler swig_types[57] | |
2520 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[58] | |
2521 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[59] | |
2522 | #define SWIGTYPE_p_wxJPEGHandler swig_types[60] | |
2523 | #define SWIGTYPE_p_wxKeyEvent swig_types[61] | |
2524 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[62] | |
2525 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[63] | |
2526 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[64] | |
2527 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[65] | |
2528 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[66] | |
2529 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[67] | |
2530 | #define SWIGTYPE_p_wxMenu swig_types[68] | |
2531 | #define SWIGTYPE_p_wxMenuBar swig_types[69] | |
2532 | #define SWIGTYPE_p_wxMenuEvent swig_types[70] | |
2533 | #define SWIGTYPE_p_wxMenuItem swig_types[71] | |
2534 | #define SWIGTYPE_p_wxMessageDialog swig_types[72] | |
2535 | #define SWIGTYPE_p_wxMiniFrame swig_types[73] | |
2536 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[74] | |
2537 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
2538 | #define SWIGTYPE_p_wxMoveEvent swig_types[76] | |
2539 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[77] | |
2540 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[78] | |
2541 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[79] | |
2542 | #define SWIGTYPE_p_wxNotifyEvent swig_types[80] | |
2543 | #define SWIGTYPE_p_wxObject swig_types[81] | |
2544 | #define SWIGTYPE_p_wxPCXHandler swig_types[82] | |
2545 | #define SWIGTYPE_p_wxPNGHandler swig_types[83] | |
2546 | #define SWIGTYPE_p_wxPNMHandler swig_types[84] | |
2547 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[85] | |
2548 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[86] | |
2549 | #define SWIGTYPE_p_wxPaintEvent swig_types[87] | |
2550 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[88] | |
2551 | #define SWIGTYPE_p_wxPanel swig_types[89] | |
2552 | #define SWIGTYPE_p_wxPaperSize swig_types[90] | |
2553 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[91] | |
2554 | #define SWIGTYPE_p_wxPoint swig_types[92] | |
2555 | #define SWIGTYPE_p_wxPopupWindow swig_types[93] | |
2556 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[94] | |
2557 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[95] | |
2558 | #define SWIGTYPE_p_wxPreviewFrame swig_types[96] | |
2559 | #define SWIGTYPE_p_wxPrintData swig_types[97] | |
2560 | #define SWIGTYPE_p_wxPrintDialog swig_types[98] | |
2561 | #define SWIGTYPE_p_wxPrintDialogData swig_types[99] | |
2562 | #define SWIGTYPE_p_wxPrintPreview swig_types[100] | |
2563 | #define SWIGTYPE_p_wxPrinter swig_types[101] | |
2564 | #define SWIGTYPE_p_wxProgressDialog swig_types[102] | |
2565 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
2566 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[104] | |
2567 | #define SWIGTYPE_p_wxPyEvent swig_types[105] | |
2568 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[106] | |
2569 | #define SWIGTYPE_p_wxPyImageHandler swig_types[107] | |
2570 | #define SWIGTYPE_p_wxPyPanel swig_types[108] | |
2571 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[109] | |
2572 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[110] | |
2573 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[111] | |
2574 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[112] | |
2575 | #define SWIGTYPE_p_wxPyPrintout swig_types[113] | |
2576 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[114] | |
2577 | #define SWIGTYPE_p_wxPySizer swig_types[115] | |
2578 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[116] | |
2579 | #define SWIGTYPE_p_wxPyVListBox swig_types[117] | |
2580 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[118] | |
2581 | #define SWIGTYPE_p_wxPyValidator swig_types[119] | |
2582 | #define SWIGTYPE_p_wxPyWindow swig_types[120] | |
2583 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[121] | |
2584 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[122] | |
2585 | #define SWIGTYPE_p_wxRect swig_types[123] | |
2586 | #define SWIGTYPE_p_wxRegion swig_types[124] | |
2587 | #define SWIGTYPE_p_wxSashEvent swig_types[125] | |
2588 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[126] | |
2589 | #define SWIGTYPE_p_wxSashWindow swig_types[127] | |
2590 | #define SWIGTYPE_p_wxScrollEvent swig_types[128] | |
2591 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[129] | |
2592 | #define SWIGTYPE_p_wxScrolledWindow swig_types[130] | |
2593 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[131] | |
2594 | #define SWIGTYPE_p_wxShowEvent swig_types[132] | |
2595 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[133] | |
2596 | #define SWIGTYPE_p_wxSize swig_types[134] | |
2597 | #define SWIGTYPE_p_wxSizeEvent swig_types[135] | |
2598 | #define SWIGTYPE_p_wxSizer swig_types[136] | |
2599 | #define SWIGTYPE_p_wxSizerItem swig_types[137] | |
2600 | #define SWIGTYPE_p_wxSplashScreen swig_types[138] | |
2601 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[139] | |
2602 | #define SWIGTYPE_p_wxSplitterEvent swig_types[140] | |
2603 | #define SWIGTYPE_p_wxSplitterWindow swig_types[141] | |
2604 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[142] | |
2605 | #define SWIGTYPE_p_wxStatusBar swig_types[143] | |
2606 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144] | |
2607 | #define SWIGTYPE_p_wxString swig_types[145] | |
2608 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[146] | |
2609 | #define SWIGTYPE_p_wxTIFFHandler swig_types[147] | |
2610 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[148] | |
2611 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[149] | |
2612 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[150] | |
2613 | #define SWIGTYPE_p_wxTipWindow swig_types[151] | |
2614 | #define SWIGTYPE_p_wxToolBar swig_types[152] | |
2615 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[153] | |
2616 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[154] | |
2617 | #define SWIGTYPE_p_wxValidator swig_types[155] | |
2618 | #define SWIGTYPE_p_wxVisualAttributes swig_types[156] | |
2619 | #define SWIGTYPE_p_wxWindow swig_types[157] | |
2620 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[158] | |
2621 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[159] | |
2622 | #define SWIGTYPE_p_wxXPMHandler swig_types[160] | |
2623 | static swig_type_info *swig_types[162]; | |
2624 | static swig_module_info swig_module = {swig_types, 161, 0, 0, 0, 0}; | |
7449af73 RD |
2625 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2626 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
2627 | |
2628 | /* -------- TYPES TABLE (END) -------- */ | |
2629 | ||
554f62e9 RD |
2630 | #if (PY_VERSION_HEX <= 0x02000000) |
2631 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2632 | # error "This python version requires to use swig with the '-classic' option" | |
2633 | # endif | |
2634 | #endif | |
2635 | #if (PY_VERSION_HEX <= 0x02020000) | |
2636 | # error "This python version requires to use swig with the '-nomodern' option" | |
2637 | #endif | |
2638 | #if (PY_VERSION_HEX <= 0x02020000) | |
2639 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2640 | #endif | |
2641 | #ifndef METH_O | |
2642 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2643 | #endif | |
093d3ff1 RD |
2644 | |
2645 | /*----------------------------------------------- | |
2646 | @(target):= _windows_.so | |
2647 | ------------------------------------------------*/ | |
2648 | #define SWIG_init init_windows_ | |
2649 | ||
2650 | #define SWIG_name "_windows_" | |
2651 | ||
554f62e9 | 2652 | #define SWIGVERSION 0x010329 |
093d3ff1 | 2653 | |
093d3ff1 | 2654 | |
554f62e9 RD |
2655 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2656 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
093d3ff1 RD |
2657 | |
2658 | ||
554f62e9 | 2659 | #include <stdexcept> |
093d3ff1 RD |
2660 | |
2661 | ||
554f62e9 RD |
2662 | namespace swig { |
2663 | class PyObject_ptr { | |
2664 | protected: | |
2665 | PyObject *_obj; | |
093d3ff1 | 2666 | |
554f62e9 RD |
2667 | public: |
2668 | PyObject_ptr() :_obj(0) | |
2669 | { | |
2670 | } | |
093d3ff1 | 2671 | |
554f62e9 RD |
2672 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) |
2673 | { | |
2674 | Py_XINCREF(_obj); | |
093d3ff1 | 2675 | } |
554f62e9 RD |
2676 | |
2677 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2678 | { | |
2679 | if (initial_ref) Py_XINCREF(_obj); | |
093d3ff1 | 2680 | } |
554f62e9 RD |
2681 | |
2682 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2683 | { | |
2684 | Py_XINCREF(item._obj); | |
2685 | Py_XDECREF(_obj); | |
2686 | _obj = item._obj; | |
2687 | return *this; | |
2688 | } | |
2689 | ||
2690 | ~PyObject_ptr() | |
2691 | { | |
2692 | Py_XDECREF(_obj); | |
2693 | } | |
2694 | ||
2695 | operator PyObject *() const | |
2696 | { | |
2697 | return _obj; | |
2698 | } | |
2699 | ||
2700 | PyObject *operator->() const | |
2701 | { | |
2702 | return _obj; | |
2703 | } | |
2704 | }; | |
093d3ff1 RD |
2705 | } |
2706 | ||
2707 | ||
554f62e9 RD |
2708 | namespace swig { |
2709 | struct PyObject_var : PyObject_ptr { | |
2710 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2711 | ||
2712 | PyObject_var & operator = (PyObject* obj) | |
2713 | { | |
2714 | Py_XDECREF(_obj); | |
2715 | _obj = obj; | |
2716 | return *this; | |
093d3ff1 | 2717 | } |
554f62e9 | 2718 | }; |
093d3ff1 | 2719 | } |
093d3ff1 RD |
2720 | |
2721 | ||
554f62e9 RD |
2722 | #include "wx/wxPython/wxPython.h" |
2723 | #include "wx/wxPython/pyclasses.h" | |
2724 | ||
093d3ff1 | 2725 | |
554f62e9 RD |
2726 | static const wxString wxPyEmptyString(wxEmptyString); |
2727 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
093d3ff1 | 2728 | |
093d3ff1 | 2729 | |
554f62e9 RD |
2730 | |
2731 | #include <limits.h> | |
2732 | #ifndef LLONG_MIN | |
2733 | # define LLONG_MIN LONG_LONG_MIN | |
2734 | #endif | |
2735 | #ifndef LLONG_MAX | |
2736 | # define LLONG_MAX LONG_LONG_MAX | |
2737 | #endif | |
2738 | #ifndef ULLONG_MAX | |
2739 | # define ULLONG_MAX ULONG_LONG_MAX | |
2740 | #endif | |
2741 | ||
2742 | ||
2743 | SWIGINTERN int | |
2744 | SWIG_AsVal_long (PyObject* obj, long* val) | |
093d3ff1 | 2745 | { |
554f62e9 RD |
2746 | if (PyNumber_Check(obj)) { |
2747 | if (val) *val = PyInt_AsLong(obj); | |
2748 | return SWIG_OK; | |
2749 | } | |
2750 | return SWIG_TypeError; | |
093d3ff1 RD |
2751 | } |
2752 | ||
554f62e9 RD |
2753 | |
2754 | SWIGINTERN int | |
2755 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2756 | { |
554f62e9 RD |
2757 | long v; |
2758 | int res = SWIG_AsVal_long (obj, &v); | |
2759 | if (SWIG_IsOK(res)) { | |
2760 | if ((v < INT_MIN || v > INT_MAX)) { | |
2761 | return SWIG_OverflowError; | |
2762 | } else { | |
2763 | if (val) *val = static_cast< int >(v); | |
2764 | } | |
2765 | } | |
2766 | return res; | |
093d3ff1 RD |
2767 | } |
2768 | ||
2769 | ||
2770 | SWIGINTERN int | |
554f62e9 | 2771 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
093d3ff1 RD |
2772 | { |
2773 | if (obj == Py_True) { | |
2774 | if (val) *val = true; | |
554f62e9 RD |
2775 | return SWIG_OK; |
2776 | } else if (obj == Py_False) { | |
093d3ff1 | 2777 | if (val) *val = false; |
554f62e9 | 2778 | return SWIG_OK; |
093d3ff1 | 2779 | } else { |
554f62e9 RD |
2780 | long v = 0; |
2781 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2782 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2783 | return res; | |
093d3ff1 | 2784 | } |
093d3ff1 RD |
2785 | } |
2786 | ||
2787 | ||
554f62e9 | 2788 | #define SWIG_From_long PyInt_FromLong |
093d3ff1 RD |
2789 | |
2790 | ||
554f62e9 RD |
2791 | SWIGINTERNINLINE PyObject * |
2792 | SWIG_From_int (int value) | |
2793 | { | |
2794 | return SWIG_From_long (value); | |
2795 | } | |
093d3ff1 RD |
2796 | |
2797 | ||
2798 | SWIGINTERN int | |
554f62e9 | 2799 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
2800 | { |
2801 | if (PyNumber_Check(obj)) { | |
2802 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 2803 | return SWIG_OK; |
093d3ff1 | 2804 | } |
554f62e9 | 2805 | return SWIG_TypeError; |
093d3ff1 RD |
2806 | } |
2807 | ||
2808 | ||
554f62e9 | 2809 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 RD |
2810 | |
2811 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
2812 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
2813 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
2814 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
554f62e9 RD |
2815 | SWIGINTERN void wxTopLevelWindow_MacSetMetalAppearance(wxTopLevelWindow *self,bool on){ /*wxPyRaiseNotImplemented();*/ } |
2816 | SWIGINTERN bool wxTopLevelWindow_MacGetMetalAppearance(wxTopLevelWindow const *self){ /*wxPyRaiseNotImplemented();*/ return false; } | |
093d3ff1 RD |
2817 | |
2818 | ||
554f62e9 | 2819 | SWIGINTERN wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
093d3ff1 RD |
2820 | wxRect r; |
2821 | self->GetFieldRect(i, r); | |
2822 | return r; | |
2823 | } | |
2824 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
2825 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
2826 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
2827 | ||
2828 | #include <wx/popupwin.h> | |
2829 | ||
2830 | ||
2831 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
2832 | { | |
2833 | public: | |
2834 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
2835 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
2836 | : wxPopupTransientWindow(parent, style) {} | |
2837 | ||
2838 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
2839 | DEC_PYCALLBACK__(OnDismiss); | |
2840 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
2841 | PYPRIVATE; | |
2842 | }; | |
2843 | ||
2844 | ||
2845 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
2846 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
2847 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
2848 | ||
2849 | ||
2850 | #include <wx/tipwin.h> | |
2851 | ||
554f62e9 | 2852 | SWIGINTERN wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength=100,wxRect *rectBound=NULL){ |
093d3ff1 RD |
2853 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); |
2854 | } | |
2855 | ||
2856 | #include <wx/tipwin.h> | |
2857 | ||
2858 | ||
2859 | #include <wx/vscroll.h> | |
2860 | ||
2861 | ||
2862 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
2863 | { | |
7449af73 | 2864 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow) |
093d3ff1 RD |
2865 | public: |
2866 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
2867 | ||
2868 | wxPyVScrolledWindow(wxWindow *parent, | |
2869 | wxWindowID id = wxID_ANY, | |
2870 | const wxPoint& pos = wxDefaultPosition, | |
2871 | const wxSize& size = wxDefaultSize, | |
2872 | long style = 0, | |
2873 | const wxString& name = wxPyPanelNameStr) | |
2874 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
2875 | {} | |
2876 | ||
2877 | // Overridable virtuals | |
2878 | ||
2879 | // this function must be overridden in the derived class and it should | |
2880 | // return the height of the given line in pixels | |
2881 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
2882 | ||
2883 | ||
2884 | // this function doesn't have to be overridden but it may be useful to do | |
2885 | // it if calculating the lines heights is a relatively expensive operation | |
2886 | // as it gives the user code a possibility to calculate several of them at | |
2887 | // once | |
2888 | // | |
2889 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
2890 | // shouldn't rely on the latter being called for all lines in the interval | |
2891 | // specified here. It is also possible that OnGetLineHeight() will be | |
2892 | // called for the lines outside of this interval, so this is really just a | |
2893 | // hint, not a promise. | |
2894 | // | |
2895 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
2896 | // usual | |
2897 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
2898 | ||
2899 | ||
2900 | // when the number of lines changes, we try to estimate the total height | |
2901 | // of all lines which is a rather expensive operation in terms of lines | |
2902 | // access, so if the user code may estimate the average height | |
2903 | // better/faster than we do, it should override this function to implement | |
2904 | // its own logic | |
2905 | // | |
2906 | // this function should return the best guess for the total height it may | |
2907 | // make | |
2908 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
2909 | ||
2910 | ||
2911 | // Also expose some other interesting protected methods | |
2912 | ||
2913 | ||
2914 | // find the index of the line we need to show at the top of the window such | |
2915 | // that the last (fully or partially) visible line is the given one | |
2916 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
2917 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
2918 | ||
2919 | // get the total height of the lines between lineMin (inclusive) and | |
2920 | // lineMax (exclusive) | |
2921 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
2922 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
d55e5bfc RD |
2923 | |
2924 | ||
2925 | PYPRIVATE; | |
2926 | }; | |
2927 | ||
2928 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
2929 | ||
2930 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
2931 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
2932 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
2933 | ||
2934 | ||
093d3ff1 | 2935 | SWIGINTERN int |
554f62e9 | 2936 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
d55e5bfc | 2937 | { |
c32bde28 RD |
2938 | long v = 0; |
2939 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
554f62e9 | 2940 | return SWIG_TypeError; |
d55e5bfc | 2941 | } |
c32bde28 RD |
2942 | else if (val) |
2943 | *val = (unsigned long)v; | |
554f62e9 | 2944 | return SWIG_OK; |
d55e5bfc RD |
2945 | } |
2946 | ||
2947 | ||
7449af73 | 2948 | SWIGINTERNINLINE int |
554f62e9 | 2949 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
c32bde28 | 2950 | { |
554f62e9 RD |
2951 | unsigned long v; |
2952 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
2953 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
2954 | return res; | |
d55e5bfc RD |
2955 | } |
2956 | ||
2957 | ||
7449af73 | 2958 | SWIGINTERNINLINE PyObject* |
554f62e9 | 2959 | SWIG_From_unsigned_SS_long (unsigned long value) |
d55e5bfc RD |
2960 | { |
2961 | return (value > LONG_MAX) ? | |
554f62e9 RD |
2962 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
2963 | } | |
2964 | ||
2965 | ||
2966 | SWIGINTERNINLINE PyObject * | |
2967 | SWIG_From_size_t (size_t value) | |
2968 | { | |
2969 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
d55e5bfc RD |
2970 | } |
2971 | ||
2972 | ||
2973 | #include <wx/vlbox.h> | |
2974 | ||
2975 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
2976 | ||
2977 | class wxPyVListBox : public wxVListBox | |
2978 | { | |
7449af73 | 2979 | DECLARE_ABSTRACT_CLASS(wxPyVListBox) |
d55e5bfc RD |
2980 | public: |
2981 | wxPyVListBox() : wxVListBox() {} | |
2982 | ||
2983 | wxPyVListBox(wxWindow *parent, | |
2984 | wxWindowID id = wxID_ANY, | |
2985 | const wxPoint& pos = wxDefaultPosition, | |
2986 | const wxSize& size = wxDefaultSize, | |
2987 | long style = 0, | |
2988 | const wxString& name = wxPyVListBoxNameStr) | |
2989 | : wxVListBox(parent, id, pos, size, style, name) | |
2990 | {} | |
2991 | ||
2992 | // Overridable virtuals | |
2993 | ||
2994 | // the derived class must implement this function to actually draw the item | |
2995 | // with the given index on the provided DC | |
2996 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
2997 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
2998 | ||
2999 | ||
3000 | // the derived class must implement this method to return the height of the | |
3001 | // specified item | |
3002 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
3003 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
3004 | ||
3005 | ||
3006 | // this method may be used to draw separators between the lines; note that | |
3007 | // the rectangle may be modified, typically to deflate it a bit before | |
3008 | // passing to OnDrawItem() | |
3009 | // | |
3010 | // the base class version doesn't do anything | |
3011 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
1c71765a | 3012 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); |
d55e5bfc RD |
3013 | |
3014 | ||
3015 | // this method is used to draw the items background and, maybe, a border | |
3016 | // around it | |
3017 | // | |
3018 | // the base class version implements a reasonable default behaviour which | |
3019 | // consists in drawing the selected item with the standard background | |
3020 | // colour and drawing a border around the item if it is either selected or | |
3021 | // current | |
3022 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
3023 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3024 | ||
3025 | ||
3026 | PYPRIVATE; | |
3027 | }; | |
3028 | ||
3029 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
3030 | ||
3031 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
3032 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
1c71765a | 3033 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator); |
d55e5bfc RD |
3034 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); |
3035 | ||
3036 | ||
554f62e9 | 3037 | SWIGINTERN PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
09c21d3b RD |
3038 | unsigned long cookie = 0; |
3039 | int selected = self->GetFirstSelected(cookie); | |
5a446332 | 3040 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3041 | PyObject* tup = PyTuple_New(2); |
3042 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3043 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3044 | wxPyEndBlockThreads(blocked); | |
3045 | return tup; | |
3046 | } | |
554f62e9 | 3047 | SWIGINTERN PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ |
09c21d3b | 3048 | int selected = self->GetNextSelected(cookie); |
5a446332 | 3049 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
09c21d3b RD |
3050 | PyObject* tup = PyTuple_New(2); |
3051 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
3052 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
3053 | wxPyEndBlockThreads(blocked); | |
3054 | return tup; | |
3055 | } | |
d55e5bfc RD |
3056 | |
3057 | #include <wx/htmllbox.h> | |
3058 | ||
3059 | ||
3060 | class wxPyHtmlListBox : public wxHtmlListBox | |
3061 | { | |
7449af73 | 3062 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox) |
d55e5bfc RD |
3063 | public: |
3064 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
3065 | ||
3066 | wxPyHtmlListBox(wxWindow *parent, | |
3067 | wxWindowID id = wxID_ANY, | |
3068 | const wxPoint& pos = wxDefaultPosition, | |
3069 | const wxSize& size = wxDefaultSize, | |
3070 | long style = 0, | |
3071 | const wxString& name = wxPyVListBoxNameStr) | |
3072 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
3073 | {} | |
3074 | ||
3075 | // Overridable virtuals | |
3076 | ||
3077 | // this method must be implemented in the derived class and should return | |
3078 | // the body (i.e. without <html>) of the HTML for the given item | |
3079 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
3080 | ||
3081 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
3082 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
3083 | ||
1c71765a RD |
3084 | // These are from wxVListBox |
3085 | DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator); | |
3086 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
3087 | ||
d55e5bfc RD |
3088 | // TODO: |
3089 | // // this method allows to customize the selection appearance: it may be used | |
3090 | // // to specify the colour of the text which normally has the given colour | |
3091 | // // colFg when it is inside the selection | |
3092 | // // | |
3093 | // // by default, the original colour is not used at all and all text has the | |
3094 | // // same (default for this system) colour inside selection | |
3095 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
3096 | ||
3097 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
3098 | // // background colour -- this is even more rarely used as you can change it | |
3099 | // // globally using SetSelectionBackground() | |
3100 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
3101 | ||
e9d6f3a4 RD |
3102 | |
3103 | // This method may be overriden to handle clicking on a link in | |
3104 | // the listbox. By default, clicking links is ignored. | |
3105 | virtual void OnLinkClicked(size_t n, | |
3106 | const wxHtmlLinkInfo& link); | |
d55e5bfc RD |
3107 | |
3108 | PYPRIVATE; | |
3109 | }; | |
3110 | ||
3111 | ||
3112 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
3113 | ||
3114 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
3115 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
1c71765a RD |
3116 | IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator); |
3117 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground); | |
d55e5bfc RD |
3118 | |
3119 | ||
e9d6f3a4 RD |
3120 | void wxPyHtmlListBox::OnLinkClicked(size_t n, |
3121 | const wxHtmlLinkInfo& link) { | |
3122 | bool found; | |
3123 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3124 | if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) { | |
3125 | PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0); | |
3126 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", n, obj)); | |
3127 | Py_DECREF(obj); | |
3128 | } | |
3129 | wxPyEndBlockThreads(blocked); | |
3130 | if (! found) | |
3131 | wxPyHtmlListBox::OnLinkClicked(n, link); | |
3132 | } | |
3133 | ||
3134 | ||
d55e5bfc RD |
3135 | |
3136 | ||
3137 | ||
ae8162c8 RD |
3138 | #ifndef wxHAS_TASK_BAR_ICON |
3139 | // implement dummy classes for platforms that don't have it | |
d55e5bfc RD |
3140 | |
3141 | class wxTaskBarIcon : public wxEvtHandler | |
3142 | { | |
3143 | public: | |
3144 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
3145 | }; | |
09c21d3b | 3146 | |
d55e5bfc RD |
3147 | |
3148 | class wxTaskBarIconEvent : public wxEvent | |
3149 | { | |
3150 | public: | |
3151 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
3152 | { wxPyRaiseNotImplemented(); } | |
3153 | virtual wxEvent* Clone() const { return NULL; } | |
ae8162c8 RD |
3154 | bool IsOk() const { return false; } |
3155 | bool IsIconInstalled() const { return false; } | |
3156 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString) { return false; } | |
3157 | bool RemoveIcon() { return false; } | |
3158 | bool PopupMenu(wxMenu *menu) { return false; } | |
d55e5bfc RD |
3159 | }; |
3160 | ||
3161 | enum { | |
3162 | wxEVT_TASKBAR_MOVE = 0, | |
3163 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
3164 | wxEVT_TASKBAR_LEFT_UP = 0, | |
3165 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
3166 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
3167 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
3168 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
3169 | }; | |
09c21d3b RD |
3170 | |
3171 | ||
3172 | #else | |
5e483524 RD |
3173 | // Otherwise make a class that can virtualize CreatePopupMenu |
3174 | class wxPyTaskBarIcon : public wxTaskBarIcon | |
3175 | { | |
7449af73 | 3176 | DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon) |
5e483524 RD |
3177 | public: |
3178 | wxPyTaskBarIcon() : wxTaskBarIcon() | |
3179 | {} | |
3180 | ||
3181 | wxMenu* CreatePopupMenu() { | |
3182 | wxMenu *rval = NULL; | |
3183 | bool found; | |
5a446332 | 3184 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
5e483524 RD |
3185 | if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { |
3186 | PyObject* ro; | |
3187 | wxMenu* ptr; | |
3188 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3189 | if (ro) { | |
3190 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
3191 | rval = ptr; | |
3192 | Py_DECREF(ro); | |
3193 | } | |
3194 | } | |
3195 | wxPyEndBlockThreads(blocked); | |
3196 | if (! found) | |
3197 | rval = wxTaskBarIcon::CreatePopupMenu(); | |
3198 | return rval; | |
3199 | } | |
3200 | ||
3201 | PYPRIVATE; | |
3202 | }; | |
3203 | ||
3204 | IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); | |
09c21d3b | 3205 | |
d55e5bfc RD |
3206 | #endif |
3207 | ||
554f62e9 | 3208 | SWIGINTERN void wxPyTaskBarIcon_Destroy(wxPyTaskBarIcon *self){ |
d55e5bfc | 3209 | self->RemoveIcon(); |
5e483524 | 3210 | delete self; |
d55e5bfc RD |
3211 | } |
3212 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
3213 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
3214 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
3215 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
3216 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
3217 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
554f62e9 | 3218 | SWIGINTERN PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
d55e5bfc RD |
3219 | wxArrayString arr; |
3220 | self->GetFilenames(arr); | |
3221 | return wxArrayString2PyList_helper(arr); | |
3222 | } | |
554f62e9 | 3223 | SWIGINTERN PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ |
d55e5bfc RD |
3224 | wxArrayString arr; |
3225 | self->GetPaths(arr); | |
3226 | return wxArrayString2PyList_helper(arr); | |
3227 | } | |
554f62e9 | 3228 | SWIGINTERN PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ |
d55e5bfc RD |
3229 | return wxArrayInt2PyList_helper(self->GetSelections()); |
3230 | } | |
554f62e9 | 3231 | SWIGINTERN wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style=wxCHOICEDLG_STYLE,wxPoint const &pos=wxDefaultPosition){ |
d55e5bfc RD |
3232 | return new wxSingleChoiceDialog(parent, message, caption, |
3233 | choices, choices_array, NULL, style, pos); | |
3234 | } | |
c1cb24a4 | 3235 | static const wxString wxPyGetPasswordFromUserPromptStr(wxGetPasswordFromUserPromptStr); |
d55e5bfc RD |
3236 | |
3237 | #include <wx/mdi.h> | |
3238 | ||
3239 | // C++ version of Python aware wxWindow | |
3240 | class wxPyWindow : public wxWindow | |
3241 | { | |
3242 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
3243 | public: | |
3244 | wxPyWindow() : wxWindow() {} | |
3245 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
3246 | const wxPoint& pos = wxDefaultPosition, | |
3247 | const wxSize& size = wxDefaultSize, | |
3248 | long style = 0, | |
3249 | const wxString& name = wxPyPanelNameStr) | |
3250 | : wxWindow(parent, id, pos, size, style, name) {} | |
3251 | ||
caef1a4d | 3252 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc | 3253 | |
60d5fcc1 RD |
3254 | bool DoEraseBackground(wxDC* dc) { |
3255 | #ifdef __WXMSW__ | |
3256 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3257 | #else | |
3258 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3259 | dc->Clear(); | |
3260 | return true; | |
3261 | #endif | |
3262 | } | |
3263 | ||
d55e5bfc RD |
3264 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
3265 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3266 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3267 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3268 | ||
3269 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3270 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3271 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3272 | ||
3273 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3274 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3275 | ||
3276 | DEC_PYCALLBACK__(InitDialog); | |
3277 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3278 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3279 | DEC_PYCALLBACK_BOOL_(Validate); | |
3280 | ||
3281 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3282 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3283 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3284 | ||
3285 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3286 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3287 | ||
caef1a4d | 3288 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 3289 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3290 | |
51b83b37 RD |
3291 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3292 | ||
8d38bd1d RD |
3293 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3294 | ||
d55e5bfc RD |
3295 | PYPRIVATE; |
3296 | }; | |
3297 | ||
3298 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
3299 | ||
3300 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
3301 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
3302 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
3303 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
3304 | ||
3305 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
3306 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
3307 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
3308 | ||
3309 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
3310 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
3311 | ||
3312 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
3313 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
3314 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
3315 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
3316 | ||
3317 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
3318 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
3319 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
3320 | ||
3321 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
3322 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
3323 | ||
caef1a4d | 3324 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
caef1a4d | 3325 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
51b83b37 RD |
3326 | |
3327 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, HasTransparentBackground); | |
d55e5bfc | 3328 | |
8d38bd1d RD |
3329 | IMP_PYCALLBACK_VOID_(wxPyWindow, wxWindow, OnInternalIdle); |
3330 | ||
d55e5bfc RD |
3331 | // C++ version of Python aware wxPanel |
3332 | class wxPyPanel : public wxPanel | |
3333 | { | |
3334 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
3335 | public: | |
3336 | wxPyPanel() : wxPanel() {} | |
3337 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
3338 | const wxPoint& pos = wxDefaultPosition, | |
3339 | const wxSize& size = wxDefaultSize, | |
3340 | long style = 0, | |
3341 | const wxString& name = wxPyPanelNameStr) | |
3342 | : wxPanel(parent, id, pos, size, style, name) {} | |
3343 | ||
caef1a4d | 3344 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
60d5fcc1 RD |
3345 | bool DoEraseBackground(wxDC* dc) { |
3346 | #ifdef __WXMSW__ | |
3347 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3348 | #else | |
3349 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3350 | dc->Clear(); | |
3351 | return true; | |
3352 | #endif | |
3353 | } | |
caef1a4d | 3354 | |
d55e5bfc RD |
3355 | |
3356 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3357 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3358 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3359 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3360 | ||
3361 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3362 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3363 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3364 | ||
3365 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3366 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3367 | ||
3368 | DEC_PYCALLBACK__(InitDialog); | |
3369 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3370 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3371 | DEC_PYCALLBACK_BOOL_(Validate); | |
3372 | ||
3373 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3374 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3375 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3376 | ||
3377 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3378 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3379 | ||
caef1a4d | 3380 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 3381 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3382 | |
51b83b37 RD |
3383 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3384 | ||
8d38bd1d RD |
3385 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3386 | ||
d55e5bfc RD |
3387 | PYPRIVATE; |
3388 | }; | |
3389 | ||
3390 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
3391 | ||
3392 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
3393 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
3394 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
3395 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
3396 | ||
3397 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
3398 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
3399 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
3400 | ||
3401 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
3402 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
3403 | ||
3404 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
3405 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
3406 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
3407 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
3408 | ||
3409 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
3410 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
3411 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
3412 | ||
3413 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
3414 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
3415 | ||
caef1a4d | 3416 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
caef1a4d | 3417 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 3418 | |
51b83b37 RD |
3419 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, HasTransparentBackground); |
3420 | ||
8d38bd1d RD |
3421 | IMP_PYCALLBACK_VOID_(wxPyPanel, wxPanel, OnInternalIdle); |
3422 | ||
d55e5bfc RD |
3423 | // C++ version of Python aware wxScrolledWindow |
3424 | class wxPyScrolledWindow : public wxScrolledWindow | |
3425 | { | |
3426 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
3427 | public: | |
3428 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
3429 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
3430 | const wxPoint& pos = wxDefaultPosition, | |
3431 | const wxSize& size = wxDefaultSize, | |
3432 | long style = 0, | |
3433 | const wxString& name = wxPyPanelNameStr) | |
3434 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
3435 | ||
caef1a4d | 3436 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
60d5fcc1 RD |
3437 | bool DoEraseBackground(wxDC* dc) { |
3438 | #ifdef __WXMSW__ | |
3439 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
3440 | #else | |
3441 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
3442 | dc->Clear(); | |
3443 | return true; | |
3444 | #endif | |
3445 | } | |
d55e5bfc RD |
3446 | |
3447 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
3448 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
3449 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
3450 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
3451 | ||
3452 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
3453 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
3454 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
3455 | ||
3456 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
3457 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
3458 | ||
3459 | DEC_PYCALLBACK__(InitDialog); | |
3460 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
3461 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
3462 | DEC_PYCALLBACK_BOOL_(Validate); | |
3463 | ||
3464 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
3465 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
3466 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
3467 | ||
3468 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
3469 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
3470 | ||
caef1a4d | 3471 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 3472 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 3473 | |
51b83b37 RD |
3474 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
3475 | ||
8d38bd1d RD |
3476 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
3477 | ||
d55e5bfc RD |
3478 | PYPRIVATE; |
3479 | }; | |
3480 | ||
3481 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
3482 | ||
3483 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
3484 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
3485 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
3486 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
3487 | ||
3488 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
3489 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
3490 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
3491 | ||
3492 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
3493 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
3494 | ||
3495 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
3496 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
3497 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
3498 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
3499 | ||
3500 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
3501 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
3502 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
3503 | ||
3504 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
3505 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
3506 | ||
caef1a4d | 3507 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
caef1a4d RD |
3508 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
3509 | ||
51b83b37 | 3510 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, HasTransparentBackground); |
d55e5bfc | 3511 | |
8d38bd1d RD |
3512 | IMP_PYCALLBACK_VOID_(wxPyScrolledWindow, wxScrolledWindow, OnInternalIdle); |
3513 | ||
d55e5bfc RD |
3514 | |
3515 | #include "wx/wxPython/printfw.h" | |
3516 | ||
3517 | ||
3518 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
3519 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
554f62e9 | 3520 | SWIGINTERN PyObject *wxPrintData_GetPrivData(wxPrintData *self){ |
b9d6a5f3 | 3521 | PyObject* data; |
5a446332 | 3522 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3523 | data = PyString_FromStringAndSize(self->GetPrivData(), |
3524 | self->GetPrivDataLen()); | |
3525 | wxPyEndBlockThreads(blocked); | |
3526 | return data; | |
3527 | } | |
554f62e9 | 3528 | SWIGINTERN void wxPrintData_SetPrivData(wxPrintData *self,PyObject *data){ |
b9d6a5f3 RD |
3529 | if (! PyString_Check(data)) { |
3530 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
3531 | "Expected string object")); | |
3532 | return /* NULL */ ; | |
3533 | } | |
3534 | ||
5a446332 | 3535 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
b9d6a5f3 RD |
3536 | self->SetPrivData(PyString_AS_STRING(data), PyString_GET_SIZE(data)); |
3537 | wxPyEndBlockThreads(blocked); | |
3538 | } | |
d55e5bfc RD |
3539 | |
3540 | ||
c1cb24a4 | 3541 | IMPLEMENT_ABSTRACT_CLASS(wxPyPrintout, wxPrintout); |
d55e5bfc RD |
3542 | |
3543 | // Since this one would be tough and ugly to do with the Macros... | |
3544 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
ae8162c8 | 3545 | bool hadErr = false; |
d55e5bfc RD |
3546 | bool found; |
3547 | ||
5a446332 | 3548 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
3549 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { |
3550 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
3551 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
3552 | PyObject* val; | |
3553 | ||
3554 | val = PyTuple_GetItem(result, 0); | |
3555 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
ae8162c8 | 3556 | else hadErr = true; |
d55e5bfc RD |
3557 | |
3558 | val = PyTuple_GetItem(result, 1); | |
3559 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
ae8162c8 | 3560 | else hadErr = true; |
d55e5bfc RD |
3561 | |
3562 | val = PyTuple_GetItem(result, 2); | |
3563 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
ae8162c8 | 3564 | else hadErr = true; |
d55e5bfc RD |
3565 | |
3566 | val = PyTuple_GetItem(result, 3); | |
3567 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
ae8162c8 | 3568 | else hadErr = true; |
d55e5bfc RD |
3569 | } |
3570 | else | |
ae8162c8 | 3571 | hadErr = true; |
d55e5bfc RD |
3572 | |
3573 | if (hadErr) { | |
3574 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
3575 | PyErr_Print(); | |
3576 | } | |
3577 | Py_DECREF(result); | |
3578 | } | |
3579 | wxPyEndBlockThreads(blocked); | |
3580 | if (! found) | |
3581 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
3582 | } | |
3583 | ||
d55e5bfc RD |
3584 | |
3585 | ||
3586 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
3587 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
3588 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
3589 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
3590 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
3591 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
3592 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
3593 | ||
3594 | ||
3595 | ||
3596 | ||
3597 | ||
ae8162c8 | 3598 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ |
b06b3e70 | 3599 | bool CBNAME(wxPreviewCanvas* a, wxDC& b) |
d55e5bfc RD |
3600 | |
3601 | ||
ae8162c8 RD |
3602 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ |
3603 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
3604 | bool rval=false; \ | |
3605 | bool found; \ | |
7449af73 | 3606 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); \ |
ae8162c8 RD |
3607 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ |
3608 | PyObject* win = wxPyMake_wxObject(a,false); \ | |
3609 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
3610 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc)); \ | |
3611 | Py_DECREF(win); \ | |
3612 | Py_DECREF(dc); \ | |
3613 | } \ | |
3614 | wxPyEndBlockThreads(blocked); \ | |
3615 | if (! found) \ | |
3616 | rval = PCLASS::CBNAME(a, b); \ | |
3617 | return rval; \ | |
b06b3e70 | 3618 | } |
d55e5bfc RD |
3619 | |
3620 | ||
3621 | ||
3622 | ||
3623 | class wxPyPrintPreview : public wxPrintPreview | |
3624 | { | |
3625 | DECLARE_CLASS(wxPyPrintPreview) | |
3626 | public: | |
3627 | wxPyPrintPreview(wxPyPrintout* printout, | |
3628 | wxPyPrintout* printoutForPrinting, | |
3629 | wxPrintDialogData* data=NULL) | |
3630 | : wxPrintPreview(printout, printoutForPrinting, data) | |
3631 | {} | |
3632 | wxPyPrintPreview(wxPyPrintout* printout, | |
3633 | wxPyPrintout* printoutForPrinting, | |
7449af73 | 3634 | wxPrintData* data) |
d55e5bfc RD |
3635 | : wxPrintPreview(printout, printoutForPrinting, data) |
3636 | {} | |
3637 | ||
3638 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
3639 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
3640 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
3641 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
3642 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
3643 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
3644 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
3645 | ||
3646 | PYPRIVATE; | |
3647 | }; | |
3648 | ||
3649 | // Stupid renamed classes... Fix this in 2.5... | |
3650 | #if defined(__WXMSW__) | |
3651 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
3652 | #elif defined(__WXMAC__) | |
3653 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
3654 | #else | |
3655 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
3656 | #endif | |
3657 | ||
3658 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
3659 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
3660 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
3661 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
3662 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
3663 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
3664 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
3665 | ||
3666 | ||
3667 | class wxPyPreviewFrame : public wxPreviewFrame | |
3668 | { | |
7449af73 | 3669 | DECLARE_CLASS(wxPyPreviewFrame) |
d55e5bfc RD |
3670 | public: |
3671 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
3672 | const wxString& title, | |
3673 | const wxPoint& pos = wxDefaultPosition, | |
3674 | const wxSize& size = wxDefaultSize, | |
3675 | long style = wxDEFAULT_FRAME_STYLE, | |
3676 | const wxString& name = wxPyFrameNameStr) | |
3677 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
3678 | {} | |
3679 | ||
3680 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
3681 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
3682 | ||
3683 | DEC_PYCALLBACK_VOID_(Initialize); | |
3684 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
3685 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
3686 | ||
3687 | PYPRIVATE; | |
3688 | }; | |
3689 | ||
3690 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
3691 | ||
3692 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
3693 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
3694 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
3695 | ||
3696 | ||
3697 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
3698 | { | |
7449af73 | 3699 | DECLARE_CLASS(wxPyPreviewControlBar) |
d55e5bfc RD |
3700 | public: |
3701 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
3702 | long buttons, | |
3703 | wxWindow *parent, | |
3704 | const wxPoint& pos = wxDefaultPosition, | |
3705 | const wxSize& size = wxDefaultSize, | |
3706 | long style = 0, | |
3707 | const wxString& name = wxPyPanelNameStr) | |
3708 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
3709 | {} | |
3710 | ||
3711 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
3712 | ||
3713 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
3714 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
3715 | ||
3716 | PYPRIVATE; | |
3717 | }; | |
3718 | ||
3719 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
3720 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
3721 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
3722 | ||
3723 | #ifdef __cplusplus | |
3724 | extern "C" { | |
3725 | #endif | |
554f62e9 RD |
3726 | SWIGINTERN PyObject *_wrap_new_Panel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3727 | PyObject *resultobj = 0; | |
3728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3729 | int arg2 = (int) (int)-1 ; | |
3730 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3731 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3732 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3733 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3734 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3735 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
3736 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3737 | wxPanel *result = 0 ; | |
3738 | void *argp1 = 0 ; | |
3739 | int res1 = 0 ; | |
3740 | int val2 ; | |
3741 | int ecode2 = 0 ; | |
3742 | wxPoint temp3 ; | |
3743 | wxSize temp4 ; | |
3744 | long val5 ; | |
3745 | int ecode5 = 0 ; | |
3746 | bool temp6 = false ; | |
3747 | PyObject * obj0 = 0 ; | |
3748 | PyObject * obj1 = 0 ; | |
3749 | PyObject * obj2 = 0 ; | |
3750 | PyObject * obj3 = 0 ; | |
3751 | PyObject * obj4 = 0 ; | |
3752 | PyObject * obj5 = 0 ; | |
3753 | char * kwnames[] = { | |
3754 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3755 | }; | |
3756 | ||
3757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
3758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3759 | if (!SWIG_IsOK(res1)) { | |
3760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Panel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
3761 | } | |
3762 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
3763 | if (obj1) { | |
3764 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3765 | if (!SWIG_IsOK(ecode2)) { | |
3766 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Panel" "', expected argument " "2"" of type '" "int""'"); | |
3767 | } | |
3768 | arg2 = static_cast< int >(val2); | |
3769 | } | |
3770 | if (obj2) { | |
d55e5bfc | 3771 | { |
554f62e9 RD |
3772 | arg3 = &temp3; |
3773 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 3774 | } |
554f62e9 RD |
3775 | } |
3776 | if (obj3) { | |
d55e5bfc | 3777 | { |
554f62e9 RD |
3778 | arg4 = &temp4; |
3779 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3780 | } |
554f62e9 RD |
3781 | } |
3782 | if (obj4) { | |
3783 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
3784 | if (!SWIG_IsOK(ecode5)) { | |
3785 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Panel" "', expected argument " "5"" of type '" "long""'"); | |
3786 | } | |
3787 | arg5 = static_cast< long >(val5); | |
3788 | } | |
3789 | if (obj5) { | |
d55e5bfc | 3790 | { |
554f62e9 RD |
3791 | arg6 = wxString_in_helper(obj5); |
3792 | if (arg6 == NULL) SWIG_fail; | |
3793 | temp6 = true; | |
3794 | } | |
3795 | } | |
3796 | { | |
3797 | if (!wxPyCheckForApp()) SWIG_fail; | |
3798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3799 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_NEW | 0 ); | |
3804 | { | |
3805 | if (temp6) | |
3806 | delete arg6; | |
3807 | } | |
3808 | return resultobj; | |
3809 | fail: | |
3810 | { | |
3811 | if (temp6) | |
3812 | delete arg6; | |
3813 | } | |
3814 | return NULL; | |
d55e5bfc RD |
3815 | } |
3816 | ||
3817 | ||
554f62e9 RD |
3818 | SWIGINTERN PyObject *_wrap_new_PrePanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3819 | PyObject *resultobj = 0; | |
3820 | wxPanel *result = 0 ; | |
3821 | ||
3822 | if (!SWIG_Python_UnpackTuple(args,"new_PrePanel",0,0,0)) SWIG_fail; | |
3823 | { | |
3824 | if (!wxPyCheckForApp()) SWIG_fail; | |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3826 | result = (wxPanel *)new wxPanel(); | |
3827 | wxPyEndAllowThreads(__tstate); | |
3828 | if (PyErr_Occurred()) SWIG_fail; | |
3829 | } | |
3830 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPanel, SWIG_POINTER_OWN | 0 ); | |
3831 | return resultobj; | |
3832 | fail: | |
3833 | return NULL; | |
3834 | } | |
3835 | ||
3836 | ||
3837 | SWIGINTERN PyObject *_wrap_Panel_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3838 | PyObject *resultobj = 0; | |
3839 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3840 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3841 | int arg3 = (int) (int)-1 ; | |
3842 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3843 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3844 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3845 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3846 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
3847 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3848 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3849 | bool result; | |
3850 | void *argp1 = 0 ; | |
3851 | int res1 = 0 ; | |
3852 | void *argp2 = 0 ; | |
3853 | int res2 = 0 ; | |
3854 | int val3 ; | |
3855 | int ecode3 = 0 ; | |
3856 | wxPoint temp4 ; | |
3857 | wxSize temp5 ; | |
3858 | long val6 ; | |
3859 | int ecode6 = 0 ; | |
3860 | bool temp7 = false ; | |
3861 | PyObject * obj0 = 0 ; | |
3862 | PyObject * obj1 = 0 ; | |
3863 | PyObject * obj2 = 0 ; | |
3864 | PyObject * obj3 = 0 ; | |
3865 | PyObject * obj4 = 0 ; | |
3866 | PyObject * obj5 = 0 ; | |
3867 | PyObject * obj6 = 0 ; | |
3868 | char * kwnames[] = { | |
3869 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3870 | }; | |
3871 | ||
3872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
3873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3874 | if (!SWIG_IsOK(res1)) { | |
3875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_Create" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3876 | } | |
3877 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3878 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
3879 | if (!SWIG_IsOK(res2)) { | |
3880 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Panel_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
3881 | } | |
3882 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
3883 | if (obj2) { | |
3884 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3885 | if (!SWIG_IsOK(ecode3)) { | |
3886 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Panel_Create" "', expected argument " "3"" of type '" "int""'"); | |
3887 | } | |
3888 | arg3 = static_cast< int >(val3); | |
3889 | } | |
3890 | if (obj3) { | |
d55e5bfc | 3891 | { |
554f62e9 RD |
3892 | arg4 = &temp4; |
3893 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 3894 | } |
554f62e9 RD |
3895 | } |
3896 | if (obj4) { | |
d55e5bfc | 3897 | { |
554f62e9 RD |
3898 | arg5 = &temp5; |
3899 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 3900 | } |
554f62e9 RD |
3901 | } |
3902 | if (obj5) { | |
3903 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
3904 | if (!SWIG_IsOK(ecode6)) { | |
3905 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Panel_Create" "', expected argument " "6"" of type '" "long""'"); | |
3906 | } | |
3907 | arg6 = static_cast< long >(val6); | |
3908 | } | |
3909 | if (obj6) { | |
d55e5bfc | 3910 | { |
554f62e9 RD |
3911 | arg7 = wxString_in_helper(obj6); |
3912 | if (arg7 == NULL) SWIG_fail; | |
3913 | temp7 = true; | |
d55e5bfc | 3914 | } |
554f62e9 RD |
3915 | } |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3919 | wxPyEndAllowThreads(__tstate); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | } | |
3922 | { | |
3923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3924 | } | |
3925 | { | |
3926 | if (temp7) | |
3927 | delete arg7; | |
3928 | } | |
3929 | return resultobj; | |
3930 | fail: | |
3931 | { | |
3932 | if (temp7) | |
3933 | delete arg7; | |
3934 | } | |
3935 | return NULL; | |
b519803b RD |
3936 | } |
3937 | ||
3938 | ||
554f62e9 RD |
3939 | SWIGINTERN PyObject *_wrap_Panel_SetFocusIgnoringChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3940 | PyObject *resultobj = 0; | |
3941 | wxPanel *arg1 = (wxPanel *) 0 ; | |
3942 | void *argp1 = 0 ; | |
3943 | int res1 = 0 ; | |
3944 | PyObject *swig_obj[1] ; | |
3945 | ||
3946 | if (!args) SWIG_fail; | |
3947 | swig_obj[0] = args; | |
3948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPanel, 0 | 0 ); | |
3949 | if (!SWIG_IsOK(res1)) { | |
3950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Panel_SetFocusIgnoringChildren" "', expected argument " "1"" of type '" "wxPanel *""'"); | |
3951 | } | |
3952 | arg1 = reinterpret_cast< wxPanel * >(argp1); | |
3953 | { | |
3954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3955 | (arg1)->SetFocusIgnoringChildren(); | |
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
3959 | resultobj = SWIG_Py_Void(); | |
3960 | return resultobj; | |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
3966 | SWIGINTERN PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3967 | PyObject *resultobj = 0; | |
3968 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3969 | SwigValueWrapper<wxVisualAttributes > result; | |
3970 | int val1 ; | |
3971 | int ecode1 = 0 ; | |
3972 | PyObject * obj0 = 0 ; | |
3973 | char * kwnames[] = { | |
3974 | (char *) "variant", NULL | |
3975 | }; | |
3976 | ||
3977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
3978 | if (obj0) { | |
3979 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
3980 | if (!SWIG_IsOK(ecode1)) { | |
3981 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Panel_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
3982 | } | |
3983 | arg1 = static_cast< wxWindowVariant >(val1); | |
3984 | } | |
3985 | { | |
3986 | if (!wxPyCheckForApp()) SWIG_fail; | |
3987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3988 | result = wxPanel::GetClassDefaultAttributes(arg1); | |
3989 | wxPyEndAllowThreads(__tstate); | |
3990 | if (PyErr_Occurred()) SWIG_fail; | |
3991 | } | |
3992 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
3999 | SWIGINTERN PyObject *Panel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4000 | PyObject *obj; | |
4001 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4002 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPanel, SWIG_NewClientData(obj)); | |
4003 | return SWIG_Py_Void(); | |
4004 | } | |
4005 | ||
4006 | SWIGINTERN PyObject *Panel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4007 | return SWIG_Python_InitShadowInstance(args); | |
4008 | } | |
4009 | ||
4010 | SWIGINTERN PyObject *_wrap_new_ScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4011 | PyObject *resultobj = 0; | |
4012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4013 | int arg2 = (int) (int)-1 ; | |
4014 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4015 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4016 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4017 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4018 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
4019 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
4020 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4021 | wxScrolledWindow *result = 0 ; | |
4022 | void *argp1 = 0 ; | |
4023 | int res1 = 0 ; | |
4024 | int val2 ; | |
4025 | int ecode2 = 0 ; | |
4026 | wxPoint temp3 ; | |
4027 | wxSize temp4 ; | |
4028 | long val5 ; | |
4029 | int ecode5 = 0 ; | |
4030 | bool temp6 = false ; | |
4031 | PyObject * obj0 = 0 ; | |
4032 | PyObject * obj1 = 0 ; | |
4033 | PyObject * obj2 = 0 ; | |
4034 | PyObject * obj3 = 0 ; | |
4035 | PyObject * obj4 = 0 ; | |
4036 | PyObject * obj5 = 0 ; | |
4037 | char * kwnames[] = { | |
4038 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4039 | }; | |
4040 | ||
4041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
4042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4043 | if (!SWIG_IsOK(res1)) { | |
4044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
4045 | } | |
4046 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
4047 | if (obj1) { | |
4048 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4049 | if (!SWIG_IsOK(ecode2)) { | |
4050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
4051 | } | |
4052 | arg2 = static_cast< int >(val2); | |
4053 | } | |
4054 | if (obj2) { | |
b519803b | 4055 | { |
554f62e9 RD |
4056 | arg3 = &temp3; |
4057 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
f20a2e1f | 4058 | } |
554f62e9 RD |
4059 | } |
4060 | if (obj3) { | |
f20a2e1f | 4061 | { |
554f62e9 RD |
4062 | arg4 = &temp4; |
4063 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 4064 | } |
554f62e9 RD |
4065 | } |
4066 | if (obj4) { | |
4067 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
4068 | if (!SWIG_IsOK(ecode5)) { | |
4069 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
4070 | } | |
4071 | arg5 = static_cast< long >(val5); | |
4072 | } | |
4073 | if (obj5) { | |
f20a2e1f | 4074 | { |
554f62e9 RD |
4075 | arg6 = wxString_in_helper(obj5); |
4076 | if (arg6 == NULL) SWIG_fail; | |
4077 | temp6 = true; | |
f20a2e1f | 4078 | } |
554f62e9 RD |
4079 | } |
4080 | { | |
4081 | if (!wxPyCheckForApp()) SWIG_fail; | |
4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4083 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
4088 | { | |
4089 | if (temp6) | |
4090 | delete arg6; | |
4091 | } | |
4092 | return resultobj; | |
4093 | fail: | |
4094 | { | |
4095 | if (temp6) | |
4096 | delete arg6; | |
4097 | } | |
4098 | return NULL; | |
f20a2e1f RD |
4099 | } |
4100 | ||
4101 | ||
554f62e9 RD |
4102 | SWIGINTERN PyObject *_wrap_new_PreScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4103 | PyObject *resultobj = 0; | |
4104 | wxScrolledWindow *result = 0 ; | |
4105 | ||
4106 | if (!SWIG_Python_UnpackTuple(args,"new_PreScrolledWindow",0,0,0)) SWIG_fail; | |
4107 | { | |
4108 | if (!wxPyCheckForApp()) SWIG_fail; | |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4110 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
4111 | wxPyEndAllowThreads(__tstate); | |
4112 | if (PyErr_Occurred()) SWIG_fail; | |
4113 | } | |
4114 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
4115 | return resultobj; | |
4116 | fail: | |
4117 | return NULL; | |
4118 | } | |
4119 | ||
4120 | ||
4121 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4122 | PyObject *resultobj = 0; | |
4123 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4124 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4125 | int arg3 = (int) (int)-1 ; | |
4126 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4127 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4128 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4129 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4130 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
4131 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4132 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4133 | bool result; | |
4134 | void *argp1 = 0 ; | |
4135 | int res1 = 0 ; | |
4136 | void *argp2 = 0 ; | |
4137 | int res2 = 0 ; | |
4138 | int val3 ; | |
4139 | int ecode3 = 0 ; | |
4140 | wxPoint temp4 ; | |
4141 | wxSize temp5 ; | |
4142 | long val6 ; | |
4143 | int ecode6 = 0 ; | |
4144 | bool temp7 = false ; | |
4145 | PyObject * obj0 = 0 ; | |
4146 | PyObject * obj1 = 0 ; | |
4147 | PyObject * obj2 = 0 ; | |
4148 | PyObject * obj3 = 0 ; | |
4149 | PyObject * obj4 = 0 ; | |
4150 | PyObject * obj5 = 0 ; | |
4151 | PyObject * obj6 = 0 ; | |
4152 | char * kwnames[] = { | |
4153 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4154 | }; | |
4155 | ||
4156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
4157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4158 | if (!SWIG_IsOK(res1)) { | |
4159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Create" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4160 | } | |
4161 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4162 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
4163 | if (!SWIG_IsOK(res2)) { | |
4164 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
4165 | } | |
4166 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
4167 | if (obj2) { | |
4168 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4169 | if (!SWIG_IsOK(ecode3)) { | |
4170 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
4171 | } | |
4172 | arg3 = static_cast< int >(val3); | |
4173 | } | |
4174 | if (obj3) { | |
d55e5bfc | 4175 | { |
554f62e9 RD |
4176 | arg4 = &temp4; |
4177 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4178 | } | |
4179 | } | |
4180 | if (obj4) { | |
d55e5bfc | 4181 | { |
554f62e9 RD |
4182 | arg5 = &temp5; |
4183 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 4184 | } |
554f62e9 RD |
4185 | } |
4186 | if (obj5) { | |
4187 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
4188 | if (!SWIG_IsOK(ecode6)) { | |
4189 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
4190 | } | |
4191 | arg6 = static_cast< long >(val6); | |
4192 | } | |
4193 | if (obj6) { | |
d55e5bfc | 4194 | { |
554f62e9 RD |
4195 | arg7 = wxString_in_helper(obj6); |
4196 | if (arg7 == NULL) SWIG_fail; | |
4197 | temp7 = true; | |
d55e5bfc | 4198 | } |
554f62e9 RD |
4199 | } |
4200 | { | |
4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4202 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4203 | wxPyEndAllowThreads(__tstate); | |
4204 | if (PyErr_Occurred()) SWIG_fail; | |
4205 | } | |
4206 | { | |
4207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4208 | } | |
4209 | { | |
4210 | if (temp7) | |
4211 | delete arg7; | |
4212 | } | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | { | |
4216 | if (temp7) | |
4217 | delete arg7; | |
4218 | } | |
4219 | return NULL; | |
4220 | } | |
4221 | ||
4222 | ||
4223 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4224 | PyObject *resultobj = 0; | |
4225 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4226 | int arg2 ; | |
4227 | int arg3 ; | |
4228 | int arg4 ; | |
4229 | int arg5 ; | |
4230 | int arg6 = (int) 0 ; | |
4231 | int arg7 = (int) 0 ; | |
4232 | bool arg8 = (bool) false ; | |
4233 | void *argp1 = 0 ; | |
4234 | int res1 = 0 ; | |
4235 | int val2 ; | |
4236 | int ecode2 = 0 ; | |
4237 | int val3 ; | |
4238 | int ecode3 = 0 ; | |
4239 | int val4 ; | |
4240 | int ecode4 = 0 ; | |
4241 | int val5 ; | |
4242 | int ecode5 = 0 ; | |
4243 | int val6 ; | |
4244 | int ecode6 = 0 ; | |
4245 | int val7 ; | |
4246 | int ecode7 = 0 ; | |
4247 | bool val8 ; | |
4248 | int ecode8 = 0 ; | |
4249 | PyObject * obj0 = 0 ; | |
4250 | PyObject * obj1 = 0 ; | |
4251 | PyObject * obj2 = 0 ; | |
4252 | PyObject * obj3 = 0 ; | |
4253 | PyObject * obj4 = 0 ; | |
4254 | PyObject * obj5 = 0 ; | |
4255 | PyObject * obj6 = 0 ; | |
4256 | PyObject * obj7 = 0 ; | |
4257 | char * kwnames[] = { | |
4258 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
4259 | }; | |
4260 | ||
4261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
4262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4263 | if (!SWIG_IsOK(res1)) { | |
4264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4265 | } | |
4266 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4267 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4268 | if (!SWIG_IsOK(ecode2)) { | |
4269 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "2"" of type '" "int""'"); | |
4270 | } | |
4271 | arg2 = static_cast< int >(val2); | |
4272 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4273 | if (!SWIG_IsOK(ecode3)) { | |
4274 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "3"" of type '" "int""'"); | |
4275 | } | |
4276 | arg3 = static_cast< int >(val3); | |
4277 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
4278 | if (!SWIG_IsOK(ecode4)) { | |
4279 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "4"" of type '" "int""'"); | |
4280 | } | |
4281 | arg4 = static_cast< int >(val4); | |
4282 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
4283 | if (!SWIG_IsOK(ecode5)) { | |
4284 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "5"" of type '" "int""'"); | |
4285 | } | |
4286 | arg5 = static_cast< int >(val5); | |
4287 | if (obj5) { | |
4288 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
4289 | if (!SWIG_IsOK(ecode6)) { | |
4290 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "6"" of type '" "int""'"); | |
4291 | } | |
4292 | arg6 = static_cast< int >(val6); | |
4293 | } | |
4294 | if (obj6) { | |
4295 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
4296 | if (!SWIG_IsOK(ecode7)) { | |
4297 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "7"" of type '" "int""'"); | |
4298 | } | |
4299 | arg7 = static_cast< int >(val7); | |
4300 | } | |
4301 | if (obj7) { | |
4302 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
4303 | if (!SWIG_IsOK(ecode8)) { | |
4304 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ScrolledWindow_SetScrollbars" "', expected argument " "8"" of type '" "bool""'"); | |
4305 | } | |
4306 | arg8 = static_cast< bool >(val8); | |
4307 | } | |
4308 | { | |
4309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4310 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
4311 | wxPyEndAllowThreads(__tstate); | |
4312 | if (PyErr_Occurred()) SWIG_fail; | |
4313 | } | |
4314 | resultobj = SWIG_Py_Void(); | |
4315 | return resultobj; | |
4316 | fail: | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
4321 | SWIGINTERN PyObject *_wrap_ScrolledWindow_Scroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4322 | PyObject *resultobj = 0; | |
4323 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4324 | int arg2 ; | |
4325 | int arg3 ; | |
4326 | void *argp1 = 0 ; | |
4327 | int res1 = 0 ; | |
4328 | int val2 ; | |
4329 | int ecode2 = 0 ; | |
4330 | int val3 ; | |
4331 | int ecode3 = 0 ; | |
4332 | PyObject * obj0 = 0 ; | |
4333 | PyObject * obj1 = 0 ; | |
4334 | PyObject * obj2 = 0 ; | |
4335 | char * kwnames[] = { | |
4336 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4337 | }; | |
4338 | ||
4339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4341 | if (!SWIG_IsOK(res1)) { | |
4342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_Scroll" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4343 | } | |
4344 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4345 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4346 | if (!SWIG_IsOK(ecode2)) { | |
4347 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_Scroll" "', expected argument " "2"" of type '" "int""'"); | |
4348 | } | |
4349 | arg2 = static_cast< int >(val2); | |
4350 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4351 | if (!SWIG_IsOK(ecode3)) { | |
4352 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_Scroll" "', expected argument " "3"" of type '" "int""'"); | |
4353 | } | |
4354 | arg3 = static_cast< int >(val3); | |
4355 | { | |
4356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4357 | (arg1)->Scroll(arg2,arg3); | |
4358 | wxPyEndAllowThreads(__tstate); | |
4359 | if (PyErr_Occurred()) SWIG_fail; | |
4360 | } | |
4361 | resultobj = SWIG_Py_Void(); | |
4362 | return resultobj; | |
4363 | fail: | |
4364 | return NULL; | |
4365 | } | |
4366 | ||
4367 | ||
4368 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4369 | PyObject *resultobj = 0; | |
4370 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4371 | int arg2 ; | |
4372 | int result; | |
4373 | void *argp1 = 0 ; | |
4374 | int res1 = 0 ; | |
4375 | int val2 ; | |
4376 | int ecode2 = 0 ; | |
4377 | PyObject * obj0 = 0 ; | |
4378 | PyObject * obj1 = 0 ; | |
4379 | char * kwnames[] = { | |
4380 | (char *) "self",(char *) "orient", NULL | |
4381 | }; | |
4382 | ||
4383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4385 | if (!SWIG_IsOK(res1)) { | |
4386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4387 | } | |
4388 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4389 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4390 | if (!SWIG_IsOK(ecode2)) { | |
4391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_GetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4392 | } | |
4393 | arg2 = static_cast< int >(val2); | |
4394 | { | |
4395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4396 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
4397 | wxPyEndAllowThreads(__tstate); | |
4398 | if (PyErr_Occurred()) SWIG_fail; | |
4399 | } | |
4400 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4401 | return resultobj; | |
4402 | fail: | |
4403 | return NULL; | |
4404 | } | |
4405 | ||
4406 | ||
4407 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4408 | PyObject *resultobj = 0; | |
4409 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4410 | int arg2 ; | |
4411 | int arg3 ; | |
4412 | void *argp1 = 0 ; | |
4413 | int res1 = 0 ; | |
4414 | int val2 ; | |
4415 | int ecode2 = 0 ; | |
4416 | int val3 ; | |
4417 | int ecode3 = 0 ; | |
4418 | PyObject * obj0 = 0 ; | |
4419 | PyObject * obj1 = 0 ; | |
4420 | PyObject * obj2 = 0 ; | |
4421 | char * kwnames[] = { | |
4422 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
4423 | }; | |
4424 | ||
4425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4427 | if (!SWIG_IsOK(res1)) { | |
4428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4429 | } | |
4430 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4431 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4432 | if (!SWIG_IsOK(ecode2)) { | |
4433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "2"" of type '" "int""'"); | |
4434 | } | |
4435 | arg2 = static_cast< int >(val2); | |
4436 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4437 | if (!SWIG_IsOK(ecode3)) { | |
4438 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollPageSize" "', expected argument " "3"" of type '" "int""'"); | |
4439 | } | |
4440 | arg3 = static_cast< int >(val3); | |
4441 | { | |
4442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4443 | (arg1)->SetScrollPageSize(arg2,arg3); | |
4444 | wxPyEndAllowThreads(__tstate); | |
4445 | if (PyErr_Occurred()) SWIG_fail; | |
4446 | } | |
4447 | resultobj = SWIG_Py_Void(); | |
4448 | return resultobj; | |
4449 | fail: | |
4450 | return NULL; | |
4451 | } | |
4452 | ||
4453 | ||
4454 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4455 | PyObject *resultobj = 0; | |
4456 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4457 | int arg2 ; | |
4458 | int arg3 ; | |
4459 | void *argp1 = 0 ; | |
4460 | int res1 = 0 ; | |
4461 | int val2 ; | |
4462 | int ecode2 = 0 ; | |
4463 | int val3 ; | |
4464 | int ecode3 = 0 ; | |
4465 | PyObject * obj0 = 0 ; | |
4466 | PyObject * obj1 = 0 ; | |
4467 | PyObject * obj2 = 0 ; | |
4468 | char * kwnames[] = { | |
4469 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
4470 | }; | |
4471 | ||
4472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4474 | if (!SWIG_IsOK(res1)) { | |
4475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4476 | } | |
4477 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4478 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4479 | if (!SWIG_IsOK(ecode2)) { | |
4480 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "2"" of type '" "int""'"); | |
4481 | } | |
4482 | arg2 = static_cast< int >(val2); | |
4483 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4484 | if (!SWIG_IsOK(ecode3)) { | |
4485 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScrollRate" "', expected argument " "3"" of type '" "int""'"); | |
4486 | } | |
4487 | arg3 = static_cast< int >(val3); | |
4488 | { | |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4490 | (arg1)->SetScrollRate(arg2,arg3); | |
4491 | wxPyEndAllowThreads(__tstate); | |
4492 | if (PyErr_Occurred()) SWIG_fail; | |
4493 | } | |
4494 | resultobj = SWIG_Py_Void(); | |
4495 | return resultobj; | |
4496 | fail: | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
4501 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4502 | PyObject *resultobj = 0; | |
4503 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4504 | int *arg2 = (int *) 0 ; | |
4505 | int *arg3 = (int *) 0 ; | |
4506 | void *argp1 = 0 ; | |
4507 | int res1 = 0 ; | |
4508 | int temp2 ; | |
4509 | int res2 = SWIG_TMPOBJ ; | |
4510 | int temp3 ; | |
4511 | int res3 = SWIG_TMPOBJ ; | |
4512 | PyObject *swig_obj[1] ; | |
4513 | ||
4514 | arg2 = &temp2; | |
4515 | arg3 = &temp3; | |
4516 | if (!args) SWIG_fail; | |
4517 | swig_obj[0] = args; | |
4518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4519 | if (!SWIG_IsOK(res1)) { | |
4520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScrollPixelsPerUnit" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4521 | } | |
4522 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4523 | { | |
4524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4525 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
4526 | wxPyEndAllowThreads(__tstate); | |
4527 | if (PyErr_Occurred()) SWIG_fail; | |
4528 | } | |
4529 | resultobj = SWIG_Py_Void(); | |
4530 | if (SWIG_IsTmpObj(res2)) { | |
4531 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4532 | } else { | |
4533 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4534 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4535 | } | |
4536 | if (SWIG_IsTmpObj(res3)) { | |
4537 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4538 | } else { | |
4539 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4540 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4541 | } | |
4542 | return resultobj; | |
4543 | fail: | |
4544 | return NULL; | |
4545 | } | |
4546 | ||
4547 | ||
4548 | SWIGINTERN PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4549 | PyObject *resultobj = 0; | |
4550 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4551 | bool arg2 ; | |
4552 | bool arg3 ; | |
4553 | void *argp1 = 0 ; | |
4554 | int res1 = 0 ; | |
4555 | bool val2 ; | |
4556 | int ecode2 = 0 ; | |
4557 | bool val3 ; | |
4558 | int ecode3 = 0 ; | |
4559 | PyObject * obj0 = 0 ; | |
4560 | PyObject * obj1 = 0 ; | |
4561 | PyObject * obj2 = 0 ; | |
4562 | char * kwnames[] = { | |
4563 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
4564 | }; | |
4565 | ||
4566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4568 | if (!SWIG_IsOK(res1)) { | |
4569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4570 | } | |
4571 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4572 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4573 | if (!SWIG_IsOK(ecode2)) { | |
4574 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "2"" of type '" "bool""'"); | |
4575 | } | |
4576 | arg2 = static_cast< bool >(val2); | |
4577 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
4578 | if (!SWIG_IsOK(ecode3)) { | |
4579 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_EnableScrolling" "', expected argument " "3"" of type '" "bool""'"); | |
4580 | } | |
4581 | arg3 = static_cast< bool >(val3); | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | (arg1)->EnableScrolling(arg2,arg3); | |
4585 | wxPyEndAllowThreads(__tstate); | |
4586 | if (PyErr_Occurred()) SWIG_fail; | |
4587 | } | |
4588 | resultobj = SWIG_Py_Void(); | |
4589 | return resultobj; | |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
4595 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4596 | PyObject *resultobj = 0; | |
4597 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4598 | int *arg2 = (int *) 0 ; | |
4599 | int *arg3 = (int *) 0 ; | |
4600 | void *argp1 = 0 ; | |
4601 | int res1 = 0 ; | |
4602 | int temp2 ; | |
4603 | int res2 = SWIG_TMPOBJ ; | |
4604 | int temp3 ; | |
4605 | int res3 = SWIG_TMPOBJ ; | |
4606 | PyObject *swig_obj[1] ; | |
4607 | ||
4608 | arg2 = &temp2; | |
4609 | arg3 = &temp3; | |
4610 | if (!args) SWIG_fail; | |
4611 | swig_obj[0] = args; | |
4612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4613 | if (!SWIG_IsOK(res1)) { | |
4614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetViewStart" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4615 | } | |
4616 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4617 | { | |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
4620 | wxPyEndAllowThreads(__tstate); | |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
4622 | } | |
4623 | resultobj = SWIG_Py_Void(); | |
4624 | if (SWIG_IsTmpObj(res2)) { | |
4625 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
4626 | } else { | |
4627 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4628 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
4629 | } | |
4630 | if (SWIG_IsTmpObj(res3)) { | |
4631 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
4632 | } else { | |
4633 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4634 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
4635 | } | |
4636 | return resultobj; | |
4637 | fail: | |
4638 | return NULL; | |
4639 | } | |
4640 | ||
4641 | ||
4642 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4643 | PyObject *resultobj = 0; | |
4644 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4645 | double arg2 ; | |
4646 | double arg3 ; | |
4647 | void *argp1 = 0 ; | |
4648 | int res1 = 0 ; | |
4649 | double val2 ; | |
4650 | int ecode2 = 0 ; | |
4651 | double val3 ; | |
4652 | int ecode3 = 0 ; | |
4653 | PyObject * obj0 = 0 ; | |
4654 | PyObject * obj1 = 0 ; | |
4655 | PyObject * obj2 = 0 ; | |
4656 | char * kwnames[] = { | |
4657 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
4658 | }; | |
4659 | ||
4660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4662 | if (!SWIG_IsOK(res1)) { | |
4663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetScale" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4664 | } | |
4665 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4666 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
4667 | if (!SWIG_IsOK(ecode2)) { | |
4668 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_SetScale" "', expected argument " "2"" of type '" "double""'"); | |
4669 | } | |
4670 | arg2 = static_cast< double >(val2); | |
4671 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
4672 | if (!SWIG_IsOK(ecode3)) { | |
4673 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_SetScale" "', expected argument " "3"" of type '" "double""'"); | |
4674 | } | |
4675 | arg3 = static_cast< double >(val3); | |
4676 | { | |
4677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4678 | (arg1)->SetScale(arg2,arg3); | |
4679 | wxPyEndAllowThreads(__tstate); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | resultobj = SWIG_Py_Void(); | |
4683 | return resultobj; | |
4684 | fail: | |
4685 | return NULL; | |
d55e5bfc RD |
4686 | } |
4687 | ||
4688 | ||
554f62e9 RD |
4689 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4690 | PyObject *resultobj = 0; | |
4691 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4692 | double result; | |
4693 | void *argp1 = 0 ; | |
4694 | int res1 = 0 ; | |
4695 | PyObject *swig_obj[1] ; | |
4696 | ||
4697 | if (!args) SWIG_fail; | |
4698 | swig_obj[0] = args; | |
4699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4700 | if (!SWIG_IsOK(res1)) { | |
4701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleX" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4702 | } | |
4703 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4704 | { | |
4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4706 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
4707 | wxPyEndAllowThreads(__tstate); | |
4708 | if (PyErr_Occurred()) SWIG_fail; | |
4709 | } | |
4710 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4711 | return resultobj; | |
4712 | fail: | |
4713 | return NULL; | |
d55e5bfc RD |
4714 | } |
4715 | ||
4716 | ||
554f62e9 RD |
4717 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4718 | PyObject *resultobj = 0; | |
4719 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4720 | double result; | |
4721 | void *argp1 = 0 ; | |
4722 | int res1 = 0 ; | |
4723 | PyObject *swig_obj[1] ; | |
4724 | ||
4725 | if (!args) SWIG_fail; | |
4726 | swig_obj[0] = args; | |
4727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4728 | if (!SWIG_IsOK(res1)) { | |
4729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetScaleY" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4730 | } | |
4731 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4732 | { | |
4733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4734 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
4735 | wxPyEndAllowThreads(__tstate); | |
4736 | if (PyErr_Occurred()) SWIG_fail; | |
4737 | } | |
4738 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
4739 | return resultobj; | |
4740 | fail: | |
4741 | return NULL; | |
d55e5bfc RD |
4742 | } |
4743 | ||
4744 | ||
554f62e9 RD |
4745 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4746 | PyObject *resultobj = 0; | |
4747 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4748 | wxPoint *arg2 = 0 ; | |
4749 | wxPoint result; | |
4750 | void *argp1 = 0 ; | |
4751 | int res1 = 0 ; | |
4752 | wxPoint temp2 ; | |
4753 | ||
4754 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4755 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4756 | if (!SWIG_IsOK(res1)) { | |
4757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4758 | } | |
4759 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4760 | { | |
4761 | arg2 = &temp2; | |
4762 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4763 | } | |
4764 | { | |
4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4766 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
4767 | wxPyEndAllowThreads(__tstate); | |
4768 | if (PyErr_Occurred()) SWIG_fail; | |
4769 | } | |
4770 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4771 | return resultobj; | |
4772 | fail: | |
4773 | return NULL; | |
4774 | } | |
4775 | ||
4776 | ||
4777 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4778 | PyObject *resultobj = 0; | |
4779 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4780 | int arg2 ; | |
4781 | int arg3 ; | |
4782 | int *arg4 = (int *) 0 ; | |
4783 | int *arg5 = (int *) 0 ; | |
4784 | void *argp1 = 0 ; | |
4785 | int res1 = 0 ; | |
4786 | int val2 ; | |
4787 | int ecode2 = 0 ; | |
4788 | int val3 ; | |
4789 | int ecode3 = 0 ; | |
4790 | int temp4 ; | |
4791 | int res4 = SWIG_TMPOBJ ; | |
4792 | int temp5 ; | |
4793 | int res5 = SWIG_TMPOBJ ; | |
4794 | ||
4795 | arg4 = &temp4; | |
4796 | arg5 = &temp5; | |
4797 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4798 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4799 | if (!SWIG_IsOK(res1)) { | |
4800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4801 | } | |
4802 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4803 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4804 | if (!SWIG_IsOK(ecode2)) { | |
4805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4806 | } | |
4807 | arg2 = static_cast< int >(val2); | |
4808 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4809 | if (!SWIG_IsOK(ecode3)) { | |
4810 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcScrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4811 | } | |
4812 | arg3 = static_cast< int >(val3); | |
4813 | { | |
4814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4815 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
4819 | resultobj = SWIG_Py_Void(); | |
4820 | if (SWIG_IsTmpObj(res4)) { | |
4821 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4822 | } else { | |
4823 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4824 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4825 | } | |
4826 | if (SWIG_IsTmpObj(res5)) { | |
4827 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4828 | } else { | |
4829 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4830 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4831 | } | |
4832 | return resultobj; | |
4833 | fail: | |
4834 | return NULL; | |
d55e5bfc RD |
4835 | } |
4836 | ||
4837 | ||
554f62e9 RD |
4838 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { |
4839 | int argc; | |
4840 | PyObject *argv[4]; | |
4841 | ||
4842 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcScrolledPosition",0,3,argv))) SWIG_fail; | |
4843 | --argc; | |
4844 | if (argc == 2) { | |
4845 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self, argc, argv); | |
4846 | } | |
4847 | if (argc == 3) { | |
4848 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self, argc, argv); | |
4849 | } | |
4850 | ||
4851 | fail: | |
4852 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
4853 | return NULL; | |
d55e5bfc RD |
4854 | } |
4855 | ||
4856 | ||
554f62e9 RD |
4857 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
4858 | PyObject *resultobj = 0; | |
4859 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4860 | wxPoint *arg2 = 0 ; | |
4861 | wxPoint result; | |
4862 | void *argp1 = 0 ; | |
4863 | int res1 = 0 ; | |
4864 | wxPoint temp2 ; | |
4865 | ||
4866 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
4867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4868 | if (!SWIG_IsOK(res1)) { | |
4869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4870 | } | |
4871 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4872 | { | |
4873 | arg2 = &temp2; | |
4874 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
4875 | } | |
4876 | { | |
4877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4878 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
4879 | wxPyEndAllowThreads(__tstate); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
4881 | } | |
4882 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
4883 | return resultobj; | |
4884 | fail: | |
4885 | return NULL; | |
4886 | } | |
4887 | ||
4888 | ||
4889 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
4890 | PyObject *resultobj = 0; | |
4891 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4892 | int arg2 ; | |
4893 | int arg3 ; | |
4894 | int *arg4 = (int *) 0 ; | |
4895 | int *arg5 = (int *) 0 ; | |
4896 | void *argp1 = 0 ; | |
4897 | int res1 = 0 ; | |
4898 | int val2 ; | |
4899 | int ecode2 = 0 ; | |
4900 | int val3 ; | |
4901 | int ecode3 = 0 ; | |
4902 | int temp4 ; | |
4903 | int res4 = SWIG_TMPOBJ ; | |
4904 | int temp5 ; | |
4905 | int res5 = SWIG_TMPOBJ ; | |
4906 | ||
4907 | arg4 = &temp4; | |
4908 | arg5 = &temp5; | |
4909 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
4910 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4911 | if (!SWIG_IsOK(res1)) { | |
4912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
4913 | } | |
4914 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4915 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
4916 | if (!SWIG_IsOK(ecode2)) { | |
4917 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "2"" of type '" "int""'"); | |
4918 | } | |
4919 | arg2 = static_cast< int >(val2); | |
4920 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
4921 | if (!SWIG_IsOK(ecode3)) { | |
4922 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrolledWindow_CalcUnscrolledPosition" "', expected argument " "3"" of type '" "int""'"); | |
4923 | } | |
4924 | arg3 = static_cast< int >(val3); | |
4925 | { | |
4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4927 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
4928 | wxPyEndAllowThreads(__tstate); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | } | |
4931 | resultobj = SWIG_Py_Void(); | |
4932 | if (SWIG_IsTmpObj(res4)) { | |
4933 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
4934 | } else { | |
4935 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4936 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
4937 | } | |
4938 | if (SWIG_IsTmpObj(res5)) { | |
4939 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
4940 | } else { | |
4941 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4942 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
4943 | } | |
4944 | return resultobj; | |
4945 | fail: | |
4946 | return NULL; | |
d55e5bfc RD |
4947 | } |
4948 | ||
4949 | ||
554f62e9 RD |
4950 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { |
4951 | int argc; | |
4952 | PyObject *argv[4]; | |
4953 | ||
4954 | if (!(argc = SWIG_Python_UnpackTuple(args,"ScrolledWindow_CalcUnscrolledPosition",0,3,argv))) SWIG_fail; | |
4955 | --argc; | |
4956 | if (argc == 2) { | |
4957 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self, argc, argv); | |
4958 | } | |
4959 | if (argc == 3) { | |
4960 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self, argc, argv); | |
4961 | } | |
4962 | ||
4963 | fail: | |
4964 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
4965 | return NULL; | |
d55e5bfc RD |
4966 | } |
4967 | ||
4968 | ||
554f62e9 RD |
4969 | SWIGINTERN PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4970 | PyObject *resultobj = 0; | |
4971 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4972 | void *argp1 = 0 ; | |
4973 | int res1 = 0 ; | |
4974 | PyObject *swig_obj[1] ; | |
4975 | ||
4976 | if (!args) SWIG_fail; | |
4977 | swig_obj[0] = args; | |
4978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
4979 | if (!SWIG_IsOK(res1)) { | |
4980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_AdjustScrollbars" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
4981 | } | |
4982 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
4983 | { | |
4984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4985 | (arg1)->AdjustScrollbars(); | |
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | resultobj = SWIG_Py_Void(); | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
4996 | SWIGINTERN PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4997 | PyObject *resultobj = 0; | |
4998 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
4999 | wxScrollWinEvent *arg2 = 0 ; | |
5000 | int result; | |
5001 | void *argp1 = 0 ; | |
5002 | int res1 = 0 ; | |
5003 | void *argp2 = 0 ; | |
5004 | int res2 = 0 ; | |
5005 | PyObject * obj0 = 0 ; | |
5006 | PyObject * obj1 = 0 ; | |
5007 | char * kwnames[] = { | |
5008 | (char *) "self",(char *) "event", NULL | |
5009 | }; | |
5010 | ||
5011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) SWIG_fail; | |
5012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5013 | if (!SWIG_IsOK(res1)) { | |
5014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5015 | } | |
5016 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5017 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxScrollWinEvent, 0 ); | |
5018 | if (!SWIG_IsOK(res2)) { | |
5019 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5020 | } | |
5021 | if (!argp2) { | |
5022 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_CalcScrollInc" "', expected argument " "2"" of type '" "wxScrollWinEvent &""'"); | |
5023 | } | |
5024 | arg2 = reinterpret_cast< wxScrollWinEvent * >(argp2); | |
5025 | { | |
5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5027 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
5028 | wxPyEndAllowThreads(__tstate); | |
5029 | if (PyErr_Occurred()) SWIG_fail; | |
5030 | } | |
5031 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5032 | return resultobj; | |
5033 | fail: | |
5034 | return NULL; | |
5035 | } | |
5036 | ||
5037 | ||
5038 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5039 | PyObject *resultobj = 0; | |
5040 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5041 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5042 | void *argp1 = 0 ; | |
5043 | int res1 = 0 ; | |
5044 | void *argp2 = 0 ; | |
5045 | int res2 = 0 ; | |
5046 | PyObject * obj0 = 0 ; | |
5047 | PyObject * obj1 = 0 ; | |
5048 | char * kwnames[] = { | |
5049 | (char *) "self",(char *) "target", NULL | |
5050 | }; | |
5051 | ||
5052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
5053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5054 | if (!SWIG_IsOK(res1)) { | |
5055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5056 | } | |
5057 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5058 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5059 | if (!SWIG_IsOK(res2)) { | |
5060 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_SetTargetWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
5061 | } | |
5062 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
5063 | { | |
5064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5065 | (arg1)->SetTargetWindow(arg2); | |
5066 | wxPyEndAllowThreads(__tstate); | |
5067 | if (PyErr_Occurred()) SWIG_fail; | |
5068 | } | |
5069 | resultobj = SWIG_Py_Void(); | |
5070 | return resultobj; | |
5071 | fail: | |
5072 | return NULL; | |
d55e5bfc RD |
5073 | } |
5074 | ||
5075 | ||
554f62e9 RD |
5076 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5077 | PyObject *resultobj = 0; | |
5078 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5079 | wxWindow *result = 0 ; | |
5080 | void *argp1 = 0 ; | |
5081 | int res1 = 0 ; | |
5082 | PyObject *swig_obj[1] ; | |
5083 | ||
5084 | if (!args) SWIG_fail; | |
5085 | swig_obj[0] = args; | |
5086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5087 | if (!SWIG_IsOK(res1)) { | |
5088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetWindow" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5089 | } | |
5090 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5091 | { | |
5092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5093 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
5094 | wxPyEndAllowThreads(__tstate); | |
5095 | if (PyErr_Occurred()) SWIG_fail; | |
5096 | } | |
5097 | { | |
5098 | resultobj = wxPyMake_wxObject(result, 0); | |
5099 | } | |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
5103 | } | |
5104 | ||
5105 | ||
5106 | SWIGINTERN PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5107 | PyObject *resultobj = 0; | |
5108 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5109 | wxRect *arg2 = 0 ; | |
5110 | void *argp1 = 0 ; | |
5111 | int res1 = 0 ; | |
5112 | wxRect temp2 ; | |
5113 | PyObject * obj0 = 0 ; | |
5114 | PyObject * obj1 = 0 ; | |
5115 | char * kwnames[] = { | |
5116 | (char *) "self",(char *) "rect", NULL | |
5117 | }; | |
5118 | ||
5119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
5120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5121 | if (!SWIG_IsOK(res1)) { | |
5122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_SetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5123 | } | |
5124 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5125 | { | |
5126 | arg2 = &temp2; | |
5127 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5128 | } | |
5129 | { | |
5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5131 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
5135 | resultobj = SWIG_Py_Void(); | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | return NULL; | |
d55e5bfc RD |
5139 | } |
5140 | ||
5141 | ||
554f62e9 RD |
5142 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5143 | PyObject *resultobj = 0; | |
5144 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5145 | wxRect result; | |
5146 | void *argp1 = 0 ; | |
5147 | int res1 = 0 ; | |
5148 | PyObject *swig_obj[1] ; | |
5149 | ||
5150 | if (!args) SWIG_fail; | |
5151 | swig_obj[0] = args; | |
5152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5153 | if (!SWIG_IsOK(res1)) { | |
5154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_GetTargetRect" "', expected argument " "1"" of type '" "wxScrolledWindow const *""'"); | |
5155 | } | |
5156 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
5160 | wxPyEndAllowThreads(__tstate); | |
5161 | if (PyErr_Occurred()) SWIG_fail; | |
5162 | } | |
5163 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
5164 | return resultobj; | |
5165 | fail: | |
5166 | return NULL; | |
5167 | } | |
5168 | ||
5169 | ||
5170 | SWIGINTERN PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5171 | PyObject *resultobj = 0; | |
5172 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
5173 | wxDC *arg2 = 0 ; | |
5174 | void *argp1 = 0 ; | |
5175 | int res1 = 0 ; | |
5176 | void *argp2 = 0 ; | |
5177 | int res2 = 0 ; | |
5178 | PyObject * obj0 = 0 ; | |
5179 | PyObject * obj1 = 0 ; | |
5180 | char * kwnames[] = { | |
5181 | (char *) "self",(char *) "dc", NULL | |
5182 | }; | |
5183 | ||
5184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
5185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrolledWindow, 0 | 0 ); | |
5186 | if (!SWIG_IsOK(res1)) { | |
5187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "1"" of type '" "wxScrolledWindow *""'"); | |
5188 | } | |
5189 | arg1 = reinterpret_cast< wxScrolledWindow * >(argp1); | |
5190 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
5191 | if (!SWIG_IsOK(res2)) { | |
5192 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5193 | } | |
5194 | if (!argp2) { | |
5195 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrolledWindow_DoPrepareDC" "', expected argument " "2"" of type '" "wxDC &""'"); | |
5196 | } | |
5197 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
5198 | { | |
5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5200 | (arg1)->DoPrepareDC(*arg2); | |
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | resultobj = SWIG_Py_Void(); | |
5205 | return resultobj; | |
5206 | fail: | |
5207 | return NULL; | |
5208 | } | |
5209 | ||
5210 | ||
5211 | SWIGINTERN PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5212 | PyObject *resultobj = 0; | |
5213 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5214 | SwigValueWrapper<wxVisualAttributes > result; | |
5215 | int val1 ; | |
5216 | int ecode1 = 0 ; | |
5217 | PyObject * obj0 = 0 ; | |
5218 | char * kwnames[] = { | |
5219 | (char *) "variant", NULL | |
5220 | }; | |
5221 | ||
5222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
5223 | if (obj0) { | |
5224 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5225 | if (!SWIG_IsOK(ecode1)) { | |
5226 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrolledWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
5227 | } | |
5228 | arg1 = static_cast< wxWindowVariant >(val1); | |
5229 | } | |
5230 | { | |
5231 | if (!wxPyCheckForApp()) SWIG_fail; | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | result = wxScrolledWindow::GetClassDefaultAttributes(arg1); | |
5234 | wxPyEndAllowThreads(__tstate); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
5238 | return resultobj; | |
5239 | fail: | |
5240 | return NULL; | |
d55e5bfc RD |
5241 | } |
5242 | ||
5243 | ||
554f62e9 RD |
5244 | SWIGINTERN PyObject *ScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5245 | PyObject *obj; | |
5246 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5247 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScrolledWindow, SWIG_NewClientData(obj)); | |
5248 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5249 | } |
5250 | ||
554f62e9 RD |
5251 | SWIGINTERN PyObject *ScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5252 | return SWIG_Python_InitShadowInstance(args); | |
5253 | } | |
d55e5bfc | 5254 | |
554f62e9 RD |
5255 | SWIGINTERN int FrameNameStr_set(PyObject *) { |
5256 | SWIG_Error(SWIG_AttributeError,"Variable FrameNameStr is read-only."); | |
5257 | return 1; | |
d55e5bfc RD |
5258 | } |
5259 | ||
5260 | ||
554f62e9 RD |
5261 | SWIGINTERN PyObject *FrameNameStr_get(void) { |
5262 | PyObject *pyobj = 0; | |
5263 | ||
5264 | { | |
5265 | #if wxUSE_UNICODE | |
5266 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5267 | #else | |
5268 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
5269 | #endif | |
5270 | } | |
5271 | return pyobj; | |
d55e5bfc RD |
5272 | } |
5273 | ||
5274 | ||
554f62e9 RD |
5275 | SWIGINTERN int DialogNameStr_set(PyObject *) { |
5276 | SWIG_Error(SWIG_AttributeError,"Variable DialogNameStr is read-only."); | |
5277 | return 1; | |
d55e5bfc RD |
5278 | } |
5279 | ||
5280 | ||
554f62e9 RD |
5281 | SWIGINTERN PyObject *DialogNameStr_get(void) { |
5282 | PyObject *pyobj = 0; | |
5283 | ||
5284 | { | |
5285 | #if wxUSE_UNICODE | |
5286 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5287 | #else | |
5288 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
5289 | #endif | |
5290 | } | |
5291 | return pyobj; | |
d55e5bfc RD |
5292 | } |
5293 | ||
5294 | ||
554f62e9 RD |
5295 | SWIGINTERN int StatusLineNameStr_set(PyObject *) { |
5296 | SWIG_Error(SWIG_AttributeError,"Variable StatusLineNameStr is read-only."); | |
5297 | return 1; | |
d55e5bfc RD |
5298 | } |
5299 | ||
5300 | ||
554f62e9 RD |
5301 | SWIGINTERN PyObject *StatusLineNameStr_get(void) { |
5302 | PyObject *pyobj = 0; | |
5303 | ||
5304 | { | |
5305 | #if wxUSE_UNICODE | |
5306 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5307 | #else | |
5308 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
5309 | #endif | |
5310 | } | |
5311 | return pyobj; | |
d55e5bfc RD |
5312 | } |
5313 | ||
5314 | ||
554f62e9 RD |
5315 | SWIGINTERN int ToolBarNameStr_set(PyObject *) { |
5316 | SWIG_Error(SWIG_AttributeError,"Variable ToolBarNameStr is read-only."); | |
5317 | return 1; | |
d55e5bfc RD |
5318 | } |
5319 | ||
5320 | ||
554f62e9 RD |
5321 | SWIGINTERN PyObject *ToolBarNameStr_get(void) { |
5322 | PyObject *pyobj = 0; | |
5323 | ||
5324 | { | |
5325 | #if wxUSE_UNICODE | |
5326 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5327 | #else | |
5328 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
5329 | #endif | |
5330 | } | |
5331 | return pyobj; | |
5332 | } | |
5333 | ||
5334 | ||
5335 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Maximize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5336 | PyObject *resultobj = 0; | |
5337 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5338 | bool arg2 = (bool) true ; | |
5339 | void *argp1 = 0 ; | |
5340 | int res1 = 0 ; | |
5341 | bool val2 ; | |
5342 | int ecode2 = 0 ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | PyObject * obj1 = 0 ; | |
5345 | char * kwnames[] = { | |
5346 | (char *) "self",(char *) "maximize", NULL | |
5347 | }; | |
5348 | ||
5349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5351 | if (!SWIG_IsOK(res1)) { | |
5352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Maximize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5353 | } | |
5354 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5355 | if (obj1) { | |
5356 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5357 | if (!SWIG_IsOK(ecode2)) { | |
5358 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Maximize" "', expected argument " "2"" of type '" "bool""'"); | |
5359 | } | |
5360 | arg2 = static_cast< bool >(val2); | |
5361 | } | |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | (arg1)->Maximize(arg2); | |
5365 | wxPyEndAllowThreads(__tstate); | |
5366 | if (PyErr_Occurred()) SWIG_fail; | |
5367 | } | |
5368 | resultobj = SWIG_Py_Void(); | |
5369 | return resultobj; | |
5370 | fail: | |
5371 | return NULL; | |
d55e5bfc RD |
5372 | } |
5373 | ||
5374 | ||
554f62e9 RD |
5375 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Restore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5376 | PyObject *resultobj = 0; | |
5377 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5378 | void *argp1 = 0 ; | |
5379 | int res1 = 0 ; | |
5380 | PyObject *swig_obj[1] ; | |
5381 | ||
5382 | if (!args) SWIG_fail; | |
5383 | swig_obj[0] = args; | |
5384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5385 | if (!SWIG_IsOK(res1)) { | |
5386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Restore" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5387 | } | |
5388 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5389 | { | |
5390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5391 | (arg1)->Restore(); | |
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
5395 | resultobj = SWIG_Py_Void(); | |
5396 | return resultobj; | |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
5402 | SWIGINTERN PyObject *_wrap_TopLevelWindow_Iconize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5403 | PyObject *resultobj = 0; | |
5404 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5405 | bool arg2 = (bool) true ; | |
5406 | void *argp1 = 0 ; | |
5407 | int res1 = 0 ; | |
5408 | bool val2 ; | |
5409 | int ecode2 = 0 ; | |
5410 | PyObject * obj0 = 0 ; | |
5411 | PyObject * obj1 = 0 ; | |
5412 | char * kwnames[] = { | |
5413 | (char *) "self",(char *) "iconize", NULL | |
5414 | }; | |
5415 | ||
5416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) SWIG_fail; | |
5417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5418 | if (!SWIG_IsOK(res1)) { | |
5419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_Iconize" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5420 | } | |
5421 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5422 | if (obj1) { | |
5423 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5424 | if (!SWIG_IsOK(ecode2)) { | |
5425 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_Iconize" "', expected argument " "2"" of type '" "bool""'"); | |
5426 | } | |
5427 | arg2 = static_cast< bool >(val2); | |
5428 | } | |
5429 | { | |
5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5431 | (arg1)->Iconize(arg2); | |
5432 | wxPyEndAllowThreads(__tstate); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | } | |
5435 | resultobj = SWIG_Py_Void(); | |
5436 | return resultobj; | |
5437 | fail: | |
5438 | return NULL; | |
d55e5bfc RD |
5439 | } |
5440 | ||
5441 | ||
554f62e9 RD |
5442 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5443 | PyObject *resultobj = 0; | |
5444 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5445 | bool result; | |
5446 | void *argp1 = 0 ; | |
5447 | int res1 = 0 ; | |
5448 | PyObject *swig_obj[1] ; | |
5449 | ||
5450 | if (!args) SWIG_fail; | |
5451 | swig_obj[0] = args; | |
5452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5453 | if (!SWIG_IsOK(res1)) { | |
5454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsMaximized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5455 | } | |
5456 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5457 | { | |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5459 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
5460 | wxPyEndAllowThreads(__tstate); | |
5461 | if (PyErr_Occurred()) SWIG_fail; | |
5462 | } | |
5463 | { | |
5464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5465 | } | |
5466 | return resultobj; | |
5467 | fail: | |
5468 | return NULL; | |
d55e5bfc RD |
5469 | } |
5470 | ||
5471 | ||
554f62e9 RD |
5472 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5473 | PyObject *resultobj = 0; | |
5474 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5475 | bool result; | |
5476 | void *argp1 = 0 ; | |
5477 | int res1 = 0 ; | |
5478 | PyObject *swig_obj[1] ; | |
5479 | ||
5480 | if (!args) SWIG_fail; | |
5481 | swig_obj[0] = args; | |
5482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5483 | if (!SWIG_IsOK(res1)) { | |
5484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsIconized" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5485 | } | |
5486 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
5490 | wxPyEndAllowThreads(__tstate); | |
5491 | if (PyErr_Occurred()) SWIG_fail; | |
5492 | } | |
5493 | { | |
5494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5495 | } | |
5496 | return resultobj; | |
5497 | fail: | |
5498 | return NULL; | |
d55e5bfc RD |
5499 | } |
5500 | ||
5501 | ||
554f62e9 RD |
5502 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5503 | PyObject *resultobj = 0; | |
5504 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5505 | wxIcon result; | |
5506 | void *argp1 = 0 ; | |
5507 | int res1 = 0 ; | |
5508 | PyObject *swig_obj[1] ; | |
5509 | ||
5510 | if (!args) SWIG_fail; | |
5511 | swig_obj[0] = args; | |
5512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5513 | if (!SWIG_IsOK(res1)) { | |
5514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5515 | } | |
5516 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5517 | { | |
5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5519 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
5520 | wxPyEndAllowThreads(__tstate); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
5523 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
5524 | return resultobj; | |
5525 | fail: | |
5526 | return NULL; | |
5527 | } | |
5528 | ||
5529 | ||
5530 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5531 | PyObject *resultobj = 0; | |
5532 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5533 | wxIcon *arg2 = 0 ; | |
5534 | void *argp1 = 0 ; | |
5535 | int res1 = 0 ; | |
5536 | void *argp2 = 0 ; | |
5537 | int res2 = 0 ; | |
5538 | PyObject * obj0 = 0 ; | |
5539 | PyObject * obj1 = 0 ; | |
5540 | char * kwnames[] = { | |
5541 | (char *) "self",(char *) "icon", NULL | |
5542 | }; | |
5543 | ||
5544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
5545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5546 | if (!SWIG_IsOK(res1)) { | |
5547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5548 | } | |
5549 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5550 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
5551 | if (!SWIG_IsOK(res2)) { | |
5552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5553 | } | |
5554 | if (!argp2) { | |
5555 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
5556 | } | |
5557 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
5558 | { | |
5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5560 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
5564 | resultobj = SWIG_Py_Void(); | |
5565 | return resultobj; | |
5566 | fail: | |
5567 | return NULL; | |
5568 | } | |
5569 | ||
5570 | ||
5571 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5572 | PyObject *resultobj = 0; | |
5573 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5574 | wxIconBundle *arg2 = 0 ; | |
5575 | void *argp1 = 0 ; | |
5576 | int res1 = 0 ; | |
5577 | void *argp2 = 0 ; | |
5578 | int res2 = 0 ; | |
5579 | PyObject * obj0 = 0 ; | |
5580 | PyObject * obj1 = 0 ; | |
5581 | char * kwnames[] = { | |
5582 | (char *) "self",(char *) "icons", NULL | |
5583 | }; | |
5584 | ||
5585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) SWIG_fail; | |
5586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5587 | if (!SWIG_IsOK(res1)) { | |
5588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5589 | } | |
5590 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5591 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIconBundle, 0 | 0); | |
5592 | if (!SWIG_IsOK(res2)) { | |
5593 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5594 | } | |
5595 | if (!argp2) { | |
5596 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetIcons" "', expected argument " "2"" of type '" "wxIconBundle const &""'"); | |
5597 | } | |
5598 | arg2 = reinterpret_cast< wxIconBundle * >(argp2); | |
5599 | { | |
5600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5601 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
5602 | wxPyEndAllowThreads(__tstate); | |
5603 | if (PyErr_Occurred()) SWIG_fail; | |
5604 | } | |
5605 | resultobj = SWIG_Py_Void(); | |
5606 | return resultobj; | |
5607 | fail: | |
5608 | return NULL; | |
5609 | } | |
5610 | ||
5611 | ||
5612 | SWIGINTERN PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5613 | PyObject *resultobj = 0; | |
5614 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5615 | bool arg2 ; | |
5616 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
5617 | bool result; | |
5618 | void *argp1 = 0 ; | |
5619 | int res1 = 0 ; | |
5620 | bool val2 ; | |
5621 | int ecode2 = 0 ; | |
5622 | long val3 ; | |
5623 | int ecode3 = 0 ; | |
5624 | PyObject * obj0 = 0 ; | |
5625 | PyObject * obj1 = 0 ; | |
5626 | PyObject * obj2 = 0 ; | |
5627 | char * kwnames[] = { | |
5628 | (char *) "self",(char *) "show",(char *) "style", NULL | |
5629 | }; | |
5630 | ||
5631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5633 | if (!SWIG_IsOK(res1)) { | |
5634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5635 | } | |
5636 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5637 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5638 | if (!SWIG_IsOK(ecode2)) { | |
5639 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "2"" of type '" "bool""'"); | |
5640 | } | |
5641 | arg2 = static_cast< bool >(val2); | |
5642 | if (obj2) { | |
5643 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
5644 | if (!SWIG_IsOK(ecode3)) { | |
5645 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TopLevelWindow_ShowFullScreen" "', expected argument " "3"" of type '" "long""'"); | |
5646 | } | |
5647 | arg3 = static_cast< long >(val3); | |
5648 | } | |
5649 | { | |
5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5651 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
5652 | wxPyEndAllowThreads(__tstate); | |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
5654 | } | |
5655 | { | |
5656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5657 | } | |
5658 | return resultobj; | |
5659 | fail: | |
5660 | return NULL; | |
d55e5bfc RD |
5661 | } |
5662 | ||
5663 | ||
554f62e9 RD |
5664 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5665 | PyObject *resultobj = 0; | |
5666 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5667 | bool result; | |
5668 | void *argp1 = 0 ; | |
5669 | int res1 = 0 ; | |
5670 | PyObject *swig_obj[1] ; | |
5671 | ||
5672 | if (!args) SWIG_fail; | |
5673 | swig_obj[0] = args; | |
5674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5675 | if (!SWIG_IsOK(res1)) { | |
5676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsFullScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5677 | } | |
5678 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5679 | { | |
5680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5681 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
5682 | wxPyEndAllowThreads(__tstate); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | } | |
5685 | { | |
5686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5687 | } | |
5688 | return resultobj; | |
5689 | fail: | |
5690 | return NULL; | |
5691 | } | |
5692 | ||
5693 | ||
5694 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5695 | PyObject *resultobj = 0; | |
5696 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5697 | wxString *arg2 = 0 ; | |
5698 | void *argp1 = 0 ; | |
5699 | int res1 = 0 ; | |
5700 | bool temp2 = false ; | |
5701 | PyObject * obj0 = 0 ; | |
5702 | PyObject * obj1 = 0 ; | |
5703 | char * kwnames[] = { | |
5704 | (char *) "self",(char *) "title", NULL | |
5705 | }; | |
5706 | ||
5707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5709 | if (!SWIG_IsOK(res1)) { | |
5710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5711 | } | |
5712 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5713 | { | |
5714 | arg2 = wxString_in_helper(obj1); | |
5715 | if (arg2 == NULL) SWIG_fail; | |
5716 | temp2 = true; | |
5717 | } | |
5718 | { | |
5719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5720 | (arg1)->SetTitle((wxString const &)*arg2); | |
5721 | wxPyEndAllowThreads(__tstate); | |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
5723 | } | |
5724 | resultobj = SWIG_Py_Void(); | |
5725 | { | |
5726 | if (temp2) | |
5727 | delete arg2; | |
5728 | } | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | { | |
5732 | if (temp2) | |
5733 | delete arg2; | |
5734 | } | |
5735 | return NULL; | |
d55e5bfc RD |
5736 | } |
5737 | ||
5738 | ||
554f62e9 RD |
5739 | SWIGINTERN PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5740 | PyObject *resultobj = 0; | |
5741 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5742 | wxString result; | |
5743 | void *argp1 = 0 ; | |
5744 | int res1 = 0 ; | |
5745 | PyObject *swig_obj[1] ; | |
5746 | ||
5747 | if (!args) SWIG_fail; | |
5748 | swig_obj[0] = args; | |
5749 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5750 | if (!SWIG_IsOK(res1)) { | |
5751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_GetTitle" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5752 | } | |
5753 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5754 | { | |
5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5756 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
5757 | wxPyEndAllowThreads(__tstate); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
5759 | } | |
5760 | { | |
5761 | #if wxUSE_UNICODE | |
5762 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5763 | #else | |
5764 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5765 | #endif | |
5766 | } | |
5767 | return resultobj; | |
5768 | fail: | |
5769 | return NULL; | |
5770 | } | |
5771 | ||
5772 | ||
5773 | SWIGINTERN PyObject *_wrap_TopLevelWindow_SetShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5774 | PyObject *resultobj = 0; | |
5775 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5776 | wxRegion *arg2 = 0 ; | |
5777 | bool result; | |
5778 | void *argp1 = 0 ; | |
5779 | int res1 = 0 ; | |
5780 | void *argp2 = 0 ; | |
5781 | int res2 = 0 ; | |
5782 | PyObject * obj0 = 0 ; | |
5783 | PyObject * obj1 = 0 ; | |
5784 | char * kwnames[] = { | |
5785 | (char *) "self",(char *) "region", NULL | |
5786 | }; | |
5787 | ||
5788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) SWIG_fail; | |
5789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5790 | if (!SWIG_IsOK(res1)) { | |
5791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_SetShape" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5792 | } | |
5793 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5794 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
5795 | if (!SWIG_IsOK(res2)) { | |
5796 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5797 | } | |
5798 | if (!argp2) { | |
5799 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TopLevelWindow_SetShape" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
5800 | } | |
5801 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
5802 | { | |
5803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5804 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
5805 | wxPyEndAllowThreads(__tstate); | |
5806 | if (PyErr_Occurred()) SWIG_fail; | |
5807 | } | |
5808 | { | |
5809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5810 | } | |
5811 | return resultobj; | |
5812 | fail: | |
5813 | return NULL; | |
5814 | } | |
5815 | ||
5816 | ||
5817 | SWIGINTERN PyObject *_wrap_TopLevelWindow_RequestUserAttention(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5818 | PyObject *resultobj = 0; | |
5819 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5820 | int arg2 = (int) wxUSER_ATTENTION_INFO ; | |
5821 | void *argp1 = 0 ; | |
5822 | int res1 = 0 ; | |
5823 | int val2 ; | |
5824 | int ecode2 = 0 ; | |
5825 | PyObject * obj0 = 0 ; | |
5826 | PyObject * obj1 = 0 ; | |
5827 | char * kwnames[] = { | |
5828 | (char *) "self",(char *) "flags", NULL | |
5829 | }; | |
5830 | ||
5831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_RequestUserAttention",kwnames,&obj0,&obj1)) SWIG_fail; | |
5832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5833 | if (!SWIG_IsOK(res1)) { | |
5834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5835 | } | |
5836 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5837 | if (obj1) { | |
5838 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5839 | if (!SWIG_IsOK(ecode2)) { | |
5840 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_RequestUserAttention" "', expected argument " "2"" of type '" "int""'"); | |
5841 | } | |
5842 | arg2 = static_cast< int >(val2); | |
5843 | } | |
5844 | { | |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | (arg1)->RequestUserAttention(arg2); | |
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | resultobj = SWIG_Py_Void(); | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
d55e5bfc RD |
5854 | } |
5855 | ||
5856 | ||
554f62e9 RD |
5857 | SWIGINTERN PyObject *_wrap_TopLevelWindow_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5858 | PyObject *resultobj = 0; | |
5859 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5860 | bool result; | |
5861 | void *argp1 = 0 ; | |
5862 | int res1 = 0 ; | |
5863 | PyObject *swig_obj[1] ; | |
5864 | ||
5865 | if (!args) SWIG_fail; | |
5866 | swig_obj[0] = args; | |
5867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5868 | if (!SWIG_IsOK(res1)) { | |
5869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_IsActive" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5870 | } | |
5871 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5872 | { | |
5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5874 | result = (bool)(arg1)->IsActive(); | |
5875 | wxPyEndAllowThreads(__tstate); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | } | |
5878 | { | |
5879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5880 | } | |
5881 | return resultobj; | |
5882 | fail: | |
5883 | return NULL; | |
5884 | } | |
5885 | ||
5886 | ||
5887 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5888 | PyObject *resultobj = 0; | |
5889 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5890 | bool arg2 ; | |
5891 | void *argp1 = 0 ; | |
5892 | int res1 = 0 ; | |
5893 | bool val2 ; | |
5894 | int ecode2 = 0 ; | |
5895 | PyObject * obj0 = 0 ; | |
5896 | PyObject * obj1 = 0 ; | |
5897 | char * kwnames[] = { | |
5898 | (char *) "self",(char *) "on", NULL | |
5899 | }; | |
5900 | ||
5901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) SWIG_fail; | |
5902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5903 | if (!SWIG_IsOK(res1)) { | |
5904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5905 | } | |
5906 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5907 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
5908 | if (!SWIG_IsOK(ecode2)) { | |
5909 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_MacSetMetalAppearance" "', expected argument " "2"" of type '" "bool""'"); | |
5910 | } | |
5911 | arg2 = static_cast< bool >(val2); | |
5912 | { | |
5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5914 | wxTopLevelWindow_MacSetMetalAppearance(arg1,arg2); | |
5915 | wxPyEndAllowThreads(__tstate); | |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
5917 | } | |
5918 | resultobj = SWIG_Py_Void(); | |
5919 | return resultobj; | |
5920 | fail: | |
5921 | return NULL; | |
d55e5bfc RD |
5922 | } |
5923 | ||
5924 | ||
554f62e9 RD |
5925 | SWIGINTERN PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5926 | PyObject *resultobj = 0; | |
5927 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5928 | bool result; | |
5929 | void *argp1 = 0 ; | |
5930 | int res1 = 0 ; | |
5931 | PyObject *swig_obj[1] ; | |
5932 | ||
5933 | if (!args) SWIG_fail; | |
5934 | swig_obj[0] = args; | |
5935 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5936 | if (!SWIG_IsOK(res1)) { | |
5937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_MacGetMetalAppearance" "', expected argument " "1"" of type '" "wxTopLevelWindow const *""'"); | |
5938 | } | |
5939 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5940 | { | |
5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5942 | result = (bool)wxTopLevelWindow_MacGetMetalAppearance((wxTopLevelWindow const *)arg1); | |
5943 | wxPyEndAllowThreads(__tstate); | |
5944 | if (PyErr_Occurred()) SWIG_fail; | |
5945 | } | |
5946 | { | |
5947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5948 | } | |
5949 | return resultobj; | |
5950 | fail: | |
5951 | return NULL; | |
5952 | } | |
5953 | ||
5954 | ||
5955 | SWIGINTERN PyObject *_wrap_TopLevelWindow_CenterOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5956 | PyObject *resultobj = 0; | |
5957 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
5958 | int arg2 = (int) wxBOTH ; | |
5959 | void *argp1 = 0 ; | |
5960 | int res1 = 0 ; | |
5961 | int val2 ; | |
5962 | int ecode2 = 0 ; | |
5963 | PyObject * obj0 = 0 ; | |
5964 | PyObject * obj1 = 0 ; | |
5965 | char * kwnames[] = { | |
5966 | (char *) "self",(char *) "dir", NULL | |
5967 | }; | |
5968 | ||
5969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_CenterOnScreen",kwnames,&obj0,&obj1)) SWIG_fail; | |
5970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTopLevelWindow, 0 | 0 ); | |
5971 | if (!SWIG_IsOK(res1)) { | |
5972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "1"" of type '" "wxTopLevelWindow *""'"); | |
5973 | } | |
5974 | arg1 = reinterpret_cast< wxTopLevelWindow * >(argp1); | |
5975 | if (obj1) { | |
5976 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5977 | if (!SWIG_IsOK(ecode2)) { | |
5978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TopLevelWindow_CenterOnScreen" "', expected argument " "2"" of type '" "int""'"); | |
5979 | } | |
5980 | arg2 = static_cast< int >(val2); | |
5981 | } | |
5982 | { | |
5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5984 | (arg1)->CenterOnScreen(arg2); | |
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
5988 | resultobj = SWIG_Py_Void(); | |
5989 | return resultobj; | |
5990 | fail: | |
5991 | return NULL; | |
5992 | } | |
5993 | ||
5994 | ||
5995 | SWIGINTERN PyObject *TopLevelWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5996 | PyObject *obj; | |
5997 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5998 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTopLevelWindow, SWIG_NewClientData(obj)); | |
5999 | return SWIG_Py_Void(); | |
6000 | } | |
6001 | ||
6002 | SWIGINTERN PyObject *_wrap_new_Frame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6003 | PyObject *resultobj = 0; | |
6004 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6005 | int arg2 = (int) (int)-1 ; | |
6006 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6007 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6008 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6009 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6010 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6011 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6012 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
6013 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
6014 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6015 | wxFrame *result = 0 ; | |
6016 | void *argp1 = 0 ; | |
6017 | int res1 = 0 ; | |
6018 | int val2 ; | |
6019 | int ecode2 = 0 ; | |
6020 | bool temp3 = false ; | |
6021 | wxPoint temp4 ; | |
6022 | wxSize temp5 ; | |
6023 | long val6 ; | |
6024 | int ecode6 = 0 ; | |
6025 | bool temp7 = false ; | |
6026 | PyObject * obj0 = 0 ; | |
6027 | PyObject * obj1 = 0 ; | |
6028 | PyObject * obj2 = 0 ; | |
6029 | PyObject * obj3 = 0 ; | |
6030 | PyObject * obj4 = 0 ; | |
6031 | PyObject * obj5 = 0 ; | |
6032 | PyObject * obj6 = 0 ; | |
6033 | char * kwnames[] = { | |
6034 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6035 | }; | |
6036 | ||
6037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6039 | if (!SWIG_IsOK(res1)) { | |
6040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Frame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
6041 | } | |
6042 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
6043 | if (obj1) { | |
6044 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6045 | if (!SWIG_IsOK(ecode2)) { | |
6046 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Frame" "', expected argument " "2"" of type '" "int""'"); | |
6047 | } | |
6048 | arg2 = static_cast< int >(val2); | |
6049 | } | |
6050 | if (obj2) { | |
093d3ff1 | 6051 | { |
554f62e9 RD |
6052 | arg3 = wxString_in_helper(obj2); |
6053 | if (arg3 == NULL) SWIG_fail; | |
6054 | temp3 = true; | |
f5b96ee1 | 6055 | } |
554f62e9 RD |
6056 | } |
6057 | if (obj3) { | |
f5b96ee1 | 6058 | { |
554f62e9 RD |
6059 | arg4 = &temp4; |
6060 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
f20a2e1f | 6061 | } |
554f62e9 RD |
6062 | } |
6063 | if (obj4) { | |
f20a2e1f | 6064 | { |
554f62e9 RD |
6065 | arg5 = &temp5; |
6066 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
f20a2e1f | 6067 | } |
554f62e9 RD |
6068 | } |
6069 | if (obj5) { | |
6070 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6071 | if (!SWIG_IsOK(ecode6)) { | |
6072 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Frame" "', expected argument " "6"" of type '" "long""'"); | |
6073 | } | |
6074 | arg6 = static_cast< long >(val6); | |
6075 | } | |
6076 | if (obj6) { | |
f20a2e1f | 6077 | { |
554f62e9 RD |
6078 | arg7 = wxString_in_helper(obj6); |
6079 | if (arg7 == NULL) SWIG_fail; | |
6080 | temp7 = true; | |
f20a2e1f | 6081 | } |
554f62e9 RD |
6082 | } |
6083 | { | |
6084 | if (!wxPyCheckForApp()) SWIG_fail; | |
6085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6086 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6087 | wxPyEndAllowThreads(__tstate); | |
6088 | if (PyErr_Occurred()) SWIG_fail; | |
6089 | } | |
6090 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_NEW | 0 ); | |
6091 | { | |
6092 | if (temp3) | |
6093 | delete arg3; | |
6094 | } | |
6095 | { | |
6096 | if (temp7) | |
6097 | delete arg7; | |
6098 | } | |
6099 | return resultobj; | |
6100 | fail: | |
6101 | { | |
6102 | if (temp3) | |
6103 | delete arg3; | |
6104 | } | |
6105 | { | |
6106 | if (temp7) | |
6107 | delete arg7; | |
6108 | } | |
6109 | return NULL; | |
d55e5bfc RD |
6110 | } |
6111 | ||
6112 | ||
554f62e9 RD |
6113 | SWIGINTERN PyObject *_wrap_new_PreFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6114 | PyObject *resultobj = 0; | |
6115 | wxFrame *result = 0 ; | |
6116 | ||
6117 | if (!SWIG_Python_UnpackTuple(args,"new_PreFrame",0,0,0)) SWIG_fail; | |
6118 | { | |
6119 | if (!wxPyCheckForApp()) SWIG_fail; | |
6120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6121 | result = (wxFrame *)new wxFrame(); | |
6122 | wxPyEndAllowThreads(__tstate); | |
6123 | if (PyErr_Occurred()) SWIG_fail; | |
6124 | } | |
6125 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFrame, SWIG_POINTER_OWN | 0 ); | |
6126 | return resultobj; | |
6127 | fail: | |
6128 | return NULL; | |
6129 | } | |
6130 | ||
6131 | ||
6132 | SWIGINTERN PyObject *_wrap_Frame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6133 | PyObject *resultobj = 0; | |
6134 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6135 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6136 | int arg3 = (int) (int)-1 ; | |
6137 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6138 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6139 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6140 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6141 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6142 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6143 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
6144 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
6145 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6146 | bool result; | |
6147 | void *argp1 = 0 ; | |
6148 | int res1 = 0 ; | |
6149 | void *argp2 = 0 ; | |
6150 | int res2 = 0 ; | |
6151 | int val3 ; | |
6152 | int ecode3 = 0 ; | |
6153 | bool temp4 = false ; | |
6154 | wxPoint temp5 ; | |
6155 | wxSize temp6 ; | |
6156 | long val7 ; | |
6157 | int ecode7 = 0 ; | |
6158 | bool temp8 = false ; | |
6159 | PyObject * obj0 = 0 ; | |
6160 | PyObject * obj1 = 0 ; | |
6161 | PyObject * obj2 = 0 ; | |
6162 | PyObject * obj3 = 0 ; | |
6163 | PyObject * obj4 = 0 ; | |
6164 | PyObject * obj5 = 0 ; | |
6165 | PyObject * obj6 = 0 ; | |
6166 | PyObject * obj7 = 0 ; | |
6167 | char * kwnames[] = { | |
6168 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6169 | }; | |
6170 | ||
6171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
6172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6173 | if (!SWIG_IsOK(res1)) { | |
6174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_Create" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6175 | } | |
6176 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6177 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6178 | if (!SWIG_IsOK(res2)) { | |
6179 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6180 | } | |
6181 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6182 | if (obj2) { | |
6183 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6184 | if (!SWIG_IsOK(ecode3)) { | |
6185 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_Create" "', expected argument " "3"" of type '" "int""'"); | |
6186 | } | |
6187 | arg3 = static_cast< int >(val3); | |
6188 | } | |
6189 | if (obj3) { | |
d55e5bfc | 6190 | { |
554f62e9 RD |
6191 | arg4 = wxString_in_helper(obj3); |
6192 | if (arg4 == NULL) SWIG_fail; | |
6193 | temp4 = true; | |
d55e5bfc | 6194 | } |
554f62e9 RD |
6195 | } |
6196 | if (obj4) { | |
d55e5bfc | 6197 | { |
554f62e9 RD |
6198 | arg5 = &temp5; |
6199 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 6200 | } |
554f62e9 RD |
6201 | } |
6202 | if (obj5) { | |
d55e5bfc | 6203 | { |
554f62e9 RD |
6204 | arg6 = &temp6; |
6205 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 6206 | } |
554f62e9 RD |
6207 | } |
6208 | if (obj6) { | |
6209 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6210 | if (!SWIG_IsOK(ecode7)) { | |
6211 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Frame_Create" "', expected argument " "7"" of type '" "long""'"); | |
6212 | } | |
6213 | arg7 = static_cast< long >(val7); | |
6214 | } | |
6215 | if (obj7) { | |
6216 | { | |
6217 | arg8 = wxString_in_helper(obj7); | |
6218 | if (arg8 == NULL) SWIG_fail; | |
6219 | temp8 = true; | |
6220 | } | |
6221 | } | |
6222 | { | |
6223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6224 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6225 | wxPyEndAllowThreads(__tstate); | |
6226 | if (PyErr_Occurred()) SWIG_fail; | |
6227 | } | |
6228 | { | |
6229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6230 | } | |
6231 | { | |
6232 | if (temp4) | |
6233 | delete arg4; | |
6234 | } | |
6235 | { | |
6236 | if (temp8) | |
6237 | delete arg8; | |
6238 | } | |
6239 | return resultobj; | |
6240 | fail: | |
6241 | { | |
6242 | if (temp4) | |
6243 | delete arg4; | |
6244 | } | |
6245 | { | |
6246 | if (temp8) | |
6247 | delete arg8; | |
6248 | } | |
6249 | return NULL; | |
d55e5bfc RD |
6250 | } |
6251 | ||
6252 | ||
554f62e9 RD |
6253 | SWIGINTERN PyObject *_wrap_Frame_SendSizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6254 | PyObject *resultobj = 0; | |
6255 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6256 | void *argp1 = 0 ; | |
6257 | int res1 = 0 ; | |
6258 | PyObject *swig_obj[1] ; | |
6259 | ||
6260 | if (!args) SWIG_fail; | |
6261 | swig_obj[0] = args; | |
6262 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6263 | if (!SWIG_IsOK(res1)) { | |
6264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SendSizeEvent" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6265 | } | |
6266 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6267 | { | |
6268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6269 | (arg1)->SendSizeEvent(); | |
6270 | wxPyEndAllowThreads(__tstate); | |
6271 | if (PyErr_Occurred()) SWIG_fail; | |
6272 | } | |
6273 | resultobj = SWIG_Py_Void(); | |
6274 | return resultobj; | |
6275 | fail: | |
6276 | return NULL; | |
6277 | } | |
6278 | ||
6279 | ||
6280 | SWIGINTERN PyObject *_wrap_Frame_SetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6281 | PyObject *resultobj = 0; | |
6282 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6283 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
6284 | void *argp1 = 0 ; | |
6285 | int res1 = 0 ; | |
6286 | void *argp2 = 0 ; | |
6287 | int res2 = 0 ; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | PyObject * obj1 = 0 ; | |
6290 | char * kwnames[] = { | |
6291 | (char *) "self",(char *) "menubar", NULL | |
6292 | }; | |
6293 | ||
6294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6296 | if (!SWIG_IsOK(res1)) { | |
6297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetMenuBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6298 | } | |
6299 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6300 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBar, 0 | 0 ); | |
6301 | if (!SWIG_IsOK(res2)) { | |
6302 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetMenuBar" "', expected argument " "2"" of type '" "wxMenuBar *""'"); | |
6303 | } | |
6304 | arg2 = reinterpret_cast< wxMenuBar * >(argp2); | |
6305 | { | |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | (arg1)->SetMenuBar(arg2); | |
6308 | wxPyEndAllowThreads(__tstate); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
6311 | resultobj = SWIG_Py_Void(); | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | return NULL; | |
d55e5bfc RD |
6315 | } |
6316 | ||
6317 | ||
554f62e9 RD |
6318 | SWIGINTERN PyObject *_wrap_Frame_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6319 | PyObject *resultobj = 0; | |
6320 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6321 | wxMenuBar *result = 0 ; | |
6322 | void *argp1 = 0 ; | |
6323 | int res1 = 0 ; | |
6324 | PyObject *swig_obj[1] ; | |
6325 | ||
6326 | if (!args) SWIG_fail; | |
6327 | swig_obj[0] = args; | |
6328 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6329 | if (!SWIG_IsOK(res1)) { | |
6330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetMenuBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6331 | } | |
6332 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6333 | { | |
6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6335 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
6339 | { | |
6340 | resultobj = wxPyMake_wxObject(result, 0); | |
6341 | } | |
6342 | return resultobj; | |
6343 | fail: | |
6344 | return NULL; | |
6345 | } | |
6346 | ||
6347 | ||
6348 | SWIGINTERN PyObject *_wrap_Frame_ProcessCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6349 | PyObject *resultobj = 0; | |
6350 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6351 | int arg2 ; | |
6352 | bool result; | |
6353 | void *argp1 = 0 ; | |
6354 | int res1 = 0 ; | |
6355 | int val2 ; | |
6356 | int ecode2 = 0 ; | |
6357 | PyObject * obj0 = 0 ; | |
6358 | PyObject * obj1 = 0 ; | |
6359 | char * kwnames[] = { | |
6360 | (char *) "self",(char *) "winid", NULL | |
6361 | }; | |
6362 | ||
6363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) SWIG_fail; | |
6364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6365 | if (!SWIG_IsOK(res1)) { | |
6366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_ProcessCommand" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6367 | } | |
6368 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6370 | if (!SWIG_IsOK(ecode2)) { | |
6371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_ProcessCommand" "', expected argument " "2"" of type '" "int""'"); | |
6372 | } | |
6373 | arg2 = static_cast< int >(val2); | |
6374 | { | |
6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6376 | result = (bool)(arg1)->ProcessCommand(arg2); | |
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | { | |
6381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6382 | } | |
6383 | return resultobj; | |
6384 | fail: | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
6389 | SWIGINTERN PyObject *_wrap_Frame_CreateStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6390 | PyObject *resultobj = 0; | |
6391 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6392 | int arg2 = (int) 1 ; | |
6393 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
6394 | int arg4 = (int) 0 ; | |
6395 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
6396 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
6397 | wxStatusBar *result = 0 ; | |
6398 | void *argp1 = 0 ; | |
6399 | int res1 = 0 ; | |
6400 | int val2 ; | |
6401 | int ecode2 = 0 ; | |
6402 | long val3 ; | |
6403 | int ecode3 = 0 ; | |
6404 | int val4 ; | |
6405 | int ecode4 = 0 ; | |
6406 | bool temp5 = false ; | |
6407 | PyObject * obj0 = 0 ; | |
6408 | PyObject * obj1 = 0 ; | |
6409 | PyObject * obj2 = 0 ; | |
6410 | PyObject * obj3 = 0 ; | |
6411 | PyObject * obj4 = 0 ; | |
6412 | char * kwnames[] = { | |
6413 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6414 | }; | |
6415 | ||
6416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
6417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6418 | if (!SWIG_IsOK(res1)) { | |
6419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6420 | } | |
6421 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6422 | if (obj1) { | |
6423 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6424 | if (!SWIG_IsOK(ecode2)) { | |
6425 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateStatusBar" "', expected argument " "2"" of type '" "int""'"); | |
6426 | } | |
6427 | arg2 = static_cast< int >(val2); | |
6428 | } | |
6429 | if (obj2) { | |
6430 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6431 | if (!SWIG_IsOK(ecode3)) { | |
6432 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateStatusBar" "', expected argument " "3"" of type '" "long""'"); | |
6433 | } | |
6434 | arg3 = static_cast< long >(val3); | |
6435 | } | |
6436 | if (obj3) { | |
6437 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6438 | if (!SWIG_IsOK(ecode4)) { | |
6439 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Frame_CreateStatusBar" "', expected argument " "4"" of type '" "int""'"); | |
6440 | } | |
6441 | arg4 = static_cast< int >(val4); | |
6442 | } | |
6443 | if (obj4) { | |
d55e5bfc | 6444 | { |
554f62e9 RD |
6445 | arg5 = wxString_in_helper(obj4); |
6446 | if (arg5 == NULL) SWIG_fail; | |
6447 | temp5 = true; | |
6448 | } | |
6449 | } | |
6450 | { | |
6451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6452 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
6453 | wxPyEndAllowThreads(__tstate); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
6456 | { | |
6457 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6458 | } | |
6459 | { | |
6460 | if (temp5) | |
6461 | delete arg5; | |
6462 | } | |
6463 | return resultobj; | |
6464 | fail: | |
6465 | { | |
6466 | if (temp5) | |
6467 | delete arg5; | |
6468 | } | |
6469 | return NULL; | |
d55e5bfc RD |
6470 | } |
6471 | ||
6472 | ||
554f62e9 RD |
6473 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6474 | PyObject *resultobj = 0; | |
6475 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6476 | wxStatusBar *result = 0 ; | |
6477 | void *argp1 = 0 ; | |
6478 | int res1 = 0 ; | |
6479 | PyObject *swig_obj[1] ; | |
6480 | ||
6481 | if (!args) SWIG_fail; | |
6482 | swig_obj[0] = args; | |
6483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6484 | if (!SWIG_IsOK(res1)) { | |
6485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6486 | } | |
6487 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
6491 | wxPyEndAllowThreads(__tstate); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | } | |
6494 | { | |
6495 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6496 | } | |
6497 | return resultobj; | |
6498 | fail: | |
6499 | return NULL; | |
6500 | } | |
6501 | ||
6502 | ||
6503 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6504 | PyObject *resultobj = 0; | |
6505 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6506 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
6507 | void *argp1 = 0 ; | |
6508 | int res1 = 0 ; | |
6509 | void *argp2 = 0 ; | |
6510 | int res2 = 0 ; | |
6511 | PyObject * obj0 = 0 ; | |
6512 | PyObject * obj1 = 0 ; | |
6513 | char * kwnames[] = { | |
6514 | (char *) "self",(char *) "statBar", NULL | |
6515 | }; | |
6516 | ||
6517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6519 | if (!SWIG_IsOK(res1)) { | |
6520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6521 | } | |
6522 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6523 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
6524 | if (!SWIG_IsOK(res2)) { | |
6525 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetStatusBar" "', expected argument " "2"" of type '" "wxStatusBar *""'"); | |
6526 | } | |
6527 | arg2 = reinterpret_cast< wxStatusBar * >(argp2); | |
6528 | { | |
6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6530 | (arg1)->SetStatusBar(arg2); | |
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) SWIG_fail; | |
6533 | } | |
6534 | resultobj = SWIG_Py_Void(); | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
6541 | SWIGINTERN PyObject *_wrap_Frame_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6542 | PyObject *resultobj = 0; | |
6543 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6544 | wxString *arg2 = 0 ; | |
6545 | int arg3 = (int) 0 ; | |
6546 | void *argp1 = 0 ; | |
6547 | int res1 = 0 ; | |
6548 | bool temp2 = false ; | |
6549 | int val3 ; | |
6550 | int ecode3 = 0 ; | |
6551 | PyObject * obj0 = 0 ; | |
6552 | PyObject * obj1 = 0 ; | |
6553 | PyObject * obj2 = 0 ; | |
6554 | char * kwnames[] = { | |
6555 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6556 | }; | |
6557 | ||
6558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6560 | if (!SWIG_IsOK(res1)) { | |
6561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6562 | } | |
6563 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6564 | { | |
6565 | arg2 = wxString_in_helper(obj1); | |
6566 | if (arg2 == NULL) SWIG_fail; | |
6567 | temp2 = true; | |
6568 | } | |
6569 | if (obj2) { | |
6570 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6571 | if (!SWIG_IsOK(ecode3)) { | |
6572 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6573 | } | |
6574 | arg3 = static_cast< int >(val3); | |
6575 | } | |
6576 | { | |
6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6578 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | } | |
6582 | resultobj = SWIG_Py_Void(); | |
6583 | { | |
6584 | if (temp2) | |
6585 | delete arg2; | |
6586 | } | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | { | |
6590 | if (temp2) | |
6591 | delete arg2; | |
6592 | } | |
6593 | return NULL; | |
d55e5bfc RD |
6594 | } |
6595 | ||
6596 | ||
554f62e9 RD |
6597 | SWIGINTERN PyObject *_wrap_Frame_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6598 | PyObject *resultobj = 0; | |
6599 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6600 | int arg2 ; | |
6601 | int *arg3 = (int *) 0 ; | |
6602 | void *argp1 = 0 ; | |
6603 | int res1 = 0 ; | |
6604 | PyObject * obj0 = 0 ; | |
6605 | PyObject * obj1 = 0 ; | |
6606 | char * kwnames[] = { | |
6607 | (char *) "self",(char *) "widths", NULL | |
6608 | }; | |
6609 | ||
6610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
6611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6612 | if (!SWIG_IsOK(res1)) { | |
6613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusWidths" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6614 | } | |
6615 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6616 | { | |
6617 | arg2 = PyList_Size(obj1); | |
6618 | arg3 = int_LIST_helper(obj1); | |
6619 | if (arg3 == NULL) SWIG_fail; | |
6620 | } | |
6621 | { | |
6622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6623 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
6624 | wxPyEndAllowThreads(__tstate); | |
6625 | if (PyErr_Occurred()) SWIG_fail; | |
6626 | } | |
6627 | resultobj = SWIG_Py_Void(); | |
6628 | { | |
6629 | if (arg3) delete [] arg3; | |
6630 | } | |
6631 | return resultobj; | |
6632 | fail: | |
6633 | { | |
6634 | if (arg3) delete [] arg3; | |
6635 | } | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
6640 | SWIGINTERN PyObject *_wrap_Frame_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6641 | PyObject *resultobj = 0; | |
6642 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6643 | wxString *arg2 = 0 ; | |
6644 | int arg3 = (int) 0 ; | |
6645 | void *argp1 = 0 ; | |
6646 | int res1 = 0 ; | |
6647 | bool temp2 = false ; | |
6648 | int val3 ; | |
6649 | int ecode3 = 0 ; | |
6650 | PyObject * obj0 = 0 ; | |
6651 | PyObject * obj1 = 0 ; | |
6652 | PyObject * obj2 = 0 ; | |
6653 | char * kwnames[] = { | |
6654 | (char *) "self",(char *) "text",(char *) "number", NULL | |
6655 | }; | |
6656 | ||
6657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6659 | if (!SWIG_IsOK(res1)) { | |
6660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PushStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6661 | } | |
6662 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6663 | { | |
6664 | arg2 = wxString_in_helper(obj1); | |
6665 | if (arg2 == NULL) SWIG_fail; | |
6666 | temp2 = true; | |
6667 | } | |
6668 | if (obj2) { | |
6669 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6670 | if (!SWIG_IsOK(ecode3)) { | |
6671 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
6672 | } | |
6673 | arg3 = static_cast< int >(val3); | |
6674 | } | |
6675 | { | |
6676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6677 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
6680 | } | |
6681 | resultobj = SWIG_Py_Void(); | |
6682 | { | |
6683 | if (temp2) | |
6684 | delete arg2; | |
6685 | } | |
6686 | return resultobj; | |
6687 | fail: | |
6688 | { | |
6689 | if (temp2) | |
6690 | delete arg2; | |
6691 | } | |
6692 | return NULL; | |
6693 | } | |
6694 | ||
6695 | ||
6696 | SWIGINTERN PyObject *_wrap_Frame_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6697 | PyObject *resultobj = 0; | |
6698 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6699 | int arg2 = (int) 0 ; | |
6700 | void *argp1 = 0 ; | |
6701 | int res1 = 0 ; | |
6702 | int val2 ; | |
6703 | int ecode2 = 0 ; | |
6704 | PyObject * obj0 = 0 ; | |
6705 | PyObject * obj1 = 0 ; | |
6706 | char * kwnames[] = { | |
6707 | (char *) "self",(char *) "number", NULL | |
6708 | }; | |
6709 | ||
6710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6712 | if (!SWIG_IsOK(res1)) { | |
6713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_PopStatusText" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6714 | } | |
6715 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6716 | if (obj1) { | |
6717 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6718 | if (!SWIG_IsOK(ecode2)) { | |
6719 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
6720 | } | |
6721 | arg2 = static_cast< int >(val2); | |
6722 | } | |
6723 | { | |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6725 | (arg1)->PopStatusText(arg2); | |
6726 | wxPyEndAllowThreads(__tstate); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
6729 | resultobj = SWIG_Py_Void(); | |
6730 | return resultobj; | |
6731 | fail: | |
6732 | return NULL; | |
6733 | } | |
6734 | ||
6735 | ||
6736 | SWIGINTERN PyObject *_wrap_Frame_SetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6737 | PyObject *resultobj = 0; | |
6738 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6739 | int arg2 ; | |
6740 | void *argp1 = 0 ; | |
6741 | int res1 = 0 ; | |
6742 | int val2 ; | |
6743 | int ecode2 = 0 ; | |
6744 | PyObject * obj0 = 0 ; | |
6745 | PyObject * obj1 = 0 ; | |
6746 | char * kwnames[] = { | |
6747 | (char *) "self",(char *) "n", NULL | |
6748 | }; | |
6749 | ||
6750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) SWIG_fail; | |
6751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6752 | if (!SWIG_IsOK(res1)) { | |
6753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6754 | } | |
6755 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6756 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6757 | if (!SWIG_IsOK(ecode2)) { | |
6758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_SetStatusBarPane" "', expected argument " "2"" of type '" "int""'"); | |
6759 | } | |
6760 | arg2 = static_cast< int >(val2); | |
6761 | { | |
6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6763 | (arg1)->SetStatusBarPane(arg2); | |
6764 | wxPyEndAllowThreads(__tstate); | |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
6766 | } | |
6767 | resultobj = SWIG_Py_Void(); | |
6768 | return resultobj; | |
6769 | fail: | |
6770 | return NULL; | |
d55e5bfc RD |
6771 | } |
6772 | ||
6773 | ||
554f62e9 RD |
6774 | SWIGINTERN PyObject *_wrap_Frame_GetStatusBarPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6775 | PyObject *resultobj = 0; | |
6776 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6777 | int result; | |
6778 | void *argp1 = 0 ; | |
6779 | int res1 = 0 ; | |
6780 | PyObject *swig_obj[1] ; | |
6781 | ||
6782 | if (!args) SWIG_fail; | |
6783 | swig_obj[0] = args; | |
6784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6785 | if (!SWIG_IsOK(res1)) { | |
6786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetStatusBarPane" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6787 | } | |
6788 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6789 | { | |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
6795 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6796 | return resultobj; | |
6797 | fail: | |
6798 | return NULL; | |
6799 | } | |
6800 | ||
6801 | ||
6802 | SWIGINTERN PyObject *_wrap_Frame_CreateToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6803 | PyObject *resultobj = 0; | |
6804 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6805 | long arg2 = (long) -1 ; | |
6806 | int arg3 = (int) -1 ; | |
6807 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
6808 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6809 | wxToolBar *result = 0 ; | |
6810 | void *argp1 = 0 ; | |
6811 | int res1 = 0 ; | |
6812 | long val2 ; | |
6813 | int ecode2 = 0 ; | |
6814 | int val3 ; | |
6815 | int ecode3 = 0 ; | |
6816 | bool temp4 = false ; | |
6817 | PyObject * obj0 = 0 ; | |
6818 | PyObject * obj1 = 0 ; | |
6819 | PyObject * obj2 = 0 ; | |
6820 | PyObject * obj3 = 0 ; | |
6821 | char * kwnames[] = { | |
6822 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
6823 | }; | |
6824 | ||
6825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6827 | if (!SWIG_IsOK(res1)) { | |
6828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_CreateToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6829 | } | |
6830 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6831 | if (obj1) { | |
6832 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6833 | if (!SWIG_IsOK(ecode2)) { | |
6834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Frame_CreateToolBar" "', expected argument " "2"" of type '" "long""'"); | |
6835 | } | |
6836 | arg2 = static_cast< long >(val2); | |
6837 | } | |
6838 | if (obj2) { | |
6839 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6840 | if (!SWIG_IsOK(ecode3)) { | |
6841 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_CreateToolBar" "', expected argument " "3"" of type '" "int""'"); | |
6842 | } | |
6843 | arg3 = static_cast< int >(val3); | |
6844 | } | |
6845 | if (obj3) { | |
d55e5bfc | 6846 | { |
554f62e9 RD |
6847 | arg4 = wxString_in_helper(obj3); |
6848 | if (arg4 == NULL) SWIG_fail; | |
6849 | temp4 = true; | |
d55e5bfc | 6850 | } |
554f62e9 RD |
6851 | } |
6852 | { | |
6853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6854 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | { | |
6859 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6860 | } | |
6861 | { | |
6862 | if (temp4) | |
6863 | delete arg4; | |
6864 | } | |
6865 | return resultobj; | |
6866 | fail: | |
6867 | { | |
6868 | if (temp4) | |
6869 | delete arg4; | |
6870 | } | |
6871 | return NULL; | |
d55e5bfc RD |
6872 | } |
6873 | ||
6874 | ||
554f62e9 RD |
6875 | SWIGINTERN PyObject *_wrap_Frame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6876 | PyObject *resultobj = 0; | |
6877 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6878 | wxToolBar *result = 0 ; | |
6879 | void *argp1 = 0 ; | |
6880 | int res1 = 0 ; | |
6881 | PyObject *swig_obj[1] ; | |
6882 | ||
6883 | if (!args) SWIG_fail; | |
6884 | swig_obj[0] = args; | |
6885 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6886 | if (!SWIG_IsOK(res1)) { | |
6887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_GetToolBar" "', expected argument " "1"" of type '" "wxFrame const *""'"); | |
6888 | } | |
6889 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6890 | { | |
6891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6892 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
6893 | wxPyEndAllowThreads(__tstate); | |
6894 | if (PyErr_Occurred()) SWIG_fail; | |
6895 | } | |
6896 | { | |
6897 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
6898 | } | |
6899 | return resultobj; | |
6900 | fail: | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
6905 | SWIGINTERN PyObject *_wrap_Frame_SetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6906 | PyObject *resultobj = 0; | |
6907 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6908 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
6909 | void *argp1 = 0 ; | |
6910 | int res1 = 0 ; | |
6911 | void *argp2 = 0 ; | |
6912 | int res2 = 0 ; | |
6913 | PyObject * obj0 = 0 ; | |
6914 | PyObject * obj1 = 0 ; | |
6915 | char * kwnames[] = { | |
6916 | (char *) "self",(char *) "toolbar", NULL | |
6917 | }; | |
6918 | ||
6919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
6920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6921 | if (!SWIG_IsOK(res1)) { | |
6922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_SetToolBar" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6923 | } | |
6924 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6925 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBar, 0 | 0 ); | |
6926 | if (!SWIG_IsOK(res2)) { | |
6927 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_SetToolBar" "', expected argument " "2"" of type '" "wxToolBar *""'"); | |
6928 | } | |
6929 | arg2 = reinterpret_cast< wxToolBar * >(argp2); | |
6930 | { | |
6931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6932 | (arg1)->SetToolBar(arg2); | |
6933 | wxPyEndAllowThreads(__tstate); | |
6934 | if (PyErr_Occurred()) SWIG_fail; | |
6935 | } | |
6936 | resultobj = SWIG_Py_Void(); | |
6937 | return resultobj; | |
6938 | fail: | |
6939 | return NULL; | |
6940 | } | |
6941 | ||
6942 | ||
6943 | SWIGINTERN PyObject *_wrap_Frame_DoGiveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6944 | PyObject *resultobj = 0; | |
6945 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6946 | wxString *arg2 = 0 ; | |
6947 | bool arg3 ; | |
6948 | void *argp1 = 0 ; | |
6949 | int res1 = 0 ; | |
6950 | bool temp2 = false ; | |
6951 | bool val3 ; | |
6952 | int ecode3 = 0 ; | |
6953 | PyObject * obj0 = 0 ; | |
6954 | PyObject * obj1 = 0 ; | |
6955 | PyObject * obj2 = 0 ; | |
6956 | char * kwnames[] = { | |
6957 | (char *) "self",(char *) "text",(char *) "show", NULL | |
6958 | }; | |
6959 | ||
6960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
6962 | if (!SWIG_IsOK(res1)) { | |
6963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoGiveHelp" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
6964 | } | |
6965 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
6966 | { | |
6967 | arg2 = wxString_in_helper(obj1); | |
6968 | if (arg2 == NULL) SWIG_fail; | |
6969 | temp2 = true; | |
6970 | } | |
6971 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
6972 | if (!SWIG_IsOK(ecode3)) { | |
6973 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Frame_DoGiveHelp" "', expected argument " "3"" of type '" "bool""'"); | |
6974 | } | |
6975 | arg3 = static_cast< bool >(val3); | |
6976 | { | |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
6979 | wxPyEndAllowThreads(__tstate); | |
6980 | if (PyErr_Occurred()) SWIG_fail; | |
6981 | } | |
6982 | resultobj = SWIG_Py_Void(); | |
6983 | { | |
6984 | if (temp2) | |
6985 | delete arg2; | |
6986 | } | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | { | |
6990 | if (temp2) | |
6991 | delete arg2; | |
6992 | } | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
6997 | SWIGINTERN PyObject *_wrap_Frame_DoMenuUpdates(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6998 | PyObject *resultobj = 0; | |
6999 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7000 | wxMenu *arg2 = (wxMenu *) NULL ; | |
7001 | void *argp1 = 0 ; | |
7002 | int res1 = 0 ; | |
7003 | void *argp2 = 0 ; | |
7004 | int res2 = 0 ; | |
7005 | PyObject * obj0 = 0 ; | |
7006 | PyObject * obj1 = 0 ; | |
7007 | char * kwnames[] = { | |
7008 | (char *) "self",(char *) "menu", NULL | |
7009 | }; | |
7010 | ||
7011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) SWIG_fail; | |
7012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
7013 | if (!SWIG_IsOK(res1)) { | |
7014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Frame_DoMenuUpdates" "', expected argument " "1"" of type '" "wxFrame *""'"); | |
7015 | } | |
7016 | arg1 = reinterpret_cast< wxFrame * >(argp1); | |
7017 | if (obj1) { | |
7018 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
7019 | if (!SWIG_IsOK(res2)) { | |
7020 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Frame_DoMenuUpdates" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
d55e5bfc | 7021 | } |
554f62e9 RD |
7022 | arg2 = reinterpret_cast< wxMenu * >(argp2); |
7023 | } | |
7024 | { | |
7025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7026 | (arg1)->DoMenuUpdates(arg2); | |
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | resultobj = SWIG_Py_Void(); | |
7031 | return resultobj; | |
7032 | fail: | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | SWIGINTERN PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj = 0; | |
7039 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7040 | SwigValueWrapper<wxVisualAttributes > result; | |
7041 | int val1 ; | |
7042 | int ecode1 = 0 ; | |
7043 | PyObject * obj0 = 0 ; | |
7044 | char * kwnames[] = { | |
7045 | (char *) "variant", NULL | |
7046 | }; | |
7047 | ||
7048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7049 | if (obj0) { | |
7050 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7051 | if (!SWIG_IsOK(ecode1)) { | |
7052 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Frame_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7053 | } | |
7054 | arg1 = static_cast< wxWindowVariant >(val1); | |
7055 | } | |
7056 | { | |
7057 | if (!wxPyCheckForApp()) SWIG_fail; | |
7058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7059 | result = wxFrame::GetClassDefaultAttributes(arg1); | |
7060 | wxPyEndAllowThreads(__tstate); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7064 | return resultobj; | |
7065 | fail: | |
7066 | return NULL; | |
7067 | } | |
7068 | ||
7069 | ||
7070 | SWIGINTERN PyObject *Frame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7071 | PyObject *obj; | |
7072 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7073 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFrame, SWIG_NewClientData(obj)); | |
7074 | return SWIG_Py_Void(); | |
7075 | } | |
7076 | ||
7077 | SWIGINTERN PyObject *Frame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7078 | return SWIG_Python_InitShadowInstance(args); | |
7079 | } | |
7080 | ||
7081 | SWIGINTERN PyObject *_wrap_new_Dialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7082 | PyObject *resultobj = 0; | |
7083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7084 | int arg2 = (int) (int)-1 ; | |
7085 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7086 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7087 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7088 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7089 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7090 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7091 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7092 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
7093 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7094 | wxDialog *result = 0 ; | |
7095 | void *argp1 = 0 ; | |
7096 | int res1 = 0 ; | |
7097 | int val2 ; | |
7098 | int ecode2 = 0 ; | |
7099 | bool temp3 = false ; | |
7100 | wxPoint temp4 ; | |
7101 | wxSize temp5 ; | |
7102 | long val6 ; | |
7103 | int ecode6 = 0 ; | |
7104 | bool temp7 = false ; | |
7105 | PyObject * obj0 = 0 ; | |
7106 | PyObject * obj1 = 0 ; | |
7107 | PyObject * obj2 = 0 ; | |
7108 | PyObject * obj3 = 0 ; | |
7109 | PyObject * obj4 = 0 ; | |
7110 | PyObject * obj5 = 0 ; | |
7111 | PyObject * obj6 = 0 ; | |
7112 | char * kwnames[] = { | |
7113 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7114 | }; | |
7115 | ||
7116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7118 | if (!SWIG_IsOK(res1)) { | |
7119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Dialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7120 | } | |
7121 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7122 | if (obj1) { | |
7123 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7124 | if (!SWIG_IsOK(ecode2)) { | |
7125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Dialog" "', expected argument " "2"" of type '" "int""'"); | |
7126 | } | |
7127 | arg2 = static_cast< int >(val2); | |
7128 | } | |
7129 | if (obj2) { | |
d55e5bfc | 7130 | { |
554f62e9 RD |
7131 | arg3 = wxString_in_helper(obj2); |
7132 | if (arg3 == NULL) SWIG_fail; | |
7133 | temp3 = true; | |
d55e5bfc | 7134 | } |
554f62e9 RD |
7135 | } |
7136 | if (obj3) { | |
d55e5bfc | 7137 | { |
554f62e9 RD |
7138 | arg4 = &temp4; |
7139 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 7140 | } |
554f62e9 RD |
7141 | } |
7142 | if (obj4) { | |
d55e5bfc | 7143 | { |
554f62e9 RD |
7144 | arg5 = &temp5; |
7145 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7146 | } |
554f62e9 RD |
7147 | } |
7148 | if (obj5) { | |
7149 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7150 | if (!SWIG_IsOK(ecode6)) { | |
7151 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Dialog" "', expected argument " "6"" of type '" "long""'"); | |
7152 | } | |
7153 | arg6 = static_cast< long >(val6); | |
7154 | } | |
7155 | if (obj6) { | |
093d3ff1 | 7156 | { |
554f62e9 RD |
7157 | arg7 = wxString_in_helper(obj6); |
7158 | if (arg7 == NULL) SWIG_fail; | |
7159 | temp7 = true; | |
d55e5bfc | 7160 | } |
554f62e9 RD |
7161 | } |
7162 | { | |
7163 | if (!wxPyCheckForApp()) SWIG_fail; | |
7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7165 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
7169 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_NEW | 0 ); | |
7170 | { | |
7171 | if (temp3) | |
7172 | delete arg3; | |
7173 | } | |
7174 | { | |
7175 | if (temp7) | |
7176 | delete arg7; | |
7177 | } | |
7178 | return resultobj; | |
7179 | fail: | |
7180 | { | |
7181 | if (temp3) | |
7182 | delete arg3; | |
7183 | } | |
7184 | { | |
7185 | if (temp7) | |
7186 | delete arg7; | |
7187 | } | |
7188 | return NULL; | |
d55e5bfc RD |
7189 | } |
7190 | ||
7191 | ||
554f62e9 RD |
7192 | SWIGINTERN PyObject *_wrap_new_PreDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7193 | PyObject *resultobj = 0; | |
7194 | wxDialog *result = 0 ; | |
7195 | ||
7196 | if (!SWIG_Python_UnpackTuple(args,"new_PreDialog",0,0,0)) SWIG_fail; | |
7197 | { | |
7198 | if (!wxPyCheckForApp()) SWIG_fail; | |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | result = (wxDialog *)new wxDialog(); | |
7201 | wxPyEndAllowThreads(__tstate); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
7204 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDialog, SWIG_POINTER_OWN | 0 ); | |
7205 | return resultobj; | |
7206 | fail: | |
7207 | return NULL; | |
7208 | } | |
7209 | ||
7210 | ||
7211 | SWIGINTERN PyObject *_wrap_Dialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7212 | PyObject *resultobj = 0; | |
7213 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7214 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7215 | int arg3 = (int) (int)-1 ; | |
7216 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7217 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7218 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7219 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7220 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7221 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7222 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
7223 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
7224 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7225 | bool result; | |
7226 | void *argp1 = 0 ; | |
7227 | int res1 = 0 ; | |
7228 | void *argp2 = 0 ; | |
7229 | int res2 = 0 ; | |
7230 | int val3 ; | |
7231 | int ecode3 = 0 ; | |
7232 | bool temp4 = false ; | |
7233 | wxPoint temp5 ; | |
7234 | wxSize temp6 ; | |
7235 | long val7 ; | |
7236 | int ecode7 = 0 ; | |
7237 | bool temp8 = false ; | |
7238 | PyObject * obj0 = 0 ; | |
7239 | PyObject * obj1 = 0 ; | |
7240 | PyObject * obj2 = 0 ; | |
7241 | PyObject * obj3 = 0 ; | |
7242 | PyObject * obj4 = 0 ; | |
7243 | PyObject * obj5 = 0 ; | |
7244 | PyObject * obj6 = 0 ; | |
7245 | PyObject * obj7 = 0 ; | |
7246 | char * kwnames[] = { | |
7247 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7248 | }; | |
7249 | ||
7250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7252 | if (!SWIG_IsOK(res1)) { | |
7253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_Create" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7254 | } | |
7255 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7256 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7257 | if (!SWIG_IsOK(res2)) { | |
7258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Dialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7259 | } | |
7260 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
7261 | if (obj2) { | |
7262 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7263 | if (!SWIG_IsOK(ecode3)) { | |
7264 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_Create" "', expected argument " "3"" of type '" "int""'"); | |
7265 | } | |
7266 | arg3 = static_cast< int >(val3); | |
7267 | } | |
7268 | if (obj3) { | |
093d3ff1 | 7269 | { |
554f62e9 RD |
7270 | arg4 = wxString_in_helper(obj3); |
7271 | if (arg4 == NULL) SWIG_fail; | |
7272 | temp4 = true; | |
d55e5bfc | 7273 | } |
554f62e9 RD |
7274 | } |
7275 | if (obj4) { | |
d55e5bfc | 7276 | { |
554f62e9 RD |
7277 | arg5 = &temp5; |
7278 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 7279 | } |
554f62e9 RD |
7280 | } |
7281 | if (obj5) { | |
d55e5bfc | 7282 | { |
554f62e9 RD |
7283 | arg6 = &temp6; |
7284 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 7285 | } |
554f62e9 RD |
7286 | } |
7287 | if (obj6) { | |
7288 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
7289 | if (!SWIG_IsOK(ecode7)) { | |
7290 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Dialog_Create" "', expected argument " "7"" of type '" "long""'"); | |
7291 | } | |
7292 | arg7 = static_cast< long >(val7); | |
7293 | } | |
7294 | if (obj7) { | |
d55e5bfc | 7295 | { |
554f62e9 RD |
7296 | arg8 = wxString_in_helper(obj7); |
7297 | if (arg8 == NULL) SWIG_fail; | |
7298 | temp8 = true; | |
d55e5bfc | 7299 | } |
554f62e9 RD |
7300 | } |
7301 | { | |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7304 | wxPyEndAllowThreads(__tstate); | |
7305 | if (PyErr_Occurred()) SWIG_fail; | |
7306 | } | |
7307 | { | |
7308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7309 | } | |
7310 | { | |
7311 | if (temp4) | |
7312 | delete arg4; | |
7313 | } | |
7314 | { | |
7315 | if (temp8) | |
7316 | delete arg8; | |
7317 | } | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | { | |
7321 | if (temp4) | |
7322 | delete arg4; | |
7323 | } | |
7324 | { | |
7325 | if (temp8) | |
7326 | delete arg8; | |
7327 | } | |
7328 | return NULL; | |
7329 | } | |
7330 | ||
7331 | ||
7332 | SWIGINTERN PyObject *_wrap_Dialog_SetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7333 | PyObject *resultobj = 0; | |
7334 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7335 | int arg2 ; | |
7336 | void *argp1 = 0 ; | |
7337 | int res1 = 0 ; | |
7338 | int val2 ; | |
7339 | int ecode2 = 0 ; | |
7340 | PyObject * obj0 = 0 ; | |
7341 | PyObject * obj1 = 0 ; | |
7342 | char * kwnames[] = { | |
7343 | (char *) "self",(char *) "returnCode", NULL | |
7344 | }; | |
7345 | ||
7346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) SWIG_fail; | |
7347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7348 | if (!SWIG_IsOK(res1)) { | |
7349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetReturnCode" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7350 | } | |
7351 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7352 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7353 | if (!SWIG_IsOK(ecode2)) { | |
7354 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetReturnCode" "', expected argument " "2"" of type '" "int""'"); | |
7355 | } | |
7356 | arg2 = static_cast< int >(val2); | |
7357 | { | |
7358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7359 | (arg1)->SetReturnCode(arg2); | |
7360 | wxPyEndAllowThreads(__tstate); | |
7361 | if (PyErr_Occurred()) SWIG_fail; | |
7362 | } | |
7363 | resultobj = SWIG_Py_Void(); | |
7364 | return resultobj; | |
7365 | fail: | |
7366 | return NULL; | |
d55e5bfc RD |
7367 | } |
7368 | ||
7369 | ||
554f62e9 RD |
7370 | SWIGINTERN PyObject *_wrap_Dialog_GetReturnCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7371 | PyObject *resultobj = 0; | |
7372 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7373 | int result; | |
7374 | void *argp1 = 0 ; | |
7375 | int res1 = 0 ; | |
7376 | PyObject *swig_obj[1] ; | |
7377 | ||
7378 | if (!args) SWIG_fail; | |
7379 | swig_obj[0] = args; | |
7380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7381 | if (!SWIG_IsOK(res1)) { | |
7382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetReturnCode" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7383 | } | |
7384 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
7388 | wxPyEndAllowThreads(__tstate); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7392 | return resultobj; | |
7393 | fail: | |
7394 | return NULL; | |
7395 | } | |
7396 | ||
7397 | ||
7398 | SWIGINTERN PyObject *_wrap_Dialog_SetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7399 | PyObject *resultobj = 0; | |
7400 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7401 | int arg2 ; | |
7402 | void *argp1 = 0 ; | |
7403 | int res1 = 0 ; | |
7404 | int val2 ; | |
7405 | int ecode2 = 0 ; | |
7406 | PyObject * obj0 = 0 ; | |
7407 | PyObject * obj1 = 0 ; | |
7408 | char * kwnames[] = { | |
7409 | (char *) "self",(char *) "affirmativeId", NULL | |
7410 | }; | |
7411 | ||
7412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetAffirmativeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7414 | if (!SWIG_IsOK(res1)) { | |
7415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7416 | } | |
7417 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7418 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7419 | if (!SWIG_IsOK(ecode2)) { | |
7420 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetAffirmativeId" "', expected argument " "2"" of type '" "int""'"); | |
7421 | } | |
7422 | arg2 = static_cast< int >(val2); | |
7423 | { | |
7424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7425 | (arg1)->SetAffirmativeId(arg2); | |
7426 | wxPyEndAllowThreads(__tstate); | |
7427 | if (PyErr_Occurred()) SWIG_fail; | |
7428 | } | |
7429 | resultobj = SWIG_Py_Void(); | |
7430 | return resultobj; | |
7431 | fail: | |
7432 | return NULL; | |
d55e5bfc RD |
7433 | } |
7434 | ||
7435 | ||
554f62e9 RD |
7436 | SWIGINTERN PyObject *_wrap_Dialog_GetAffirmativeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7437 | PyObject *resultobj = 0; | |
7438 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7439 | int result; | |
7440 | void *argp1 = 0 ; | |
7441 | int res1 = 0 ; | |
7442 | PyObject *swig_obj[1] ; | |
7443 | ||
7444 | if (!args) SWIG_fail; | |
7445 | swig_obj[0] = args; | |
7446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7447 | if (!SWIG_IsOK(res1)) { | |
7448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetAffirmativeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7449 | } | |
7450 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7451 | { | |
7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7453 | result = (int)((wxDialog const *)arg1)->GetAffirmativeId(); | |
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
7457 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7458 | return resultobj; | |
7459 | fail: | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
7464 | SWIGINTERN PyObject *_wrap_Dialog_SetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7465 | PyObject *resultobj = 0; | |
7466 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7467 | int arg2 ; | |
7468 | void *argp1 = 0 ; | |
7469 | int res1 = 0 ; | |
7470 | int val2 ; | |
7471 | int ecode2 = 0 ; | |
7472 | PyObject * obj0 = 0 ; | |
7473 | PyObject * obj1 = 0 ; | |
7474 | char * kwnames[] = { | |
7475 | (char *) "self",(char *) "escapeId", NULL | |
7476 | }; | |
7477 | ||
7478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetEscapeId",kwnames,&obj0,&obj1)) SWIG_fail; | |
7479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7480 | if (!SWIG_IsOK(res1)) { | |
7481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_SetEscapeId" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7482 | } | |
7483 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7484 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7485 | if (!SWIG_IsOK(ecode2)) { | |
7486 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_SetEscapeId" "', expected argument " "2"" of type '" "int""'"); | |
7487 | } | |
7488 | arg2 = static_cast< int >(val2); | |
7489 | { | |
7490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7491 | (arg1)->SetEscapeId(arg2); | |
7492 | wxPyEndAllowThreads(__tstate); | |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
7494 | } | |
7495 | resultobj = SWIG_Py_Void(); | |
7496 | return resultobj; | |
7497 | fail: | |
7498 | return NULL; | |
d55e5bfc RD |
7499 | } |
7500 | ||
7501 | ||
554f62e9 RD |
7502 | SWIGINTERN PyObject *_wrap_Dialog_GetEscapeId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7503 | PyObject *resultobj = 0; | |
7504 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7505 | int result; | |
7506 | void *argp1 = 0 ; | |
7507 | int res1 = 0 ; | |
7508 | PyObject *swig_obj[1] ; | |
7509 | ||
7510 | if (!args) SWIG_fail; | |
7511 | swig_obj[0] = args; | |
7512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7513 | if (!SWIG_IsOK(res1)) { | |
7514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_GetEscapeId" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7515 | } | |
7516 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7517 | { | |
7518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7519 | result = (int)((wxDialog const *)arg1)->GetEscapeId(); | |
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
7523 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7524 | return resultobj; | |
7525 | fail: | |
7526 | return NULL; | |
7527 | } | |
7528 | ||
7529 | ||
7530 | SWIGINTERN PyObject *_wrap_Dialog_CreateTextSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7531 | PyObject *resultobj = 0; | |
7532 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7533 | wxString *arg2 = 0 ; | |
7534 | wxSizer *result = 0 ; | |
7535 | void *argp1 = 0 ; | |
7536 | int res1 = 0 ; | |
7537 | bool temp2 = false ; | |
7538 | PyObject * obj0 = 0 ; | |
7539 | PyObject * obj1 = 0 ; | |
7540 | char * kwnames[] = { | |
7541 | (char *) "self",(char *) "message", NULL | |
7542 | }; | |
7543 | ||
7544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7546 | if (!SWIG_IsOK(res1)) { | |
7547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateTextSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7548 | } | |
7549 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7550 | { | |
7551 | arg2 = wxString_in_helper(obj1); | |
7552 | if (arg2 == NULL) SWIG_fail; | |
7553 | temp2 = true; | |
7554 | } | |
7555 | { | |
7556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7557 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | { | |
7562 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7563 | } | |
7564 | { | |
7565 | if (temp2) | |
7566 | delete arg2; | |
7567 | } | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | { | |
7571 | if (temp2) | |
7572 | delete arg2; | |
7573 | } | |
7574 | return NULL; | |
7575 | } | |
7576 | ||
7577 | ||
7578 | SWIGINTERN PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7579 | PyObject *resultobj = 0; | |
7580 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7581 | long arg2 ; | |
7582 | bool arg3 = (bool) false ; | |
7583 | int arg4 = (int) 0 ; | |
7584 | wxSizer *result = 0 ; | |
7585 | void *argp1 = 0 ; | |
7586 | int res1 = 0 ; | |
7587 | long val2 ; | |
7588 | int ecode2 = 0 ; | |
7589 | bool val3 ; | |
7590 | int ecode3 = 0 ; | |
7591 | int val4 ; | |
7592 | int ecode4 = 0 ; | |
7593 | PyObject * obj0 = 0 ; | |
7594 | PyObject * obj1 = 0 ; | |
7595 | PyObject * obj2 = 0 ; | |
7596 | PyObject * obj3 = 0 ; | |
7597 | char * kwnames[] = { | |
7598 | (char *) "self",(char *) "flags",(char *) "separated",(char *) "distance", NULL | |
7599 | }; | |
7600 | ||
7601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7603 | if (!SWIG_IsOK(res1)) { | |
7604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7605 | } | |
7606 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7607 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7608 | if (!SWIG_IsOK(ecode2)) { | |
7609 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7610 | } | |
7611 | arg2 = static_cast< long >(val2); | |
7612 | if (obj2) { | |
7613 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
7614 | if (!SWIG_IsOK(ecode3)) { | |
7615 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "3"" of type '" "bool""'"); | |
7616 | } | |
7617 | arg3 = static_cast< bool >(val3); | |
7618 | } | |
7619 | if (obj3) { | |
7620 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7621 | if (!SWIG_IsOK(ecode4)) { | |
7622 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Dialog_CreateButtonSizer" "', expected argument " "4"" of type '" "int""'"); | |
7623 | } | |
7624 | arg4 = static_cast< int >(val4); | |
7625 | } | |
7626 | { | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2,arg3,arg4); | |
7629 | wxPyEndAllowThreads(__tstate); | |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
7631 | } | |
7632 | { | |
7633 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
7634 | } | |
7635 | return resultobj; | |
7636 | fail: | |
7637 | return NULL; | |
7638 | } | |
7639 | ||
7640 | ||
7641 | SWIGINTERN PyObject *_wrap_Dialog_CreateStdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7642 | PyObject *resultobj = 0; | |
7643 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7644 | long arg2 ; | |
7645 | wxStdDialogButtonSizer *result = 0 ; | |
7646 | void *argp1 = 0 ; | |
7647 | int res1 = 0 ; | |
7648 | long val2 ; | |
7649 | int ecode2 = 0 ; | |
7650 | PyObject * obj0 = 0 ; | |
7651 | PyObject * obj1 = 0 ; | |
7652 | char * kwnames[] = { | |
7653 | (char *) "self",(char *) "flags", NULL | |
7654 | }; | |
7655 | ||
7656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateStdDialogButtonSizer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7658 | if (!SWIG_IsOK(res1)) { | |
7659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7660 | } | |
7661 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7662 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7663 | if (!SWIG_IsOK(ecode2)) { | |
7664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_CreateStdDialogButtonSizer" "', expected argument " "2"" of type '" "long""'"); | |
7665 | } | |
7666 | arg2 = static_cast< long >(val2); | |
7667 | { | |
7668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7669 | result = (wxStdDialogButtonSizer *)(arg1)->CreateStdDialogButtonSizer(arg2); | |
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
7673 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 ); | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | return NULL; | |
d55e5bfc RD |
7677 | } |
7678 | ||
7679 | ||
554f62e9 RD |
7680 | SWIGINTERN PyObject *_wrap_Dialog_IsModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7681 | PyObject *resultobj = 0; | |
7682 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7683 | bool result; | |
7684 | void *argp1 = 0 ; | |
7685 | int res1 = 0 ; | |
7686 | PyObject *swig_obj[1] ; | |
7687 | ||
7688 | if (!args) SWIG_fail; | |
7689 | swig_obj[0] = args; | |
7690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7691 | if (!SWIG_IsOK(res1)) { | |
7692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_IsModal" "', expected argument " "1"" of type '" "wxDialog const *""'"); | |
7693 | } | |
7694 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7695 | { | |
7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7697 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | { | |
7702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7703 | } | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | return NULL; | |
c32bde28 RD |
7707 | } |
7708 | ||
7709 | ||
554f62e9 RD |
7710 | SWIGINTERN PyObject *_wrap_Dialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7711 | PyObject *resultobj = 0; | |
7712 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7713 | int result; | |
7714 | void *argp1 = 0 ; | |
7715 | int res1 = 0 ; | |
7716 | PyObject *swig_obj[1] ; | |
7717 | ||
7718 | if (!args) SWIG_fail; | |
7719 | swig_obj[0] = args; | |
7720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7721 | if (!SWIG_IsOK(res1)) { | |
7722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_ShowModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7723 | } | |
7724 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | result = (int)(arg1)->ShowModal(); | |
7728 | wxPyEndAllowThreads(__tstate); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7732 | return resultobj; | |
7733 | fail: | |
7734 | return NULL; | |
7735 | } | |
7736 | ||
7737 | ||
7738 | SWIGINTERN PyObject *_wrap_Dialog_EndModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7739 | PyObject *resultobj = 0; | |
7740 | wxDialog *arg1 = (wxDialog *) 0 ; | |
7741 | int arg2 ; | |
7742 | void *argp1 = 0 ; | |
7743 | int res1 = 0 ; | |
7744 | int val2 ; | |
7745 | int ecode2 = 0 ; | |
7746 | PyObject * obj0 = 0 ; | |
7747 | PyObject * obj1 = 0 ; | |
7748 | char * kwnames[] = { | |
7749 | (char *) "self",(char *) "retCode", NULL | |
7750 | }; | |
7751 | ||
7752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) SWIG_fail; | |
7753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDialog, 0 | 0 ); | |
7754 | if (!SWIG_IsOK(res1)) { | |
7755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Dialog_EndModal" "', expected argument " "1"" of type '" "wxDialog *""'"); | |
7756 | } | |
7757 | arg1 = reinterpret_cast< wxDialog * >(argp1); | |
7758 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7759 | if (!SWIG_IsOK(ecode2)) { | |
7760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Dialog_EndModal" "', expected argument " "2"" of type '" "int""'"); | |
7761 | } | |
7762 | arg2 = static_cast< int >(val2); | |
7763 | { | |
7764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7765 | (arg1)->EndModal(arg2); | |
7766 | wxPyEndAllowThreads(__tstate); | |
7767 | if (PyErr_Occurred()) SWIG_fail; | |
7768 | } | |
7769 | resultobj = SWIG_Py_Void(); | |
7770 | return resultobj; | |
7771 | fail: | |
7772 | return NULL; | |
7773 | } | |
7774 | ||
7775 | ||
7776 | SWIGINTERN PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7777 | PyObject *resultobj = 0; | |
7778 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7779 | SwigValueWrapper<wxVisualAttributes > result; | |
7780 | int val1 ; | |
7781 | int ecode1 = 0 ; | |
7782 | PyObject * obj0 = 0 ; | |
7783 | char * kwnames[] = { | |
7784 | (char *) "variant", NULL | |
7785 | }; | |
7786 | ||
7787 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
7788 | if (obj0) { | |
7789 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7790 | if (!SWIG_IsOK(ecode1)) { | |
7791 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Dialog_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
7792 | } | |
7793 | arg1 = static_cast< wxWindowVariant >(val1); | |
7794 | } | |
7795 | { | |
7796 | if (!wxPyCheckForApp()) SWIG_fail; | |
7797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7798 | result = wxDialog::GetClassDefaultAttributes(arg1); | |
7799 | wxPyEndAllowThreads(__tstate); | |
7800 | if (PyErr_Occurred()) SWIG_fail; | |
7801 | } | |
7802 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
7803 | return resultobj; | |
7804 | fail: | |
7805 | return NULL; | |
7806 | } | |
7807 | ||
7808 | ||
7809 | SWIGINTERN PyObject *Dialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7810 | PyObject *obj; | |
7811 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7812 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDialog, SWIG_NewClientData(obj)); | |
7813 | return SWIG_Py_Void(); | |
7814 | } | |
7815 | ||
7816 | SWIGINTERN PyObject *Dialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7817 | return SWIG_Python_InitShadowInstance(args); | |
7818 | } | |
7819 | ||
7820 | SWIGINTERN PyObject *_wrap_new_MiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7821 | PyObject *resultobj = 0; | |
7822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7823 | int arg2 = (int) (int)-1 ; | |
7824 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7825 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7826 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7827 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7828 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7829 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7830 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
7831 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
7832 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7833 | wxMiniFrame *result = 0 ; | |
7834 | void *argp1 = 0 ; | |
7835 | int res1 = 0 ; | |
7836 | int val2 ; | |
7837 | int ecode2 = 0 ; | |
7838 | bool temp3 = false ; | |
7839 | wxPoint temp4 ; | |
7840 | wxSize temp5 ; | |
7841 | long val6 ; | |
7842 | int ecode6 = 0 ; | |
7843 | bool temp7 = false ; | |
7844 | PyObject * obj0 = 0 ; | |
7845 | PyObject * obj1 = 0 ; | |
7846 | PyObject * obj2 = 0 ; | |
7847 | PyObject * obj3 = 0 ; | |
7848 | PyObject * obj4 = 0 ; | |
7849 | PyObject * obj5 = 0 ; | |
7850 | PyObject * obj6 = 0 ; | |
7851 | char * kwnames[] = { | |
7852 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7853 | }; | |
7854 | ||
7855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
7856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7857 | if (!SWIG_IsOK(res1)) { | |
7858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MiniFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
7859 | } | |
7860 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
7861 | if (obj1) { | |
7862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7863 | if (!SWIG_IsOK(ecode2)) { | |
7864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MiniFrame" "', expected argument " "2"" of type '" "int""'"); | |
7865 | } | |
7866 | arg2 = static_cast< int >(val2); | |
7867 | } | |
7868 | if (obj2) { | |
5e483524 | 7869 | { |
554f62e9 RD |
7870 | arg3 = wxString_in_helper(obj2); |
7871 | if (arg3 == NULL) SWIG_fail; | |
7872 | temp3 = true; | |
5e483524 | 7873 | } |
554f62e9 RD |
7874 | } |
7875 | if (obj3) { | |
093d3ff1 | 7876 | { |
554f62e9 RD |
7877 | arg4 = &temp4; |
7878 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 7879 | } |
554f62e9 RD |
7880 | } |
7881 | if (obj4) { | |
84f85550 | 7882 | { |
554f62e9 RD |
7883 | arg5 = &temp5; |
7884 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
84f85550 | 7885 | } |
554f62e9 RD |
7886 | } |
7887 | if (obj5) { | |
7888 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
7889 | if (!SWIG_IsOK(ecode6)) { | |
7890 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MiniFrame" "', expected argument " "6"" of type '" "long""'"); | |
7891 | } | |
7892 | arg6 = static_cast< long >(val6); | |
7893 | } | |
7894 | if (obj6) { | |
84f85550 | 7895 | { |
554f62e9 RD |
7896 | arg7 = wxString_in_helper(obj6); |
7897 | if (arg7 == NULL) SWIG_fail; | |
7898 | temp7 = true; | |
84f85550 | 7899 | } |
554f62e9 RD |
7900 | } |
7901 | { | |
7902 | if (!wxPyCheckForApp()) SWIG_fail; | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_NEW | 0 ); | |
7909 | { | |
7910 | if (temp3) | |
7911 | delete arg3; | |
7912 | } | |
7913 | { | |
7914 | if (temp7) | |
7915 | delete arg7; | |
7916 | } | |
7917 | return resultobj; | |
7918 | fail: | |
7919 | { | |
7920 | if (temp3) | |
7921 | delete arg3; | |
7922 | } | |
7923 | { | |
7924 | if (temp7) | |
7925 | delete arg7; | |
7926 | } | |
7927 | return NULL; | |
84f85550 RD |
7928 | } |
7929 | ||
7930 | ||
554f62e9 RD |
7931 | SWIGINTERN PyObject *_wrap_new_PreMiniFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7932 | PyObject *resultobj = 0; | |
7933 | wxMiniFrame *result = 0 ; | |
7934 | ||
7935 | if (!SWIG_Python_UnpackTuple(args,"new_PreMiniFrame",0,0,0)) SWIG_fail; | |
7936 | { | |
7937 | if (!wxPyCheckForApp()) SWIG_fail; | |
7938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7939 | result = (wxMiniFrame *)new wxMiniFrame(); | |
7940 | wxPyEndAllowThreads(__tstate); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
7943 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMiniFrame, SWIG_POINTER_OWN | 0 ); | |
7944 | return resultobj; | |
7945 | fail: | |
7946 | return NULL; | |
7947 | } | |
7948 | ||
7949 | ||
7950 | SWIGINTERN PyObject *_wrap_MiniFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7951 | PyObject *resultobj = 0; | |
7952 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
7953 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7954 | int arg3 = (int) (int)-1 ; | |
7955 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7956 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7957 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7958 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7959 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7960 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7961 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
7962 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
7963 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7964 | bool result; | |
7965 | void *argp1 = 0 ; | |
7966 | int res1 = 0 ; | |
7967 | void *argp2 = 0 ; | |
7968 | int res2 = 0 ; | |
7969 | int val3 ; | |
7970 | int ecode3 = 0 ; | |
7971 | bool temp4 = false ; | |
7972 | wxPoint temp5 ; | |
7973 | wxSize temp6 ; | |
7974 | long val7 ; | |
7975 | int ecode7 = 0 ; | |
7976 | bool temp8 = false ; | |
7977 | PyObject * obj0 = 0 ; | |
7978 | PyObject * obj1 = 0 ; | |
7979 | PyObject * obj2 = 0 ; | |
7980 | PyObject * obj3 = 0 ; | |
7981 | PyObject * obj4 = 0 ; | |
7982 | PyObject * obj5 = 0 ; | |
7983 | PyObject * obj6 = 0 ; | |
7984 | PyObject * obj7 = 0 ; | |
7985 | char * kwnames[] = { | |
7986 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7987 | }; | |
7988 | ||
7989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
7990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMiniFrame, 0 | 0 ); | |
7991 | if (!SWIG_IsOK(res1)) { | |
7992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MiniFrame_Create" "', expected argument " "1"" of type '" "wxMiniFrame *""'"); | |
7993 | } | |
7994 | arg1 = reinterpret_cast< wxMiniFrame * >(argp1); | |
7995 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
7996 | if (!SWIG_IsOK(res2)) { | |
7997 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MiniFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
7998 | } | |
7999 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8000 | if (obj2) { | |
8001 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8002 | if (!SWIG_IsOK(ecode3)) { | |
8003 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MiniFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
8004 | } | |
8005 | arg3 = static_cast< int >(val3); | |
8006 | } | |
8007 | if (obj3) { | |
b1fcee84 | 8008 | { |
554f62e9 RD |
8009 | arg4 = wxString_in_helper(obj3); |
8010 | if (arg4 == NULL) SWIG_fail; | |
8011 | temp4 = true; | |
d55e5bfc | 8012 | } |
554f62e9 RD |
8013 | } |
8014 | if (obj4) { | |
d55e5bfc | 8015 | { |
554f62e9 RD |
8016 | arg5 = &temp5; |
8017 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 8018 | } |
554f62e9 RD |
8019 | } |
8020 | if (obj5) { | |
d55e5bfc | 8021 | { |
554f62e9 RD |
8022 | arg6 = &temp6; |
8023 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8024 | } |
554f62e9 RD |
8025 | } |
8026 | if (obj6) { | |
8027 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
8028 | if (!SWIG_IsOK(ecode7)) { | |
8029 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MiniFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
8030 | } | |
8031 | arg7 = static_cast< long >(val7); | |
8032 | } | |
8033 | if (obj7) { | |
d55e5bfc | 8034 | { |
554f62e9 RD |
8035 | arg8 = wxString_in_helper(obj7); |
8036 | if (arg8 == NULL) SWIG_fail; | |
8037 | temp8 = true; | |
d55e5bfc | 8038 | } |
554f62e9 RD |
8039 | } |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | { | |
8047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8048 | } | |
8049 | { | |
8050 | if (temp4) | |
8051 | delete arg4; | |
8052 | } | |
8053 | { | |
8054 | if (temp8) | |
8055 | delete arg8; | |
8056 | } | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | { | |
8060 | if (temp4) | |
8061 | delete arg4; | |
8062 | } | |
8063 | { | |
8064 | if (temp8) | |
8065 | delete arg8; | |
8066 | } | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
8071 | SWIGINTERN PyObject *MiniFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8072 | PyObject *obj; | |
8073 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8074 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMiniFrame, SWIG_NewClientData(obj)); | |
8075 | return SWIG_Py_Void(); | |
8076 | } | |
8077 | ||
8078 | SWIGINTERN PyObject *MiniFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8079 | return SWIG_Python_InitShadowInstance(args); | |
8080 | } | |
8081 | ||
8082 | SWIGINTERN PyObject *_wrap_new_SplashScreenWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8083 | PyObject *resultobj = 0; | |
8084 | wxBitmap *arg1 = 0 ; | |
8085 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8086 | int arg3 ; | |
8087 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8088 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8089 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8090 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8091 | long arg6 = (long) wxNO_BORDER ; | |
8092 | wxSplashScreenWindow *result = 0 ; | |
8093 | void *argp1 = 0 ; | |
8094 | int res1 = 0 ; | |
8095 | void *argp2 = 0 ; | |
8096 | int res2 = 0 ; | |
8097 | int val3 ; | |
8098 | int ecode3 = 0 ; | |
8099 | wxPoint temp4 ; | |
8100 | wxSize temp5 ; | |
8101 | long val6 ; | |
8102 | int ecode6 = 0 ; | |
8103 | PyObject * obj0 = 0 ; | |
8104 | PyObject * obj1 = 0 ; | |
8105 | PyObject * obj2 = 0 ; | |
8106 | PyObject * obj3 = 0 ; | |
8107 | PyObject * obj4 = 0 ; | |
8108 | PyObject * obj5 = 0 ; | |
8109 | char * kwnames[] = { | |
8110 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8111 | }; | |
8112 | ||
8113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
8114 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8115 | if (!SWIG_IsOK(res1)) { | |
8116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8117 | } | |
8118 | if (!argp1) { | |
8119 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreenWindow" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8120 | } | |
8121 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8122 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8123 | if (!SWIG_IsOK(res2)) { | |
8124 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplashScreenWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8125 | } | |
8126 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8127 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8128 | if (!SWIG_IsOK(ecode3)) { | |
8129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreenWindow" "', expected argument " "3"" of type '" "int""'"); | |
8130 | } | |
8131 | arg3 = static_cast< int >(val3); | |
8132 | if (obj3) { | |
d55e5bfc | 8133 | { |
554f62e9 RD |
8134 | arg4 = &temp4; |
8135 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 8136 | } |
554f62e9 RD |
8137 | } |
8138 | if (obj4) { | |
d55e5bfc | 8139 | { |
554f62e9 RD |
8140 | arg5 = &temp5; |
8141 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8142 | } | |
8143 | } | |
8144 | if (obj5) { | |
8145 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
8146 | if (!SWIG_IsOK(ecode6)) { | |
8147 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SplashScreenWindow" "', expected argument " "6"" of type '" "long""'"); | |
8148 | } | |
8149 | arg6 = static_cast< long >(val6); | |
8150 | } | |
8151 | { | |
8152 | if (!wxPyCheckForApp()) SWIG_fail; | |
8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8154 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
8155 | wxPyEndAllowThreads(__tstate); | |
8156 | if (PyErr_Occurred()) SWIG_fail; | |
8157 | } | |
8158 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, SWIG_POINTER_NEW | 0 ); | |
8159 | return resultobj; | |
8160 | fail: | |
8161 | return NULL; | |
8162 | } | |
8163 | ||
8164 | ||
8165 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8166 | PyObject *resultobj = 0; | |
8167 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8168 | wxBitmap *arg2 = 0 ; | |
8169 | void *argp1 = 0 ; | |
8170 | int res1 = 0 ; | |
8171 | void *argp2 = 0 ; | |
8172 | int res2 = 0 ; | |
8173 | PyObject * obj0 = 0 ; | |
8174 | PyObject * obj1 = 0 ; | |
8175 | char * kwnames[] = { | |
8176 | (char *) "self",(char *) "bitmap", NULL | |
8177 | }; | |
8178 | ||
8179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
8180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8181 | if (!SWIG_IsOK(res1)) { | |
8182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8183 | } | |
8184 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8185 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8186 | if (!SWIG_IsOK(res2)) { | |
8187 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8188 | } | |
8189 | if (!argp2) { | |
8190 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SplashScreenWindow_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8191 | } | |
8192 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8193 | { | |
8194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8195 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
8196 | wxPyEndAllowThreads(__tstate); | |
8197 | if (PyErr_Occurred()) SWIG_fail; | |
8198 | } | |
8199 | resultobj = SWIG_Py_Void(); | |
8200 | return resultobj; | |
8201 | fail: | |
8202 | return NULL; | |
d55e5bfc RD |
8203 | } |
8204 | ||
8205 | ||
554f62e9 RD |
8206 | SWIGINTERN PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8207 | PyObject *resultobj = 0; | |
8208 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
8209 | wxBitmap *result = 0 ; | |
8210 | void *argp1 = 0 ; | |
8211 | int res1 = 0 ; | |
8212 | PyObject *swig_obj[1] ; | |
8213 | ||
8214 | if (!args) SWIG_fail; | |
8215 | swig_obj[0] = args; | |
8216 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8217 | if (!SWIG_IsOK(res1)) { | |
8218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreenWindow_GetBitmap" "', expected argument " "1"" of type '" "wxSplashScreenWindow *""'"); | |
8219 | } | |
8220 | arg1 = reinterpret_cast< wxSplashScreenWindow * >(argp1); | |
8221 | { | |
8222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 8223 | { |
554f62e9 RD |
8224 | wxBitmap &_result_ref = (arg1)->GetBitmap(); |
8225 | result = (wxBitmap *) &_result_ref; | |
d55e5bfc | 8226 | } |
554f62e9 RD |
8227 | wxPyEndAllowThreads(__tstate); |
8228 | if (PyErr_Occurred()) SWIG_fail; | |
8229 | } | |
8230 | { | |
8231 | wxBitmap* resultptr = new wxBitmap(*result); | |
8232 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
8233 | } | |
8234 | return resultobj; | |
8235 | fail: | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
8240 | SWIGINTERN PyObject *SplashScreenWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8241 | PyObject *obj; | |
8242 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8243 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreenWindow, SWIG_NewClientData(obj)); | |
8244 | return SWIG_Py_Void(); | |
8245 | } | |
8246 | ||
8247 | SWIGINTERN PyObject *SplashScreenWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8248 | return SWIG_Python_InitShadowInstance(args); | |
8249 | } | |
8250 | ||
8251 | SWIGINTERN PyObject *_wrap_new_SplashScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8252 | PyObject *resultobj = 0; | |
8253 | wxBitmap *arg1 = 0 ; | |
8254 | long arg2 ; | |
8255 | int arg3 ; | |
8256 | wxWindow *arg4 = (wxWindow *) 0 ; | |
8257 | int arg5 = (int) -1 ; | |
8258 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
8259 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
8260 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
8261 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
8262 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
8263 | wxSplashScreen *result = 0 ; | |
8264 | void *argp1 = 0 ; | |
8265 | int res1 = 0 ; | |
8266 | long val2 ; | |
8267 | int ecode2 = 0 ; | |
8268 | int val3 ; | |
8269 | int ecode3 = 0 ; | |
8270 | void *argp4 = 0 ; | |
8271 | int res4 = 0 ; | |
8272 | int val5 ; | |
8273 | int ecode5 = 0 ; | |
8274 | wxPoint temp6 ; | |
8275 | wxSize temp7 ; | |
8276 | long val8 ; | |
8277 | int ecode8 = 0 ; | |
8278 | PyObject * obj0 = 0 ; | |
8279 | PyObject * obj1 = 0 ; | |
8280 | PyObject * obj2 = 0 ; | |
8281 | PyObject * obj3 = 0 ; | |
8282 | PyObject * obj4 = 0 ; | |
8283 | PyObject * obj5 = 0 ; | |
8284 | PyObject * obj6 = 0 ; | |
8285 | PyObject * obj7 = 0 ; | |
8286 | char * kwnames[] = { | |
8287 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
8288 | }; | |
8289 | ||
8290 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
8291 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8292 | if (!SWIG_IsOK(res1)) { | |
8293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8294 | } | |
8295 | if (!argp1) { | |
8296 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SplashScreen" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8297 | } | |
8298 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8299 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8300 | if (!SWIG_IsOK(ecode2)) { | |
8301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplashScreen" "', expected argument " "2"" of type '" "long""'"); | |
8302 | } | |
8303 | arg2 = static_cast< long >(val2); | |
8304 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8305 | if (!SWIG_IsOK(ecode3)) { | |
8306 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplashScreen" "', expected argument " "3"" of type '" "int""'"); | |
8307 | } | |
8308 | arg3 = static_cast< int >(val3); | |
8309 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8310 | if (!SWIG_IsOK(res4)) { | |
8311 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SplashScreen" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
8312 | } | |
8313 | arg4 = reinterpret_cast< wxWindow * >(argp4); | |
8314 | if (obj4) { | |
8315 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
8316 | if (!SWIG_IsOK(ecode5)) { | |
8317 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplashScreen" "', expected argument " "5"" of type '" "int""'"); | |
8318 | } | |
8319 | arg5 = static_cast< int >(val5); | |
8320 | } | |
8321 | if (obj5) { | |
d55e5bfc | 8322 | { |
554f62e9 RD |
8323 | arg6 = &temp6; |
8324 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 8325 | } |
554f62e9 RD |
8326 | } |
8327 | if (obj6) { | |
d55e5bfc | 8328 | { |
554f62e9 RD |
8329 | arg7 = &temp7; |
8330 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 8331 | } |
554f62e9 RD |
8332 | } |
8333 | if (obj7) { | |
8334 | ecode8 = SWIG_AsVal_long(obj7, &val8); | |
8335 | if (!SWIG_IsOK(ecode8)) { | |
8336 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SplashScreen" "', expected argument " "8"" of type '" "long""'"); | |
8337 | } | |
8338 | arg8 = static_cast< long >(val8); | |
8339 | } | |
8340 | { | |
8341 | if (!wxPyCheckForApp()) SWIG_fail; | |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8343 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreen, SWIG_POINTER_NEW | 0 ); | |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
d55e5bfc RD |
8351 | } |
8352 | ||
8353 | ||
554f62e9 RD |
8354 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8355 | PyObject *resultobj = 0; | |
8356 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8357 | long result; | |
8358 | void *argp1 = 0 ; | |
8359 | int res1 = 0 ; | |
8360 | PyObject *swig_obj[1] ; | |
8361 | ||
8362 | if (!args) SWIG_fail; | |
8363 | swig_obj[0] = args; | |
8364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8365 | if (!SWIG_IsOK(res1)) { | |
8366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashStyle" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8367 | } | |
8368 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8369 | { | |
8370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8371 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
8372 | wxPyEndAllowThreads(__tstate); | |
8373 | if (PyErr_Occurred()) SWIG_fail; | |
8374 | } | |
8375 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8376 | return resultobj; | |
8377 | fail: | |
8378 | return NULL; | |
d55e5bfc RD |
8379 | } |
8380 | ||
8381 | ||
554f62e9 RD |
8382 | SWIGINTERN PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8383 | PyObject *resultobj = 0; | |
8384 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8385 | wxSplashScreenWindow *result = 0 ; | |
8386 | void *argp1 = 0 ; | |
8387 | int res1 = 0 ; | |
8388 | PyObject *swig_obj[1] ; | |
8389 | ||
8390 | if (!args) SWIG_fail; | |
8391 | swig_obj[0] = args; | |
8392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8393 | if (!SWIG_IsOK(res1)) { | |
8394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetSplashWindow" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8395 | } | |
8396 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8397 | { | |
8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8399 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
8400 | wxPyEndAllowThreads(__tstate); | |
8401 | if (PyErr_Occurred()) SWIG_fail; | |
8402 | } | |
8403 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplashScreenWindow, 0 | 0 ); | |
8404 | return resultobj; | |
8405 | fail: | |
8406 | return NULL; | |
d55e5bfc RD |
8407 | } |
8408 | ||
8409 | ||
554f62e9 RD |
8410 | SWIGINTERN PyObject *_wrap_SplashScreen_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8411 | PyObject *resultobj = 0; | |
8412 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
8413 | int result; | |
8414 | void *argp1 = 0 ; | |
8415 | int res1 = 0 ; | |
8416 | PyObject *swig_obj[1] ; | |
8417 | ||
8418 | if (!args) SWIG_fail; | |
8419 | swig_obj[0] = args; | |
8420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplashScreen, 0 | 0 ); | |
8421 | if (!SWIG_IsOK(res1)) { | |
8422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplashScreen_GetTimeout" "', expected argument " "1"" of type '" "wxSplashScreen const *""'"); | |
8423 | } | |
8424 | arg1 = reinterpret_cast< wxSplashScreen * >(argp1); | |
8425 | { | |
8426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8427 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
8428 | wxPyEndAllowThreads(__tstate); | |
8429 | if (PyErr_Occurred()) SWIG_fail; | |
8430 | } | |
8431 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8432 | return resultobj; | |
8433 | fail: | |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
8438 | SWIGINTERN PyObject *SplashScreen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8439 | PyObject *obj; | |
8440 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8441 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplashScreen, SWIG_NewClientData(obj)); | |
8442 | return SWIG_Py_Void(); | |
8443 | } | |
8444 | ||
8445 | SWIGINTERN PyObject *SplashScreen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8446 | return SWIG_Python_InitShadowInstance(args); | |
8447 | } | |
8448 | ||
8449 | SWIGINTERN PyObject *_wrap_new_StatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8450 | PyObject *resultobj = 0; | |
8451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8452 | int arg2 = (int) -1 ; | |
8453 | long arg3 = (long) wxDEFAULT_STATUSBAR_STYLE ; | |
8454 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
8455 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8456 | wxStatusBar *result = 0 ; | |
8457 | void *argp1 = 0 ; | |
8458 | int res1 = 0 ; | |
8459 | int val2 ; | |
8460 | int ecode2 = 0 ; | |
8461 | long val3 ; | |
8462 | int ecode3 = 0 ; | |
8463 | bool temp4 = false ; | |
8464 | PyObject * obj0 = 0 ; | |
8465 | PyObject * obj1 = 0 ; | |
8466 | PyObject * obj2 = 0 ; | |
8467 | PyObject * obj3 = 0 ; | |
8468 | char * kwnames[] = { | |
8469 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8470 | }; | |
8471 | ||
8472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8474 | if (!SWIG_IsOK(res1)) { | |
8475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StatusBar" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
8476 | } | |
8477 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
8478 | if (obj1) { | |
8479 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8480 | if (!SWIG_IsOK(ecode2)) { | |
8481 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StatusBar" "', expected argument " "2"" of type '" "int""'"); | |
8482 | } | |
8483 | arg2 = static_cast< int >(val2); | |
8484 | } | |
8485 | if (obj2) { | |
8486 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8487 | if (!SWIG_IsOK(ecode3)) { | |
8488 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_StatusBar" "', expected argument " "3"" of type '" "long""'"); | |
8489 | } | |
8490 | arg3 = static_cast< long >(val3); | |
8491 | } | |
8492 | if (obj3) { | |
d55e5bfc | 8493 | { |
554f62e9 RD |
8494 | arg4 = wxString_in_helper(obj3); |
8495 | if (arg4 == NULL) SWIG_fail; | |
8496 | temp4 = true; | |
d55e5bfc | 8497 | } |
554f62e9 RD |
8498 | } |
8499 | { | |
8500 | if (!wxPyCheckForApp()) SWIG_fail; | |
8501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8502 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
8503 | wxPyEndAllowThreads(__tstate); | |
8504 | if (PyErr_Occurred()) SWIG_fail; | |
8505 | } | |
8506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_NEW | 0 ); | |
8507 | { | |
8508 | if (temp4) | |
8509 | delete arg4; | |
8510 | } | |
8511 | return resultobj; | |
8512 | fail: | |
8513 | { | |
8514 | if (temp4) | |
8515 | delete arg4; | |
8516 | } | |
8517 | return NULL; | |
d55e5bfc RD |
8518 | } |
8519 | ||
8520 | ||
554f62e9 RD |
8521 | SWIGINTERN PyObject *_wrap_new_PreStatusBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8522 | PyObject *resultobj = 0; | |
8523 | wxStatusBar *result = 0 ; | |
8524 | ||
8525 | if (!SWIG_Python_UnpackTuple(args,"new_PreStatusBar",0,0,0)) SWIG_fail; | |
8526 | { | |
8527 | if (!wxPyCheckForApp()) SWIG_fail; | |
8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8529 | result = (wxStatusBar *)new wxStatusBar(); | |
8530 | wxPyEndAllowThreads(__tstate); | |
8531 | if (PyErr_Occurred()) SWIG_fail; | |
8532 | } | |
8533 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStatusBar, SWIG_POINTER_OWN | 0 ); | |
8534 | return resultobj; | |
8535 | fail: | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | SWIGINTERN PyObject *_wrap_StatusBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8541 | PyObject *resultobj = 0; | |
8542 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8543 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8544 | int arg3 = (int) -1 ; | |
8545 | long arg4 = (long) wxST_SIZEGRIP ; | |
8546 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
8547 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
8548 | bool result; | |
8549 | void *argp1 = 0 ; | |
8550 | int res1 = 0 ; | |
8551 | void *argp2 = 0 ; | |
8552 | int res2 = 0 ; | |
8553 | int val3 ; | |
8554 | int ecode3 = 0 ; | |
8555 | long val4 ; | |
8556 | int ecode4 = 0 ; | |
8557 | bool temp5 = false ; | |
8558 | PyObject * obj0 = 0 ; | |
8559 | PyObject * obj1 = 0 ; | |
8560 | PyObject * obj2 = 0 ; | |
8561 | PyObject * obj3 = 0 ; | |
8562 | PyObject * obj4 = 0 ; | |
8563 | char * kwnames[] = { | |
8564 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
8565 | }; | |
8566 | ||
8567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8569 | if (!SWIG_IsOK(res1)) { | |
8570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_Create" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8571 | } | |
8572 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8573 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
8574 | if (!SWIG_IsOK(res2)) { | |
8575 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StatusBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
8576 | } | |
8577 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
8578 | if (obj2) { | |
8579 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8580 | if (!SWIG_IsOK(ecode3)) { | |
8581 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_Create" "', expected argument " "3"" of type '" "int""'"); | |
8582 | } | |
8583 | arg3 = static_cast< int >(val3); | |
8584 | } | |
8585 | if (obj3) { | |
8586 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
8587 | if (!SWIG_IsOK(ecode4)) { | |
8588 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StatusBar_Create" "', expected argument " "4"" of type '" "long""'"); | |
8589 | } | |
8590 | arg4 = static_cast< long >(val4); | |
8591 | } | |
8592 | if (obj4) { | |
d55e5bfc | 8593 | { |
554f62e9 RD |
8594 | arg5 = wxString_in_helper(obj4); |
8595 | if (arg5 == NULL) SWIG_fail; | |
8596 | temp5 = true; | |
d55e5bfc | 8597 | } |
554f62e9 RD |
8598 | } |
8599 | { | |
8600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8601 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
8602 | wxPyEndAllowThreads(__tstate); | |
8603 | if (PyErr_Occurred()) SWIG_fail; | |
8604 | } | |
8605 | { | |
8606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8607 | } | |
8608 | { | |
8609 | if (temp5) | |
8610 | delete arg5; | |
8611 | } | |
8612 | return resultobj; | |
8613 | fail: | |
8614 | { | |
8615 | if (temp5) | |
8616 | delete arg5; | |
8617 | } | |
8618 | return NULL; | |
8619 | } | |
8620 | ||
8621 | ||
8622 | SWIGINTERN PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8623 | PyObject *resultobj = 0; | |
8624 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8625 | int arg2 = (int) 1 ; | |
8626 | void *argp1 = 0 ; | |
8627 | int res1 = 0 ; | |
8628 | int val2 ; | |
8629 | int ecode2 = 0 ; | |
8630 | PyObject * obj0 = 0 ; | |
8631 | PyObject * obj1 = 0 ; | |
8632 | char * kwnames[] = { | |
8633 | (char *) "self",(char *) "number", NULL | |
8634 | }; | |
8635 | ||
8636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
8637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8638 | if (!SWIG_IsOK(res1)) { | |
8639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8640 | } | |
8641 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8642 | if (obj1) { | |
8643 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8644 | if (!SWIG_IsOK(ecode2)) { | |
8645 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetFieldsCount" "', expected argument " "2"" of type '" "int""'"); | |
8646 | } | |
8647 | arg2 = static_cast< int >(val2); | |
8648 | } | |
8649 | { | |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | (arg1)->SetFieldsCount(arg2); | |
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | resultobj = SWIG_Py_Void(); | |
8656 | return resultobj; | |
8657 | fail: | |
8658 | return NULL; | |
d55e5bfc RD |
8659 | } |
8660 | ||
8661 | ||
554f62e9 RD |
8662 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8663 | PyObject *resultobj = 0; | |
8664 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8665 | int result; | |
8666 | void *argp1 = 0 ; | |
8667 | int res1 = 0 ; | |
8668 | PyObject *swig_obj[1] ; | |
8669 | ||
8670 | if (!args) SWIG_fail; | |
8671 | swig_obj[0] = args; | |
8672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8673 | if (!SWIG_IsOK(res1)) { | |
8674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldsCount" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8675 | } | |
8676 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8677 | { | |
8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8679 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
8683 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8684 | return resultobj; | |
8685 | fail: | |
8686 | return NULL; | |
8687 | } | |
8688 | ||
8689 | ||
8690 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8691 | PyObject *resultobj = 0; | |
8692 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8693 | wxString *arg2 = 0 ; | |
8694 | int arg3 = (int) 0 ; | |
8695 | void *argp1 = 0 ; | |
8696 | int res1 = 0 ; | |
8697 | bool temp2 = false ; | |
8698 | int val3 ; | |
8699 | int ecode3 = 0 ; | |
8700 | PyObject * obj0 = 0 ; | |
8701 | PyObject * obj1 = 0 ; | |
8702 | PyObject * obj2 = 0 ; | |
8703 | char * kwnames[] = { | |
8704 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8705 | }; | |
8706 | ||
8707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8709 | if (!SWIG_IsOK(res1)) { | |
8710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8711 | } | |
8712 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8713 | { | |
8714 | arg2 = wxString_in_helper(obj1); | |
8715 | if (arg2 == NULL) SWIG_fail; | |
8716 | temp2 = true; | |
8717 | } | |
8718 | if (obj2) { | |
8719 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8720 | if (!SWIG_IsOK(ecode3)) { | |
8721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_SetStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8722 | } | |
8723 | arg3 = static_cast< int >(val3); | |
8724 | } | |
8725 | { | |
8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8727 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
8731 | resultobj = SWIG_Py_Void(); | |
8732 | { | |
8733 | if (temp2) | |
8734 | delete arg2; | |
8735 | } | |
8736 | return resultobj; | |
8737 | fail: | |
8738 | { | |
8739 | if (temp2) | |
8740 | delete arg2; | |
8741 | } | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
8746 | SWIGINTERN PyObject *_wrap_StatusBar_GetStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8747 | PyObject *resultobj = 0; | |
8748 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8749 | int arg2 = (int) 0 ; | |
8750 | wxString result; | |
8751 | void *argp1 = 0 ; | |
8752 | int res1 = 0 ; | |
8753 | int val2 ; | |
8754 | int ecode2 = 0 ; | |
8755 | PyObject * obj0 = 0 ; | |
8756 | PyObject * obj1 = 0 ; | |
8757 | char * kwnames[] = { | |
8758 | (char *) "self",(char *) "number", NULL | |
8759 | }; | |
8760 | ||
8761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8763 | if (!SWIG_IsOK(res1)) { | |
8764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetStatusText" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
8765 | } | |
8766 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8767 | if (obj1) { | |
8768 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8769 | if (!SWIG_IsOK(ecode2)) { | |
8770 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8771 | } | |
8772 | arg2 = static_cast< int >(val2); | |
8773 | } | |
8774 | { | |
8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8776 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
8780 | { | |
8781 | #if wxUSE_UNICODE | |
8782 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8783 | #else | |
8784 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8785 | #endif | |
8786 | } | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | return NULL; | |
8790 | } | |
8791 | ||
8792 | ||
8793 | SWIGINTERN PyObject *_wrap_StatusBar_PushStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8794 | PyObject *resultobj = 0; | |
8795 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8796 | wxString *arg2 = 0 ; | |
8797 | int arg3 = (int) 0 ; | |
8798 | void *argp1 = 0 ; | |
8799 | int res1 = 0 ; | |
8800 | bool temp2 = false ; | |
8801 | int val3 ; | |
8802 | int ecode3 = 0 ; | |
8803 | PyObject * obj0 = 0 ; | |
8804 | PyObject * obj1 = 0 ; | |
8805 | PyObject * obj2 = 0 ; | |
8806 | char * kwnames[] = { | |
8807 | (char *) "self",(char *) "text",(char *) "number", NULL | |
8808 | }; | |
8809 | ||
8810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8812 | if (!SWIG_IsOK(res1)) { | |
8813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PushStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8814 | } | |
8815 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8816 | { | |
8817 | arg2 = wxString_in_helper(obj1); | |
8818 | if (arg2 == NULL) SWIG_fail; | |
8819 | temp2 = true; | |
8820 | } | |
8821 | if (obj2) { | |
8822 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8823 | if (!SWIG_IsOK(ecode3)) { | |
8824 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StatusBar_PushStatusText" "', expected argument " "3"" of type '" "int""'"); | |
8825 | } | |
8826 | arg3 = static_cast< int >(val3); | |
8827 | } | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
8831 | wxPyEndAllowThreads(__tstate); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
8834 | resultobj = SWIG_Py_Void(); | |
8835 | { | |
8836 | if (temp2) | |
8837 | delete arg2; | |
8838 | } | |
8839 | return resultobj; | |
8840 | fail: | |
8841 | { | |
8842 | if (temp2) | |
8843 | delete arg2; | |
8844 | } | |
8845 | return NULL; | |
8846 | } | |
8847 | ||
8848 | ||
8849 | SWIGINTERN PyObject *_wrap_StatusBar_PopStatusText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8850 | PyObject *resultobj = 0; | |
8851 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8852 | int arg2 = (int) 0 ; | |
8853 | void *argp1 = 0 ; | |
8854 | int res1 = 0 ; | |
8855 | int val2 ; | |
8856 | int ecode2 = 0 ; | |
8857 | PyObject * obj0 = 0 ; | |
8858 | PyObject * obj1 = 0 ; | |
8859 | char * kwnames[] = { | |
8860 | (char *) "self",(char *) "number", NULL | |
8861 | }; | |
8862 | ||
8863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) SWIG_fail; | |
8864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8865 | if (!SWIG_IsOK(res1)) { | |
8866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_PopStatusText" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8867 | } | |
8868 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8869 | if (obj1) { | |
8870 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8871 | if (!SWIG_IsOK(ecode2)) { | |
8872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_PopStatusText" "', expected argument " "2"" of type '" "int""'"); | |
8873 | } | |
8874 | arg2 = static_cast< int >(val2); | |
8875 | } | |
8876 | { | |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | (arg1)->PopStatusText(arg2); | |
8879 | wxPyEndAllowThreads(__tstate); | |
8880 | if (PyErr_Occurred()) SWIG_fail; | |
8881 | } | |
8882 | resultobj = SWIG_Py_Void(); | |
8883 | return resultobj; | |
8884 | fail: | |
8885 | return NULL; | |
8886 | } | |
8887 | ||
8888 | ||
8889 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8890 | PyObject *resultobj = 0; | |
8891 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8892 | int arg2 ; | |
8893 | int *arg3 = (int *) 0 ; | |
8894 | void *argp1 = 0 ; | |
8895 | int res1 = 0 ; | |
8896 | PyObject * obj0 = 0 ; | |
8897 | PyObject * obj1 = 0 ; | |
8898 | char * kwnames[] = { | |
8899 | (char *) "self",(char *) "widths", NULL | |
8900 | }; | |
8901 | ||
8902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) SWIG_fail; | |
8903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8904 | if (!SWIG_IsOK(res1)) { | |
8905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusWidths" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8906 | } | |
8907 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8908 | { | |
8909 | arg2 = PyList_Size(obj1); | |
8910 | arg3 = int_LIST_helper(obj1); | |
8911 | if (arg3 == NULL) SWIG_fail; | |
8912 | } | |
8913 | { | |
8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8915 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
8916 | wxPyEndAllowThreads(__tstate); | |
8917 | if (PyErr_Occurred()) SWIG_fail; | |
8918 | } | |
8919 | resultobj = SWIG_Py_Void(); | |
8920 | { | |
8921 | if (arg3) delete [] arg3; | |
8922 | } | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | { | |
8926 | if (arg3) delete [] arg3; | |
8927 | } | |
8928 | return NULL; | |
d55e5bfc RD |
8929 | } |
8930 | ||
8931 | ||
554f62e9 RD |
8932 | SWIGINTERN PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8933 | PyObject *resultobj = 0; | |
8934 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8935 | int arg2 ; | |
8936 | int *arg3 = (int *) 0 ; | |
8937 | void *argp1 = 0 ; | |
8938 | int res1 = 0 ; | |
8939 | PyObject * obj0 = 0 ; | |
8940 | PyObject * obj1 = 0 ; | |
8941 | char * kwnames[] = { | |
8942 | (char *) "self",(char *) "styles", NULL | |
8943 | }; | |
8944 | ||
8945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) SWIG_fail; | |
8946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8947 | if (!SWIG_IsOK(res1)) { | |
8948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetStatusStyles" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8949 | } | |
8950 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8951 | { | |
8952 | arg2 = PyList_Size(obj1); | |
8953 | arg3 = int_LIST_helper(obj1); | |
8954 | if (arg3 == NULL) SWIG_fail; | |
8955 | } | |
8956 | { | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
8959 | wxPyEndAllowThreads(__tstate); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
8961 | } | |
8962 | resultobj = SWIG_Py_Void(); | |
8963 | { | |
8964 | if (arg3) delete [] arg3; | |
8965 | } | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | { | |
8969 | if (arg3) delete [] arg3; | |
8970 | } | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | SWIGINTERN PyObject *_wrap_StatusBar_GetFieldRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8976 | PyObject *resultobj = 0; | |
8977 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
8978 | int arg2 ; | |
8979 | wxRect result; | |
8980 | void *argp1 = 0 ; | |
8981 | int res1 = 0 ; | |
8982 | int val2 ; | |
8983 | int ecode2 = 0 ; | |
8984 | PyObject * obj0 = 0 ; | |
8985 | PyObject * obj1 = 0 ; | |
8986 | char * kwnames[] = { | |
8987 | (char *) "self",(char *) "i", NULL | |
8988 | }; | |
8989 | ||
8990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
8991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
8992 | if (!SWIG_IsOK(res1)) { | |
8993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetFieldRect" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
8994 | } | |
8995 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
8996 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8997 | if (!SWIG_IsOK(ecode2)) { | |
8998 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_GetFieldRect" "', expected argument " "2"" of type '" "int""'"); | |
8999 | } | |
9000 | arg2 = static_cast< int >(val2); | |
9001 | { | |
9002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9003 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
9004 | wxPyEndAllowThreads(__tstate); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | } | |
9007 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
9008 | return resultobj; | |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
9014 | SWIGINTERN PyObject *_wrap_StatusBar_SetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9015 | PyObject *resultobj = 0; | |
9016 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9017 | int arg2 ; | |
9018 | void *argp1 = 0 ; | |
9019 | int res1 = 0 ; | |
9020 | int val2 ; | |
9021 | int ecode2 = 0 ; | |
9022 | PyObject * obj0 = 0 ; | |
9023 | PyObject * obj1 = 0 ; | |
9024 | char * kwnames[] = { | |
9025 | (char *) "self",(char *) "height", NULL | |
9026 | }; | |
9027 | ||
9028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9030 | if (!SWIG_IsOK(res1)) { | |
9031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_SetMinHeight" "', expected argument " "1"" of type '" "wxStatusBar *""'"); | |
9032 | } | |
9033 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9034 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9035 | if (!SWIG_IsOK(ecode2)) { | |
9036 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StatusBar_SetMinHeight" "', expected argument " "2"" of type '" "int""'"); | |
9037 | } | |
9038 | arg2 = static_cast< int >(val2); | |
9039 | { | |
9040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9041 | (arg1)->SetMinHeight(arg2); | |
9042 | wxPyEndAllowThreads(__tstate); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | } | |
9045 | resultobj = SWIG_Py_Void(); | |
9046 | return resultobj; | |
9047 | fail: | |
9048 | return NULL; | |
d55e5bfc RD |
9049 | } |
9050 | ||
9051 | ||
554f62e9 RD |
9052 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9053 | PyObject *resultobj = 0; | |
9054 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9055 | int result; | |
9056 | void *argp1 = 0 ; | |
9057 | int res1 = 0 ; | |
9058 | PyObject *swig_obj[1] ; | |
9059 | ||
9060 | if (!args) SWIG_fail; | |
9061 | swig_obj[0] = args; | |
9062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9063 | if (!SWIG_IsOK(res1)) { | |
9064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderX" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9065 | } | |
9066 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9067 | { | |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
d55e5bfc RD |
9077 | } |
9078 | ||
9079 | ||
554f62e9 RD |
9080 | SWIGINTERN PyObject *_wrap_StatusBar_GetBorderY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9081 | PyObject *resultobj = 0; | |
9082 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
9083 | int result; | |
9084 | void *argp1 = 0 ; | |
9085 | int res1 = 0 ; | |
9086 | PyObject *swig_obj[1] ; | |
9087 | ||
9088 | if (!args) SWIG_fail; | |
9089 | swig_obj[0] = args; | |
9090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStatusBar, 0 | 0 ); | |
9091 | if (!SWIG_IsOK(res1)) { | |
9092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StatusBar_GetBorderY" "', expected argument " "1"" of type '" "wxStatusBar const *""'"); | |
9093 | } | |
9094 | arg1 = reinterpret_cast< wxStatusBar * >(argp1); | |
9095 | { | |
9096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9097 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
9098 | wxPyEndAllowThreads(__tstate); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | } | |
9101 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9102 | return resultobj; | |
9103 | fail: | |
9104 | return NULL; | |
9105 | } | |
9106 | ||
9107 | ||
9108 | SWIGINTERN PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9109 | PyObject *resultobj = 0; | |
9110 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
9111 | SwigValueWrapper<wxVisualAttributes > result; | |
9112 | int val1 ; | |
9113 | int ecode1 = 0 ; | |
9114 | PyObject * obj0 = 0 ; | |
9115 | char * kwnames[] = { | |
9116 | (char *) "variant", NULL | |
9117 | }; | |
9118 | ||
9119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
9120 | if (obj0) { | |
9121 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9122 | if (!SWIG_IsOK(ecode1)) { | |
9123 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StatusBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
9124 | } | |
9125 | arg1 = static_cast< wxWindowVariant >(val1); | |
9126 | } | |
9127 | { | |
9128 | if (!wxPyCheckForApp()) SWIG_fail; | |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | result = wxStatusBar::GetClassDefaultAttributes(arg1); | |
9131 | wxPyEndAllowThreads(__tstate); | |
9132 | if (PyErr_Occurred()) SWIG_fail; | |
9133 | } | |
9134 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
9135 | return resultobj; | |
9136 | fail: | |
9137 | return NULL; | |
d55e5bfc RD |
9138 | } |
9139 | ||
9140 | ||
554f62e9 RD |
9141 | SWIGINTERN PyObject *StatusBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9142 | PyObject *obj; | |
9143 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9144 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStatusBar, SWIG_NewClientData(obj)); | |
9145 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9146 | } |
9147 | ||
554f62e9 RD |
9148 | SWIGINTERN PyObject *StatusBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9149 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9150 | } |
9151 | ||
554f62e9 RD |
9152 | SWIGINTERN int SplitterNameStr_set(PyObject *) { |
9153 | SWIG_Error(SWIG_AttributeError,"Variable SplitterNameStr is read-only."); | |
9154 | return 1; | |
d55e5bfc RD |
9155 | } |
9156 | ||
9157 | ||
554f62e9 RD |
9158 | SWIGINTERN PyObject *SplitterNameStr_get(void) { |
9159 | PyObject *pyobj = 0; | |
9160 | ||
9161 | { | |
9162 | #if wxUSE_UNICODE | |
9163 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9164 | #else | |
9165 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
9166 | #endif | |
9167 | } | |
9168 | return pyobj; | |
9169 | } | |
9170 | ||
9171 | ||
9172 | SWIGINTERN PyObject *_wrap_new_SplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9173 | PyObject *resultobj = 0; | |
9174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9175 | int arg2 = (int) -1 ; | |
9176 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9177 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9178 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9179 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9180 | long arg5 = (long) wxSP_3D ; | |
9181 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
9182 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9183 | wxSplitterWindow *result = 0 ; | |
9184 | void *argp1 = 0 ; | |
9185 | int res1 = 0 ; | |
9186 | int val2 ; | |
9187 | int ecode2 = 0 ; | |
9188 | wxPoint temp3 ; | |
9189 | wxSize temp4 ; | |
9190 | long val5 ; | |
9191 | int ecode5 = 0 ; | |
9192 | bool temp6 = false ; | |
9193 | PyObject * obj0 = 0 ; | |
9194 | PyObject * obj1 = 0 ; | |
9195 | PyObject * obj2 = 0 ; | |
9196 | PyObject * obj3 = 0 ; | |
9197 | PyObject * obj4 = 0 ; | |
9198 | PyObject * obj5 = 0 ; | |
9199 | char * kwnames[] = { | |
9200 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9201 | }; | |
9202 | ||
9203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
9204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9205 | if (!SWIG_IsOK(res1)) { | |
9206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SplitterWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
9207 | } | |
9208 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
9209 | if (obj1) { | |
9210 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9211 | if (!SWIG_IsOK(ecode2)) { | |
9212 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterWindow" "', expected argument " "2"" of type '" "int""'"); | |
9213 | } | |
9214 | arg2 = static_cast< int >(val2); | |
9215 | } | |
9216 | if (obj2) { | |
093d3ff1 | 9217 | { |
554f62e9 RD |
9218 | arg3 = &temp3; |
9219 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 9220 | } |
554f62e9 RD |
9221 | } |
9222 | if (obj3) { | |
d55e5bfc | 9223 | { |
554f62e9 RD |
9224 | arg4 = &temp4; |
9225 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9226 | } |
554f62e9 RD |
9227 | } |
9228 | if (obj4) { | |
9229 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
9230 | if (!SWIG_IsOK(ecode5)) { | |
9231 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SplitterWindow" "', expected argument " "5"" of type '" "long""'"); | |
9232 | } | |
9233 | arg5 = static_cast< long >(val5); | |
9234 | } | |
9235 | if (obj5) { | |
093d3ff1 | 9236 | { |
554f62e9 RD |
9237 | arg6 = wxString_in_helper(obj5); |
9238 | if (arg6 == NULL) SWIG_fail; | |
9239 | temp6 = true; | |
093d3ff1 | 9240 | } |
554f62e9 RD |
9241 | } |
9242 | { | |
9243 | if (!wxPyCheckForApp()) SWIG_fail; | |
9244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9245 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9246 | wxPyEndAllowThreads(__tstate); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
9249 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_NEW | 0 ); | |
9250 | { | |
9251 | if (temp6) | |
9252 | delete arg6; | |
9253 | } | |
9254 | return resultobj; | |
9255 | fail: | |
9256 | { | |
9257 | if (temp6) | |
9258 | delete arg6; | |
9259 | } | |
9260 | return NULL; | |
d55e5bfc RD |
9261 | } |
9262 | ||
9263 | ||
554f62e9 RD |
9264 | SWIGINTERN PyObject *_wrap_new_PreSplitterWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9265 | PyObject *resultobj = 0; | |
9266 | wxSplitterWindow *result = 0 ; | |
9267 | ||
9268 | if (!SWIG_Python_UnpackTuple(args,"new_PreSplitterWindow",0,0,0)) SWIG_fail; | |
9269 | { | |
9270 | if (!wxPyCheckForApp()) SWIG_fail; | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
9273 | wxPyEndAllowThreads(__tstate); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | } | |
9276 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterWindow, SWIG_POINTER_OWN | 0 ); | |
9277 | return resultobj; | |
9278 | fail: | |
9279 | return NULL; | |
9280 | } | |
9281 | ||
9282 | ||
9283 | SWIGINTERN PyObject *_wrap_SplitterWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9284 | PyObject *resultobj = 0; | |
9285 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9286 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9287 | int arg3 = (int) -1 ; | |
9288 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9289 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9290 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9291 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9292 | long arg6 = (long) wxSP_3D ; | |
9293 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
9294 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9295 | bool result; | |
9296 | void *argp1 = 0 ; | |
9297 | int res1 = 0 ; | |
9298 | void *argp2 = 0 ; | |
9299 | int res2 = 0 ; | |
9300 | int val3 ; | |
9301 | int ecode3 = 0 ; | |
9302 | wxPoint temp4 ; | |
9303 | wxSize temp5 ; | |
9304 | long val6 ; | |
9305 | int ecode6 = 0 ; | |
9306 | bool temp7 = false ; | |
9307 | PyObject * obj0 = 0 ; | |
9308 | PyObject * obj1 = 0 ; | |
9309 | PyObject * obj2 = 0 ; | |
9310 | PyObject * obj3 = 0 ; | |
9311 | PyObject * obj4 = 0 ; | |
9312 | PyObject * obj5 = 0 ; | |
9313 | PyObject * obj6 = 0 ; | |
9314 | char * kwnames[] = { | |
9315 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9316 | }; | |
9317 | ||
9318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
9319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9320 | if (!SWIG_IsOK(res1)) { | |
9321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Create" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9322 | } | |
9323 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9324 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9325 | if (!SWIG_IsOK(res2)) { | |
9326 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9327 | } | |
9328 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9329 | if (obj2) { | |
9330 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9331 | if (!SWIG_IsOK(ecode3)) { | |
9332 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
9333 | } | |
9334 | arg3 = static_cast< int >(val3); | |
9335 | } | |
9336 | if (obj3) { | |
d55e5bfc | 9337 | { |
554f62e9 RD |
9338 | arg4 = &temp4; |
9339 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 9340 | } |
554f62e9 RD |
9341 | } |
9342 | if (obj4) { | |
d55e5bfc | 9343 | { |
554f62e9 RD |
9344 | arg5 = &temp5; |
9345 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 9346 | } |
554f62e9 RD |
9347 | } |
9348 | if (obj5) { | |
9349 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
9350 | if (!SWIG_IsOK(ecode6)) { | |
9351 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SplitterWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
9352 | } | |
9353 | arg6 = static_cast< long >(val6); | |
9354 | } | |
9355 | if (obj6) { | |
d55e5bfc | 9356 | { |
554f62e9 RD |
9357 | arg7 = wxString_in_helper(obj6); |
9358 | if (arg7 == NULL) SWIG_fail; | |
9359 | temp7 = true; | |
d55e5bfc | 9360 | } |
554f62e9 RD |
9361 | } |
9362 | { | |
9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9364 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | { | |
9369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9370 | } | |
9371 | { | |
9372 | if (temp7) | |
9373 | delete arg7; | |
9374 | } | |
9375 | return resultobj; | |
9376 | fail: | |
9377 | { | |
9378 | if (temp7) | |
9379 | delete arg7; | |
9380 | } | |
9381 | return NULL; | |
d55e5bfc RD |
9382 | } |
9383 | ||
9384 | ||
554f62e9 RD |
9385 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9386 | PyObject *resultobj = 0; | |
9387 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9388 | wxWindow *result = 0 ; | |
9389 | void *argp1 = 0 ; | |
9390 | int res1 = 0 ; | |
9391 | PyObject *swig_obj[1] ; | |
9392 | ||
9393 | if (!args) SWIG_fail; | |
9394 | swig_obj[0] = args; | |
9395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9396 | if (!SWIG_IsOK(res1)) { | |
9397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow1" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9398 | } | |
9399 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9400 | { | |
9401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9402 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
9403 | wxPyEndAllowThreads(__tstate); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
9406 | { | |
9407 | resultobj = wxPyMake_wxObject(result, 0); | |
9408 | } | |
9409 | return resultobj; | |
9410 | fail: | |
9411 | return NULL; | |
d55e5bfc RD |
9412 | } |
9413 | ||
9414 | ||
554f62e9 RD |
9415 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9416 | PyObject *resultobj = 0; | |
9417 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9418 | wxWindow *result = 0 ; | |
9419 | void *argp1 = 0 ; | |
9420 | int res1 = 0 ; | |
9421 | PyObject *swig_obj[1] ; | |
9422 | ||
9423 | if (!args) SWIG_fail; | |
9424 | swig_obj[0] = args; | |
9425 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9426 | if (!SWIG_IsOK(res1)) { | |
9427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetWindow2" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9428 | } | |
9429 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9430 | { | |
9431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9432 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | { | |
9437 | resultobj = wxPyMake_wxObject(result, 0); | |
9438 | } | |
9439 | return resultobj; | |
9440 | fail: | |
9441 | return NULL; | |
9442 | } | |
9443 | ||
9444 | ||
9445 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9446 | PyObject *resultobj = 0; | |
9447 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9448 | int arg2 ; | |
9449 | void *argp1 = 0 ; | |
9450 | int res1 = 0 ; | |
9451 | int val2 ; | |
9452 | int ecode2 = 0 ; | |
9453 | PyObject * obj0 = 0 ; | |
9454 | PyObject * obj1 = 0 ; | |
9455 | char * kwnames[] = { | |
9456 | (char *) "self",(char *) "mode", NULL | |
9457 | }; | |
9458 | ||
9459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
9460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9461 | if (!SWIG_IsOK(res1)) { | |
9462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9463 | } | |
9464 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9465 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9466 | if (!SWIG_IsOK(ecode2)) { | |
9467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSplitMode" "', expected argument " "2"" of type '" "int""'"); | |
9468 | } | |
9469 | arg2 = static_cast< int >(val2); | |
9470 | { | |
9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9472 | (arg1)->SetSplitMode(arg2); | |
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
9476 | resultobj = SWIG_Py_Void(); | |
9477 | return resultobj; | |
9478 | fail: | |
9479 | return NULL; | |
d55e5bfc RD |
9480 | } |
9481 | ||
9482 | ||
554f62e9 RD |
9483 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9484 | PyObject *resultobj = 0; | |
9485 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9486 | wxSplitMode result; | |
9487 | void *argp1 = 0 ; | |
9488 | int res1 = 0 ; | |
9489 | PyObject *swig_obj[1] ; | |
9490 | ||
9491 | if (!args) SWIG_fail; | |
9492 | swig_obj[0] = args; | |
9493 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9494 | if (!SWIG_IsOK(res1)) { | |
9495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSplitMode" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9496 | } | |
9497 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9498 | { | |
9499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9500 | result = (wxSplitMode)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
9501 | wxPyEndAllowThreads(__tstate); | |
9502 | if (PyErr_Occurred()) SWIG_fail; | |
9503 | } | |
9504 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9505 | return resultobj; | |
9506 | fail: | |
9507 | return NULL; | |
9508 | } | |
9509 | ||
9510 | ||
9511 | SWIGINTERN PyObject *_wrap_SplitterWindow_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9512 | PyObject *resultobj = 0; | |
9513 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9514 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9515 | void *argp1 = 0 ; | |
9516 | int res1 = 0 ; | |
9517 | void *argp2 = 0 ; | |
9518 | int res2 = 0 ; | |
9519 | PyObject * obj0 = 0 ; | |
9520 | PyObject * obj1 = 0 ; | |
9521 | char * kwnames[] = { | |
9522 | (char *) "self",(char *) "window", NULL | |
9523 | }; | |
9524 | ||
9525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9527 | if (!SWIG_IsOK(res1)) { | |
9528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Initialize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9529 | } | |
9530 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9531 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9532 | if (!SWIG_IsOK(res2)) { | |
9533 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Initialize" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9534 | } | |
9535 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9536 | { | |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | (arg1)->Initialize(arg2); | |
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | resultobj = SWIG_Py_Void(); | |
9543 | return resultobj; | |
9544 | fail: | |
9545 | return NULL; | |
9546 | } | |
9547 | ||
9548 | ||
9549 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9550 | PyObject *resultobj = 0; | |
9551 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9552 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9553 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9554 | int arg4 = (int) 0 ; | |
9555 | bool result; | |
9556 | void *argp1 = 0 ; | |
9557 | int res1 = 0 ; | |
9558 | void *argp2 = 0 ; | |
9559 | int res2 = 0 ; | |
9560 | void *argp3 = 0 ; | |
9561 | int res3 = 0 ; | |
9562 | int val4 ; | |
9563 | int ecode4 = 0 ; | |
9564 | PyObject * obj0 = 0 ; | |
9565 | PyObject * obj1 = 0 ; | |
9566 | PyObject * obj2 = 0 ; | |
9567 | PyObject * obj3 = 0 ; | |
9568 | char * kwnames[] = { | |
9569 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9570 | }; | |
9571 | ||
9572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9574 | if (!SWIG_IsOK(res1)) { | |
9575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9576 | } | |
9577 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9578 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9579 | if (!SWIG_IsOK(res2)) { | |
9580 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9581 | } | |
9582 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9583 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9584 | if (!SWIG_IsOK(res3)) { | |
9585 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9586 | } | |
9587 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9588 | if (obj3) { | |
9589 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9590 | if (!SWIG_IsOK(ecode4)) { | |
9591 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitVertically" "', expected argument " "4"" of type '" "int""'"); | |
9592 | } | |
9593 | arg4 = static_cast< int >(val4); | |
9594 | } | |
9595 | { | |
9596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9597 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
9598 | wxPyEndAllowThreads(__tstate); | |
9599 | if (PyErr_Occurred()) SWIG_fail; | |
9600 | } | |
9601 | { | |
9602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9603 | } | |
9604 | return resultobj; | |
9605 | fail: | |
9606 | return NULL; | |
9607 | } | |
9608 | ||
9609 | ||
9610 | SWIGINTERN PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9611 | PyObject *resultobj = 0; | |
9612 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9613 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9614 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9615 | int arg4 = (int) 0 ; | |
9616 | bool result; | |
9617 | void *argp1 = 0 ; | |
9618 | int res1 = 0 ; | |
9619 | void *argp2 = 0 ; | |
9620 | int res2 = 0 ; | |
9621 | void *argp3 = 0 ; | |
9622 | int res3 = 0 ; | |
9623 | int val4 ; | |
9624 | int ecode4 = 0 ; | |
9625 | PyObject * obj0 = 0 ; | |
9626 | PyObject * obj1 = 0 ; | |
9627 | PyObject * obj2 = 0 ; | |
9628 | PyObject * obj3 = 0 ; | |
9629 | char * kwnames[] = { | |
9630 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
9631 | }; | |
9632 | ||
9633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9635 | if (!SWIG_IsOK(res1)) { | |
9636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9637 | } | |
9638 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9639 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9640 | if (!SWIG_IsOK(res2)) { | |
9641 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9642 | } | |
9643 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9644 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9645 | if (!SWIG_IsOK(res3)) { | |
9646 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9647 | } | |
9648 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9649 | if (obj3) { | |
9650 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9651 | if (!SWIG_IsOK(ecode4)) { | |
9652 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SplitHorizontally" "', expected argument " "4"" of type '" "int""'"); | |
9653 | } | |
9654 | arg4 = static_cast< int >(val4); | |
9655 | } | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | { | |
9663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9664 | } | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
9671 | SWIGINTERN PyObject *_wrap_SplitterWindow_Unsplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9672 | PyObject *resultobj = 0; | |
9673 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9674 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9675 | bool result; | |
9676 | void *argp1 = 0 ; | |
9677 | int res1 = 0 ; | |
9678 | void *argp2 = 0 ; | |
9679 | int res2 = 0 ; | |
9680 | PyObject * obj0 = 0 ; | |
9681 | PyObject * obj1 = 0 ; | |
9682 | char * kwnames[] = { | |
9683 | (char *) "self",(char *) "toRemove", NULL | |
9684 | }; | |
9685 | ||
9686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) SWIG_fail; | |
9687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9688 | if (!SWIG_IsOK(res1)) { | |
9689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_Unsplit" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9690 | } | |
9691 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9692 | if (obj1) { | |
9693 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9694 | if (!SWIG_IsOK(res2)) { | |
9695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_Unsplit" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
d55e5bfc | 9696 | } |
554f62e9 RD |
9697 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
9698 | } | |
9699 | { | |
9700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9701 | result = (bool)(arg1)->Unsplit(arg2); | |
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) SWIG_fail; | |
9704 | } | |
9705 | { | |
9706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9707 | } | |
9708 | return resultobj; | |
9709 | fail: | |
9710 | return NULL; | |
9711 | } | |
9712 | ||
9713 | ||
9714 | SWIGINTERN PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9715 | PyObject *resultobj = 0; | |
9716 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9717 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9718 | wxWindow *arg3 = (wxWindow *) 0 ; | |
9719 | bool result; | |
9720 | void *argp1 = 0 ; | |
9721 | int res1 = 0 ; | |
9722 | void *argp2 = 0 ; | |
9723 | int res2 = 0 ; | |
9724 | void *argp3 = 0 ; | |
9725 | int res3 = 0 ; | |
9726 | PyObject * obj0 = 0 ; | |
9727 | PyObject * obj1 = 0 ; | |
9728 | PyObject * obj2 = 0 ; | |
9729 | char * kwnames[] = { | |
9730 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
9731 | }; | |
9732 | ||
9733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9735 | if (!SWIG_IsOK(res1)) { | |
9736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9737 | } | |
9738 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9739 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9740 | if (!SWIG_IsOK(res2)) { | |
9741 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
9742 | } | |
9743 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
9744 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
9745 | if (!SWIG_IsOK(res3)) { | |
9746 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SplitterWindow_ReplaceWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
9747 | } | |
9748 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
9755 | { | |
9756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9757 | } | |
9758 | return resultobj; | |
9759 | fail: | |
9760 | return NULL; | |
d55e5bfc RD |
9761 | } |
9762 | ||
9763 | ||
554f62e9 RD |
9764 | SWIGINTERN PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9765 | PyObject *resultobj = 0; | |
9766 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9767 | void *argp1 = 0 ; | |
9768 | int res1 = 0 ; | |
9769 | PyObject *swig_obj[1] ; | |
9770 | ||
9771 | if (!args) SWIG_fail; | |
9772 | swig_obj[0] = args; | |
9773 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9774 | if (!SWIG_IsOK(res1)) { | |
9775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_UpdateSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9776 | } | |
9777 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | (arg1)->UpdateSize(); | |
9781 | wxPyEndAllowThreads(__tstate); | |
9782 | if (PyErr_Occurred()) SWIG_fail; | |
9783 | } | |
9784 | resultobj = SWIG_Py_Void(); | |
9785 | return resultobj; | |
9786 | fail: | |
9787 | return NULL; | |
f20a2e1f RD |
9788 | } |
9789 | ||
9790 | ||
554f62e9 RD |
9791 | SWIGINTERN PyObject *_wrap_SplitterWindow_IsSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9792 | PyObject *resultobj = 0; | |
9793 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9794 | bool result; | |
9795 | void *argp1 = 0 ; | |
9796 | int res1 = 0 ; | |
9797 | PyObject *swig_obj[1] ; | |
9798 | ||
9799 | if (!args) SWIG_fail; | |
9800 | swig_obj[0] = args; | |
9801 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9802 | if (!SWIG_IsOK(res1)) { | |
9803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_IsSplit" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9804 | } | |
9805 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9806 | { | |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
9809 | wxPyEndAllowThreads(__tstate); | |
9810 | if (PyErr_Occurred()) SWIG_fail; | |
9811 | } | |
9812 | { | |
9813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9814 | } | |
9815 | return resultobj; | |
9816 | fail: | |
9817 | return NULL; | |
9818 | } | |
9819 | ||
9820 | ||
9821 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9822 | PyObject *resultobj = 0; | |
9823 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9824 | int arg2 ; | |
9825 | void *argp1 = 0 ; | |
9826 | int res1 = 0 ; | |
9827 | int val2 ; | |
9828 | int ecode2 = 0 ; | |
9829 | PyObject * obj0 = 0 ; | |
9830 | PyObject * obj1 = 0 ; | |
9831 | char * kwnames[] = { | |
9832 | (char *) "self",(char *) "width", NULL | |
9833 | }; | |
9834 | ||
9835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9837 | if (!SWIG_IsOK(res1)) { | |
9838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9839 | } | |
9840 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9841 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9842 | if (!SWIG_IsOK(ecode2)) { | |
9843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashSize" "', expected argument " "2"" of type '" "int""'"); | |
9844 | } | |
9845 | arg2 = static_cast< int >(val2); | |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9848 | (arg1)->SetSashSize(arg2); | |
9849 | wxPyEndAllowThreads(__tstate); | |
9850 | if (PyErr_Occurred()) SWIG_fail; | |
9851 | } | |
9852 | resultobj = SWIG_Py_Void(); | |
9853 | return resultobj; | |
9854 | fail: | |
9855 | return NULL; | |
9856 | } | |
9857 | ||
9858 | ||
9859 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9860 | PyObject *resultobj = 0; | |
9861 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9862 | int arg2 ; | |
9863 | void *argp1 = 0 ; | |
9864 | int res1 = 0 ; | |
9865 | int val2 ; | |
9866 | int ecode2 = 0 ; | |
9867 | PyObject * obj0 = 0 ; | |
9868 | PyObject * obj1 = 0 ; | |
9869 | char * kwnames[] = { | |
9870 | (char *) "self",(char *) "width", NULL | |
9871 | }; | |
9872 | ||
9873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9875 | if (!SWIG_IsOK(res1)) { | |
9876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9877 | } | |
9878 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9879 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9880 | if (!SWIG_IsOK(ecode2)) { | |
9881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
9882 | } | |
9883 | arg2 = static_cast< int >(val2); | |
9884 | { | |
9885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9886 | (arg1)->SetBorderSize(arg2); | |
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
9889 | } | |
9890 | resultobj = SWIG_Py_Void(); | |
9891 | return resultobj; | |
9892 | fail: | |
9893 | return NULL; | |
d55e5bfc RD |
9894 | } |
9895 | ||
9896 | ||
554f62e9 RD |
9897 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9898 | PyObject *resultobj = 0; | |
9899 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9900 | int result; | |
9901 | void *argp1 = 0 ; | |
9902 | int res1 = 0 ; | |
9903 | PyObject *swig_obj[1] ; | |
9904 | ||
9905 | if (!args) SWIG_fail; | |
9906 | swig_obj[0] = args; | |
9907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9908 | if (!SWIG_IsOK(res1)) { | |
9909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9910 | } | |
9911 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
9915 | wxPyEndAllowThreads(__tstate); | |
9916 | if (PyErr_Occurred()) SWIG_fail; | |
9917 | } | |
9918 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9919 | return resultobj; | |
9920 | fail: | |
9921 | return NULL; | |
d55e5bfc RD |
9922 | } |
9923 | ||
9924 | ||
554f62e9 RD |
9925 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9926 | PyObject *resultobj = 0; | |
9927 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9928 | int result; | |
9929 | void *argp1 = 0 ; | |
9930 | int res1 = 0 ; | |
9931 | PyObject *swig_obj[1] ; | |
9932 | ||
9933 | if (!args) SWIG_fail; | |
9934 | swig_obj[0] = args; | |
9935 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9936 | if (!SWIG_IsOK(res1)) { | |
9937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetBorderSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
9938 | } | |
9939 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9940 | { | |
9941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9942 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
9943 | wxPyEndAllowThreads(__tstate); | |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
9945 | } | |
9946 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9947 | return resultobj; | |
9948 | fail: | |
9949 | return NULL; | |
9950 | } | |
9951 | ||
9952 | ||
9953 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9954 | PyObject *resultobj = 0; | |
9955 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
9956 | int arg2 ; | |
9957 | bool arg3 = (bool) true ; | |
9958 | void *argp1 = 0 ; | |
9959 | int res1 = 0 ; | |
9960 | int val2 ; | |
9961 | int ecode2 = 0 ; | |
9962 | bool val3 ; | |
9963 | int ecode3 = 0 ; | |
9964 | PyObject * obj0 = 0 ; | |
9965 | PyObject * obj1 = 0 ; | |
9966 | PyObject * obj2 = 0 ; | |
9967 | char * kwnames[] = { | |
9968 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
9969 | }; | |
9970 | ||
9971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
9973 | if (!SWIG_IsOK(res1)) { | |
9974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
9975 | } | |
9976 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
9977 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9978 | if (!SWIG_IsOK(ecode2)) { | |
9979 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
9980 | } | |
9981 | arg2 = static_cast< int >(val2); | |
9982 | if (obj2) { | |
9983 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9984 | if (!SWIG_IsOK(ecode3)) { | |
9985 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SetSashPosition" "', expected argument " "3"" of type '" "bool""'"); | |
9986 | } | |
9987 | arg3 = static_cast< bool >(val3); | |
9988 | } | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | (arg1)->SetSashPosition(arg2,arg3); | |
9992 | wxPyEndAllowThreads(__tstate); | |
9993 | if (PyErr_Occurred()) SWIG_fail; | |
9994 | } | |
9995 | resultobj = SWIG_Py_Void(); | |
9996 | return resultobj; | |
9997 | fail: | |
9998 | return NULL; | |
d55e5bfc RD |
9999 | } |
10000 | ||
10001 | ||
554f62e9 RD |
10002 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10003 | PyObject *resultobj = 0; | |
10004 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10005 | int result; | |
10006 | void *argp1 = 0 ; | |
10007 | int res1 = 0 ; | |
10008 | PyObject *swig_obj[1] ; | |
10009 | ||
10010 | if (!args) SWIG_fail; | |
10011 | swig_obj[0] = args; | |
10012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10013 | if (!SWIG_IsOK(res1)) { | |
10014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10015 | } | |
10016 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10017 | { | |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10019 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
10020 | wxPyEndAllowThreads(__tstate); | |
10021 | if (PyErr_Occurred()) SWIG_fail; | |
10022 | } | |
10023 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10024 | return resultobj; | |
10025 | fail: | |
10026 | return NULL; | |
10027 | } | |
10028 | ||
10029 | ||
10030 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10031 | PyObject *resultobj = 0; | |
10032 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10033 | double arg2 ; | |
10034 | void *argp1 = 0 ; | |
10035 | int res1 = 0 ; | |
10036 | double val2 ; | |
10037 | int ecode2 = 0 ; | |
10038 | PyObject * obj0 = 0 ; | |
10039 | PyObject * obj1 = 0 ; | |
10040 | char * kwnames[] = { | |
10041 | (char *) "self",(char *) "gravity", NULL | |
10042 | }; | |
10043 | ||
10044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashGravity",kwnames,&obj0,&obj1)) SWIG_fail; | |
10045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10046 | if (!SWIG_IsOK(res1)) { | |
10047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10048 | } | |
10049 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10050 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
10051 | if (!SWIG_IsOK(ecode2)) { | |
10052 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetSashGravity" "', expected argument " "2"" of type '" "double""'"); | |
10053 | } | |
10054 | arg2 = static_cast< double >(val2); | |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | (arg1)->SetSashGravity(arg2); | |
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | resultobj = SWIG_Py_Void(); | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | return NULL; | |
d55e5bfc RD |
10065 | } |
10066 | ||
10067 | ||
554f62e9 RD |
10068 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetSashGravity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10069 | PyObject *resultobj = 0; | |
10070 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10071 | double result; | |
10072 | void *argp1 = 0 ; | |
10073 | int res1 = 0 ; | |
10074 | PyObject *swig_obj[1] ; | |
10075 | ||
10076 | if (!args) SWIG_fail; | |
10077 | swig_obj[0] = args; | |
10078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10079 | if (!SWIG_IsOK(res1)) { | |
10080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetSashGravity" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10081 | } | |
10082 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10083 | { | |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (double)((wxSplitterWindow const *)arg1)->GetSashGravity(); | |
10086 | wxPyEndAllowThreads(__tstate); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
10089 | resultobj = SWIG_From_double(static_cast< double >(result)); | |
10090 | return resultobj; | |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
10096 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10097 | PyObject *resultobj = 0; | |
10098 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10099 | int arg2 ; | |
10100 | void *argp1 = 0 ; | |
10101 | int res1 = 0 ; | |
10102 | int val2 ; | |
10103 | int ecode2 = 0 ; | |
10104 | PyObject * obj0 = 0 ; | |
10105 | PyObject * obj1 = 0 ; | |
10106 | char * kwnames[] = { | |
10107 | (char *) "self",(char *) "min", NULL | |
10108 | }; | |
10109 | ||
10110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10112 | if (!SWIG_IsOK(res1)) { | |
10113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10114 | } | |
10115 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10116 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10117 | if (!SWIG_IsOK(ecode2)) { | |
10118 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetMinimumPaneSize" "', expected argument " "2"" of type '" "int""'"); | |
10119 | } | |
10120 | arg2 = static_cast< int >(val2); | |
10121 | { | |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | (arg1)->SetMinimumPaneSize(arg2); | |
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
10127 | resultobj = SWIG_Py_Void(); | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
d55e5bfc RD |
10131 | } |
10132 | ||
10133 | ||
554f62e9 RD |
10134 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10135 | PyObject *resultobj = 0; | |
10136 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10137 | int result; | |
10138 | void *argp1 = 0 ; | |
10139 | int res1 = 0 ; | |
10140 | PyObject *swig_obj[1] ; | |
10141 | ||
10142 | if (!args) SWIG_fail; | |
10143 | swig_obj[0] = args; | |
10144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10145 | if (!SWIG_IsOK(res1)) { | |
10146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetMinimumPaneSize" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10147 | } | |
10148 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
10152 | wxPyEndAllowThreads(__tstate); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | } | |
10155 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10156 | return resultobj; | |
10157 | fail: | |
10158 | return NULL; | |
10159 | } | |
10160 | ||
10161 | ||
10162 | SWIGINTERN PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10163 | PyObject *resultobj = 0; | |
10164 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10165 | int arg2 ; | |
10166 | int arg3 ; | |
10167 | int arg4 = (int) 5 ; | |
10168 | bool result; | |
10169 | void *argp1 = 0 ; | |
10170 | int res1 = 0 ; | |
10171 | int val2 ; | |
10172 | int ecode2 = 0 ; | |
10173 | int val3 ; | |
10174 | int ecode3 = 0 ; | |
10175 | int val4 ; | |
10176 | int ecode4 = 0 ; | |
10177 | PyObject * obj0 = 0 ; | |
10178 | PyObject * obj1 = 0 ; | |
10179 | PyObject * obj2 = 0 ; | |
10180 | PyObject * obj3 = 0 ; | |
10181 | char * kwnames[] = { | |
10182 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
10183 | }; | |
10184 | ||
10185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10187 | if (!SWIG_IsOK(res1)) { | |
10188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10189 | } | |
10190 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10192 | if (!SWIG_IsOK(ecode2)) { | |
10193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
10194 | } | |
10195 | arg2 = static_cast< int >(val2); | |
10196 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10197 | if (!SWIG_IsOK(ecode3)) { | |
10198 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
10199 | } | |
10200 | arg3 = static_cast< int >(val3); | |
10201 | if (obj3) { | |
10202 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10203 | if (!SWIG_IsOK(ecode4)) { | |
10204 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SplitterWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
10205 | } | |
10206 | arg4 = static_cast< int >(val4); | |
10207 | } | |
10208 | { | |
10209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10210 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
10211 | wxPyEndAllowThreads(__tstate); | |
10212 | if (PyErr_Occurred()) SWIG_fail; | |
10213 | } | |
10214 | { | |
10215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10216 | } | |
10217 | return resultobj; | |
10218 | fail: | |
10219 | return NULL; | |
b1fcee84 RD |
10220 | } |
10221 | ||
10222 | ||
554f62e9 RD |
10223 | SWIGINTERN PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10224 | PyObject *resultobj = 0; | |
10225 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10226 | void *argp1 = 0 ; | |
10227 | int res1 = 0 ; | |
10228 | PyObject *swig_obj[1] ; | |
10229 | ||
10230 | if (!args) SWIG_fail; | |
10231 | swig_obj[0] = args; | |
10232 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10233 | if (!SWIG_IsOK(res1)) { | |
10234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10235 | } | |
10236 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | (arg1)->SizeWindows(); | |
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | resultobj = SWIG_Py_Void(); | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | SWIGINTERN PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj = 0; | |
10252 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10253 | bool arg2 ; | |
10254 | void *argp1 = 0 ; | |
10255 | int res1 = 0 ; | |
10256 | bool val2 ; | |
10257 | int ecode2 = 0 ; | |
10258 | PyObject * obj0 = 0 ; | |
10259 | PyObject * obj1 = 0 ; | |
10260 | char * kwnames[] = { | |
10261 | (char *) "self",(char *) "needUpdating", NULL | |
10262 | }; | |
10263 | ||
10264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) SWIG_fail; | |
10265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10266 | if (!SWIG_IsOK(res1)) { | |
10267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow *""'"); | |
10268 | } | |
10269 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10270 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10271 | if (!SWIG_IsOK(ecode2)) { | |
10272 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterWindow_SetNeedUpdating" "', expected argument " "2"" of type '" "bool""'"); | |
10273 | } | |
10274 | arg2 = static_cast< bool >(val2); | |
10275 | { | |
10276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10277 | (arg1)->SetNeedUpdating(arg2); | |
10278 | wxPyEndAllowThreads(__tstate); | |
10279 | if (PyErr_Occurred()) SWIG_fail; | |
10280 | } | |
10281 | resultobj = SWIG_Py_Void(); | |
10282 | return resultobj; | |
10283 | fail: | |
10284 | return NULL; | |
b1fcee84 RD |
10285 | } |
10286 | ||
10287 | ||
554f62e9 RD |
10288 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10289 | PyObject *resultobj = 0; | |
10290 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
10291 | bool result; | |
10292 | void *argp1 = 0 ; | |
10293 | int res1 = 0 ; | |
10294 | PyObject *swig_obj[1] ; | |
10295 | ||
10296 | if (!args) SWIG_fail; | |
10297 | swig_obj[0] = args; | |
10298 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10299 | if (!SWIG_IsOK(res1)) { | |
10300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterWindow_GetNeedUpdating" "', expected argument " "1"" of type '" "wxSplitterWindow const *""'"); | |
10301 | } | |
10302 | arg1 = reinterpret_cast< wxSplitterWindow * >(argp1); | |
10303 | { | |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
10309 | { | |
10310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10311 | } | |
10312 | return resultobj; | |
10313 | fail: | |
10314 | return NULL; | |
b1fcee84 RD |
10315 | } |
10316 | ||
10317 | ||
554f62e9 RD |
10318 | SWIGINTERN PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10319 | PyObject *resultobj = 0; | |
10320 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
10321 | SwigValueWrapper<wxVisualAttributes > result; | |
10322 | int val1 ; | |
10323 | int ecode1 = 0 ; | |
10324 | PyObject * obj0 = 0 ; | |
10325 | char * kwnames[] = { | |
10326 | (char *) "variant", NULL | |
10327 | }; | |
10328 | ||
10329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail; | |
10330 | if (obj0) { | |
10331 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10332 | if (!SWIG_IsOK(ecode1)) { | |
10333 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SplitterWindow_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'"); | |
10334 | } | |
10335 | arg1 = static_cast< wxWindowVariant >(val1); | |
10336 | } | |
10337 | { | |
10338 | if (!wxPyCheckForApp()) SWIG_fail; | |
10339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10340 | result = wxSplitterWindow::GetClassDefaultAttributes(arg1); | |
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
10344 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
10345 | return resultobj; | |
10346 | fail: | |
10347 | return NULL; | |
b1fcee84 RD |
10348 | } |
10349 | ||
10350 | ||
554f62e9 RD |
10351 | SWIGINTERN PyObject *SplitterWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10352 | PyObject *obj; | |
10353 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10354 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterWindow, SWIG_NewClientData(obj)); | |
10355 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10356 | } |
10357 | ||
554f62e9 RD |
10358 | SWIGINTERN PyObject *SplitterWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10359 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
10360 | } |
10361 | ||
554f62e9 RD |
10362 | SWIGINTERN PyObject *_wrap_new_SplitterEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10363 | PyObject *resultobj = 0; | |
10364 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10365 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
10366 | wxSplitterEvent *result = 0 ; | |
10367 | int val1 ; | |
10368 | int ecode1 = 0 ; | |
10369 | void *argp2 = 0 ; | |
10370 | int res2 = 0 ; | |
10371 | PyObject * obj0 = 0 ; | |
10372 | PyObject * obj1 = 0 ; | |
10373 | char * kwnames[] = { | |
10374 | (char *) "type",(char *) "splitter", NULL | |
10375 | }; | |
10376 | ||
10377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10378 | if (obj0) { | |
10379 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10380 | if (!SWIG_IsOK(ecode1)) { | |
10381 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
10382 | } | |
10383 | arg1 = static_cast< wxEventType >(val1); | |
10384 | } | |
10385 | if (obj1) { | |
10386 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSplitterWindow, 0 | 0 ); | |
10387 | if (!SWIG_IsOK(res2)) { | |
10388 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SplitterEvent" "', expected argument " "2"" of type '" "wxSplitterWindow *""'"); | |
62d32a5f | 10389 | } |
554f62e9 RD |
10390 | arg2 = reinterpret_cast< wxSplitterWindow * >(argp2); |
10391 | } | |
10392 | { | |
10393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10394 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
10395 | wxPyEndAllowThreads(__tstate); | |
10396 | if (PyErr_Occurred()) SWIG_fail; | |
10397 | } | |
10398 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterEvent, SWIG_POINTER_NEW | 0 ); | |
10399 | return resultobj; | |
10400 | fail: | |
10401 | return NULL; | |
10402 | } | |
10403 | ||
10404 | ||
10405 | SWIGINTERN PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10406 | PyObject *resultobj = 0; | |
10407 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10408 | int arg2 ; | |
10409 | void *argp1 = 0 ; | |
10410 | int res1 = 0 ; | |
10411 | int val2 ; | |
10412 | int ecode2 = 0 ; | |
10413 | PyObject * obj0 = 0 ; | |
10414 | PyObject * obj1 = 0 ; | |
10415 | char * kwnames[] = { | |
10416 | (char *) "self",(char *) "pos", NULL | |
10417 | }; | |
10418 | ||
10419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
10420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10421 | if (!SWIG_IsOK(res1)) { | |
10422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent *""'"); | |
10423 | } | |
10424 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10425 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10426 | if (!SWIG_IsOK(ecode2)) { | |
10427 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SplitterEvent_SetSashPosition" "', expected argument " "2"" of type '" "int""'"); | |
10428 | } | |
10429 | arg2 = static_cast< int >(val2); | |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | (arg1)->SetSashPosition(arg2); | |
10433 | wxPyEndAllowThreads(__tstate); | |
10434 | if (PyErr_Occurred()) SWIG_fail; | |
10435 | } | |
10436 | resultobj = SWIG_Py_Void(); | |
10437 | return resultobj; | |
10438 | fail: | |
10439 | return NULL; | |
62d32a5f RD |
10440 | } |
10441 | ||
10442 | ||
554f62e9 RD |
10443 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10444 | PyObject *resultobj = 0; | |
10445 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10446 | int result; | |
10447 | void *argp1 = 0 ; | |
10448 | int res1 = 0 ; | |
10449 | PyObject *swig_obj[1] ; | |
10450 | ||
10451 | if (!args) SWIG_fail; | |
10452 | swig_obj[0] = args; | |
10453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10454 | if (!SWIG_IsOK(res1)) { | |
10455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetSashPosition" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10456 | } | |
10457 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10458 | { | |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10460 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
10461 | wxPyEndAllowThreads(__tstate); | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
10464 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10465 | return resultobj; | |
10466 | fail: | |
10467 | return NULL; | |
d55e5bfc RD |
10468 | } |
10469 | ||
10470 | ||
554f62e9 RD |
10471 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10472 | PyObject *resultobj = 0; | |
10473 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10474 | wxWindow *result = 0 ; | |
10475 | void *argp1 = 0 ; | |
10476 | int res1 = 0 ; | |
10477 | PyObject *swig_obj[1] ; | |
10478 | ||
10479 | if (!args) SWIG_fail; | |
10480 | swig_obj[0] = args; | |
10481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10482 | if (!SWIG_IsOK(res1)) { | |
10483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetWindowBeingRemoved" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10484 | } | |
10485 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10486 | { | |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | { | |
10493 | resultobj = wxPyMake_wxObject(result, 0); | |
10494 | } | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
d55e5bfc RD |
10498 | } |
10499 | ||
10500 | ||
554f62e9 RD |
10501 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10502 | PyObject *resultobj = 0; | |
10503 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10504 | int result; | |
10505 | void *argp1 = 0 ; | |
10506 | int res1 = 0 ; | |
10507 | PyObject *swig_obj[1] ; | |
10508 | ||
10509 | if (!args) SWIG_fail; | |
10510 | swig_obj[0] = args; | |
10511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10512 | if (!SWIG_IsOK(res1)) { | |
10513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetX" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10514 | } | |
10515 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
10519 | wxPyEndAllowThreads(__tstate); | |
10520 | if (PyErr_Occurred()) SWIG_fail; | |
10521 | } | |
10522 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10523 | return resultobj; | |
10524 | fail: | |
10525 | return NULL; | |
d55e5bfc RD |
10526 | } |
10527 | ||
10528 | ||
554f62e9 RD |
10529 | SWIGINTERN PyObject *_wrap_SplitterEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10530 | PyObject *resultobj = 0; | |
10531 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
10532 | int result; | |
10533 | void *argp1 = 0 ; | |
10534 | int res1 = 0 ; | |
10535 | PyObject *swig_obj[1] ; | |
10536 | ||
10537 | if (!args) SWIG_fail; | |
10538 | swig_obj[0] = args; | |
10539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterEvent, 0 | 0 ); | |
10540 | if (!SWIG_IsOK(res1)) { | |
10541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterEvent_GetY" "', expected argument " "1"" of type '" "wxSplitterEvent const *""'"); | |
10542 | } | |
10543 | arg1 = reinterpret_cast< wxSplitterEvent * >(argp1); | |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
10547 | wxPyEndAllowThreads(__tstate); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
10549 | } | |
10550 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10551 | return resultobj; | |
10552 | fail: | |
10553 | return NULL; | |
f20a2e1f RD |
10554 | } |
10555 | ||
10556 | ||
554f62e9 RD |
10557 | SWIGINTERN PyObject *SplitterEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10558 | PyObject *obj; | |
10559 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10560 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterEvent, SWIG_NewClientData(obj)); | |
10561 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10562 | } |
10563 | ||
554f62e9 RD |
10564 | SWIGINTERN PyObject *SplitterEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10565 | return SWIG_Python_InitShadowInstance(args); | |
10566 | } | |
d55e5bfc | 10567 | |
554f62e9 RD |
10568 | SWIGINTERN int SashNameStr_set(PyObject *) { |
10569 | SWIG_Error(SWIG_AttributeError,"Variable SashNameStr is read-only."); | |
10570 | return 1; | |
d55e5bfc RD |
10571 | } |
10572 | ||
10573 | ||
554f62e9 RD |
10574 | SWIGINTERN PyObject *SashNameStr_get(void) { |
10575 | PyObject *pyobj = 0; | |
10576 | ||
10577 | { | |
10578 | #if wxUSE_UNICODE | |
10579 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10580 | #else | |
10581 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
10582 | #endif | |
10583 | } | |
10584 | return pyobj; | |
d55e5bfc RD |
10585 | } |
10586 | ||
10587 | ||
554f62e9 RD |
10588 | SWIGINTERN int SashLayoutNameStr_set(PyObject *) { |
10589 | SWIG_Error(SWIG_AttributeError,"Variable SashLayoutNameStr is read-only."); | |
10590 | return 1; | |
d55e5bfc RD |
10591 | } |
10592 | ||
10593 | ||
554f62e9 RD |
10594 | SWIGINTERN PyObject *SashLayoutNameStr_get(void) { |
10595 | PyObject *pyobj = 0; | |
10596 | ||
10597 | { | |
10598 | #if wxUSE_UNICODE | |
10599 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10600 | #else | |
10601 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
10602 | #endif | |
10603 | } | |
10604 | return pyobj; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | SWIGINTERN PyObject *_wrap_new_SashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj = 0; | |
10610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10611 | int arg2 = (int) -1 ; | |
10612 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10613 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10614 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10615 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10616 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10617 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
10618 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10619 | wxSashWindow *result = 0 ; | |
10620 | void *argp1 = 0 ; | |
10621 | int res1 = 0 ; | |
10622 | int val2 ; | |
10623 | int ecode2 = 0 ; | |
10624 | wxPoint temp3 ; | |
10625 | wxSize temp4 ; | |
10626 | long val5 ; | |
10627 | int ecode5 = 0 ; | |
10628 | bool temp6 = false ; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | PyObject * obj1 = 0 ; | |
10631 | PyObject * obj2 = 0 ; | |
10632 | PyObject * obj3 = 0 ; | |
10633 | PyObject * obj4 = 0 ; | |
10634 | PyObject * obj5 = 0 ; | |
10635 | char * kwnames[] = { | |
10636 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10637 | }; | |
10638 | ||
10639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
10640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10641 | if (!SWIG_IsOK(res1)) { | |
10642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
10643 | } | |
10644 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
10645 | if (obj1) { | |
10646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10647 | if (!SWIG_IsOK(ecode2)) { | |
10648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashWindow" "', expected argument " "2"" of type '" "int""'"); | |
10649 | } | |
10650 | arg2 = static_cast< int >(val2); | |
10651 | } | |
10652 | if (obj2) { | |
093d3ff1 | 10653 | { |
554f62e9 RD |
10654 | arg3 = &temp3; |
10655 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 10656 | } |
554f62e9 RD |
10657 | } |
10658 | if (obj3) { | |
d55e5bfc | 10659 | { |
554f62e9 RD |
10660 | arg4 = &temp4; |
10661 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10662 | } |
554f62e9 RD |
10663 | } |
10664 | if (obj4) { | |
10665 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
10666 | if (!SWIG_IsOK(ecode5)) { | |
10667 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashWindow" "', expected argument " "5"" of type '" "long""'"); | |
10668 | } | |
10669 | arg5 = static_cast< long >(val5); | |
10670 | } | |
10671 | if (obj5) { | |
d55e5bfc | 10672 | { |
554f62e9 RD |
10673 | arg6 = wxString_in_helper(obj5); |
10674 | if (arg6 == NULL) SWIG_fail; | |
10675 | temp6 = true; | |
d55e5bfc | 10676 | } |
554f62e9 RD |
10677 | } |
10678 | { | |
10679 | if (!wxPyCheckForApp()) SWIG_fail; | |
10680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10681 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10682 | wxPyEndAllowThreads(__tstate); | |
10683 | if (PyErr_Occurred()) SWIG_fail; | |
10684 | } | |
10685 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_NEW | 0 ); | |
10686 | { | |
10687 | if (temp6) | |
10688 | delete arg6; | |
10689 | } | |
10690 | return resultobj; | |
10691 | fail: | |
10692 | { | |
10693 | if (temp6) | |
10694 | delete arg6; | |
10695 | } | |
10696 | return NULL; | |
d55e5bfc RD |
10697 | } |
10698 | ||
10699 | ||
554f62e9 RD |
10700 | SWIGINTERN PyObject *_wrap_new_PreSashWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10701 | PyObject *resultobj = 0; | |
10702 | wxSashWindow *result = 0 ; | |
10703 | ||
10704 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashWindow",0,0,0)) SWIG_fail; | |
10705 | { | |
10706 | if (!wxPyCheckForApp()) SWIG_fail; | |
10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10708 | result = (wxSashWindow *)new wxSashWindow(); | |
10709 | wxPyEndAllowThreads(__tstate); | |
10710 | if (PyErr_Occurred()) SWIG_fail; | |
10711 | } | |
10712 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashWindow, SWIG_POINTER_OWN | 0 ); | |
10713 | return resultobj; | |
10714 | fail: | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
10719 | SWIGINTERN PyObject *_wrap_SashWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10720 | PyObject *resultobj = 0; | |
10721 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10723 | int arg3 = (int) -1 ; | |
10724 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10725 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10726 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10727 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10728 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
10729 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
10730 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10731 | bool result; | |
10732 | void *argp1 = 0 ; | |
10733 | int res1 = 0 ; | |
10734 | void *argp2 = 0 ; | |
10735 | int res2 = 0 ; | |
10736 | int val3 ; | |
10737 | int ecode3 = 0 ; | |
10738 | wxPoint temp4 ; | |
10739 | wxSize temp5 ; | |
10740 | long val6 ; | |
10741 | int ecode6 = 0 ; | |
10742 | bool temp7 = false ; | |
10743 | PyObject * obj0 = 0 ; | |
10744 | PyObject * obj1 = 0 ; | |
10745 | PyObject * obj2 = 0 ; | |
10746 | PyObject * obj3 = 0 ; | |
10747 | PyObject * obj4 = 0 ; | |
10748 | PyObject * obj5 = 0 ; | |
10749 | PyObject * obj6 = 0 ; | |
10750 | char * kwnames[] = { | |
10751 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10752 | }; | |
10753 | ||
10754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
10755 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10756 | if (!SWIG_IsOK(res1)) { | |
10757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_Create" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10758 | } | |
10759 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10760 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
10761 | if (!SWIG_IsOK(res2)) { | |
10762 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
10763 | } | |
10764 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
10765 | if (obj2) { | |
10766 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10767 | if (!SWIG_IsOK(ecode3)) { | |
10768 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
10769 | } | |
10770 | arg3 = static_cast< int >(val3); | |
10771 | } | |
10772 | if (obj3) { | |
093d3ff1 | 10773 | { |
554f62e9 RD |
10774 | arg4 = &temp4; |
10775 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 10776 | } |
554f62e9 RD |
10777 | } |
10778 | if (obj4) { | |
d55e5bfc | 10779 | { |
554f62e9 RD |
10780 | arg5 = &temp5; |
10781 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 10782 | } |
554f62e9 RD |
10783 | } |
10784 | if (obj5) { | |
10785 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
10786 | if (!SWIG_IsOK(ecode6)) { | |
10787 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
10788 | } | |
10789 | arg6 = static_cast< long >(val6); | |
10790 | } | |
10791 | if (obj6) { | |
093d3ff1 | 10792 | { |
554f62e9 RD |
10793 | arg7 = wxString_in_helper(obj6); |
10794 | if (arg7 == NULL) SWIG_fail; | |
10795 | temp7 = true; | |
093d3ff1 | 10796 | } |
554f62e9 RD |
10797 | } |
10798 | { | |
10799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10800 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10801 | wxPyEndAllowThreads(__tstate); | |
10802 | if (PyErr_Occurred()) SWIG_fail; | |
10803 | } | |
10804 | { | |
10805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10806 | } | |
10807 | { | |
10808 | if (temp7) | |
10809 | delete arg7; | |
10810 | } | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | { | |
10814 | if (temp7) | |
10815 | delete arg7; | |
10816 | } | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
10821 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10822 | PyObject *resultobj = 0; | |
10823 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10824 | wxSashEdgePosition arg2 ; | |
10825 | bool arg3 ; | |
10826 | void *argp1 = 0 ; | |
10827 | int res1 = 0 ; | |
10828 | int val2 ; | |
10829 | int ecode2 = 0 ; | |
10830 | bool val3 ; | |
10831 | int ecode3 = 0 ; | |
10832 | PyObject * obj0 = 0 ; | |
10833 | PyObject * obj1 = 0 ; | |
10834 | PyObject * obj2 = 0 ; | |
10835 | char * kwnames[] = { | |
10836 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
10837 | }; | |
10838 | ||
10839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10841 | if (!SWIG_IsOK(res1)) { | |
10842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10843 | } | |
10844 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10846 | if (!SWIG_IsOK(ecode2)) { | |
10847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10848 | } | |
10849 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10850 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10851 | if (!SWIG_IsOK(ecode3)) { | |
10852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashVisible" "', expected argument " "3"" of type '" "bool""'"); | |
10853 | } | |
10854 | arg3 = static_cast< bool >(val3); | |
10855 | { | |
10856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10857 | (arg1)->SetSashVisible(arg2,arg3); | |
10858 | wxPyEndAllowThreads(__tstate); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | } | |
10861 | resultobj = SWIG_Py_Void(); | |
10862 | return resultobj; | |
10863 | fail: | |
10864 | return NULL; | |
10865 | } | |
10866 | ||
10867 | ||
10868 | SWIGINTERN PyObject *_wrap_SashWindow_GetSashVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10869 | PyObject *resultobj = 0; | |
10870 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10871 | wxSashEdgePosition arg2 ; | |
10872 | bool result; | |
10873 | void *argp1 = 0 ; | |
10874 | int res1 = 0 ; | |
10875 | int val2 ; | |
10876 | int ecode2 = 0 ; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | PyObject * obj1 = 0 ; | |
10879 | char * kwnames[] = { | |
10880 | (char *) "self",(char *) "edge", NULL | |
10881 | }; | |
10882 | ||
10883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
10884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10885 | if (!SWIG_IsOK(res1)) { | |
10886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetSashVisible" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10887 | } | |
10888 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10889 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10890 | if (!SWIG_IsOK(ecode2)) { | |
10891 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetSashVisible" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10892 | } | |
10893 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible(arg2); | |
10897 | wxPyEndAllowThreads(__tstate); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
10899 | } | |
10900 | { | |
10901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10902 | } | |
10903 | return resultobj; | |
10904 | fail: | |
10905 | return NULL; | |
10906 | } | |
10907 | ||
10908 | ||
10909 | SWIGINTERN PyObject *_wrap_SashWindow_SetSashBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10910 | PyObject *resultobj = 0; | |
10911 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10912 | wxSashEdgePosition arg2 ; | |
10913 | bool arg3 ; | |
10914 | void *argp1 = 0 ; | |
10915 | int res1 = 0 ; | |
10916 | int val2 ; | |
10917 | int ecode2 = 0 ; | |
10918 | bool val3 ; | |
10919 | int ecode3 = 0 ; | |
10920 | PyObject * obj0 = 0 ; | |
10921 | PyObject * obj1 = 0 ; | |
10922 | PyObject * obj2 = 0 ; | |
10923 | char * kwnames[] = { | |
10924 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
10925 | }; | |
10926 | ||
10927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10929 | if (!SWIG_IsOK(res1)) { | |
10930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetSashBorder" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
10931 | } | |
10932 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10934 | if (!SWIG_IsOK(ecode2)) { | |
10935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetSashBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10936 | } | |
10937 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10938 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10939 | if (!SWIG_IsOK(ecode3)) { | |
10940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SetSashBorder" "', expected argument " "3"" of type '" "bool""'"); | |
10941 | } | |
10942 | arg3 = static_cast< bool >(val3); | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | (arg1)->SetSashBorder(arg2,arg3); | |
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | resultobj = SWIG_Py_Void(); | |
10950 | return resultobj; | |
10951 | fail: | |
10952 | return NULL; | |
10953 | } | |
10954 | ||
10955 | ||
10956 | SWIGINTERN PyObject *_wrap_SashWindow_HasBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10957 | PyObject *resultobj = 0; | |
10958 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
10959 | wxSashEdgePosition arg2 ; | |
10960 | bool result; | |
10961 | void *argp1 = 0 ; | |
10962 | int res1 = 0 ; | |
10963 | int val2 ; | |
10964 | int ecode2 = 0 ; | |
10965 | PyObject * obj0 = 0 ; | |
10966 | PyObject * obj1 = 0 ; | |
10967 | char * kwnames[] = { | |
10968 | (char *) "self",(char *) "edge", NULL | |
10969 | }; | |
10970 | ||
10971 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) SWIG_fail; | |
10972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
10973 | if (!SWIG_IsOK(res1)) { | |
10974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_HasBorder" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
10975 | } | |
10976 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
10977 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10978 | if (!SWIG_IsOK(ecode2)) { | |
10979 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_HasBorder" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
10980 | } | |
10981 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
10982 | { | |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | result = (bool)((wxSashWindow const *)arg1)->HasBorder(arg2); | |
10985 | wxPyEndAllowThreads(__tstate); | |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
10988 | { | |
10989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10990 | } | |
10991 | return resultobj; | |
10992 | fail: | |
10993 | return NULL; | |
10994 | } | |
10995 | ||
10996 | ||
10997 | SWIGINTERN PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10998 | PyObject *resultobj = 0; | |
10999 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11000 | wxSashEdgePosition arg2 ; | |
11001 | int result; | |
11002 | void *argp1 = 0 ; | |
11003 | int res1 = 0 ; | |
11004 | int val2 ; | |
11005 | int ecode2 = 0 ; | |
11006 | PyObject * obj0 = 0 ; | |
11007 | PyObject * obj1 = 0 ; | |
11008 | char * kwnames[] = { | |
11009 | (char *) "self",(char *) "edge", NULL | |
11010 | }; | |
11011 | ||
11012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) SWIG_fail; | |
11013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11014 | if (!SWIG_IsOK(res1)) { | |
11015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11016 | } | |
11017 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11018 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11019 | if (!SWIG_IsOK(ecode2)) { | |
11020 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_GetEdgeMargin" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11021 | } | |
11022 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11023 | { | |
11024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11025 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin(arg2); | |
11026 | wxPyEndAllowThreads(__tstate); | |
11027 | if (PyErr_Occurred()) SWIG_fail; | |
11028 | } | |
11029 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11030 | return resultobj; | |
11031 | fail: | |
11032 | return NULL; | |
11033 | } | |
11034 | ||
11035 | ||
11036 | SWIGINTERN PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11037 | PyObject *resultobj = 0; | |
11038 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11039 | int arg2 ; | |
11040 | void *argp1 = 0 ; | |
11041 | int res1 = 0 ; | |
11042 | int val2 ; | |
11043 | int ecode2 = 0 ; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | PyObject * obj1 = 0 ; | |
11046 | char * kwnames[] = { | |
11047 | (char *) "self",(char *) "width", NULL | |
11048 | }; | |
11049 | ||
11050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11052 | if (!SWIG_IsOK(res1)) { | |
11053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11054 | } | |
11055 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11056 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11057 | if (!SWIG_IsOK(ecode2)) { | |
11058 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetDefaultBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11059 | } | |
11060 | arg2 = static_cast< int >(val2); | |
11061 | { | |
11062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11063 | (arg1)->SetDefaultBorderSize(arg2); | |
11064 | wxPyEndAllowThreads(__tstate); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
11067 | resultobj = SWIG_Py_Void(); | |
11068 | return resultobj; | |
11069 | fail: | |
11070 | return NULL; | |
d55e5bfc RD |
11071 | } |
11072 | ||
11073 | ||
554f62e9 RD |
11074 | SWIGINTERN PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11075 | PyObject *resultobj = 0; | |
11076 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11077 | int result; | |
11078 | void *argp1 = 0 ; | |
11079 | int res1 = 0 ; | |
11080 | PyObject *swig_obj[1] ; | |
11081 | ||
11082 | if (!args) SWIG_fail; | |
11083 | swig_obj[0] = args; | |
11084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11085 | if (!SWIG_IsOK(res1)) { | |
11086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetDefaultBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11087 | } | |
11088 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11089 | { | |
11090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11091 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
11092 | wxPyEndAllowThreads(__tstate); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
11095 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11096 | return resultobj; | |
11097 | fail: | |
11098 | return NULL; | |
11099 | } | |
11100 | ||
11101 | ||
11102 | SWIGINTERN PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11103 | PyObject *resultobj = 0; | |
11104 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11105 | int arg2 ; | |
11106 | void *argp1 = 0 ; | |
11107 | int res1 = 0 ; | |
11108 | int val2 ; | |
11109 | int ecode2 = 0 ; | |
11110 | PyObject * obj0 = 0 ; | |
11111 | PyObject * obj1 = 0 ; | |
11112 | char * kwnames[] = { | |
11113 | (char *) "self",(char *) "width", NULL | |
11114 | }; | |
11115 | ||
11116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11118 | if (!SWIG_IsOK(res1)) { | |
11119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11120 | } | |
11121 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11122 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11123 | if (!SWIG_IsOK(ecode2)) { | |
11124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetExtraBorderSize" "', expected argument " "2"" of type '" "int""'"); | |
11125 | } | |
11126 | arg2 = static_cast< int >(val2); | |
11127 | { | |
11128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11129 | (arg1)->SetExtraBorderSize(arg2); | |
11130 | wxPyEndAllowThreads(__tstate); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
11132 | } | |
11133 | resultobj = SWIG_Py_Void(); | |
11134 | return resultobj; | |
11135 | fail: | |
11136 | return NULL; | |
d55e5bfc RD |
11137 | } |
11138 | ||
11139 | ||
554f62e9 RD |
11140 | SWIGINTERN PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11141 | PyObject *resultobj = 0; | |
11142 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11143 | int result; | |
11144 | void *argp1 = 0 ; | |
11145 | int res1 = 0 ; | |
11146 | PyObject *swig_obj[1] ; | |
11147 | ||
11148 | if (!args) SWIG_fail; | |
11149 | swig_obj[0] = args; | |
11150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11151 | if (!SWIG_IsOK(res1)) { | |
11152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetExtraBorderSize" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11153 | } | |
11154 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11155 | { | |
11156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11157 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
11158 | wxPyEndAllowThreads(__tstate); | |
11159 | if (PyErr_Occurred()) SWIG_fail; | |
11160 | } | |
11161 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11162 | return resultobj; | |
11163 | fail: | |
11164 | return NULL; | |
11165 | } | |
11166 | ||
11167 | ||
11168 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11169 | PyObject *resultobj = 0; | |
11170 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11171 | int arg2 ; | |
11172 | void *argp1 = 0 ; | |
11173 | int res1 = 0 ; | |
11174 | int val2 ; | |
11175 | int ecode2 = 0 ; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | PyObject * obj1 = 0 ; | |
11178 | char * kwnames[] = { | |
11179 | (char *) "self",(char *) "min", NULL | |
11180 | }; | |
11181 | ||
11182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11184 | if (!SWIG_IsOK(res1)) { | |
11185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11186 | } | |
11187 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11188 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11189 | if (!SWIG_IsOK(ecode2)) { | |
11190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11191 | } | |
11192 | arg2 = static_cast< int >(val2); | |
11193 | { | |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11195 | (arg1)->SetMinimumSizeX(arg2); | |
11196 | wxPyEndAllowThreads(__tstate); | |
11197 | if (PyErr_Occurred()) SWIG_fail; | |
11198 | } | |
11199 | resultobj = SWIG_Py_Void(); | |
11200 | return resultobj; | |
11201 | fail: | |
11202 | return NULL; | |
11203 | } | |
11204 | ||
11205 | ||
11206 | SWIGINTERN PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11207 | PyObject *resultobj = 0; | |
11208 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11209 | int arg2 ; | |
11210 | void *argp1 = 0 ; | |
11211 | int res1 = 0 ; | |
11212 | int val2 ; | |
11213 | int ecode2 = 0 ; | |
11214 | PyObject * obj0 = 0 ; | |
11215 | PyObject * obj1 = 0 ; | |
11216 | char * kwnames[] = { | |
11217 | (char *) "self",(char *) "min", NULL | |
11218 | }; | |
11219 | ||
11220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11222 | if (!SWIG_IsOK(res1)) { | |
11223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11224 | } | |
11225 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11226 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11227 | if (!SWIG_IsOK(ecode2)) { | |
11228 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMinimumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11229 | } | |
11230 | arg2 = static_cast< int >(val2); | |
11231 | { | |
11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11233 | (arg1)->SetMinimumSizeY(arg2); | |
11234 | wxPyEndAllowThreads(__tstate); | |
11235 | if (PyErr_Occurred()) SWIG_fail; | |
11236 | } | |
11237 | resultobj = SWIG_Py_Void(); | |
11238 | return resultobj; | |
11239 | fail: | |
11240 | return NULL; | |
d55e5bfc RD |
11241 | } |
11242 | ||
11243 | ||
554f62e9 RD |
11244 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11245 | PyObject *resultobj = 0; | |
11246 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11247 | int result; | |
11248 | void *argp1 = 0 ; | |
11249 | int res1 = 0 ; | |
11250 | PyObject *swig_obj[1] ; | |
11251 | ||
11252 | if (!args) SWIG_fail; | |
11253 | swig_obj[0] = args; | |
11254 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11255 | if (!SWIG_IsOK(res1)) { | |
11256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11257 | } | |
11258 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11259 | { | |
11260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11261 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11266 | return resultobj; | |
11267 | fail: | |
11268 | return NULL; | |
d55e5bfc RD |
11269 | } |
11270 | ||
11271 | ||
554f62e9 RD |
11272 | SWIGINTERN PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11273 | PyObject *resultobj = 0; | |
11274 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11275 | int result; | |
11276 | void *argp1 = 0 ; | |
11277 | int res1 = 0 ; | |
11278 | PyObject *swig_obj[1] ; | |
11279 | ||
11280 | if (!args) SWIG_fail; | |
11281 | swig_obj[0] = args; | |
11282 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11283 | if (!SWIG_IsOK(res1)) { | |
11284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMinimumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11285 | } | |
11286 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
11290 | wxPyEndAllowThreads(__tstate); | |
11291 | if (PyErr_Occurred()) SWIG_fail; | |
11292 | } | |
11293 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11294 | return resultobj; | |
11295 | fail: | |
11296 | return NULL; | |
11297 | } | |
11298 | ||
11299 | ||
11300 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11301 | PyObject *resultobj = 0; | |
11302 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11303 | int arg2 ; | |
11304 | void *argp1 = 0 ; | |
11305 | int res1 = 0 ; | |
11306 | int val2 ; | |
11307 | int ecode2 = 0 ; | |
11308 | PyObject * obj0 = 0 ; | |
11309 | PyObject * obj1 = 0 ; | |
11310 | char * kwnames[] = { | |
11311 | (char *) "self",(char *) "max", NULL | |
11312 | }; | |
11313 | ||
11314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) SWIG_fail; | |
11315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11316 | if (!SWIG_IsOK(res1)) { | |
11317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11318 | } | |
11319 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11320 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11321 | if (!SWIG_IsOK(ecode2)) { | |
11322 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeX" "', expected argument " "2"" of type '" "int""'"); | |
11323 | } | |
11324 | arg2 = static_cast< int >(val2); | |
11325 | { | |
11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11327 | (arg1)->SetMaximumSizeX(arg2); | |
11328 | wxPyEndAllowThreads(__tstate); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | } | |
11331 | resultobj = SWIG_Py_Void(); | |
11332 | return resultobj; | |
11333 | fail: | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
11338 | SWIGINTERN PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11339 | PyObject *resultobj = 0; | |
11340 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11341 | int arg2 ; | |
11342 | void *argp1 = 0 ; | |
11343 | int res1 = 0 ; | |
11344 | int val2 ; | |
11345 | int ecode2 = 0 ; | |
11346 | PyObject * obj0 = 0 ; | |
11347 | PyObject * obj1 = 0 ; | |
11348 | char * kwnames[] = { | |
11349 | (char *) "self",(char *) "max", NULL | |
11350 | }; | |
11351 | ||
11352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) SWIG_fail; | |
11353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11354 | if (!SWIG_IsOK(res1)) { | |
11355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11356 | } | |
11357 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11358 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11359 | if (!SWIG_IsOK(ecode2)) { | |
11360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SetMaximumSizeY" "', expected argument " "2"" of type '" "int""'"); | |
11361 | } | |
11362 | arg2 = static_cast< int >(val2); | |
11363 | { | |
11364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11365 | (arg1)->SetMaximumSizeY(arg2); | |
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
11369 | resultobj = SWIG_Py_Void(); | |
11370 | return resultobj; | |
11371 | fail: | |
11372 | return NULL; | |
d55e5bfc RD |
11373 | } |
11374 | ||
11375 | ||
554f62e9 RD |
11376 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11377 | PyObject *resultobj = 0; | |
11378 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11379 | int result; | |
11380 | void *argp1 = 0 ; | |
11381 | int res1 = 0 ; | |
11382 | PyObject *swig_obj[1] ; | |
11383 | ||
11384 | if (!args) SWIG_fail; | |
11385 | swig_obj[0] = args; | |
11386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11387 | if (!SWIG_IsOK(res1)) { | |
11388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeX" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11389 | } | |
11390 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11391 | { | |
11392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11393 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
11394 | wxPyEndAllowThreads(__tstate); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
11397 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11398 | return resultobj; | |
11399 | fail: | |
11400 | return NULL; | |
d55e5bfc RD |
11401 | } |
11402 | ||
11403 | ||
554f62e9 RD |
11404 | SWIGINTERN PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11405 | PyObject *resultobj = 0; | |
11406 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11407 | int result; | |
11408 | void *argp1 = 0 ; | |
11409 | int res1 = 0 ; | |
11410 | PyObject *swig_obj[1] ; | |
11411 | ||
11412 | if (!args) SWIG_fail; | |
11413 | swig_obj[0] = args; | |
11414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11415 | if (!SWIG_IsOK(res1)) { | |
11416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_GetMaximumSizeY" "', expected argument " "1"" of type '" "wxSashWindow const *""'"); | |
11417 | } | |
11418 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11419 | { | |
11420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11421 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
11422 | wxPyEndAllowThreads(__tstate); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | } | |
11425 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11426 | return resultobj; | |
11427 | fail: | |
11428 | return NULL; | |
11429 | } | |
11430 | ||
11431 | ||
11432 | SWIGINTERN PyObject *_wrap_SashWindow_SashHitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11433 | PyObject *resultobj = 0; | |
11434 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11435 | int arg2 ; | |
11436 | int arg3 ; | |
11437 | int arg4 = (int) 2 ; | |
11438 | wxSashEdgePosition result; | |
11439 | void *argp1 = 0 ; | |
11440 | int res1 = 0 ; | |
11441 | int val2 ; | |
11442 | int ecode2 = 0 ; | |
11443 | int val3 ; | |
11444 | int ecode3 = 0 ; | |
11445 | int val4 ; | |
11446 | int ecode4 = 0 ; | |
11447 | PyObject * obj0 = 0 ; | |
11448 | PyObject * obj1 = 0 ; | |
11449 | PyObject * obj2 = 0 ; | |
11450 | PyObject * obj3 = 0 ; | |
11451 | char * kwnames[] = { | |
11452 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
11453 | }; | |
11454 | ||
11455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11457 | if (!SWIG_IsOK(res1)) { | |
11458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SashHitTest" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11459 | } | |
11460 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11461 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11462 | if (!SWIG_IsOK(ecode2)) { | |
11463 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashWindow_SashHitTest" "', expected argument " "2"" of type '" "int""'"); | |
11464 | } | |
11465 | arg2 = static_cast< int >(val2); | |
11466 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11467 | if (!SWIG_IsOK(ecode3)) { | |
11468 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashWindow_SashHitTest" "', expected argument " "3"" of type '" "int""'"); | |
11469 | } | |
11470 | arg3 = static_cast< int >(val3); | |
11471 | if (obj3) { | |
11472 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11473 | if (!SWIG_IsOK(ecode4)) { | |
11474 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SashWindow_SashHitTest" "', expected argument " "4"" of type '" "int""'"); | |
11475 | } | |
11476 | arg4 = static_cast< int >(val4); | |
11477 | } | |
11478 | { | |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (wxSashEdgePosition)(arg1)->SashHitTest(arg2,arg3,arg4); | |
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
d55e5bfc RD |
11488 | } |
11489 | ||
11490 | ||
554f62e9 RD |
11491 | SWIGINTERN PyObject *_wrap_SashWindow_SizeWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11492 | PyObject *resultobj = 0; | |
11493 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
11494 | void *argp1 = 0 ; | |
11495 | int res1 = 0 ; | |
11496 | PyObject *swig_obj[1] ; | |
11497 | ||
11498 | if (!args) SWIG_fail; | |
11499 | swig_obj[0] = args; | |
11500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashWindow, 0 | 0 ); | |
11501 | if (!SWIG_IsOK(res1)) { | |
11502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashWindow_SizeWindows" "', expected argument " "1"" of type '" "wxSashWindow *""'"); | |
11503 | } | |
11504 | arg1 = reinterpret_cast< wxSashWindow * >(argp1); | |
11505 | { | |
11506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11507 | (arg1)->SizeWindows(); | |
11508 | wxPyEndAllowThreads(__tstate); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
11511 | resultobj = SWIG_Py_Void(); | |
11512 | return resultobj; | |
11513 | fail: | |
11514 | return NULL; | |
d55e5bfc RD |
11515 | } |
11516 | ||
11517 | ||
554f62e9 RD |
11518 | SWIGINTERN PyObject *SashWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11519 | PyObject *obj; | |
11520 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11521 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashWindow, SWIG_NewClientData(obj)); | |
11522 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11523 | } |
11524 | ||
554f62e9 RD |
11525 | SWIGINTERN PyObject *SashWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11526 | return SWIG_Python_InitShadowInstance(args); | |
11527 | } | |
d55e5bfc | 11528 | |
554f62e9 RD |
11529 | SWIGINTERN PyObject *_wrap_new_SashEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11530 | PyObject *resultobj = 0; | |
11531 | int arg1 = (int) 0 ; | |
11532 | wxSashEdgePosition arg2 = (wxSashEdgePosition) wxSASH_NONE ; | |
11533 | wxSashEvent *result = 0 ; | |
11534 | int val1 ; | |
11535 | int ecode1 = 0 ; | |
11536 | int val2 ; | |
11537 | int ecode2 = 0 ; | |
11538 | PyObject * obj0 = 0 ; | |
11539 | PyObject * obj1 = 0 ; | |
11540 | char * kwnames[] = { | |
11541 | (char *) "id",(char *) "edge", NULL | |
11542 | }; | |
11543 | ||
11544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11545 | if (obj0) { | |
11546 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11547 | if (!SWIG_IsOK(ecode1)) { | |
11548 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SashEvent" "', expected argument " "1"" of type '" "int""'"); | |
11549 | } | |
11550 | arg1 = static_cast< int >(val1); | |
11551 | } | |
11552 | if (obj1) { | |
11553 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11554 | if (!SWIG_IsOK(ecode2)) { | |
11555 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashEvent" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11556 | } | |
11557 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11558 | } | |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11561 | result = (wxSashEvent *)new wxSashEvent(arg1,arg2); | |
11562 | wxPyEndAllowThreads(__tstate); | |
11563 | if (PyErr_Occurred()) SWIG_fail; | |
11564 | } | |
11565 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashEvent, SWIG_POINTER_NEW | 0 ); | |
11566 | return resultobj; | |
11567 | fail: | |
11568 | return NULL; | |
11569 | } | |
11570 | ||
11571 | ||
11572 | SWIGINTERN PyObject *_wrap_SashEvent_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11573 | PyObject *resultobj = 0; | |
11574 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11575 | wxSashEdgePosition arg2 ; | |
11576 | void *argp1 = 0 ; | |
11577 | int res1 = 0 ; | |
11578 | int val2 ; | |
11579 | int ecode2 = 0 ; | |
11580 | PyObject * obj0 = 0 ; | |
11581 | PyObject * obj1 = 0 ; | |
11582 | char * kwnames[] = { | |
11583 | (char *) "self",(char *) "edge", NULL | |
11584 | }; | |
11585 | ||
11586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail; | |
11587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11588 | if (!SWIG_IsOK(res1)) { | |
11589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetEdge" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11590 | } | |
11591 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11592 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11593 | if (!SWIG_IsOK(ecode2)) { | |
11594 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetEdge" "', expected argument " "2"" of type '" "wxSashEdgePosition""'"); | |
11595 | } | |
11596 | arg2 = static_cast< wxSashEdgePosition >(val2); | |
11597 | { | |
11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11599 | (arg1)->SetEdge(arg2); | |
11600 | wxPyEndAllowThreads(__tstate); | |
11601 | if (PyErr_Occurred()) SWIG_fail; | |
11602 | } | |
11603 | resultobj = SWIG_Py_Void(); | |
11604 | return resultobj; | |
11605 | fail: | |
11606 | return NULL; | |
d55e5bfc RD |
11607 | } |
11608 | ||
11609 | ||
554f62e9 RD |
11610 | SWIGINTERN PyObject *_wrap_SashEvent_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11611 | PyObject *resultobj = 0; | |
11612 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11613 | wxSashEdgePosition result; | |
11614 | void *argp1 = 0 ; | |
11615 | int res1 = 0 ; | |
11616 | PyObject *swig_obj[1] ; | |
11617 | ||
11618 | if (!args) SWIG_fail; | |
11619 | swig_obj[0] = args; | |
11620 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11621 | if (!SWIG_IsOK(res1)) { | |
11622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetEdge" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11623 | } | |
11624 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11625 | { | |
11626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11627 | result = (wxSashEdgePosition)((wxSashEvent const *)arg1)->GetEdge(); | |
11628 | wxPyEndAllowThreads(__tstate); | |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
11630 | } | |
11631 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11632 | return resultobj; | |
11633 | fail: | |
11634 | return NULL; | |
11635 | } | |
11636 | ||
11637 | ||
11638 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11639 | PyObject *resultobj = 0; | |
11640 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11641 | wxRect *arg2 = 0 ; | |
11642 | void *argp1 = 0 ; | |
11643 | int res1 = 0 ; | |
11644 | wxRect temp2 ; | |
11645 | PyObject * obj0 = 0 ; | |
11646 | PyObject * obj1 = 0 ; | |
11647 | char * kwnames[] = { | |
11648 | (char *) "self",(char *) "rect", NULL | |
11649 | }; | |
11650 | ||
11651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11653 | if (!SWIG_IsOK(res1)) { | |
11654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragRect" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11655 | } | |
11656 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11657 | { | |
11658 | arg2 = &temp2; | |
11659 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11660 | } | |
11661 | { | |
11662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11663 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
11664 | wxPyEndAllowThreads(__tstate); | |
11665 | if (PyErr_Occurred()) SWIG_fail; | |
11666 | } | |
11667 | resultobj = SWIG_Py_Void(); | |
11668 | return resultobj; | |
11669 | fail: | |
11670 | return NULL; | |
d55e5bfc RD |
11671 | } |
11672 | ||
11673 | ||
554f62e9 RD |
11674 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11675 | PyObject *resultobj = 0; | |
11676 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11677 | wxRect result; | |
11678 | void *argp1 = 0 ; | |
11679 | int res1 = 0 ; | |
11680 | PyObject *swig_obj[1] ; | |
11681 | ||
11682 | if (!args) SWIG_fail; | |
11683 | swig_obj[0] = args; | |
11684 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11685 | if (!SWIG_IsOK(res1)) { | |
11686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragRect" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11687 | } | |
11688 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11689 | { | |
11690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11691 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
11695 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11696 | return resultobj; | |
11697 | fail: | |
11698 | return NULL; | |
11699 | } | |
11700 | ||
11701 | ||
11702 | SWIGINTERN PyObject *_wrap_SashEvent_SetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11703 | PyObject *resultobj = 0; | |
11704 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11705 | wxSashDragStatus arg2 ; | |
11706 | void *argp1 = 0 ; | |
11707 | int res1 = 0 ; | |
11708 | int val2 ; | |
11709 | int ecode2 = 0 ; | |
11710 | PyObject * obj0 = 0 ; | |
11711 | PyObject * obj1 = 0 ; | |
11712 | char * kwnames[] = { | |
11713 | (char *) "self",(char *) "status", NULL | |
11714 | }; | |
11715 | ||
11716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) SWIG_fail; | |
11717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11718 | if (!SWIG_IsOK(res1)) { | |
11719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_SetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent *""'"); | |
11720 | } | |
11721 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11722 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11723 | if (!SWIG_IsOK(ecode2)) { | |
11724 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashEvent_SetDragStatus" "', expected argument " "2"" of type '" "wxSashDragStatus""'"); | |
11725 | } | |
11726 | arg2 = static_cast< wxSashDragStatus >(val2); | |
11727 | { | |
11728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11729 | (arg1)->SetDragStatus(arg2); | |
11730 | wxPyEndAllowThreads(__tstate); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
11733 | resultobj = SWIG_Py_Void(); | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | return NULL; | |
d55e5bfc RD |
11737 | } |
11738 | ||
11739 | ||
554f62e9 RD |
11740 | SWIGINTERN PyObject *_wrap_SashEvent_GetDragStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11741 | PyObject *resultobj = 0; | |
11742 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
11743 | wxSashDragStatus result; | |
11744 | void *argp1 = 0 ; | |
11745 | int res1 = 0 ; | |
11746 | PyObject *swig_obj[1] ; | |
11747 | ||
11748 | if (!args) SWIG_fail; | |
11749 | swig_obj[0] = args; | |
11750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashEvent, 0 | 0 ); | |
11751 | if (!SWIG_IsOK(res1)) { | |
11752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashEvent_GetDragStatus" "', expected argument " "1"" of type '" "wxSashEvent const *""'"); | |
11753 | } | |
11754 | arg1 = reinterpret_cast< wxSashEvent * >(argp1); | |
11755 | { | |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | result = (wxSashDragStatus)((wxSashEvent const *)arg1)->GetDragStatus(); | |
11758 | wxPyEndAllowThreads(__tstate); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
11761 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11762 | return resultobj; | |
11763 | fail: | |
11764 | return NULL; | |
03837c5c RD |
11765 | } |
11766 | ||
11767 | ||
554f62e9 RD |
11768 | SWIGINTERN PyObject *SashEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11769 | PyObject *obj; | |
11770 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11771 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashEvent, SWIG_NewClientData(obj)); | |
11772 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11773 | } |
11774 | ||
554f62e9 RD |
11775 | SWIGINTERN PyObject *SashEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11776 | return SWIG_Python_InitShadowInstance(args); | |
11777 | } | |
d55e5bfc | 11778 | |
554f62e9 RD |
11779 | SWIGINTERN PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11780 | PyObject *resultobj = 0; | |
11781 | int arg1 = (int) 0 ; | |
11782 | wxQueryLayoutInfoEvent *result = 0 ; | |
11783 | int val1 ; | |
11784 | int ecode1 = 0 ; | |
11785 | PyObject * obj0 = 0 ; | |
11786 | char * kwnames[] = { | |
11787 | (char *) "id", NULL | |
11788 | }; | |
11789 | ||
11790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) SWIG_fail; | |
11791 | if (obj0) { | |
11792 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11793 | if (!SWIG_IsOK(ecode1)) { | |
11794 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryLayoutInfoEvent" "', expected argument " "1"" of type '" "int""'"); | |
11795 | } | |
11796 | arg1 = static_cast< int >(val1); | |
11797 | } | |
11798 | { | |
11799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11800 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
11801 | wxPyEndAllowThreads(__tstate); | |
11802 | if (PyErr_Occurred()) SWIG_fail; | |
11803 | } | |
11804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_POINTER_NEW | 0 ); | |
11805 | return resultobj; | |
11806 | fail: | |
11807 | return NULL; | |
11808 | } | |
11809 | ||
11810 | ||
11811 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11812 | PyObject *resultobj = 0; | |
11813 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11814 | int arg2 ; | |
11815 | void *argp1 = 0 ; | |
11816 | int res1 = 0 ; | |
11817 | int val2 ; | |
11818 | int ecode2 = 0 ; | |
11819 | PyObject * obj0 = 0 ; | |
11820 | PyObject * obj1 = 0 ; | |
11821 | char * kwnames[] = { | |
11822 | (char *) "self",(char *) "length", NULL | |
11823 | }; | |
11824 | ||
11825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
11826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11827 | if (!SWIG_IsOK(res1)) { | |
11828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11829 | } | |
11830 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11831 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11832 | if (!SWIG_IsOK(ecode2)) { | |
11833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetRequestedLength" "', expected argument " "2"" of type '" "int""'"); | |
11834 | } | |
11835 | arg2 = static_cast< int >(val2); | |
11836 | { | |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11838 | (arg1)->SetRequestedLength(arg2); | |
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | resultobj = SWIG_Py_Void(); | |
11843 | return resultobj; | |
11844 | fail: | |
11845 | return NULL; | |
d55e5bfc RD |
11846 | } |
11847 | ||
11848 | ||
554f62e9 RD |
11849 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11850 | PyObject *resultobj = 0; | |
11851 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11852 | int result; | |
11853 | void *argp1 = 0 ; | |
11854 | int res1 = 0 ; | |
11855 | PyObject *swig_obj[1] ; | |
11856 | ||
11857 | if (!args) SWIG_fail; | |
11858 | swig_obj[0] = args; | |
11859 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11860 | if (!SWIG_IsOK(res1)) { | |
11861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetRequestedLength" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11862 | } | |
11863 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11864 | { | |
11865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11866 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11871 | return resultobj; | |
11872 | fail: | |
11873 | return NULL; | |
11874 | } | |
11875 | ||
11876 | ||
11877 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11878 | PyObject *resultobj = 0; | |
11879 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11880 | int arg2 ; | |
11881 | void *argp1 = 0 ; | |
11882 | int res1 = 0 ; | |
11883 | int val2 ; | |
11884 | int ecode2 = 0 ; | |
11885 | PyObject * obj0 = 0 ; | |
11886 | PyObject * obj1 = 0 ; | |
11887 | char * kwnames[] = { | |
11888 | (char *) "self",(char *) "flags", NULL | |
11889 | }; | |
11890 | ||
11891 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
11892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11893 | if (!SWIG_IsOK(res1)) { | |
11894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11895 | } | |
11896 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11897 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11898 | if (!SWIG_IsOK(ecode2)) { | |
11899 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
11900 | } | |
11901 | arg2 = static_cast< int >(val2); | |
11902 | { | |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | (arg1)->SetFlags(arg2); | |
11905 | wxPyEndAllowThreads(__tstate); | |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
11907 | } | |
11908 | resultobj = SWIG_Py_Void(); | |
11909 | return resultobj; | |
11910 | fail: | |
11911 | return NULL; | |
d55e5bfc RD |
11912 | } |
11913 | ||
11914 | ||
554f62e9 RD |
11915 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11916 | PyObject *resultobj = 0; | |
11917 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11918 | int result; | |
11919 | void *argp1 = 0 ; | |
11920 | int res1 = 0 ; | |
11921 | PyObject *swig_obj[1] ; | |
11922 | ||
11923 | if (!args) SWIG_fail; | |
11924 | swig_obj[0] = args; | |
11925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11926 | if (!SWIG_IsOK(res1)) { | |
11927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetFlags" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11928 | } | |
11929 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11930 | { | |
11931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11932 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
11933 | wxPyEndAllowThreads(__tstate); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
11936 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11937 | return resultobj; | |
11938 | fail: | |
11939 | return NULL; | |
11940 | } | |
11941 | ||
11942 | ||
11943 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11944 | PyObject *resultobj = 0; | |
11945 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11946 | wxSize *arg2 = 0 ; | |
11947 | void *argp1 = 0 ; | |
11948 | int res1 = 0 ; | |
11949 | wxSize temp2 ; | |
11950 | PyObject * obj0 = 0 ; | |
11951 | PyObject * obj1 = 0 ; | |
11952 | char * kwnames[] = { | |
11953 | (char *) "self",(char *) "size", NULL | |
11954 | }; | |
11955 | ||
11956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11958 | if (!SWIG_IsOK(res1)) { | |
11959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
11960 | } | |
11961 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11962 | { | |
11963 | arg2 = &temp2; | |
11964 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11965 | } | |
11966 | { | |
11967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11968 | (arg1)->SetSize((wxSize const &)*arg2); | |
11969 | wxPyEndAllowThreads(__tstate); | |
11970 | if (PyErr_Occurred()) SWIG_fail; | |
11971 | } | |
11972 | resultobj = SWIG_Py_Void(); | |
11973 | return resultobj; | |
11974 | fail: | |
11975 | return NULL; | |
d55e5bfc RD |
11976 | } |
11977 | ||
11978 | ||
554f62e9 RD |
11979 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11980 | PyObject *resultobj = 0; | |
11981 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
11982 | wxSize result; | |
11983 | void *argp1 = 0 ; | |
11984 | int res1 = 0 ; | |
11985 | PyObject *swig_obj[1] ; | |
11986 | ||
11987 | if (!args) SWIG_fail; | |
11988 | swig_obj[0] = args; | |
11989 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
11990 | if (!SWIG_IsOK(res1)) { | |
11991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetSize" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
11992 | } | |
11993 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
11994 | { | |
11995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11996 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
11997 | wxPyEndAllowThreads(__tstate); | |
11998 | if (PyErr_Occurred()) SWIG_fail; | |
11999 | } | |
12000 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12001 | return resultobj; | |
12002 | fail: | |
12003 | return NULL; | |
12004 | } | |
12005 | ||
12006 | ||
12007 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12008 | PyObject *resultobj = 0; | |
12009 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12010 | wxLayoutOrientation arg2 ; | |
12011 | void *argp1 = 0 ; | |
12012 | int res1 = 0 ; | |
12013 | int val2 ; | |
12014 | int ecode2 = 0 ; | |
12015 | PyObject * obj0 = 0 ; | |
12016 | PyObject * obj1 = 0 ; | |
12017 | char * kwnames[] = { | |
12018 | (char *) "self",(char *) "orient", NULL | |
12019 | }; | |
12020 | ||
12021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12023 | if (!SWIG_IsOK(res1)) { | |
12024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12025 | } | |
12026 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12027 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12028 | if (!SWIG_IsOK(ecode2)) { | |
12029 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12030 | } | |
12031 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12032 | { | |
12033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12034 | (arg1)->SetOrientation(arg2); | |
12035 | wxPyEndAllowThreads(__tstate); | |
12036 | if (PyErr_Occurred()) SWIG_fail; | |
12037 | } | |
12038 | resultobj = SWIG_Py_Void(); | |
12039 | return resultobj; | |
12040 | fail: | |
12041 | return NULL; | |
f20a2e1f RD |
12042 | } |
12043 | ||
12044 | ||
554f62e9 RD |
12045 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12046 | PyObject *resultobj = 0; | |
12047 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12048 | wxLayoutOrientation result; | |
12049 | void *argp1 = 0 ; | |
12050 | int res1 = 0 ; | |
12051 | PyObject *swig_obj[1] ; | |
12052 | ||
12053 | if (!args) SWIG_fail; | |
12054 | swig_obj[0] = args; | |
12055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12056 | if (!SWIG_IsOK(res1)) { | |
12057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetOrientation" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12058 | } | |
12059 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | result = (wxLayoutOrientation)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
12063 | wxPyEndAllowThreads(__tstate); | |
12064 | if (PyErr_Occurred()) SWIG_fail; | |
12065 | } | |
12066 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12067 | return resultobj; | |
12068 | fail: | |
12069 | return NULL; | |
12070 | } | |
12071 | ||
12072 | ||
12073 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12074 | PyObject *resultobj = 0; | |
12075 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12076 | wxLayoutAlignment arg2 ; | |
12077 | void *argp1 = 0 ; | |
12078 | int res1 = 0 ; | |
12079 | int val2 ; | |
12080 | int ecode2 = 0 ; | |
12081 | PyObject * obj0 = 0 ; | |
12082 | PyObject * obj1 = 0 ; | |
12083 | char * kwnames[] = { | |
12084 | (char *) "self",(char *) "align", NULL | |
12085 | }; | |
12086 | ||
12087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12088 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12089 | if (!SWIG_IsOK(res1)) { | |
12090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent *""'"); | |
12091 | } | |
12092 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12093 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12094 | if (!SWIG_IsOK(ecode2)) { | |
12095 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryLayoutInfoEvent_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12096 | } | |
12097 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12098 | { | |
12099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12100 | (arg1)->SetAlignment(arg2); | |
12101 | wxPyEndAllowThreads(__tstate); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
12103 | } | |
12104 | resultobj = SWIG_Py_Void(); | |
12105 | return resultobj; | |
12106 | fail: | |
12107 | return NULL; | |
d55e5bfc | 12108 | } |
554f62e9 RD |
12109 | |
12110 | ||
12111 | SWIGINTERN PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12112 | PyObject *resultobj = 0; | |
12113 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
12114 | wxLayoutAlignment result; | |
12115 | void *argp1 = 0 ; | |
12116 | int res1 = 0 ; | |
12117 | PyObject *swig_obj[1] ; | |
12118 | ||
12119 | if (!args) SWIG_fail; | |
12120 | swig_obj[0] = args; | |
12121 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryLayoutInfoEvent, 0 | 0 ); | |
12122 | if (!SWIG_IsOK(res1)) { | |
12123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryLayoutInfoEvent_GetAlignment" "', expected argument " "1"" of type '" "wxQueryLayoutInfoEvent const *""'"); | |
12124 | } | |
12125 | arg1 = reinterpret_cast< wxQueryLayoutInfoEvent * >(argp1); | |
12126 | { | |
12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12128 | result = (wxLayoutAlignment)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
12129 | wxPyEndAllowThreads(__tstate); | |
12130 | if (PyErr_Occurred()) SWIG_fail; | |
12131 | } | |
12132 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
d55e5bfc RD |
12136 | } |
12137 | ||
12138 | ||
554f62e9 RD |
12139 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12140 | PyObject *obj; | |
12141 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12142 | SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, SWIG_NewClientData(obj)); | |
12143 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12144 | } |
12145 | ||
554f62e9 RD |
12146 | SWIGINTERN PyObject *QueryLayoutInfoEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12147 | return SWIG_Python_InitShadowInstance(args); | |
12148 | } | |
d55e5bfc | 12149 | |
554f62e9 RD |
12150 | SWIGINTERN PyObject *_wrap_new_CalculateLayoutEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12151 | PyObject *resultobj = 0; | |
12152 | int arg1 = (int) 0 ; | |
12153 | wxCalculateLayoutEvent *result = 0 ; | |
12154 | int val1 ; | |
12155 | int ecode1 = 0 ; | |
12156 | PyObject * obj0 = 0 ; | |
12157 | char * kwnames[] = { | |
12158 | (char *) "id", NULL | |
12159 | }; | |
12160 | ||
12161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) SWIG_fail; | |
12162 | if (obj0) { | |
12163 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12164 | if (!SWIG_IsOK(ecode1)) { | |
12165 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CalculateLayoutEvent" "', expected argument " "1"" of type '" "int""'"); | |
12166 | } | |
12167 | arg1 = static_cast< int >(val1); | |
12168 | } | |
12169 | { | |
12170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12171 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
12172 | wxPyEndAllowThreads(__tstate); | |
12173 | if (PyErr_Occurred()) SWIG_fail; | |
12174 | } | |
12175 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_POINTER_NEW | 0 ); | |
12176 | return resultobj; | |
12177 | fail: | |
12178 | return NULL; | |
12179 | } | |
12180 | ||
12181 | ||
12182 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12183 | PyObject *resultobj = 0; | |
12184 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12185 | int arg2 ; | |
12186 | void *argp1 = 0 ; | |
12187 | int res1 = 0 ; | |
12188 | int val2 ; | |
12189 | int ecode2 = 0 ; | |
12190 | PyObject * obj0 = 0 ; | |
12191 | PyObject * obj1 = 0 ; | |
12192 | char * kwnames[] = { | |
12193 | (char *) "self",(char *) "flags", NULL | |
12194 | }; | |
12195 | ||
12196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12198 | if (!SWIG_IsOK(res1)) { | |
12199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12200 | } | |
12201 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12202 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12203 | if (!SWIG_IsOK(ecode2)) { | |
12204 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CalculateLayoutEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12205 | } | |
12206 | arg2 = static_cast< int >(val2); | |
12207 | { | |
12208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12209 | (arg1)->SetFlags(arg2); | |
12210 | wxPyEndAllowThreads(__tstate); | |
12211 | if (PyErr_Occurred()) SWIG_fail; | |
12212 | } | |
12213 | resultobj = SWIG_Py_Void(); | |
12214 | return resultobj; | |
12215 | fail: | |
12216 | return NULL; | |
d55e5bfc RD |
12217 | } |
12218 | ||
12219 | ||
554f62e9 RD |
12220 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12221 | PyObject *resultobj = 0; | |
12222 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12223 | int result; | |
12224 | void *argp1 = 0 ; | |
12225 | int res1 = 0 ; | |
12226 | PyObject *swig_obj[1] ; | |
12227 | ||
12228 | if (!args) SWIG_fail; | |
12229 | swig_obj[0] = args; | |
12230 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12231 | if (!SWIG_IsOK(res1)) { | |
12232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetFlags" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12233 | } | |
12234 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12235 | { | |
12236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12237 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
12238 | wxPyEndAllowThreads(__tstate); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
12240 | } | |
12241 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12242 | return resultobj; | |
12243 | fail: | |
12244 | return NULL; | |
12245 | } | |
12246 | ||
12247 | ||
12248 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12249 | PyObject *resultobj = 0; | |
12250 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12251 | wxRect *arg2 = 0 ; | |
12252 | void *argp1 = 0 ; | |
12253 | int res1 = 0 ; | |
12254 | wxRect temp2 ; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | PyObject * obj1 = 0 ; | |
12257 | char * kwnames[] = { | |
12258 | (char *) "self",(char *) "rect", NULL | |
12259 | }; | |
12260 | ||
12261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12263 | if (!SWIG_IsOK(res1)) { | |
12264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_SetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent *""'"); | |
12265 | } | |
12266 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12267 | { | |
12268 | arg2 = &temp2; | |
12269 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12270 | } | |
12271 | { | |
12272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12273 | (arg1)->SetRect((wxRect const &)*arg2); | |
12274 | wxPyEndAllowThreads(__tstate); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
12276 | } | |
12277 | resultobj = SWIG_Py_Void(); | |
12278 | return resultobj; | |
12279 | fail: | |
12280 | return NULL; | |
12281 | } | |
12282 | ||
12283 | ||
12284 | SWIGINTERN PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12285 | PyObject *resultobj = 0; | |
12286 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
12287 | wxRect result; | |
12288 | void *argp1 = 0 ; | |
12289 | int res1 = 0 ; | |
12290 | PyObject *swig_obj[1] ; | |
12291 | ||
12292 | if (!args) SWIG_fail; | |
12293 | swig_obj[0] = args; | |
12294 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCalculateLayoutEvent, 0 | 0 ); | |
12295 | if (!SWIG_IsOK(res1)) { | |
12296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CalculateLayoutEvent_GetRect" "', expected argument " "1"" of type '" "wxCalculateLayoutEvent const *""'"); | |
12297 | } | |
12298 | arg1 = reinterpret_cast< wxCalculateLayoutEvent * >(argp1); | |
12299 | { | |
12300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12301 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
12302 | wxPyEndAllowThreads(__tstate); | |
12303 | if (PyErr_Occurred()) SWIG_fail; | |
12304 | } | |
12305 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12306 | return resultobj; | |
12307 | fail: | |
12308 | return NULL; | |
12309 | } | |
12310 | ||
12311 | ||
12312 | SWIGINTERN PyObject *CalculateLayoutEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12313 | PyObject *obj; | |
12314 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12315 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCalculateLayoutEvent, SWIG_NewClientData(obj)); | |
12316 | return SWIG_Py_Void(); | |
12317 | } | |
12318 | ||
12319 | SWIGINTERN PyObject *CalculateLayoutEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12320 | return SWIG_Python_InitShadowInstance(args); | |
12321 | } | |
12322 | ||
12323 | SWIGINTERN PyObject *_wrap_new_SashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12324 | PyObject *resultobj = 0; | |
12325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12326 | int arg2 = (int) -1 ; | |
12327 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12328 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12329 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12330 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12331 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12332 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
12333 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12334 | wxSashLayoutWindow *result = 0 ; | |
12335 | void *argp1 = 0 ; | |
12336 | int res1 = 0 ; | |
12337 | int val2 ; | |
12338 | int ecode2 = 0 ; | |
12339 | wxPoint temp3 ; | |
12340 | wxSize temp4 ; | |
12341 | long val5 ; | |
12342 | int ecode5 = 0 ; | |
12343 | bool temp6 = false ; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | PyObject * obj1 = 0 ; | |
12346 | PyObject * obj2 = 0 ; | |
12347 | PyObject * obj3 = 0 ; | |
12348 | PyObject * obj4 = 0 ; | |
12349 | PyObject * obj5 = 0 ; | |
12350 | char * kwnames[] = { | |
12351 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12352 | }; | |
12353 | ||
12354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
12355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12356 | if (!SWIG_IsOK(res1)) { | |
12357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SashLayoutWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12358 | } | |
12359 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12360 | if (obj1) { | |
12361 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12362 | if (!SWIG_IsOK(ecode2)) { | |
12363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SashLayoutWindow" "', expected argument " "2"" of type '" "int""'"); | |
12364 | } | |
12365 | arg2 = static_cast< int >(val2); | |
12366 | } | |
12367 | if (obj2) { | |
d55e5bfc | 12368 | { |
554f62e9 RD |
12369 | arg3 = &temp3; |
12370 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 12371 | } |
554f62e9 RD |
12372 | } |
12373 | if (obj3) { | |
d55e5bfc | 12374 | { |
554f62e9 RD |
12375 | arg4 = &temp4; |
12376 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12377 | } |
554f62e9 RD |
12378 | } |
12379 | if (obj4) { | |
12380 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
12381 | if (!SWIG_IsOK(ecode5)) { | |
12382 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SashLayoutWindow" "', expected argument " "5"" of type '" "long""'"); | |
12383 | } | |
12384 | arg5 = static_cast< long >(val5); | |
12385 | } | |
12386 | if (obj5) { | |
d55e5bfc | 12387 | { |
554f62e9 RD |
12388 | arg6 = wxString_in_helper(obj5); |
12389 | if (arg6 == NULL) SWIG_fail; | |
12390 | temp6 = true; | |
d55e5bfc | 12391 | } |
554f62e9 RD |
12392 | } |
12393 | { | |
12394 | if (!wxPyCheckForApp()) SWIG_fail; | |
12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12396 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_NEW | 0 ); | |
12401 | { | |
12402 | if (temp6) | |
12403 | delete arg6; | |
12404 | } | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | { | |
12408 | if (temp6) | |
12409 | delete arg6; | |
12410 | } | |
12411 | return NULL; | |
d55e5bfc RD |
12412 | } |
12413 | ||
12414 | ||
554f62e9 RD |
12415 | SWIGINTERN PyObject *_wrap_new_PreSashLayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12416 | PyObject *resultobj = 0; | |
12417 | wxSashLayoutWindow *result = 0 ; | |
12418 | ||
12419 | if (!SWIG_Python_UnpackTuple(args,"new_PreSashLayoutWindow",0,0,0)) SWIG_fail; | |
12420 | { | |
12421 | if (!wxPyCheckForApp()) SWIG_fail; | |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
12424 | wxPyEndAllowThreads(__tstate); | |
12425 | if (PyErr_Occurred()) SWIG_fail; | |
12426 | } | |
12427 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSashLayoutWindow, SWIG_POINTER_OWN | 0 ); | |
12428 | return resultobj; | |
12429 | fail: | |
12430 | return NULL; | |
12431 | } | |
12432 | ||
12433 | ||
12434 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12435 | PyObject *resultobj = 0; | |
12436 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12437 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12438 | int arg3 = (int) -1 ; | |
12439 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12440 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12441 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12442 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12443 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
12444 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
12445 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12446 | bool result; | |
12447 | void *argp1 = 0 ; | |
12448 | int res1 = 0 ; | |
12449 | void *argp2 = 0 ; | |
12450 | int res2 = 0 ; | |
12451 | int val3 ; | |
12452 | int ecode3 = 0 ; | |
12453 | wxPoint temp4 ; | |
12454 | wxSize temp5 ; | |
12455 | long val6 ; | |
12456 | int ecode6 = 0 ; | |
12457 | bool temp7 = false ; | |
12458 | PyObject * obj0 = 0 ; | |
12459 | PyObject * obj1 = 0 ; | |
12460 | PyObject * obj2 = 0 ; | |
12461 | PyObject * obj3 = 0 ; | |
12462 | PyObject * obj4 = 0 ; | |
12463 | PyObject * obj5 = 0 ; | |
12464 | PyObject * obj6 = 0 ; | |
12465 | char * kwnames[] = { | |
12466 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12467 | }; | |
12468 | ||
12469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
12470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12471 | if (!SWIG_IsOK(res1)) { | |
12472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_Create" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12473 | } | |
12474 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12475 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12476 | if (!SWIG_IsOK(res2)) { | |
12477 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SashLayoutWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12478 | } | |
12479 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12480 | if (obj2) { | |
12481 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12482 | if (!SWIG_IsOK(ecode3)) { | |
12483 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SashLayoutWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
12484 | } | |
12485 | arg3 = static_cast< int >(val3); | |
12486 | } | |
12487 | if (obj3) { | |
d55e5bfc | 12488 | { |
554f62e9 RD |
12489 | arg4 = &temp4; |
12490 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 12491 | } |
554f62e9 RD |
12492 | } |
12493 | if (obj4) { | |
d55e5bfc | 12494 | { |
554f62e9 RD |
12495 | arg5 = &temp5; |
12496 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 12497 | } |
554f62e9 RD |
12498 | } |
12499 | if (obj5) { | |
12500 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
12501 | if (!SWIG_IsOK(ecode6)) { | |
12502 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SashLayoutWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
12503 | } | |
12504 | arg6 = static_cast< long >(val6); | |
12505 | } | |
12506 | if (obj6) { | |
d55e5bfc | 12507 | { |
554f62e9 RD |
12508 | arg7 = wxString_in_helper(obj6); |
12509 | if (arg7 == NULL) SWIG_fail; | |
12510 | temp7 = true; | |
d55e5bfc | 12511 | } |
554f62e9 RD |
12512 | } |
12513 | { | |
12514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12515 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12516 | wxPyEndAllowThreads(__tstate); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | { | |
12520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12521 | } | |
12522 | { | |
12523 | if (temp7) | |
12524 | delete arg7; | |
12525 | } | |
12526 | return resultobj; | |
12527 | fail: | |
12528 | { | |
12529 | if (temp7) | |
12530 | delete arg7; | |
12531 | } | |
12532 | return NULL; | |
d55e5bfc RD |
12533 | } |
12534 | ||
12535 | ||
554f62e9 RD |
12536 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12537 | PyObject *resultobj = 0; | |
12538 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12539 | wxLayoutAlignment result; | |
12540 | void *argp1 = 0 ; | |
12541 | int res1 = 0 ; | |
12542 | PyObject *swig_obj[1] ; | |
12543 | ||
12544 | if (!args) SWIG_fail; | |
12545 | swig_obj[0] = args; | |
12546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12547 | if (!SWIG_IsOK(res1)) { | |
12548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12549 | } | |
12550 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12551 | { | |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | result = (wxLayoutAlignment)(arg1)->GetAlignment(); | |
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
12557 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12558 | return resultobj; | |
12559 | fail: | |
12560 | return NULL; | |
d55e5bfc RD |
12561 | } |
12562 | ||
12563 | ||
554f62e9 RD |
12564 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12565 | PyObject *resultobj = 0; | |
12566 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12567 | wxLayoutOrientation result; | |
12568 | void *argp1 = 0 ; | |
12569 | int res1 = 0 ; | |
12570 | PyObject *swig_obj[1] ; | |
12571 | ||
12572 | if (!args) SWIG_fail; | |
12573 | swig_obj[0] = args; | |
12574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12575 | if (!SWIG_IsOK(res1)) { | |
12576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_GetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12577 | } | |
12578 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12579 | { | |
12580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12581 | result = (wxLayoutOrientation)(arg1)->GetOrientation(); | |
12582 | wxPyEndAllowThreads(__tstate); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
12585 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12586 | return resultobj; | |
12587 | fail: | |
12588 | return NULL; | |
12589 | } | |
12590 | ||
12591 | ||
12592 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12593 | PyObject *resultobj = 0; | |
12594 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12595 | wxLayoutAlignment arg2 ; | |
12596 | void *argp1 = 0 ; | |
12597 | int res1 = 0 ; | |
12598 | int val2 ; | |
12599 | int ecode2 = 0 ; | |
12600 | PyObject * obj0 = 0 ; | |
12601 | PyObject * obj1 = 0 ; | |
12602 | char * kwnames[] = { | |
12603 | (char *) "self",(char *) "alignment", NULL | |
12604 | }; | |
12605 | ||
12606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
12607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12608 | if (!SWIG_IsOK(res1)) { | |
12609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12610 | } | |
12611 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12613 | if (!SWIG_IsOK(ecode2)) { | |
12614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetAlignment" "', expected argument " "2"" of type '" "wxLayoutAlignment""'"); | |
12615 | } | |
12616 | arg2 = static_cast< wxLayoutAlignment >(val2); | |
12617 | { | |
12618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12619 | (arg1)->SetAlignment(arg2); | |
12620 | wxPyEndAllowThreads(__tstate); | |
12621 | if (PyErr_Occurred()) SWIG_fail; | |
12622 | } | |
12623 | resultobj = SWIG_Py_Void(); | |
12624 | return resultobj; | |
12625 | fail: | |
12626 | return NULL; | |
12627 | } | |
12628 | ||
12629 | ||
12630 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12631 | PyObject *resultobj = 0; | |
12632 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12633 | wxSize *arg2 = 0 ; | |
12634 | void *argp1 = 0 ; | |
12635 | int res1 = 0 ; | |
12636 | wxSize temp2 ; | |
12637 | PyObject * obj0 = 0 ; | |
12638 | PyObject * obj1 = 0 ; | |
12639 | char * kwnames[] = { | |
12640 | (char *) "self",(char *) "size", NULL | |
12641 | }; | |
12642 | ||
12643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12645 | if (!SWIG_IsOK(res1)) { | |
12646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetDefaultSize" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12647 | } | |
12648 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12649 | { | |
12650 | arg2 = &temp2; | |
12651 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12652 | } | |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
12656 | wxPyEndAllowThreads(__tstate); | |
12657 | if (PyErr_Occurred()) SWIG_fail; | |
12658 | } | |
12659 | resultobj = SWIG_Py_Void(); | |
12660 | return resultobj; | |
12661 | fail: | |
12662 | return NULL; | |
12663 | } | |
12664 | ||
12665 | ||
12666 | SWIGINTERN PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12667 | PyObject *resultobj = 0; | |
12668 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
12669 | wxLayoutOrientation arg2 ; | |
12670 | void *argp1 = 0 ; | |
12671 | int res1 = 0 ; | |
12672 | int val2 ; | |
12673 | int ecode2 = 0 ; | |
12674 | PyObject * obj0 = 0 ; | |
12675 | PyObject * obj1 = 0 ; | |
12676 | char * kwnames[] = { | |
12677 | (char *) "self",(char *) "orientation", NULL | |
12678 | }; | |
12679 | ||
12680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
12681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSashLayoutWindow, 0 | 0 ); | |
12682 | if (!SWIG_IsOK(res1)) { | |
12683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "1"" of type '" "wxSashLayoutWindow *""'"); | |
12684 | } | |
12685 | arg1 = reinterpret_cast< wxSashLayoutWindow * >(argp1); | |
12686 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12687 | if (!SWIG_IsOK(ecode2)) { | |
12688 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SashLayoutWindow_SetOrientation" "', expected argument " "2"" of type '" "wxLayoutOrientation""'"); | |
12689 | } | |
12690 | arg2 = static_cast< wxLayoutOrientation >(val2); | |
12691 | { | |
12692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12693 | (arg1)->SetOrientation(arg2); | |
12694 | wxPyEndAllowThreads(__tstate); | |
12695 | if (PyErr_Occurred()) SWIG_fail; | |
12696 | } | |
12697 | resultobj = SWIG_Py_Void(); | |
12698 | return resultobj; | |
12699 | fail: | |
12700 | return NULL; | |
d55e5bfc RD |
12701 | } |
12702 | ||
12703 | ||
554f62e9 RD |
12704 | SWIGINTERN PyObject *SashLayoutWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12705 | PyObject *obj; | |
12706 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12707 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSashLayoutWindow, SWIG_NewClientData(obj)); | |
12708 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12709 | } |
12710 | ||
554f62e9 RD |
12711 | SWIGINTERN PyObject *SashLayoutWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12712 | return SWIG_Python_InitShadowInstance(args); | |
12713 | } | |
d55e5bfc | 12714 | |
554f62e9 RD |
12715 | SWIGINTERN PyObject *_wrap_new_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12716 | PyObject *resultobj = 0; | |
12717 | wxLayoutAlgorithm *result = 0 ; | |
12718 | ||
12719 | if (!SWIG_Python_UnpackTuple(args,"new_LayoutAlgorithm",0,0,0)) SWIG_fail; | |
12720 | { | |
12721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12722 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
12723 | wxPyEndAllowThreads(__tstate); | |
12724 | if (PyErr_Occurred()) SWIG_fail; | |
12725 | } | |
12726 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_NEW | 0 ); | |
12727 | return resultobj; | |
12728 | fail: | |
12729 | return NULL; | |
d55e5bfc RD |
12730 | } |
12731 | ||
12732 | ||
554f62e9 RD |
12733 | SWIGINTERN PyObject *_wrap_delete_LayoutAlgorithm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12734 | PyObject *resultobj = 0; | |
12735 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12736 | void *argp1 = 0 ; | |
12737 | int res1 = 0 ; | |
12738 | PyObject *swig_obj[1] ; | |
12739 | ||
12740 | if (!args) SWIG_fail; | |
12741 | swig_obj[0] = args; | |
12742 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutAlgorithm, SWIG_POINTER_DISOWN | 0 ); | |
12743 | if (!SWIG_IsOK(res1)) { | |
12744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutAlgorithm" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12745 | } | |
12746 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12747 | { | |
12748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12749 | delete arg1; | |
d55e5bfc | 12750 | |
554f62e9 RD |
12751 | wxPyEndAllowThreads(__tstate); |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | resultobj = SWIG_Py_Void(); | |
12755 | return resultobj; | |
12756 | fail: | |
12757 | return NULL; | |
12758 | } | |
12759 | ||
12760 | ||
12761 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12762 | PyObject *resultobj = 0; | |
12763 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12764 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
12765 | wxRect *arg3 = (wxRect *) NULL ; | |
12766 | bool result; | |
12767 | void *argp1 = 0 ; | |
12768 | int res1 = 0 ; | |
12769 | void *argp2 = 0 ; | |
12770 | int res2 = 0 ; | |
12771 | void *argp3 = 0 ; | |
12772 | int res3 = 0 ; | |
12773 | PyObject * obj0 = 0 ; | |
12774 | PyObject * obj1 = 0 ; | |
12775 | PyObject * obj2 = 0 ; | |
12776 | char * kwnames[] = { | |
12777 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
12778 | }; | |
12779 | ||
12780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12782 | if (!SWIG_IsOK(res1)) { | |
12783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12784 | } | |
12785 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12786 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
12787 | if (!SWIG_IsOK(res2)) { | |
12788 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
12789 | } | |
12790 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
12791 | if (obj2) { | |
12792 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 ); | |
12793 | if (!SWIG_IsOK(res3)) { | |
12794 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutMDIFrame" "', expected argument " "3"" of type '" "wxRect *""'"); | |
d55e5bfc | 12795 | } |
554f62e9 RD |
12796 | arg3 = reinterpret_cast< wxRect * >(argp3); |
12797 | } | |
12798 | { | |
12799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12800 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
12801 | wxPyEndAllowThreads(__tstate); | |
12802 | if (PyErr_Occurred()) SWIG_fail; | |
12803 | } | |
12804 | { | |
12805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12806 | } | |
12807 | return resultobj; | |
12808 | fail: | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
12813 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12814 | PyObject *resultobj = 0; | |
12815 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12816 | wxFrame *arg2 = (wxFrame *) 0 ; | |
12817 | wxWindow *arg3 = (wxWindow *) NULL ; | |
12818 | bool result; | |
12819 | void *argp1 = 0 ; | |
12820 | int res1 = 0 ; | |
12821 | void *argp2 = 0 ; | |
12822 | int res2 = 0 ; | |
12823 | void *argp3 = 0 ; | |
12824 | int res3 = 0 ; | |
12825 | PyObject * obj0 = 0 ; | |
12826 | PyObject * obj1 = 0 ; | |
12827 | PyObject * obj2 = 0 ; | |
12828 | char * kwnames[] = { | |
12829 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
12830 | }; | |
12831 | ||
12832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12834 | if (!SWIG_IsOK(res1)) { | |
12835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12836 | } | |
12837 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12838 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
12839 | if (!SWIG_IsOK(res2)) { | |
12840 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
12841 | } | |
12842 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
12843 | if (obj2) { | |
12844 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12845 | if (!SWIG_IsOK(res3)) { | |
12846 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutFrame" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
d55e5bfc | 12847 | } |
554f62e9 RD |
12848 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
12849 | } | |
12850 | { | |
12851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12852 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | { | |
12857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12858 | } | |
12859 | return resultobj; | |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | SWIGINTERN PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12866 | PyObject *resultobj = 0; | |
12867 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
12868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12869 | wxWindow *arg3 = (wxWindow *) NULL ; | |
12870 | bool result; | |
12871 | void *argp1 = 0 ; | |
12872 | int res1 = 0 ; | |
12873 | void *argp2 = 0 ; | |
12874 | int res2 = 0 ; | |
12875 | void *argp3 = 0 ; | |
12876 | int res3 = 0 ; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | PyObject * obj1 = 0 ; | |
12879 | PyObject * obj2 = 0 ; | |
12880 | char * kwnames[] = { | |
12881 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
12882 | }; | |
12883 | ||
12884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutAlgorithm, 0 | 0 ); | |
12886 | if (!SWIG_IsOK(res1)) { | |
12887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "1"" of type '" "wxLayoutAlgorithm *""'"); | |
12888 | } | |
12889 | arg1 = reinterpret_cast< wxLayoutAlgorithm * >(argp1); | |
12890 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12891 | if (!SWIG_IsOK(res2)) { | |
12892 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
12893 | } | |
12894 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
12895 | if (obj2) { | |
12896 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12897 | if (!SWIG_IsOK(res3)) { | |
12898 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "LayoutAlgorithm_LayoutWindow" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
d55e5bfc | 12899 | } |
554f62e9 RD |
12900 | arg3 = reinterpret_cast< wxWindow * >(argp3); |
12901 | } | |
12902 | { | |
12903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12904 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
12905 | wxPyEndAllowThreads(__tstate); | |
12906 | if (PyErr_Occurred()) SWIG_fail; | |
12907 | } | |
12908 | { | |
12909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12910 | } | |
12911 | return resultobj; | |
12912 | fail: | |
12913 | return NULL; | |
d55e5bfc RD |
12914 | } |
12915 | ||
12916 | ||
554f62e9 RD |
12917 | SWIGINTERN PyObject *LayoutAlgorithm_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12918 | PyObject *obj; | |
12919 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12920 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutAlgorithm, SWIG_NewClientData(obj)); | |
12921 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12922 | } |
12923 | ||
554f62e9 RD |
12924 | SWIGINTERN PyObject *LayoutAlgorithm_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12925 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12926 | } |
12927 | ||
554f62e9 RD |
12928 | SWIGINTERN PyObject *_wrap_new_PopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12929 | PyObject *resultobj = 0; | |
12930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12931 | int arg2 = (int) wxBORDER_NONE ; | |
12932 | wxPopupWindow *result = 0 ; | |
12933 | void *argp1 = 0 ; | |
12934 | int res1 = 0 ; | |
12935 | int val2 ; | |
12936 | int ecode2 = 0 ; | |
12937 | PyObject * obj0 = 0 ; | |
12938 | PyObject * obj1 = 0 ; | |
12939 | char * kwnames[] = { | |
12940 | (char *) "parent",(char *) "flags", NULL | |
12941 | }; | |
12942 | ||
12943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
12944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
12945 | if (!SWIG_IsOK(res1)) { | |
12946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
12947 | } | |
12948 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
12949 | if (obj1) { | |
12950 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12951 | if (!SWIG_IsOK(ecode2)) { | |
12952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupWindow" "', expected argument " "2"" of type '" "int""'"); | |
12953 | } | |
12954 | arg2 = static_cast< int >(val2); | |
12955 | } | |
12956 | { | |
12957 | if (!wxPyCheckForApp()) SWIG_fail; | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_NEW | 0 ); | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | return NULL; | |
d55e5bfc RD |
12967 | } |
12968 | ||
12969 | ||
554f62e9 RD |
12970 | SWIGINTERN PyObject *_wrap_new_PrePopupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12971 | PyObject *resultobj = 0; | |
12972 | wxPopupWindow *result = 0 ; | |
12973 | ||
12974 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupWindow",0,0,0)) SWIG_fail; | |
12975 | { | |
12976 | if (!wxPyCheckForApp()) SWIG_fail; | |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | result = (wxPopupWindow *)new wxPopupWindow(); | |
12979 | wxPyEndAllowThreads(__tstate); | |
12980 | if (PyErr_Occurred()) SWIG_fail; | |
12981 | } | |
12982 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPopupWindow, SWIG_POINTER_OWN | 0 ); | |
12983 | return resultobj; | |
12984 | fail: | |
12985 | return NULL; | |
12986 | } | |
12987 | ||
12988 | ||
12989 | SWIGINTERN PyObject *_wrap_PopupWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12990 | PyObject *resultobj = 0; | |
12991 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
12992 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12993 | int arg3 = (int) wxBORDER_NONE ; | |
12994 | bool result; | |
12995 | void *argp1 = 0 ; | |
12996 | int res1 = 0 ; | |
12997 | void *argp2 = 0 ; | |
12998 | int res2 = 0 ; | |
12999 | int val3 ; | |
13000 | int ecode3 = 0 ; | |
13001 | PyObject * obj0 = 0 ; | |
13002 | PyObject * obj1 = 0 ; | |
13003 | PyObject * obj2 = 0 ; | |
13004 | char * kwnames[] = { | |
13005 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
13006 | }; | |
13007 | ||
13008 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13010 | if (!SWIG_IsOK(res1)) { | |
13011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Create" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13012 | } | |
13013 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13014 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13015 | if (!SWIG_IsOK(res2)) { | |
13016 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13017 | } | |
13018 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13019 | if (obj2) { | |
13020 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13021 | if (!SWIG_IsOK(ecode3)) { | |
13022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PopupWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13023 | } | |
13024 | arg3 = static_cast< int >(val3); | |
13025 | } | |
13026 | { | |
13027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13028 | result = (bool)(arg1)->Create(arg2,arg3); | |
13029 | wxPyEndAllowThreads(__tstate); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | { | |
13033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13034 | } | |
13035 | return resultobj; | |
13036 | fail: | |
13037 | return NULL; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | SWIGINTERN PyObject *_wrap_PopupWindow_Position(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13042 | PyObject *resultobj = 0; | |
13043 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
13044 | wxPoint *arg2 = 0 ; | |
13045 | wxSize *arg3 = 0 ; | |
13046 | void *argp1 = 0 ; | |
13047 | int res1 = 0 ; | |
13048 | wxPoint temp2 ; | |
13049 | wxSize temp3 ; | |
13050 | PyObject * obj0 = 0 ; | |
13051 | PyObject * obj1 = 0 ; | |
13052 | PyObject * obj2 = 0 ; | |
13053 | char * kwnames[] = { | |
13054 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
13055 | }; | |
13056 | ||
13057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPopupWindow, 0 | 0 ); | |
13059 | if (!SWIG_IsOK(res1)) { | |
13060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupWindow_Position" "', expected argument " "1"" of type '" "wxPopupWindow *""'"); | |
13061 | } | |
13062 | arg1 = reinterpret_cast< wxPopupWindow * >(argp1); | |
13063 | { | |
13064 | arg2 = &temp2; | |
13065 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13066 | } | |
13067 | { | |
13068 | arg3 = &temp3; | |
13069 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13070 | } | |
13071 | { | |
13072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13073 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13074 | wxPyEndAllowThreads(__tstate); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
13077 | resultobj = SWIG_Py_Void(); | |
13078 | return resultobj; | |
13079 | fail: | |
13080 | return NULL; | |
d55e5bfc RD |
13081 | } |
13082 | ||
13083 | ||
554f62e9 RD |
13084 | SWIGINTERN PyObject *PopupWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13085 | PyObject *obj; | |
13086 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13087 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPopupWindow, SWIG_NewClientData(obj)); | |
13088 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13089 | } |
13090 | ||
554f62e9 RD |
13091 | SWIGINTERN PyObject *PopupWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13092 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
13093 | } |
13094 | ||
554f62e9 RD |
13095 | SWIGINTERN PyObject *_wrap_new_PopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13096 | PyObject *resultobj = 0; | |
13097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13098 | int arg2 = (int) wxBORDER_NONE ; | |
13099 | wxPyPopupTransientWindow *result = 0 ; | |
13100 | void *argp1 = 0 ; | |
13101 | int res1 = 0 ; | |
13102 | int val2 ; | |
13103 | int ecode2 = 0 ; | |
13104 | PyObject * obj0 = 0 ; | |
13105 | PyObject * obj1 = 0 ; | |
13106 | char * kwnames[] = { | |
13107 | (char *) "parent",(char *) "style", NULL | |
13108 | }; | |
13109 | ||
13110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
13111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13112 | if (!SWIG_IsOK(res1)) { | |
13113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PopupTransientWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13114 | } | |
13115 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13116 | if (obj1) { | |
13117 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13118 | if (!SWIG_IsOK(ecode2)) { | |
13119 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PopupTransientWindow" "', expected argument " "2"" of type '" "int""'"); | |
13120 | } | |
13121 | arg2 = static_cast< int >(val2); | |
13122 | } | |
13123 | { | |
13124 | if (!wxPyCheckForApp()) SWIG_fail; | |
13125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13126 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
13130 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_NEW | 0 ); | |
13131 | return resultobj; | |
13132 | fail: | |
13133 | return NULL; | |
d55e5bfc RD |
13134 | } |
13135 | ||
13136 | ||
554f62e9 RD |
13137 | SWIGINTERN PyObject *_wrap_new_PrePopupTransientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13138 | PyObject *resultobj = 0; | |
13139 | wxPyPopupTransientWindow *result = 0 ; | |
13140 | ||
13141 | if (!SWIG_Python_UnpackTuple(args,"new_PrePopupTransientWindow",0,0,0)) SWIG_fail; | |
13142 | { | |
13143 | if (!wxPyCheckForApp()) SWIG_fail; | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
13146 | wxPyEndAllowThreads(__tstate); | |
13147 | if (PyErr_Occurred()) SWIG_fail; | |
13148 | } | |
13149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_POINTER_OWN | 0 ); | |
13150 | return resultobj; | |
13151 | fail: | |
13152 | return NULL; | |
13153 | } | |
13154 | ||
13155 | ||
13156 | SWIGINTERN PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13157 | PyObject *resultobj = 0; | |
13158 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13159 | PyObject *arg2 = (PyObject *) 0 ; | |
13160 | PyObject *arg3 = (PyObject *) 0 ; | |
13161 | void *argp1 = 0 ; | |
13162 | int res1 = 0 ; | |
13163 | PyObject * obj0 = 0 ; | |
13164 | PyObject * obj1 = 0 ; | |
13165 | PyObject * obj2 = 0 ; | |
13166 | char * kwnames[] = { | |
13167 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13168 | }; | |
13169 | ||
13170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13172 | if (!SWIG_IsOK(res1)) { | |
13173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13174 | } | |
13175 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13176 | arg2 = obj1; | |
13177 | arg3 = obj2; | |
13178 | { | |
13179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13180 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13181 | wxPyEndAllowThreads(__tstate); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
13183 | } | |
13184 | resultobj = SWIG_Py_Void(); | |
13185 | return resultobj; | |
13186 | fail: | |
13187 | return NULL; | |
13188 | } | |
13189 | ||
13190 | ||
13191 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Popup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13192 | PyObject *resultobj = 0; | |
13193 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13194 | wxWindow *arg2 = (wxWindow *) NULL ; | |
13195 | void *argp1 = 0 ; | |
13196 | int res1 = 0 ; | |
13197 | void *argp2 = 0 ; | |
13198 | int res2 = 0 ; | |
13199 | PyObject * obj0 = 0 ; | |
13200 | PyObject * obj1 = 0 ; | |
13201 | char * kwnames[] = { | |
13202 | (char *) "self",(char *) "focus", NULL | |
13203 | }; | |
13204 | ||
13205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) SWIG_fail; | |
13206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13207 | if (!SWIG_IsOK(res1)) { | |
13208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Popup" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13209 | } | |
13210 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13211 | if (obj1) { | |
13212 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13213 | if (!SWIG_IsOK(res2)) { | |
13214 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PopupTransientWindow_Popup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
093d3ff1 | 13215 | } |
554f62e9 RD |
13216 | arg2 = reinterpret_cast< wxWindow * >(argp2); |
13217 | } | |
13218 | { | |
13219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13220 | (arg1)->Popup(arg2); | |
13221 | wxPyEndAllowThreads(__tstate); | |
13222 | if (PyErr_Occurred()) SWIG_fail; | |
13223 | } | |
13224 | resultobj = SWIG_Py_Void(); | |
13225 | return resultobj; | |
13226 | fail: | |
13227 | return NULL; | |
d55e5bfc RD |
13228 | } |
13229 | ||
13230 | ||
554f62e9 RD |
13231 | SWIGINTERN PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13232 | PyObject *resultobj = 0; | |
13233 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
13234 | void *argp1 = 0 ; | |
13235 | int res1 = 0 ; | |
13236 | PyObject *swig_obj[1] ; | |
13237 | ||
13238 | if (!args) SWIG_fail; | |
13239 | swig_obj[0] = args; | |
13240 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPopupTransientWindow, 0 | 0 ); | |
13241 | if (!SWIG_IsOK(res1)) { | |
13242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PopupTransientWindow_Dismiss" "', expected argument " "1"" of type '" "wxPyPopupTransientWindow *""'"); | |
13243 | } | |
13244 | arg1 = reinterpret_cast< wxPyPopupTransientWindow * >(argp1); | |
13245 | { | |
13246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13247 | (arg1)->Dismiss(); | |
13248 | wxPyEndAllowThreads(__tstate); | |
13249 | if (PyErr_Occurred()) SWIG_fail; | |
13250 | } | |
13251 | resultobj = SWIG_Py_Void(); | |
13252 | return resultobj; | |
13253 | fail: | |
13254 | return NULL; | |
13255 | } | |
13256 | ||
13257 | ||
13258 | SWIGINTERN PyObject *PopupTransientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13259 | PyObject *obj; | |
13260 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13261 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPopupTransientWindow, SWIG_NewClientData(obj)); | |
13262 | return SWIG_Py_Void(); | |
13263 | } | |
13264 | ||
13265 | SWIGINTERN PyObject *PopupTransientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13266 | return SWIG_Python_InitShadowInstance(args); | |
13267 | } | |
13268 | ||
13269 | SWIGINTERN PyObject *_wrap_new_TipWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj = 0; | |
13271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13272 | wxString *arg2 = 0 ; | |
13273 | int arg3 = (int) 100 ; | |
13274 | wxRect *arg4 = (wxRect *) NULL ; | |
13275 | wxTipWindow *result = 0 ; | |
13276 | void *argp1 = 0 ; | |
13277 | int res1 = 0 ; | |
13278 | bool temp2 = false ; | |
13279 | int val3 ; | |
13280 | int ecode3 = 0 ; | |
13281 | void *argp4 = 0 ; | |
13282 | int res4 = 0 ; | |
13283 | PyObject * obj0 = 0 ; | |
13284 | PyObject * obj1 = 0 ; | |
13285 | PyObject * obj2 = 0 ; | |
13286 | PyObject * obj3 = 0 ; | |
13287 | char * kwnames[] = { | |
13288 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
13289 | }; | |
13290 | ||
13291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13293 | if (!SWIG_IsOK(res1)) { | |
13294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TipWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13295 | } | |
13296 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13297 | { | |
13298 | arg2 = wxString_in_helper(obj1); | |
13299 | if (arg2 == NULL) SWIG_fail; | |
13300 | temp2 = true; | |
13301 | } | |
13302 | if (obj2) { | |
13303 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13304 | if (!SWIG_IsOK(ecode3)) { | |
13305 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TipWindow" "', expected argument " "3"" of type '" "int""'"); | |
13306 | } | |
13307 | arg3 = static_cast< int >(val3); | |
13308 | } | |
13309 | if (obj3) { | |
13310 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 ); | |
13311 | if (!SWIG_IsOK(res4)) { | |
13312 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_TipWindow" "', expected argument " "4"" of type '" "wxRect *""'"); | |
093d3ff1 | 13313 | } |
554f62e9 RD |
13314 | arg4 = reinterpret_cast< wxRect * >(argp4); |
13315 | } | |
13316 | { | |
13317 | if (!wxPyCheckForApp()) SWIG_fail; | |
13318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13319 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
13320 | wxPyEndAllowThreads(__tstate); | |
13321 | if (PyErr_Occurred()) SWIG_fail; | |
13322 | } | |
13323 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTipWindow, SWIG_POINTER_NEW | 0 ); | |
13324 | { | |
13325 | if (temp2) | |
13326 | delete arg2; | |
13327 | } | |
13328 | return resultobj; | |
13329 | fail: | |
13330 | { | |
13331 | if (temp2) | |
13332 | delete arg2; | |
13333 | } | |
13334 | return NULL; | |
b519803b RD |
13335 | } |
13336 | ||
13337 | ||
554f62e9 RD |
13338 | SWIGINTERN PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13339 | PyObject *resultobj = 0; | |
13340 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13341 | wxRect *arg2 = 0 ; | |
13342 | void *argp1 = 0 ; | |
13343 | int res1 = 0 ; | |
13344 | wxRect temp2 ; | |
13345 | PyObject * obj0 = 0 ; | |
13346 | PyObject * obj1 = 0 ; | |
13347 | char * kwnames[] = { | |
13348 | (char *) "self",(char *) "rectBound", NULL | |
13349 | }; | |
13350 | ||
13351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
13352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13353 | if (!SWIG_IsOK(res1)) { | |
13354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_SetBoundingRect" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13355 | } | |
13356 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13357 | { | |
13358 | arg2 = &temp2; | |
13359 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13360 | } | |
13361 | { | |
13362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13363 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
13364 | wxPyEndAllowThreads(__tstate); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
13366 | } | |
13367 | resultobj = SWIG_Py_Void(); | |
13368 | return resultobj; | |
13369 | fail: | |
13370 | return NULL; | |
b519803b RD |
13371 | } |
13372 | ||
13373 | ||
554f62e9 RD |
13374 | SWIGINTERN PyObject *_wrap_TipWindow_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13375 | PyObject *resultobj = 0; | |
13376 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
13377 | void *argp1 = 0 ; | |
13378 | int res1 = 0 ; | |
13379 | PyObject *swig_obj[1] ; | |
13380 | ||
13381 | if (!args) SWIG_fail; | |
13382 | swig_obj[0] = args; | |
13383 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTipWindow, 0 | 0 ); | |
13384 | if (!SWIG_IsOK(res1)) { | |
13385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TipWindow_Close" "', expected argument " "1"" of type '" "wxTipWindow *""'"); | |
13386 | } | |
13387 | arg1 = reinterpret_cast< wxTipWindow * >(argp1); | |
13388 | { | |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | (arg1)->Close(); | |
13391 | wxPyEndAllowThreads(__tstate); | |
13392 | if (PyErr_Occurred()) SWIG_fail; | |
13393 | } | |
13394 | resultobj = SWIG_Py_Void(); | |
13395 | return resultobj; | |
13396 | fail: | |
13397 | return NULL; | |
13398 | } | |
13399 | ||
13400 | ||
13401 | SWIGINTERN PyObject *TipWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13402 | PyObject *obj; | |
13403 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13404 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTipWindow, SWIG_NewClientData(obj)); | |
13405 | return SWIG_Py_Void(); | |
13406 | } | |
13407 | ||
13408 | SWIGINTERN PyObject *TipWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13409 | return SWIG_Python_InitShadowInstance(args); | |
13410 | } | |
13411 | ||
13412 | SWIGINTERN PyObject *_wrap_new_VScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13413 | PyObject *resultobj = 0; | |
13414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13415 | int arg2 = (int) wxID_ANY ; | |
13416 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
13417 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
13418 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
13419 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
13420 | long arg5 = (long) 0 ; | |
13421 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
13422 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13423 | wxPyVScrolledWindow *result = 0 ; | |
13424 | void *argp1 = 0 ; | |
13425 | int res1 = 0 ; | |
13426 | int val2 ; | |
13427 | int ecode2 = 0 ; | |
13428 | wxPoint temp3 ; | |
13429 | wxSize temp4 ; | |
13430 | long val5 ; | |
13431 | int ecode5 = 0 ; | |
13432 | bool temp6 = false ; | |
13433 | PyObject * obj0 = 0 ; | |
13434 | PyObject * obj1 = 0 ; | |
13435 | PyObject * obj2 = 0 ; | |
13436 | PyObject * obj3 = 0 ; | |
13437 | PyObject * obj4 = 0 ; | |
13438 | PyObject * obj5 = 0 ; | |
13439 | char * kwnames[] = { | |
13440 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13441 | }; | |
13442 | ||
13443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
13444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13445 | if (!SWIG_IsOK(res1)) { | |
13446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
13447 | } | |
13448 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
13449 | if (obj1) { | |
13450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13451 | if (!SWIG_IsOK(ecode2)) { | |
13452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
13453 | } | |
13454 | arg2 = static_cast< int >(val2); | |
13455 | } | |
13456 | if (obj2) { | |
093d3ff1 | 13457 | { |
554f62e9 RD |
13458 | arg3 = &temp3; |
13459 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 13460 | } |
554f62e9 RD |
13461 | } |
13462 | if (obj3) { | |
d55e5bfc | 13463 | { |
554f62e9 RD |
13464 | arg4 = &temp4; |
13465 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13466 | } |
554f62e9 RD |
13467 | } |
13468 | if (obj4) { | |
13469 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
13470 | if (!SWIG_IsOK(ecode5)) { | |
13471 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
13472 | } | |
13473 | arg5 = static_cast< long >(val5); | |
13474 | } | |
13475 | if (obj5) { | |
093d3ff1 | 13476 | { |
554f62e9 RD |
13477 | arg6 = wxString_in_helper(obj5); |
13478 | if (arg6 == NULL) SWIG_fail; | |
13479 | temp6 = true; | |
093d3ff1 | 13480 | } |
554f62e9 RD |
13481 | } |
13482 | { | |
13483 | if (!wxPyCheckForApp()) SWIG_fail; | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
13486 | wxPyEndAllowThreads(__tstate); | |
13487 | if (PyErr_Occurred()) SWIG_fail; | |
13488 | } | |
13489 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
13490 | { | |
13491 | if (temp6) | |
13492 | delete arg6; | |
13493 | } | |
13494 | return resultobj; | |
13495 | fail: | |
13496 | { | |
13497 | if (temp6) | |
13498 | delete arg6; | |
13499 | } | |
13500 | return NULL; | |
d55e5bfc RD |
13501 | } |
13502 | ||
13503 | ||
554f62e9 RD |
13504 | SWIGINTERN PyObject *_wrap_new_PreVScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13505 | PyObject *resultobj = 0; | |
13506 | wxPyVScrolledWindow *result = 0 ; | |
13507 | ||
13508 | if (!SWIG_Python_UnpackTuple(args,"new_PreVScrolledWindow",0,0,0)) SWIG_fail; | |
13509 | { | |
13510 | if (!wxPyCheckForApp()) SWIG_fail; | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | return NULL; | |
13520 | } | |
13521 | ||
13522 | ||
13523 | SWIGINTERN PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13524 | PyObject *resultobj = 0; | |
13525 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13526 | PyObject *arg2 = (PyObject *) 0 ; | |
13527 | PyObject *arg3 = (PyObject *) 0 ; | |
13528 | void *argp1 = 0 ; | |
13529 | int res1 = 0 ; | |
13530 | PyObject * obj0 = 0 ; | |
13531 | PyObject * obj1 = 0 ; | |
13532 | PyObject * obj2 = 0 ; | |
13533 | char * kwnames[] = { | |
13534 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13535 | }; | |
13536 | ||
13537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13539 | if (!SWIG_IsOK(res1)) { | |
13540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13541 | } | |
13542 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13543 | arg2 = obj1; | |
13544 | arg3 = obj2; | |
13545 | { | |
13546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13547 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13548 | wxPyEndAllowThreads(__tstate); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | } | |
13551 | resultobj = SWIG_Py_Void(); | |
13552 | return resultobj; | |
13553 | fail: | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
13558 | SWIGINTERN PyObject *_wrap_VScrolledWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13559 | PyObject *resultobj = 0; | |
13560 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13561 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13562 | int arg3 = (int) wxID_ANY ; | |
13563 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13564 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13565 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13566 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13567 | long arg6 = (long) 0 ; | |
13568 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
13569 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13570 | bool result; | |
13571 | void *argp1 = 0 ; | |
13572 | int res1 = 0 ; | |
13573 | void *argp2 = 0 ; | |
13574 | int res2 = 0 ; | |
13575 | int val3 ; | |
13576 | int ecode3 = 0 ; | |
13577 | wxPoint temp4 ; | |
13578 | wxSize temp5 ; | |
13579 | long val6 ; | |
13580 | int ecode6 = 0 ; | |
13581 | bool temp7 = false ; | |
13582 | PyObject * obj0 = 0 ; | |
13583 | PyObject * obj1 = 0 ; | |
13584 | PyObject * obj2 = 0 ; | |
13585 | PyObject * obj3 = 0 ; | |
13586 | PyObject * obj4 = 0 ; | |
13587 | PyObject * obj5 = 0 ; | |
13588 | PyObject * obj6 = 0 ; | |
13589 | char * kwnames[] = { | |
13590 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13591 | }; | |
13592 | ||
13593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13595 | if (!SWIG_IsOK(res1)) { | |
13596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_Create" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13597 | } | |
13598 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13599 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13600 | if (!SWIG_IsOK(res2)) { | |
13601 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VScrolledWindow_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13602 | } | |
13603 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13604 | if (obj2) { | |
13605 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13606 | if (!SWIG_IsOK(ecode3)) { | |
13607 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_Create" "', expected argument " "3"" of type '" "int""'"); | |
13608 | } | |
13609 | arg3 = static_cast< int >(val3); | |
13610 | } | |
13611 | if (obj3) { | |
d55e5bfc | 13612 | { |
554f62e9 RD |
13613 | arg4 = &temp4; |
13614 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 13615 | } |
554f62e9 RD |
13616 | } |
13617 | if (obj4) { | |
d55e5bfc | 13618 | { |
554f62e9 RD |
13619 | arg5 = &temp5; |
13620 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 13621 | } |
554f62e9 RD |
13622 | } |
13623 | if (obj5) { | |
13624 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
13625 | if (!SWIG_IsOK(ecode6)) { | |
13626 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VScrolledWindow_Create" "', expected argument " "6"" of type '" "long""'"); | |
13627 | } | |
13628 | arg6 = static_cast< long >(val6); | |
13629 | } | |
13630 | if (obj6) { | |
093d3ff1 | 13631 | { |
554f62e9 RD |
13632 | arg7 = wxString_in_helper(obj6); |
13633 | if (arg7 == NULL) SWIG_fail; | |
13634 | temp7 = true; | |
093d3ff1 | 13635 | } |
554f62e9 RD |
13636 | } |
13637 | { | |
13638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13639 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13640 | wxPyEndAllowThreads(__tstate); | |
13641 | if (PyErr_Occurred()) SWIG_fail; | |
13642 | } | |
13643 | { | |
13644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13645 | } | |
13646 | { | |
13647 | if (temp7) | |
13648 | delete arg7; | |
13649 | } | |
13650 | return resultobj; | |
13651 | fail: | |
13652 | { | |
13653 | if (temp7) | |
13654 | delete arg7; | |
13655 | } | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
13660 | SWIGINTERN PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13661 | PyObject *resultobj = 0; | |
13662 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13663 | size_t arg2 ; | |
13664 | void *argp1 = 0 ; | |
13665 | int res1 = 0 ; | |
13666 | size_t val2 ; | |
13667 | int ecode2 = 0 ; | |
13668 | PyObject * obj0 = 0 ; | |
13669 | PyObject * obj1 = 0 ; | |
13670 | char * kwnames[] = { | |
13671 | (char *) "self",(char *) "count", NULL | |
13672 | }; | |
13673 | ||
13674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
13675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13676 | if (!SWIG_IsOK(res1)) { | |
13677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13678 | } | |
13679 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13680 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13681 | if (!SWIG_IsOK(ecode2)) { | |
13682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_SetLineCount" "', expected argument " "2"" of type '" "size_t""'"); | |
13683 | } | |
13684 | arg2 = static_cast< size_t >(val2); | |
13685 | { | |
13686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13687 | (arg1)->SetLineCount(arg2); | |
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
13691 | resultobj = SWIG_Py_Void(); | |
13692 | return resultobj; | |
13693 | fail: | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
13698 | SWIGINTERN PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13699 | PyObject *resultobj = 0; | |
13700 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13701 | size_t arg2 ; | |
13702 | bool result; | |
13703 | void *argp1 = 0 ; | |
13704 | int res1 = 0 ; | |
13705 | size_t val2 ; | |
13706 | int ecode2 = 0 ; | |
13707 | PyObject * obj0 = 0 ; | |
13708 | PyObject * obj1 = 0 ; | |
13709 | char * kwnames[] = { | |
13710 | (char *) "self",(char *) "line", NULL | |
13711 | }; | |
13712 | ||
13713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13715 | if (!SWIG_IsOK(res1)) { | |
13716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13717 | } | |
13718 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13719 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13720 | if (!SWIG_IsOK(ecode2)) { | |
13721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_ScrollToLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13722 | } | |
13723 | arg2 = static_cast< size_t >(val2); | |
13724 | { | |
13725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13726 | result = (bool)(arg1)->ScrollToLine(arg2); | |
13727 | wxPyEndAllowThreads(__tstate); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
13730 | { | |
13731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13732 | } | |
13733 | return resultobj; | |
13734 | fail: | |
13735 | return NULL; | |
13736 | } | |
13737 | ||
13738 | ||
13739 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13740 | PyObject *resultobj = 0; | |
13741 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13742 | size_t arg2 ; | |
13743 | void *argp1 = 0 ; | |
13744 | int res1 = 0 ; | |
13745 | size_t val2 ; | |
13746 | int ecode2 = 0 ; | |
13747 | PyObject * obj0 = 0 ; | |
13748 | PyObject * obj1 = 0 ; | |
13749 | char * kwnames[] = { | |
13750 | (char *) "self",(char *) "line", NULL | |
13751 | }; | |
13752 | ||
13753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) SWIG_fail; | |
13754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13755 | if (!SWIG_IsOK(res1)) { | |
13756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13757 | } | |
13758 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13759 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13760 | if (!SWIG_IsOK(ecode2)) { | |
13761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLine" "', expected argument " "2"" of type '" "size_t""'"); | |
13762 | } | |
13763 | arg2 = static_cast< size_t >(val2); | |
13764 | { | |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | (arg1)->RefreshLine(arg2); | |
13767 | wxPyEndAllowThreads(__tstate); | |
13768 | if (PyErr_Occurred()) SWIG_fail; | |
13769 | } | |
13770 | resultobj = SWIG_Py_Void(); | |
13771 | return resultobj; | |
13772 | fail: | |
13773 | return NULL; | |
13774 | } | |
13775 | ||
13776 | ||
13777 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13778 | PyObject *resultobj = 0; | |
13779 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13780 | size_t arg2 ; | |
13781 | size_t arg3 ; | |
13782 | void *argp1 = 0 ; | |
13783 | int res1 = 0 ; | |
13784 | size_t val2 ; | |
13785 | int ecode2 = 0 ; | |
13786 | size_t val3 ; | |
13787 | int ecode3 = 0 ; | |
13788 | PyObject * obj0 = 0 ; | |
13789 | PyObject * obj1 = 0 ; | |
13790 | PyObject * obj2 = 0 ; | |
13791 | char * kwnames[] = { | |
13792 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
13793 | }; | |
13794 | ||
13795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13797 | if (!SWIG_IsOK(res1)) { | |
13798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13799 | } | |
13800 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13801 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
13802 | if (!SWIG_IsOK(ecode2)) { | |
13803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "2"" of type '" "size_t""'"); | |
13804 | } | |
13805 | arg2 = static_cast< size_t >(val2); | |
13806 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
13807 | if (!SWIG_IsOK(ecode3)) { | |
13808 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_RefreshLines" "', expected argument " "3"" of type '" "size_t""'"); | |
13809 | } | |
13810 | arg3 = static_cast< size_t >(val3); | |
13811 | { | |
13812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13813 | (arg1)->RefreshLines(arg2,arg3); | |
13814 | wxPyEndAllowThreads(__tstate); | |
13815 | if (PyErr_Occurred()) SWIG_fail; | |
13816 | } | |
13817 | resultobj = SWIG_Py_Void(); | |
13818 | return resultobj; | |
13819 | fail: | |
13820 | return NULL; | |
13821 | } | |
13822 | ||
13823 | ||
13824 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13825 | PyObject *resultobj = 0; | |
13826 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13827 | int arg2 ; | |
13828 | int arg3 ; | |
13829 | int result; | |
13830 | void *argp1 = 0 ; | |
13831 | int res1 = 0 ; | |
13832 | int val2 ; | |
13833 | int ecode2 = 0 ; | |
13834 | int val3 ; | |
13835 | int ecode3 = 0 ; | |
13836 | PyObject * obj0 = 0 ; | |
13837 | PyObject * obj1 = 0 ; | |
13838 | PyObject * obj2 = 0 ; | |
13839 | char * kwnames[] = { | |
13840 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13841 | }; | |
13842 | ||
13843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13845 | if (!SWIG_IsOK(res1)) { | |
13846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13847 | } | |
13848 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13849 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13850 | if (!SWIG_IsOK(ecode2)) { | |
13851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "2"" of type '" "int""'"); | |
13852 | } | |
13853 | arg2 = static_cast< int >(val2); | |
13854 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13855 | if (!SWIG_IsOK(ecode3)) { | |
13856 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_HitTestXY" "', expected argument " "3"" of type '" "int""'"); | |
13857 | } | |
13858 | arg3 = static_cast< int >(val3); | |
13859 | { | |
13860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13861 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
13862 | wxPyEndAllowThreads(__tstate); | |
13863 | if (PyErr_Occurred()) SWIG_fail; | |
13864 | } | |
13865 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13866 | return resultobj; | |
13867 | fail: | |
13868 | return NULL; | |
13869 | } | |
13870 | ||
13871 | ||
13872 | SWIGINTERN PyObject *_wrap_VScrolledWindow_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13873 | PyObject *resultobj = 0; | |
13874 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13875 | wxPoint *arg2 = 0 ; | |
13876 | int result; | |
13877 | void *argp1 = 0 ; | |
13878 | int res1 = 0 ; | |
13879 | wxPoint temp2 ; | |
13880 | PyObject * obj0 = 0 ; | |
13881 | PyObject * obj1 = 0 ; | |
13882 | char * kwnames[] = { | |
13883 | (char *) "self",(char *) "pt", NULL | |
13884 | }; | |
13885 | ||
13886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
13887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13888 | if (!SWIG_IsOK(res1)) { | |
13889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_HitTest" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13890 | } | |
13891 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13892 | { | |
13893 | arg2 = &temp2; | |
13894 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13895 | } | |
13896 | { | |
13897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13898 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
13899 | wxPyEndAllowThreads(__tstate); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
13901 | } | |
13902 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13903 | return resultobj; | |
13904 | fail: | |
13905 | return NULL; | |
f20a2e1f RD |
13906 | } |
13907 | ||
13908 | ||
554f62e9 RD |
13909 | SWIGINTERN PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13910 | PyObject *resultobj = 0; | |
13911 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13912 | void *argp1 = 0 ; | |
13913 | int res1 = 0 ; | |
13914 | PyObject *swig_obj[1] ; | |
13915 | ||
13916 | if (!args) SWIG_fail; | |
13917 | swig_obj[0] = args; | |
13918 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13919 | if (!SWIG_IsOK(res1)) { | |
13920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_RefreshAll" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
13921 | } | |
13922 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13923 | { | |
13924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13925 | (arg1)->RefreshAll(); | |
13926 | wxPyEndAllowThreads(__tstate); | |
13927 | if (PyErr_Occurred()) SWIG_fail; | |
13928 | } | |
13929 | resultobj = SWIG_Py_Void(); | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | return NULL; | |
d55e5bfc RD |
13933 | } |
13934 | ||
13935 | ||
554f62e9 RD |
13936 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13937 | PyObject *resultobj = 0; | |
13938 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13939 | size_t result; | |
13940 | void *argp1 = 0 ; | |
13941 | int res1 = 0 ; | |
13942 | PyObject *swig_obj[1] ; | |
13943 | ||
13944 | if (!args) SWIG_fail; | |
13945 | swig_obj[0] = args; | |
13946 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13947 | if (!SWIG_IsOK(res1)) { | |
13948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLineCount" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13949 | } | |
13950 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13951 | { | |
13952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13953 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
13954 | wxPyEndAllowThreads(__tstate); | |
13955 | if (PyErr_Occurred()) SWIG_fail; | |
13956 | } | |
13957 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13958 | return resultobj; | |
13959 | fail: | |
13960 | return NULL; | |
d55e5bfc RD |
13961 | } |
13962 | ||
13963 | ||
554f62e9 RD |
13964 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13965 | PyObject *resultobj = 0; | |
13966 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13967 | size_t result; | |
13968 | void *argp1 = 0 ; | |
13969 | int res1 = 0 ; | |
13970 | PyObject *swig_obj[1] ; | |
13971 | ||
13972 | if (!args) SWIG_fail; | |
13973 | swig_obj[0] = args; | |
13974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
13975 | if (!SWIG_IsOK(res1)) { | |
13976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleBegin" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
13977 | } | |
13978 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
13979 | { | |
13980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13981 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleBegin(); | |
13982 | wxPyEndAllowThreads(__tstate); | |
13983 | if (PyErr_Occurred()) SWIG_fail; | |
13984 | } | |
13985 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13986 | return resultobj; | |
13987 | fail: | |
13988 | return NULL; | |
d55e5bfc RD |
13989 | } |
13990 | ||
13991 | ||
554f62e9 RD |
13992 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetVisibleEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13993 | PyObject *resultobj = 0; | |
13994 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
13995 | size_t result; | |
13996 | void *argp1 = 0 ; | |
13997 | int res1 = 0 ; | |
13998 | PyObject *swig_obj[1] ; | |
13999 | ||
14000 | if (!args) SWIG_fail; | |
14001 | swig_obj[0] = args; | |
14002 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14003 | if (!SWIG_IsOK(res1)) { | |
14004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetVisibleEnd" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14005 | } | |
14006 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetVisibleEnd(); | |
14010 | wxPyEndAllowThreads(__tstate); | |
14011 | if (PyErr_Occurred()) SWIG_fail; | |
14012 | } | |
14013 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14014 | return resultobj; | |
14015 | fail: | |
14016 | return NULL; | |
14017 | } | |
14018 | ||
14019 | ||
14020 | SWIGINTERN PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14021 | PyObject *resultobj = 0; | |
14022 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14023 | size_t arg2 ; | |
14024 | bool result; | |
14025 | void *argp1 = 0 ; | |
14026 | int res1 = 0 ; | |
14027 | size_t val2 ; | |
14028 | int ecode2 = 0 ; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | PyObject * obj1 = 0 ; | |
14031 | char * kwnames[] = { | |
14032 | (char *) "self",(char *) "line", NULL | |
14033 | }; | |
14034 | ||
14035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail; | |
14036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14037 | if (!SWIG_IsOK(res1)) { | |
14038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14039 | } | |
14040 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14041 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14042 | if (!SWIG_IsOK(ecode2)) { | |
14043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_IsVisible" "', expected argument " "2"" of type '" "size_t""'"); | |
14044 | } | |
14045 | arg2 = static_cast< size_t >(val2); | |
14046 | { | |
14047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14048 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
14049 | wxPyEndAllowThreads(__tstate); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
14051 | } | |
14052 | { | |
14053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14054 | } | |
14055 | return resultobj; | |
14056 | fail: | |
14057 | return NULL; | |
d55e5bfc RD |
14058 | } |
14059 | ||
14060 | ||
554f62e9 RD |
14061 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14062 | PyObject *resultobj = 0; | |
14063 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14064 | size_t result; | |
14065 | void *argp1 = 0 ; | |
14066 | int res1 = 0 ; | |
14067 | PyObject *swig_obj[1] ; | |
14068 | ||
14069 | if (!args) SWIG_fail; | |
14070 | swig_obj[0] = args; | |
14071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14072 | if (!SWIG_IsOK(res1)) { | |
14073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetFirstVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14074 | } | |
14075 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14076 | { | |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
14079 | wxPyEndAllowThreads(__tstate); | |
14080 | if (PyErr_Occurred()) SWIG_fail; | |
14081 | } | |
14082 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14083 | return resultobj; | |
14084 | fail: | |
14085 | return NULL; | |
d55e5bfc RD |
14086 | } |
14087 | ||
14088 | ||
554f62e9 RD |
14089 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14090 | PyObject *resultobj = 0; | |
14091 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14092 | size_t result; | |
14093 | void *argp1 = 0 ; | |
14094 | int res1 = 0 ; | |
14095 | PyObject *swig_obj[1] ; | |
14096 | ||
14097 | if (!args) SWIG_fail; | |
14098 | swig_obj[0] = args; | |
14099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14100 | if (!SWIG_IsOK(res1)) { | |
14101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLastVisibleLine" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14102 | } | |
14103 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14104 | { | |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
14107 | wxPyEndAllowThreads(__tstate); | |
14108 | if (PyErr_Occurred()) SWIG_fail; | |
14109 | } | |
14110 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14111 | return resultobj; | |
14112 | fail: | |
14113 | return NULL; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | SWIGINTERN PyObject *_wrap_VScrolledWindow_FindFirstFromBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14118 | PyObject *resultobj = 0; | |
14119 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14120 | size_t arg2 ; | |
14121 | bool arg3 = (bool) false ; | |
14122 | size_t result; | |
14123 | void *argp1 = 0 ; | |
14124 | int res1 = 0 ; | |
14125 | size_t val2 ; | |
14126 | int ecode2 = 0 ; | |
14127 | bool val3 ; | |
14128 | int ecode3 = 0 ; | |
14129 | PyObject * obj0 = 0 ; | |
14130 | PyObject * obj1 = 0 ; | |
14131 | PyObject * obj2 = 0 ; | |
14132 | char * kwnames[] = { | |
14133 | (char *) "self",(char *) "lineLast",(char *) "fullyVisible", NULL | |
14134 | }; | |
14135 | ||
14136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VScrolledWindow_FindFirstFromBottom",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14138 | if (!SWIG_IsOK(res1)) { | |
14139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "1"" of type '" "wxPyVScrolledWindow *""'"); | |
14140 | } | |
14141 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14142 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14143 | if (!SWIG_IsOK(ecode2)) { | |
14144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "2"" of type '" "size_t""'"); | |
14145 | } | |
14146 | arg2 = static_cast< size_t >(val2); | |
14147 | if (obj2) { | |
14148 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14149 | if (!SWIG_IsOK(ecode3)) { | |
14150 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_FindFirstFromBottom" "', expected argument " "3"" of type '" "bool""'"); | |
14151 | } | |
14152 | arg3 = static_cast< bool >(val3); | |
14153 | } | |
14154 | { | |
14155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14156 | result = (size_t)(arg1)->FindFirstFromBottom(arg2,arg3); | |
14157 | wxPyEndAllowThreads(__tstate); | |
14158 | if (PyErr_Occurred()) SWIG_fail; | |
14159 | } | |
14160 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14161 | return resultobj; | |
14162 | fail: | |
14163 | return NULL; | |
14164 | } | |
14165 | ||
14166 | ||
14167 | SWIGINTERN PyObject *_wrap_VScrolledWindow_GetLinesHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14168 | PyObject *resultobj = 0; | |
14169 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
14170 | size_t arg2 ; | |
14171 | size_t arg3 ; | |
14172 | int result; | |
14173 | void *argp1 = 0 ; | |
14174 | int res1 = 0 ; | |
14175 | size_t val2 ; | |
14176 | int ecode2 = 0 ; | |
14177 | size_t val3 ; | |
14178 | int ecode3 = 0 ; | |
14179 | PyObject * obj0 = 0 ; | |
14180 | PyObject * obj1 = 0 ; | |
14181 | PyObject * obj2 = 0 ; | |
14182 | char * kwnames[] = { | |
14183 | (char *) "self",(char *) "lineMin",(char *) "lineMax", NULL | |
14184 | }; | |
14185 | ||
14186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_GetLinesHeight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVScrolledWindow, 0 | 0 ); | |
14188 | if (!SWIG_IsOK(res1)) { | |
14189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "1"" of type '" "wxPyVScrolledWindow const *""'"); | |
14190 | } | |
14191 | arg1 = reinterpret_cast< wxPyVScrolledWindow * >(argp1); | |
14192 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14193 | if (!SWIG_IsOK(ecode2)) { | |
14194 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "2"" of type '" "size_t""'"); | |
14195 | } | |
14196 | arg2 = static_cast< size_t >(val2); | |
14197 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
14198 | if (!SWIG_IsOK(ecode3)) { | |
14199 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VScrolledWindow_GetLinesHeight" "', expected argument " "3"" of type '" "size_t""'"); | |
14200 | } | |
14201 | arg3 = static_cast< size_t >(val3); | |
14202 | { | |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | result = (int)((wxPyVScrolledWindow const *)arg1)->GetLinesHeight(arg2,arg3); | |
14205 | wxPyEndAllowThreads(__tstate); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | } | |
14208 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14209 | return resultobj; | |
14210 | fail: | |
14211 | return NULL; | |
d55e5bfc RD |
14212 | } |
14213 | ||
14214 | ||
554f62e9 RD |
14215 | SWIGINTERN PyObject *VScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14216 | PyObject *obj; | |
14217 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14218 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVScrolledWindow, SWIG_NewClientData(obj)); | |
14219 | return SWIG_Py_Void(); | |
d55e5bfc RD |
14220 | } |
14221 | ||
554f62e9 RD |
14222 | SWIGINTERN PyObject *VScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14223 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
14224 | } |
14225 | ||
554f62e9 RD |
14226 | SWIGINTERN int VListBoxNameStr_set(PyObject *) { |
14227 | SWIG_Error(SWIG_AttributeError,"Variable VListBoxNameStr is read-only."); | |
14228 | return 1; | |
d55e5bfc RD |
14229 | } |
14230 | ||
14231 | ||
554f62e9 RD |
14232 | SWIGINTERN PyObject *VListBoxNameStr_get(void) { |
14233 | PyObject *pyobj = 0; | |
14234 | ||
14235 | { | |
d55e5bfc | 14236 | #if wxUSE_UNICODE |
554f62e9 | 14237 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); |
d55e5bfc | 14238 | #else |
554f62e9 | 14239 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); |
d55e5bfc | 14240 | #endif |
554f62e9 RD |
14241 | } |
14242 | return pyobj; | |
14243 | } | |
14244 | ||
14245 | ||
14246 | SWIGINTERN PyObject *_wrap_new_VListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14247 | PyObject *resultobj = 0; | |
14248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14249 | int arg2 = (int) wxID_ANY ; | |
14250 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14251 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14252 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14253 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14254 | long arg5 = (long) 0 ; | |
14255 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
14256 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14257 | wxPyVListBox *result = 0 ; | |
14258 | void *argp1 = 0 ; | |
14259 | int res1 = 0 ; | |
14260 | int val2 ; | |
14261 | int ecode2 = 0 ; | |
14262 | wxPoint temp3 ; | |
14263 | wxSize temp4 ; | |
14264 | long val5 ; | |
14265 | int ecode5 = 0 ; | |
14266 | bool temp6 = false ; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | PyObject * obj1 = 0 ; | |
14269 | PyObject * obj2 = 0 ; | |
14270 | PyObject * obj3 = 0 ; | |
14271 | PyObject * obj4 = 0 ; | |
14272 | PyObject * obj5 = 0 ; | |
14273 | char * kwnames[] = { | |
14274 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14275 | }; | |
14276 | ||
14277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
14278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14279 | if (!SWIG_IsOK(res1)) { | |
14280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
14281 | } | |
14282 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
14283 | if (obj1) { | |
14284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14285 | if (!SWIG_IsOK(ecode2)) { | |
14286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VListBox" "', expected argument " "2"" of type '" "int""'"); | |
14287 | } | |
14288 | arg2 = static_cast< int >(val2); | |
14289 | } | |
14290 | if (obj2) { | |
d55e5bfc | 14291 | { |
554f62e9 RD |
14292 | arg3 = &temp3; |
14293 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 14294 | } |
554f62e9 RD |
14295 | } |
14296 | if (obj3) { | |
d55e5bfc | 14297 | { |
554f62e9 RD |
14298 | arg4 = &temp4; |
14299 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14300 | } |
554f62e9 RD |
14301 | } |
14302 | if (obj4) { | |
14303 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
14304 | if (!SWIG_IsOK(ecode5)) { | |
14305 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_VListBox" "', expected argument " "5"" of type '" "long""'"); | |
14306 | } | |
14307 | arg5 = static_cast< long >(val5); | |
14308 | } | |
14309 | if (obj5) { | |
d55e5bfc | 14310 | { |
554f62e9 RD |
14311 | arg6 = wxString_in_helper(obj5); |
14312 | if (arg6 == NULL) SWIG_fail; | |
14313 | temp6 = true; | |
14314 | } | |
14315 | } | |
14316 | { | |
14317 | if (!wxPyCheckForApp()) SWIG_fail; | |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14319 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14320 | wxPyEndAllowThreads(__tstate); | |
14321 | if (PyErr_Occurred()) SWIG_fail; | |
14322 | } | |
14323 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_NEW | 0 ); | |
14324 | { | |
14325 | if (temp6) | |
14326 | delete arg6; | |
14327 | } | |
14328 | return resultobj; | |
14329 | fail: | |
14330 | { | |
14331 | if (temp6) | |
14332 | delete arg6; | |
14333 | } | |
14334 | return NULL; | |
d55e5bfc RD |
14335 | } |
14336 | ||
14337 | ||
554f62e9 RD |
14338 | SWIGINTERN PyObject *_wrap_new_PreVListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14339 | PyObject *resultobj = 0; | |
14340 | wxPyVListBox *result = 0 ; | |
14341 | ||
14342 | if (!SWIG_Python_UnpackTuple(args,"new_PreVListBox",0,0,0)) SWIG_fail; | |
14343 | { | |
14344 | if (!wxPyCheckForApp()) SWIG_fail; | |
14345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14346 | result = (wxPyVListBox *)new wxPyVListBox(); | |
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyVListBox, SWIG_POINTER_OWN | 0 ); | |
14351 | return resultobj; | |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | SWIGINTERN PyObject *_wrap_VListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14358 | PyObject *resultobj = 0; | |
14359 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14360 | PyObject *arg2 = (PyObject *) 0 ; | |
14361 | PyObject *arg3 = (PyObject *) 0 ; | |
14362 | void *argp1 = 0 ; | |
14363 | int res1 = 0 ; | |
14364 | PyObject * obj0 = 0 ; | |
14365 | PyObject * obj1 = 0 ; | |
14366 | PyObject * obj2 = 0 ; | |
14367 | char * kwnames[] = { | |
14368 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14369 | }; | |
14370 | ||
14371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14373 | if (!SWIG_IsOK(res1)) { | |
14374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14375 | } | |
14376 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14377 | arg2 = obj1; | |
14378 | arg3 = obj2; | |
14379 | { | |
14380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14381 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14382 | wxPyEndAllowThreads(__tstate); | |
14383 | if (PyErr_Occurred()) SWIG_fail; | |
14384 | } | |
14385 | resultobj = SWIG_Py_Void(); | |
14386 | return resultobj; | |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | SWIGINTERN PyObject *_wrap_VListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj = 0; | |
14394 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14395 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14396 | int arg3 = (int) wxID_ANY ; | |
14397 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14398 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14399 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14400 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14401 | long arg6 = (long) 0 ; | |
14402 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
14403 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14404 | bool result; | |
14405 | void *argp1 = 0 ; | |
14406 | int res1 = 0 ; | |
14407 | void *argp2 = 0 ; | |
14408 | int res2 = 0 ; | |
14409 | int val3 ; | |
14410 | int ecode3 = 0 ; | |
14411 | wxPoint temp4 ; | |
14412 | wxSize temp5 ; | |
14413 | long val6 ; | |
14414 | int ecode6 = 0 ; | |
14415 | bool temp7 = false ; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | PyObject * obj1 = 0 ; | |
14418 | PyObject * obj2 = 0 ; | |
14419 | PyObject * obj3 = 0 ; | |
14420 | PyObject * obj4 = 0 ; | |
14421 | PyObject * obj5 = 0 ; | |
14422 | PyObject * obj6 = 0 ; | |
14423 | char * kwnames[] = { | |
14424 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14425 | }; | |
14426 | ||
14427 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14429 | if (!SWIG_IsOK(res1)) { | |
14430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Create" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14431 | } | |
14432 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14433 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14434 | if (!SWIG_IsOK(res2)) { | |
14435 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14436 | } | |
14437 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14438 | if (obj2) { | |
14439 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14440 | if (!SWIG_IsOK(ecode3)) { | |
14441 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
14442 | } | |
14443 | arg3 = static_cast< int >(val3); | |
14444 | } | |
14445 | if (obj3) { | |
d55e5bfc | 14446 | { |
554f62e9 RD |
14447 | arg4 = &temp4; |
14448 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 14449 | } |
554f62e9 RD |
14450 | } |
14451 | if (obj4) { | |
d55e5bfc | 14452 | { |
554f62e9 RD |
14453 | arg5 = &temp5; |
14454 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 14455 | } |
554f62e9 RD |
14456 | } |
14457 | if (obj5) { | |
14458 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
14459 | if (!SWIG_IsOK(ecode6)) { | |
14460 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "VListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
14461 | } | |
14462 | arg6 = static_cast< long >(val6); | |
14463 | } | |
14464 | if (obj6) { | |
d55e5bfc | 14465 | { |
554f62e9 RD |
14466 | arg7 = wxString_in_helper(obj6); |
14467 | if (arg7 == NULL) SWIG_fail; | |
14468 | temp7 = true; | |
d55e5bfc | 14469 | } |
554f62e9 RD |
14470 | } |
14471 | { | |
14472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14473 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14474 | wxPyEndAllowThreads(__tstate); | |
14475 | if (PyErr_Occurred()) SWIG_fail; | |
14476 | } | |
14477 | { | |
14478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14479 | } | |
14480 | { | |
14481 | if (temp7) | |
14482 | delete arg7; | |
14483 | } | |
14484 | return resultobj; | |
14485 | fail: | |
14486 | { | |
14487 | if (temp7) | |
14488 | delete arg7; | |
14489 | } | |
14490 | return NULL; | |
d55e5bfc RD |
14491 | } |
14492 | ||
14493 | ||
554f62e9 RD |
14494 | SWIGINTERN PyObject *_wrap_VListBox_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14495 | PyObject *resultobj = 0; | |
14496 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14497 | size_t result; | |
14498 | void *argp1 = 0 ; | |
14499 | int res1 = 0 ; | |
14500 | PyObject *swig_obj[1] ; | |
14501 | ||
14502 | if (!args) SWIG_fail; | |
14503 | swig_obj[0] = args; | |
14504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14505 | if (!SWIG_IsOK(res1)) { | |
14506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14507 | } | |
14508 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14509 | { | |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14511 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
14515 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14516 | return resultobj; | |
14517 | fail: | |
14518 | return NULL; | |
d55e5bfc RD |
14519 | } |
14520 | ||
14521 | ||
554f62e9 RD |
14522 | SWIGINTERN PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14523 | PyObject *resultobj = 0; | |
14524 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14525 | bool result; | |
14526 | void *argp1 = 0 ; | |
14527 | int res1 = 0 ; | |
14528 | PyObject *swig_obj[1] ; | |
14529 | ||
14530 | if (!args) SWIG_fail; | |
14531 | swig_obj[0] = args; | |
14532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14533 | if (!SWIG_IsOK(res1)) { | |
14534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_HasMultipleSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14535 | } | |
14536 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14537 | { | |
14538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14539 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
14540 | wxPyEndAllowThreads(__tstate); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | } | |
14543 | { | |
14544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14545 | } | |
14546 | return resultobj; | |
14547 | fail: | |
14548 | return NULL; | |
d55e5bfc RD |
14549 | } |
14550 | ||
14551 | ||
554f62e9 RD |
14552 | SWIGINTERN PyObject *_wrap_VListBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14553 | PyObject *resultobj = 0; | |
14554 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14555 | int result; | |
14556 | void *argp1 = 0 ; | |
14557 | int res1 = 0 ; | |
14558 | PyObject *swig_obj[1] ; | |
14559 | ||
14560 | if (!args) SWIG_fail; | |
14561 | swig_obj[0] = args; | |
14562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14563 | if (!SWIG_IsOK(res1)) { | |
14564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelection" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14565 | } | |
14566 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14567 | { | |
14568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14569 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14574 | return resultobj; | |
14575 | fail: | |
14576 | return NULL; | |
14577 | } | |
14578 | ||
14579 | ||
14580 | SWIGINTERN PyObject *_wrap_VListBox_IsCurrent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14581 | PyObject *resultobj = 0; | |
14582 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14583 | size_t arg2 ; | |
14584 | bool result; | |
14585 | void *argp1 = 0 ; | |
14586 | int res1 = 0 ; | |
14587 | size_t val2 ; | |
14588 | int ecode2 = 0 ; | |
14589 | PyObject * obj0 = 0 ; | |
14590 | PyObject * obj1 = 0 ; | |
14591 | char * kwnames[] = { | |
14592 | (char *) "self",(char *) "item", NULL | |
14593 | }; | |
14594 | ||
14595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14597 | if (!SWIG_IsOK(res1)) { | |
14598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsCurrent" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14599 | } | |
14600 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14601 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14602 | if (!SWIG_IsOK(ecode2)) { | |
14603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsCurrent" "', expected argument " "2"" of type '" "size_t""'"); | |
14604 | } | |
14605 | arg2 = static_cast< size_t >(val2); | |
14606 | { | |
14607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14608 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
14609 | wxPyEndAllowThreads(__tstate); | |
14610 | if (PyErr_Occurred()) SWIG_fail; | |
14611 | } | |
14612 | { | |
14613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14614 | } | |
14615 | return resultobj; | |
14616 | fail: | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
14621 | SWIGINTERN PyObject *_wrap_VListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14622 | PyObject *resultobj = 0; | |
14623 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14624 | size_t arg2 ; | |
14625 | bool result; | |
14626 | void *argp1 = 0 ; | |
14627 | int res1 = 0 ; | |
14628 | size_t val2 ; | |
14629 | int ecode2 = 0 ; | |
14630 | PyObject * obj0 = 0 ; | |
14631 | PyObject * obj1 = 0 ; | |
14632 | char * kwnames[] = { | |
14633 | (char *) "self",(char *) "item", NULL | |
14634 | }; | |
14635 | ||
14636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14638 | if (!SWIG_IsOK(res1)) { | |
14639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_IsSelected" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14640 | } | |
14641 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14642 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14643 | if (!SWIG_IsOK(ecode2)) { | |
14644 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_IsSelected" "', expected argument " "2"" of type '" "size_t""'"); | |
14645 | } | |
14646 | arg2 = static_cast< size_t >(val2); | |
14647 | { | |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14649 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
14650 | wxPyEndAllowThreads(__tstate); | |
14651 | if (PyErr_Occurred()) SWIG_fail; | |
14652 | } | |
14653 | { | |
14654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14655 | } | |
14656 | return resultobj; | |
14657 | fail: | |
14658 | return NULL; | |
d55e5bfc RD |
14659 | } |
14660 | ||
14661 | ||
554f62e9 RD |
14662 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectedCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14663 | PyObject *resultobj = 0; | |
14664 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14665 | size_t result; | |
14666 | void *argp1 = 0 ; | |
14667 | int res1 = 0 ; | |
14668 | PyObject *swig_obj[1] ; | |
14669 | ||
14670 | if (!args) SWIG_fail; | |
14671 | swig_obj[0] = args; | |
14672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14673 | if (!SWIG_IsOK(res1)) { | |
14674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectedCount" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14675 | } | |
14676 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14677 | { | |
14678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14679 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
14680 | wxPyEndAllowThreads(__tstate); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
14683 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14684 | return resultobj; | |
14685 | fail: | |
14686 | return NULL; | |
d55e5bfc RD |
14687 | } |
14688 | ||
14689 | ||
554f62e9 RD |
14690 | SWIGINTERN PyObject *_wrap_VListBox_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14691 | PyObject *resultobj = 0; | |
14692 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14693 | PyObject *result = 0 ; | |
14694 | void *argp1 = 0 ; | |
14695 | int res1 = 0 ; | |
14696 | PyObject *swig_obj[1] ; | |
14697 | ||
14698 | if (!args) SWIG_fail; | |
14699 | swig_obj[0] = args; | |
14700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14701 | if (!SWIG_IsOK(res1)) { | |
14702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetFirstSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14703 | } | |
14704 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14705 | { | |
14706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14707 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); | |
14708 | wxPyEndAllowThreads(__tstate); | |
14709 | if (PyErr_Occurred()) SWIG_fail; | |
14710 | } | |
14711 | resultobj = result; | |
14712 | return resultobj; | |
14713 | fail: | |
14714 | return NULL; | |
14715 | } | |
14716 | ||
14717 | ||
14718 | SWIGINTERN PyObject *_wrap_VListBox_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14719 | PyObject *resultobj = 0; | |
14720 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14721 | unsigned long arg2 ; | |
14722 | PyObject *result = 0 ; | |
14723 | void *argp1 = 0 ; | |
14724 | int res1 = 0 ; | |
14725 | unsigned long val2 ; | |
14726 | int ecode2 = 0 ; | |
14727 | PyObject * obj0 = 0 ; | |
14728 | PyObject * obj1 = 0 ; | |
14729 | char * kwnames[] = { | |
14730 | (char *) "self",(char *) "cookie", NULL | |
14731 | }; | |
14732 | ||
14733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail; | |
14734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14735 | if (!SWIG_IsOK(res1)) { | |
14736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetNextSelected" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14737 | } | |
14738 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14739 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
14740 | if (!SWIG_IsOK(ecode2)) { | |
14741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_GetNextSelected" "', expected argument " "2"" of type '" "unsigned long""'"); | |
14742 | } | |
14743 | arg2 = static_cast< unsigned long >(val2); | |
14744 | { | |
14745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14746 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); | |
14747 | wxPyEndAllowThreads(__tstate); | |
14748 | if (PyErr_Occurred()) SWIG_fail; | |
14749 | } | |
14750 | resultobj = result; | |
14751 | return resultobj; | |
14752 | fail: | |
14753 | return NULL; | |
d55e5bfc RD |
14754 | } |
14755 | ||
14756 | ||
554f62e9 RD |
14757 | SWIGINTERN PyObject *_wrap_VListBox_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14758 | PyObject *resultobj = 0; | |
14759 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14760 | wxPoint result; | |
14761 | void *argp1 = 0 ; | |
14762 | int res1 = 0 ; | |
14763 | PyObject *swig_obj[1] ; | |
14764 | ||
14765 | if (!args) SWIG_fail; | |
14766 | swig_obj[0] = args; | |
14767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14768 | if (!SWIG_IsOK(res1)) { | |
14769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetMargins" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14770 | } | |
14771 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14772 | { | |
14773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14774 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
14775 | wxPyEndAllowThreads(__tstate); | |
14776 | if (PyErr_Occurred()) SWIG_fail; | |
14777 | } | |
14778 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
14779 | return resultobj; | |
14780 | fail: | |
14781 | return NULL; | |
d55e5bfc RD |
14782 | } |
14783 | ||
14784 | ||
554f62e9 RD |
14785 | SWIGINTERN PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14786 | PyObject *resultobj = 0; | |
14787 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14788 | wxColour *result = 0 ; | |
14789 | void *argp1 = 0 ; | |
14790 | int res1 = 0 ; | |
14791 | PyObject *swig_obj[1] ; | |
14792 | ||
14793 | if (!args) SWIG_fail; | |
14794 | swig_obj[0] = args; | |
14795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14796 | if (!SWIG_IsOK(res1)) { | |
14797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_GetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
14798 | } | |
14799 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 14802 | { |
554f62e9 RD |
14803 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); |
14804 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 14805 | } |
554f62e9 RD |
14806 | wxPyEndAllowThreads(__tstate); |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | SWIGINTERN PyObject *_wrap_VListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj = 0; | |
14818 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14819 | size_t arg2 ; | |
14820 | void *argp1 = 0 ; | |
14821 | int res1 = 0 ; | |
14822 | size_t val2 ; | |
14823 | int ecode2 = 0 ; | |
14824 | PyObject * obj0 = 0 ; | |
14825 | PyObject * obj1 = 0 ; | |
14826 | char * kwnames[] = { | |
14827 | (char *) "self",(char *) "count", NULL | |
14828 | }; | |
14829 | ||
14830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
14831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14832 | if (!SWIG_IsOK(res1)) { | |
14833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14834 | } | |
14835 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14836 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14837 | if (!SWIG_IsOK(ecode2)) { | |
14838 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
14839 | } | |
14840 | arg2 = static_cast< size_t >(val2); | |
14841 | { | |
14842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14843 | (arg1)->SetItemCount(arg2); | |
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
14847 | resultobj = SWIG_Py_Void(); | |
14848 | return resultobj; | |
14849 | fail: | |
14850 | return NULL; | |
d55e5bfc RD |
14851 | } |
14852 | ||
14853 | ||
554f62e9 RD |
14854 | SWIGINTERN PyObject *_wrap_VListBox_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14855 | PyObject *resultobj = 0; | |
14856 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14857 | void *argp1 = 0 ; | |
14858 | int res1 = 0 ; | |
14859 | PyObject *swig_obj[1] ; | |
14860 | ||
14861 | if (!args) SWIG_fail; | |
14862 | swig_obj[0] = args; | |
14863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14864 | if (!SWIG_IsOK(res1)) { | |
14865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Clear" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14866 | } | |
14867 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14868 | { | |
14869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14870 | (arg1)->Clear(); | |
14871 | wxPyEndAllowThreads(__tstate); | |
14872 | if (PyErr_Occurred()) SWIG_fail; | |
14873 | } | |
14874 | resultobj = SWIG_Py_Void(); | |
14875 | return resultobj; | |
14876 | fail: | |
14877 | return NULL; | |
14878 | } | |
14879 | ||
14880 | ||
14881 | SWIGINTERN PyObject *_wrap_VListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14882 | PyObject *resultobj = 0; | |
14883 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14884 | int arg2 ; | |
14885 | void *argp1 = 0 ; | |
14886 | int res1 = 0 ; | |
14887 | int val2 ; | |
14888 | int ecode2 = 0 ; | |
14889 | PyObject * obj0 = 0 ; | |
14890 | PyObject * obj1 = 0 ; | |
14891 | char * kwnames[] = { | |
14892 | (char *) "self",(char *) "selection", NULL | |
14893 | }; | |
14894 | ||
14895 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
14896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14897 | if (!SWIG_IsOK(res1)) { | |
14898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelection" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14899 | } | |
14900 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14901 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14902 | if (!SWIG_IsOK(ecode2)) { | |
14903 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
14904 | } | |
14905 | arg2 = static_cast< int >(val2); | |
14906 | { | |
14907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14908 | (arg1)->SetSelection(arg2); | |
14909 | wxPyEndAllowThreads(__tstate); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | } | |
14912 | resultobj = SWIG_Py_Void(); | |
14913 | return resultobj; | |
14914 | fail: | |
14915 | return NULL; | |
14916 | } | |
14917 | ||
14918 | ||
14919 | SWIGINTERN PyObject *_wrap_VListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14920 | PyObject *resultobj = 0; | |
14921 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14922 | size_t arg2 ; | |
14923 | bool arg3 = (bool) true ; | |
14924 | bool result; | |
14925 | void *argp1 = 0 ; | |
14926 | int res1 = 0 ; | |
14927 | size_t val2 ; | |
14928 | int ecode2 = 0 ; | |
14929 | bool val3 ; | |
14930 | int ecode3 = 0 ; | |
14931 | PyObject * obj0 = 0 ; | |
14932 | PyObject * obj1 = 0 ; | |
14933 | PyObject * obj2 = 0 ; | |
14934 | char * kwnames[] = { | |
14935 | (char *) "self",(char *) "item",(char *) "select", NULL | |
14936 | }; | |
14937 | ||
14938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14940 | if (!SWIG_IsOK(res1)) { | |
14941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Select" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14942 | } | |
14943 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14944 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14945 | if (!SWIG_IsOK(ecode2)) { | |
14946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Select" "', expected argument " "2"" of type '" "size_t""'"); | |
14947 | } | |
14948 | arg2 = static_cast< size_t >(val2); | |
14949 | if (obj2) { | |
14950 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14951 | if (!SWIG_IsOK(ecode3)) { | |
14952 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_Select" "', expected argument " "3"" of type '" "bool""'"); | |
14953 | } | |
14954 | arg3 = static_cast< bool >(val3); | |
14955 | } | |
14956 | { | |
14957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14958 | result = (bool)(arg1)->Select(arg2,arg3); | |
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | { | |
14963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14964 | } | |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
14971 | SWIGINTERN PyObject *_wrap_VListBox_SelectRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14972 | PyObject *resultobj = 0; | |
14973 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
14974 | size_t arg2 ; | |
14975 | size_t arg3 ; | |
14976 | bool result; | |
14977 | void *argp1 = 0 ; | |
14978 | int res1 = 0 ; | |
14979 | size_t val2 ; | |
14980 | int ecode2 = 0 ; | |
14981 | size_t val3 ; | |
14982 | int ecode3 = 0 ; | |
14983 | PyObject * obj0 = 0 ; | |
14984 | PyObject * obj1 = 0 ; | |
14985 | PyObject * obj2 = 0 ; | |
14986 | char * kwnames[] = { | |
14987 | (char *) "self",(char *) "_from",(char *) "to", NULL | |
14988 | }; | |
14989 | ||
14990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
14992 | if (!SWIG_IsOK(res1)) { | |
14993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectRange" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
14994 | } | |
14995 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
14996 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
14997 | if (!SWIG_IsOK(ecode2)) { | |
14998 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SelectRange" "', expected argument " "2"" of type '" "size_t""'"); | |
14999 | } | |
15000 | arg2 = static_cast< size_t >(val2); | |
15001 | ecode3 = SWIG_AsVal_size_t(obj2, &val3); | |
15002 | if (!SWIG_IsOK(ecode3)) { | |
15003 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SelectRange" "', expected argument " "3"" of type '" "size_t""'"); | |
15004 | } | |
15005 | arg3 = static_cast< size_t >(val3); | |
15006 | { | |
15007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15008 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
15009 | wxPyEndAllowThreads(__tstate); | |
15010 | if (PyErr_Occurred()) SWIG_fail; | |
15011 | } | |
15012 | { | |
15013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15014 | } | |
15015 | return resultobj; | |
15016 | fail: | |
15017 | return NULL; | |
15018 | } | |
15019 | ||
15020 | ||
15021 | SWIGINTERN PyObject *_wrap_VListBox_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15022 | PyObject *resultobj = 0; | |
15023 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15024 | size_t arg2 ; | |
15025 | void *argp1 = 0 ; | |
15026 | int res1 = 0 ; | |
15027 | size_t val2 ; | |
15028 | int ecode2 = 0 ; | |
15029 | PyObject * obj0 = 0 ; | |
15030 | PyObject * obj1 = 0 ; | |
15031 | char * kwnames[] = { | |
15032 | (char *) "self",(char *) "item", NULL | |
15033 | }; | |
15034 | ||
15035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15037 | if (!SWIG_IsOK(res1)) { | |
15038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_Toggle" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15039 | } | |
15040 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15041 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15042 | if (!SWIG_IsOK(ecode2)) { | |
15043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_Toggle" "', expected argument " "2"" of type '" "size_t""'"); | |
15044 | } | |
15045 | arg2 = static_cast< size_t >(val2); | |
15046 | { | |
15047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15048 | (arg1)->Toggle(arg2); | |
15049 | wxPyEndAllowThreads(__tstate); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
15052 | resultobj = SWIG_Py_Void(); | |
15053 | return resultobj; | |
15054 | fail: | |
15055 | return NULL; | |
d55e5bfc RD |
15056 | } |
15057 | ||
15058 | ||
554f62e9 RD |
15059 | SWIGINTERN PyObject *_wrap_VListBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15060 | PyObject *resultobj = 0; | |
15061 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15062 | bool result; | |
15063 | void *argp1 = 0 ; | |
15064 | int res1 = 0 ; | |
15065 | PyObject *swig_obj[1] ; | |
15066 | ||
15067 | if (!args) SWIG_fail; | |
15068 | swig_obj[0] = args; | |
15069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15070 | if (!SWIG_IsOK(res1)) { | |
15071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SelectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15072 | } | |
15073 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15074 | { | |
15075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15076 | result = (bool)(arg1)->SelectAll(); | |
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
15080 | { | |
15081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15082 | } | |
15083 | return resultobj; | |
15084 | fail: | |
15085 | return NULL; | |
d55e5bfc RD |
15086 | } |
15087 | ||
15088 | ||
554f62e9 RD |
15089 | SWIGINTERN PyObject *_wrap_VListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15090 | PyObject *resultobj = 0; | |
15091 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15092 | bool result; | |
15093 | void *argp1 = 0 ; | |
15094 | int res1 = 0 ; | |
15095 | PyObject *swig_obj[1] ; | |
15096 | ||
15097 | if (!args) SWIG_fail; | |
15098 | swig_obj[0] = args; | |
15099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15100 | if (!SWIG_IsOK(res1)) { | |
15101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_DeselectAll" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15102 | } | |
15103 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | result = (bool)(arg1)->DeselectAll(); | |
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | { | |
15111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15112 | } | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | SWIGINTERN PyObject *_wrap_VListBox_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj = 0; | |
15121 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15122 | wxPoint *arg2 = 0 ; | |
15123 | void *argp1 = 0 ; | |
15124 | int res1 = 0 ; | |
15125 | wxPoint temp2 ; | |
15126 | PyObject * obj0 = 0 ; | |
15127 | PyObject * obj1 = 0 ; | |
15128 | char * kwnames[] = { | |
15129 | (char *) "self",(char *) "pt", NULL | |
15130 | }; | |
15131 | ||
15132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
15133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15134 | if (!SWIG_IsOK(res1)) { | |
15135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMargins" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15136 | } | |
15137 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15138 | { | |
15139 | arg2 = &temp2; | |
15140 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15141 | } | |
15142 | { | |
15143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15144 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
15145 | wxPyEndAllowThreads(__tstate); | |
15146 | if (PyErr_Occurred()) SWIG_fail; | |
15147 | } | |
15148 | resultobj = SWIG_Py_Void(); | |
15149 | return resultobj; | |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | SWIGINTERN PyObject *_wrap_VListBox_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj = 0; | |
15157 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15158 | int arg2 ; | |
15159 | int arg3 ; | |
15160 | void *argp1 = 0 ; | |
15161 | int res1 = 0 ; | |
15162 | int val2 ; | |
15163 | int ecode2 = 0 ; | |
15164 | int val3 ; | |
15165 | int ecode3 = 0 ; | |
15166 | PyObject * obj0 = 0 ; | |
15167 | PyObject * obj1 = 0 ; | |
15168 | PyObject * obj2 = 0 ; | |
15169 | char * kwnames[] = { | |
15170 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15171 | }; | |
15172 | ||
15173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15175 | if (!SWIG_IsOK(res1)) { | |
15176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetMarginsXY" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15177 | } | |
15178 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15180 | if (!SWIG_IsOK(ecode2)) { | |
15181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListBox_SetMarginsXY" "', expected argument " "2"" of type '" "int""'"); | |
15182 | } | |
15183 | arg2 = static_cast< int >(val2); | |
15184 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15185 | if (!SWIG_IsOK(ecode3)) { | |
15186 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListBox_SetMarginsXY" "', expected argument " "3"" of type '" "int""'"); | |
15187 | } | |
15188 | arg3 = static_cast< int >(val3); | |
15189 | { | |
15190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15191 | (arg1)->SetMargins(arg2,arg3); | |
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | resultobj = SWIG_Py_Void(); | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
15202 | SWIGINTERN PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15203 | PyObject *resultobj = 0; | |
15204 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15205 | wxColour *arg2 = 0 ; | |
15206 | void *argp1 = 0 ; | |
15207 | int res1 = 0 ; | |
15208 | wxColour temp2 ; | |
15209 | PyObject * obj0 = 0 ; | |
15210 | PyObject * obj1 = 0 ; | |
15211 | char * kwnames[] = { | |
15212 | (char *) "self",(char *) "col", NULL | |
15213 | }; | |
15214 | ||
15215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
15216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15217 | if (!SWIG_IsOK(res1)) { | |
15218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_SetSelectionBackground" "', expected argument " "1"" of type '" "wxPyVListBox *""'"); | |
15219 | } | |
15220 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15221 | { | |
15222 | arg2 = &temp2; | |
15223 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15224 | } | |
15225 | { | |
15226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15227 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
15228 | wxPyEndAllowThreads(__tstate); | |
15229 | if (PyErr_Occurred()) SWIG_fail; | |
15230 | } | |
15231 | resultobj = SWIG_Py_Void(); | |
15232 | return resultobj; | |
15233 | fail: | |
15234 | return NULL; | |
15235 | } | |
15236 | ||
15237 | ||
1c71765a RD |
15238 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15239 | PyObject *resultobj = 0; | |
15240 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15241 | wxDC *arg2 = 0 ; | |
15242 | wxRect *arg3 = 0 ; | |
15243 | size_t arg4 ; | |
15244 | void *argp1 = 0 ; | |
15245 | int res1 = 0 ; | |
15246 | void *argp2 = 0 ; | |
15247 | int res2 = 0 ; | |
15248 | wxRect temp3 ; | |
15249 | size_t val4 ; | |
15250 | int ecode4 = 0 ; | |
15251 | PyObject * obj0 = 0 ; | |
15252 | PyObject * obj1 = 0 ; | |
15253 | PyObject * obj2 = 0 ; | |
15254 | PyObject * obj3 = 0 ; | |
15255 | char * kwnames[] = { | |
15256 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15257 | }; | |
15258 | ||
15259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15261 | if (!SWIG_IsOK(res1)) { | |
15262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15263 | } | |
15264 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15265 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15266 | if (!SWIG_IsOK(res2)) { | |
15267 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15268 | } | |
15269 | if (!argp2) { | |
15270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15271 | } | |
15272 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15273 | { | |
15274 | arg3 = &temp3; | |
15275 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15276 | } | |
15277 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15278 | if (!SWIG_IsOK(ecode4)) { | |
15279 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'"); | |
15280 | } | |
15281 | arg4 = static_cast< size_t >(val4); | |
15282 | { | |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | ((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4); | |
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | resultobj = SWIG_Py_Void(); | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
15292 | } | |
15293 | ||
15294 | ||
15295 | SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15296 | PyObject *resultobj = 0; | |
15297 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
15298 | wxDC *arg2 = 0 ; | |
15299 | wxRect *arg3 = 0 ; | |
15300 | size_t arg4 ; | |
15301 | void *argp1 = 0 ; | |
15302 | int res1 = 0 ; | |
15303 | void *argp2 = 0 ; | |
15304 | int res2 = 0 ; | |
15305 | wxRect temp3 ; | |
15306 | size_t val4 ; | |
15307 | int ecode4 = 0 ; | |
15308 | PyObject * obj0 = 0 ; | |
15309 | PyObject * obj1 = 0 ; | |
15310 | PyObject * obj2 = 0 ; | |
15311 | PyObject * obj3 = 0 ; | |
15312 | char * kwnames[] = { | |
15313 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL | |
15314 | }; | |
15315 | ||
15316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 ); | |
15318 | if (!SWIG_IsOK(res1)) { | |
15319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'"); | |
15320 | } | |
15321 | arg1 = reinterpret_cast< wxPyVListBox * >(argp1); | |
15322 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
15323 | if (!SWIG_IsOK(res2)) { | |
15324 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15325 | } | |
15326 | if (!argp2) { | |
15327 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'"); | |
15328 | } | |
15329 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
15330 | { | |
15331 | arg3 = &temp3; | |
15332 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
15333 | } | |
15334 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
15335 | if (!SWIG_IsOK(ecode4)) { | |
15336 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'"); | |
15337 | } | |
15338 | arg4 = static_cast< size_t >(val4); | |
15339 | { | |
15340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15341 | ((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4); | |
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | resultobj = SWIG_Py_Void(); | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
554f62e9 RD |
15352 | SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15353 | PyObject *obj; | |
15354 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15355 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyVListBox, SWIG_NewClientData(obj)); | |
15356 | return SWIG_Py_Void(); | |
15357 | } | |
15358 | ||
15359 | SWIGINTERN PyObject *VListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15360 | return SWIG_Python_InitShadowInstance(args); | |
15361 | } | |
15362 | ||
15363 | SWIGINTERN PyObject *_wrap_new_HtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15364 | PyObject *resultobj = 0; | |
15365 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15366 | int arg2 = (int) wxID_ANY ; | |
15367 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15368 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15369 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15370 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15371 | long arg5 = (long) 0 ; | |
15372 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
15373 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15374 | wxPyHtmlListBox *result = 0 ; | |
15375 | void *argp1 = 0 ; | |
15376 | int res1 = 0 ; | |
15377 | int val2 ; | |
15378 | int ecode2 = 0 ; | |
15379 | wxPoint temp3 ; | |
15380 | wxSize temp4 ; | |
15381 | long val5 ; | |
15382 | int ecode5 = 0 ; | |
15383 | bool temp6 = false ; | |
15384 | PyObject * obj0 = 0 ; | |
15385 | PyObject * obj1 = 0 ; | |
15386 | PyObject * obj2 = 0 ; | |
15387 | PyObject * obj3 = 0 ; | |
15388 | PyObject * obj4 = 0 ; | |
15389 | PyObject * obj5 = 0 ; | |
15390 | char * kwnames[] = { | |
15391 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15392 | }; | |
15393 | ||
15394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15395 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15396 | if (!SWIG_IsOK(res1)) { | |
15397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HtmlListBox" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
15398 | } | |
15399 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
15400 | if (obj1) { | |
15401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15402 | if (!SWIG_IsOK(ecode2)) { | |
15403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HtmlListBox" "', expected argument " "2"" of type '" "int""'"); | |
15404 | } | |
15405 | arg2 = static_cast< int >(val2); | |
15406 | } | |
15407 | if (obj2) { | |
093d3ff1 | 15408 | { |
554f62e9 RD |
15409 | arg3 = &temp3; |
15410 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 15411 | } |
554f62e9 RD |
15412 | } |
15413 | if (obj3) { | |
d55e5bfc | 15414 | { |
554f62e9 RD |
15415 | arg4 = &temp4; |
15416 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15417 | } |
554f62e9 RD |
15418 | } |
15419 | if (obj4) { | |
15420 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
15421 | if (!SWIG_IsOK(ecode5)) { | |
15422 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_HtmlListBox" "', expected argument " "5"" of type '" "long""'"); | |
15423 | } | |
15424 | arg5 = static_cast< long >(val5); | |
15425 | } | |
15426 | if (obj5) { | |
d55e5bfc | 15427 | { |
554f62e9 RD |
15428 | arg6 = wxString_in_helper(obj5); |
15429 | if (arg6 == NULL) SWIG_fail; | |
15430 | temp6 = true; | |
15431 | } | |
15432 | } | |
15433 | { | |
15434 | if (!wxPyCheckForApp()) SWIG_fail; | |
15435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15436 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15437 | wxPyEndAllowThreads(__tstate); | |
15438 | if (PyErr_Occurred()) SWIG_fail; | |
15439 | } | |
15440 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_NEW | 0 ); | |
15441 | { | |
15442 | if (temp6) | |
15443 | delete arg6; | |
15444 | } | |
15445 | return resultobj; | |
15446 | fail: | |
15447 | { | |
15448 | if (temp6) | |
15449 | delete arg6; | |
15450 | } | |
15451 | return NULL; | |
d55e5bfc RD |
15452 | } |
15453 | ||
15454 | ||
554f62e9 RD |
15455 | SWIGINTERN PyObject *_wrap_new_PreHtmlListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15456 | PyObject *resultobj = 0; | |
15457 | wxPyHtmlListBox *result = 0 ; | |
15458 | ||
15459 | if (!SWIG_Python_UnpackTuple(args,"new_PreHtmlListBox",0,0,0)) SWIG_fail; | |
15460 | { | |
15461 | if (!wxPyCheckForApp()) SWIG_fail; | |
15462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15463 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
15467 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyHtmlListBox, SWIG_POINTER_OWN | 0 ); | |
15468 | return resultobj; | |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
15474 | SWIGINTERN PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15475 | PyObject *resultobj = 0; | |
15476 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15477 | PyObject *arg2 = (PyObject *) 0 ; | |
15478 | PyObject *arg3 = (PyObject *) 0 ; | |
15479 | void *argp1 = 0 ; | |
15480 | int res1 = 0 ; | |
15481 | PyObject * obj0 = 0 ; | |
15482 | PyObject * obj1 = 0 ; | |
15483 | PyObject * obj2 = 0 ; | |
15484 | char * kwnames[] = { | |
15485 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15486 | }; | |
15487 | ||
15488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15490 | if (!SWIG_IsOK(res1)) { | |
15491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15492 | } | |
15493 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15494 | arg2 = obj1; | |
15495 | arg3 = obj2; | |
15496 | { | |
15497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15498 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15499 | wxPyEndAllowThreads(__tstate); | |
15500 | if (PyErr_Occurred()) SWIG_fail; | |
15501 | } | |
15502 | resultobj = SWIG_Py_Void(); | |
15503 | return resultobj; | |
15504 | fail: | |
15505 | return NULL; | |
15506 | } | |
15507 | ||
15508 | ||
15509 | SWIGINTERN PyObject *_wrap_HtmlListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15510 | PyObject *resultobj = 0; | |
15511 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15512 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15513 | int arg3 = (int) wxID_ANY ; | |
15514 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15515 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15516 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15517 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15518 | long arg6 = (long) 0 ; | |
15519 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
15520 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15521 | bool result; | |
15522 | void *argp1 = 0 ; | |
15523 | int res1 = 0 ; | |
15524 | void *argp2 = 0 ; | |
15525 | int res2 = 0 ; | |
15526 | int val3 ; | |
15527 | int ecode3 = 0 ; | |
15528 | wxPoint temp4 ; | |
15529 | wxSize temp5 ; | |
15530 | long val6 ; | |
15531 | int ecode6 = 0 ; | |
15532 | bool temp7 = false ; | |
15533 | PyObject * obj0 = 0 ; | |
15534 | PyObject * obj1 = 0 ; | |
15535 | PyObject * obj2 = 0 ; | |
15536 | PyObject * obj3 = 0 ; | |
15537 | PyObject * obj4 = 0 ; | |
15538 | PyObject * obj5 = 0 ; | |
15539 | PyObject * obj6 = 0 ; | |
15540 | char * kwnames[] = { | |
15541 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15542 | }; | |
15543 | ||
15544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
15545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15546 | if (!SWIG_IsOK(res1)) { | |
15547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_Create" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15548 | } | |
15549 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15550 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
15551 | if (!SWIG_IsOK(res2)) { | |
15552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HtmlListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
15553 | } | |
15554 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
15555 | if (obj2) { | |
15556 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15557 | if (!SWIG_IsOK(ecode3)) { | |
15558 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HtmlListBox_Create" "', expected argument " "3"" of type '" "int""'"); | |
15559 | } | |
15560 | arg3 = static_cast< int >(val3); | |
15561 | } | |
15562 | if (obj3) { | |
093d3ff1 | 15563 | { |
554f62e9 RD |
15564 | arg4 = &temp4; |
15565 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 15566 | } |
554f62e9 RD |
15567 | } |
15568 | if (obj4) { | |
d55e5bfc | 15569 | { |
554f62e9 RD |
15570 | arg5 = &temp5; |
15571 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 15572 | } |
554f62e9 RD |
15573 | } |
15574 | if (obj5) { | |
15575 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
15576 | if (!SWIG_IsOK(ecode6)) { | |
15577 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "HtmlListBox_Create" "', expected argument " "6"" of type '" "long""'"); | |
15578 | } | |
15579 | arg6 = static_cast< long >(val6); | |
15580 | } | |
15581 | if (obj6) { | |
093d3ff1 | 15582 | { |
554f62e9 RD |
15583 | arg7 = wxString_in_helper(obj6); |
15584 | if (arg7 == NULL) SWIG_fail; | |
15585 | temp7 = true; | |
093d3ff1 | 15586 | } |
554f62e9 RD |
15587 | } |
15588 | { | |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15590 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15591 | wxPyEndAllowThreads(__tstate); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | } | |
15594 | { | |
15595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15596 | } | |
15597 | { | |
15598 | if (temp7) | |
15599 | delete arg7; | |
15600 | } | |
15601 | return resultobj; | |
15602 | fail: | |
15603 | { | |
15604 | if (temp7) | |
15605 | delete arg7; | |
15606 | } | |
15607 | return NULL; | |
15608 | } | |
15609 | ||
15610 | ||
15611 | SWIGINTERN PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15612 | PyObject *resultobj = 0; | |
15613 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15614 | size_t arg2 ; | |
15615 | void *argp1 = 0 ; | |
15616 | int res1 = 0 ; | |
15617 | size_t val2 ; | |
15618 | int ecode2 = 0 ; | |
15619 | PyObject * obj0 = 0 ; | |
15620 | PyObject * obj1 = 0 ; | |
15621 | char * kwnames[] = { | |
15622 | (char *) "self",(char *) "count", NULL | |
15623 | }; | |
15624 | ||
15625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail; | |
15626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15627 | if (!SWIG_IsOK(res1)) { | |
15628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15629 | } | |
15630 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15631 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15632 | if (!SWIG_IsOK(ecode2)) { | |
15633 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_SetItemCount" "', expected argument " "2"" of type '" "size_t""'"); | |
15634 | } | |
15635 | arg2 = static_cast< size_t >(val2); | |
15636 | { | |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15638 | (arg1)->SetItemCount(arg2); | |
15639 | wxPyEndAllowThreads(__tstate); | |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
15642 | resultobj = SWIG_Py_Void(); | |
15643 | return resultobj; | |
15644 | fail: | |
15645 | return NULL; | |
d55e5bfc RD |
15646 | } |
15647 | ||
15648 | ||
554f62e9 RD |
15649 | SWIGINTERN PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15650 | PyObject *resultobj = 0; | |
15651 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15652 | wxFileSystem *result = 0 ; | |
15653 | void *argp1 = 0 ; | |
15654 | int res1 = 0 ; | |
15655 | PyObject *swig_obj[1] ; | |
15656 | ||
15657 | if (!args) SWIG_fail; | |
15658 | swig_obj[0] = args; | |
15659 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15660 | if (!SWIG_IsOK(res1)) { | |
15661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_GetFileSystem" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15662 | } | |
15663 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15664 | { | |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 15666 | { |
554f62e9 RD |
15667 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); |
15668 | result = (wxFileSystem *) &_result_ref; | |
093d3ff1 | 15669 | } |
554f62e9 RD |
15670 | wxPyEndAllowThreads(__tstate); |
15671 | if (PyErr_Occurred()) SWIG_fail; | |
15672 | } | |
15673 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 ); | |
15674 | return resultobj; | |
15675 | fail: | |
15676 | return NULL; | |
d55e5bfc RD |
15677 | } |
15678 | ||
15679 | ||
e9d6f3a4 RD |
15680 | SWIGINTERN PyObject *_wrap_HtmlListBox_OnLinkClicked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15681 | PyObject *resultobj = 0; | |
15682 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
15683 | size_t arg2 ; | |
15684 | wxHtmlLinkInfo *arg3 = 0 ; | |
15685 | void *argp1 = 0 ; | |
15686 | int res1 = 0 ; | |
15687 | size_t val2 ; | |
15688 | int ecode2 = 0 ; | |
15689 | void *argp3 = 0 ; | |
15690 | int res3 = 0 ; | |
15691 | PyObject * obj0 = 0 ; | |
15692 | PyObject * obj1 = 0 ; | |
15693 | PyObject * obj2 = 0 ; | |
15694 | char * kwnames[] = { | |
15695 | (char *) "self",(char *) "n",(char *) "link", NULL | |
15696 | }; | |
15697 | ||
15698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox_OnLinkClicked",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyHtmlListBox, 0 | 0 ); | |
15700 | if (!SWIG_IsOK(res1)) { | |
15701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "1"" of type '" "wxPyHtmlListBox *""'"); | |
15702 | } | |
15703 | arg1 = reinterpret_cast< wxPyHtmlListBox * >(argp1); | |
15704 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
15705 | if (!SWIG_IsOK(ecode2)) { | |
15706 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "2"" of type '" "size_t""'"); | |
15707 | } | |
15708 | arg2 = static_cast< size_t >(val2); | |
15709 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHtmlLinkInfo, 0 | 0); | |
15710 | if (!SWIG_IsOK(res3)) { | |
15711 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15712 | } | |
15713 | if (!argp3) { | |
15714 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "HtmlListBox_OnLinkClicked" "', expected argument " "3"" of type '" "wxHtmlLinkInfo const &""'"); | |
15715 | } | |
15716 | arg3 = reinterpret_cast< wxHtmlLinkInfo * >(argp3); | |
15717 | { | |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15719 | (arg1)->OnLinkClicked(arg2,(wxHtmlLinkInfo const &)*arg3); | |
15720 | wxPyEndAllowThreads(__tstate); | |
15721 | if (PyErr_Occurred()) SWIG_fail; | |
15722 | } | |
15723 | resultobj = SWIG_Py_Void(); | |
15724 | return resultobj; | |
15725 | fail: | |
15726 | return NULL; | |
15727 | } | |
15728 | ||
15729 | ||
554f62e9 RD |
15730 | SWIGINTERN PyObject *HtmlListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15731 | PyObject *obj; | |
15732 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15733 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyHtmlListBox, SWIG_NewClientData(obj)); | |
15734 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15735 | } |
15736 | ||
554f62e9 RD |
15737 | SWIGINTERN PyObject *HtmlListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15738 | return SWIG_Python_InitShadowInstance(args); | |
15739 | } | |
d55e5bfc | 15740 | |
554f62e9 RD |
15741 | SWIGINTERN PyObject *_wrap_new_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15742 | PyObject *resultobj = 0; | |
15743 | wxPyTaskBarIcon *result = 0 ; | |
15744 | ||
15745 | if (!SWIG_Python_UnpackTuple(args,"new_TaskBarIcon",0,0,0)) SWIG_fail; | |
15746 | { | |
15747 | if (!wxPyCheckForApp()) SWIG_fail; | |
15748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15749 | result = (wxPyTaskBarIcon *)new wxPyTaskBarIcon(); | |
15750 | wxPyEndAllowThreads(__tstate); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_NEW | 0 ); | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
d55e5bfc RD |
15757 | } |
15758 | ||
15759 | ||
554f62e9 RD |
15760 | SWIGINTERN PyObject *_wrap_delete_TaskBarIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15761 | PyObject *resultobj = 0; | |
15762 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15763 | void *argp1 = 0 ; | |
15764 | int res1 = 0 ; | |
15765 | PyObject *swig_obj[1] ; | |
15766 | ||
15767 | if (!args) SWIG_fail; | |
15768 | swig_obj[0] = args; | |
15769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_DISOWN | 0 ); | |
15770 | if (!SWIG_IsOK(res1)) { | |
15771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TaskBarIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15772 | } | |
15773 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15774 | { | |
15775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15776 | delete arg1; | |
d55e5bfc | 15777 | |
554f62e9 RD |
15778 | wxPyEndAllowThreads(__tstate); |
15779 | if (PyErr_Occurred()) SWIG_fail; | |
15780 | } | |
15781 | resultobj = SWIG_Py_Void(); | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
15788 | SWIGINTERN PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15789 | PyObject *resultobj = 0; | |
15790 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15791 | PyObject *arg2 = (PyObject *) 0 ; | |
15792 | PyObject *arg3 = (PyObject *) 0 ; | |
15793 | int arg4 ; | |
15794 | void *argp1 = 0 ; | |
15795 | int res1 = 0 ; | |
15796 | int val4 ; | |
15797 | int ecode4 = 0 ; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | PyObject * obj1 = 0 ; | |
15800 | PyObject * obj2 = 0 ; | |
15801 | PyObject * obj3 = 0 ; | |
15802 | char * kwnames[] = { | |
15803 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15804 | }; | |
15805 | ||
15806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TaskBarIcon__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15808 | if (!SWIG_IsOK(res1)) { | |
15809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15810 | } | |
15811 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15812 | arg2 = obj1; | |
15813 | arg3 = obj2; | |
15814 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15815 | if (!SWIG_IsOK(ecode4)) { | |
15816 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TaskBarIcon__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15817 | } | |
15818 | arg4 = static_cast< int >(val4); | |
15819 | { | |
15820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15821 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
15825 | resultobj = SWIG_Py_Void(); | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
d55e5bfc RD |
15829 | } |
15830 | ||
15831 | ||
554f62e9 RD |
15832 | SWIGINTERN PyObject *_wrap_TaskBarIcon_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15833 | PyObject *resultobj = 0; | |
15834 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15835 | void *argp1 = 0 ; | |
15836 | int res1 = 0 ; | |
15837 | PyObject *swig_obj[1] ; | |
15838 | ||
15839 | if (!args) SWIG_fail; | |
15840 | swig_obj[0] = args; | |
15841 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15842 | if (!SWIG_IsOK(res1)) { | |
15843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_Destroy" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15844 | } | |
15845 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15846 | { | |
15847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15848 | wxPyTaskBarIcon_Destroy(arg1); | |
15849 | wxPyEndAllowThreads(__tstate); | |
15850 | if (PyErr_Occurred()) SWIG_fail; | |
15851 | } | |
15852 | resultobj = SWIG_Py_Void(); | |
15853 | return resultobj; | |
15854 | fail: | |
15855 | return NULL; | |
d55e5bfc RD |
15856 | } |
15857 | ||
15858 | ||
554f62e9 RD |
15859 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15860 | PyObject *resultobj = 0; | |
15861 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15862 | bool result; | |
15863 | void *argp1 = 0 ; | |
15864 | int res1 = 0 ; | |
15865 | PyObject *swig_obj[1] ; | |
15866 | ||
15867 | if (!args) SWIG_fail; | |
15868 | swig_obj[0] = args; | |
15869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15870 | if (!SWIG_IsOK(res1)) { | |
15871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsOk" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15872 | } | |
15873 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15874 | { | |
15875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15876 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsOk(); | |
15877 | wxPyEndAllowThreads(__tstate); | |
15878 | if (PyErr_Occurred()) SWIG_fail; | |
15879 | } | |
15880 | { | |
15881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15882 | } | |
15883 | return resultobj; | |
15884 | fail: | |
15885 | return NULL; | |
d55e5bfc RD |
15886 | } |
15887 | ||
15888 | ||
554f62e9 RD |
15889 | SWIGINTERN PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15890 | PyObject *resultobj = 0; | |
15891 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15892 | bool result; | |
15893 | void *argp1 = 0 ; | |
15894 | int res1 = 0 ; | |
15895 | PyObject *swig_obj[1] ; | |
15896 | ||
15897 | if (!args) SWIG_fail; | |
15898 | swig_obj[0] = args; | |
15899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15900 | if (!SWIG_IsOK(res1)) { | |
15901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_IsIconInstalled" "', expected argument " "1"" of type '" "wxPyTaskBarIcon const *""'"); | |
15902 | } | |
15903 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15904 | { | |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15906 | result = (bool)((wxPyTaskBarIcon const *)arg1)->IsIconInstalled(); | |
15907 | wxPyEndAllowThreads(__tstate); | |
15908 | if (PyErr_Occurred()) SWIG_fail; | |
15909 | } | |
15910 | { | |
15911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15912 | } | |
15913 | return resultobj; | |
15914 | fail: | |
15915 | return NULL; | |
15916 | } | |
15917 | ||
15918 | ||
15919 | SWIGINTERN PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15920 | PyObject *resultobj = 0; | |
15921 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15922 | wxIcon *arg2 = 0 ; | |
15923 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15924 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15925 | bool result; | |
15926 | void *argp1 = 0 ; | |
15927 | int res1 = 0 ; | |
15928 | void *argp2 = 0 ; | |
15929 | int res2 = 0 ; | |
15930 | bool temp3 = false ; | |
15931 | PyObject * obj0 = 0 ; | |
15932 | PyObject * obj1 = 0 ; | |
15933 | PyObject * obj2 = 0 ; | |
15934 | char * kwnames[] = { | |
15935 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
15936 | }; | |
15937 | ||
15938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15940 | if (!SWIG_IsOK(res1)) { | |
15941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15942 | } | |
15943 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15944 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
15945 | if (!SWIG_IsOK(res2)) { | |
15946 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
15947 | } | |
15948 | if (!argp2) { | |
15949 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TaskBarIcon_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
15950 | } | |
15951 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
15952 | if (obj2) { | |
093d3ff1 | 15953 | { |
554f62e9 RD |
15954 | arg3 = wxString_in_helper(obj2); |
15955 | if (arg3 == NULL) SWIG_fail; | |
15956 | temp3 = true; | |
093d3ff1 | 15957 | } |
554f62e9 RD |
15958 | } |
15959 | { | |
15960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15961 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
15962 | wxPyEndAllowThreads(__tstate); | |
15963 | if (PyErr_Occurred()) SWIG_fail; | |
15964 | } | |
15965 | { | |
15966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15967 | } | |
15968 | { | |
15969 | if (temp3) | |
15970 | delete arg3; | |
15971 | } | |
15972 | return resultobj; | |
15973 | fail: | |
15974 | { | |
15975 | if (temp3) | |
15976 | delete arg3; | |
15977 | } | |
15978 | return NULL; | |
d55e5bfc RD |
15979 | } |
15980 | ||
15981 | ||
554f62e9 RD |
15982 | SWIGINTERN PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15983 | PyObject *resultobj = 0; | |
15984 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
15985 | bool result; | |
15986 | void *argp1 = 0 ; | |
15987 | int res1 = 0 ; | |
15988 | PyObject *swig_obj[1] ; | |
15989 | ||
15990 | if (!args) SWIG_fail; | |
15991 | swig_obj[0] = args; | |
15992 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
15993 | if (!SWIG_IsOK(res1)) { | |
15994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_RemoveIcon" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
15995 | } | |
15996 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
15997 | { | |
15998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15999 | result = (bool)(arg1)->RemoveIcon(); | |
16000 | wxPyEndAllowThreads(__tstate); | |
16001 | if (PyErr_Occurred()) SWIG_fail; | |
16002 | } | |
16003 | { | |
16004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16005 | } | |
16006 | return resultobj; | |
16007 | fail: | |
16008 | return NULL; | |
16009 | } | |
16010 | ||
16011 | ||
16012 | SWIGINTERN PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16013 | PyObject *resultobj = 0; | |
16014 | wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ; | |
16015 | wxMenu *arg2 = (wxMenu *) 0 ; | |
16016 | bool result; | |
16017 | void *argp1 = 0 ; | |
16018 | int res1 = 0 ; | |
16019 | void *argp2 = 0 ; | |
16020 | int res2 = 0 ; | |
16021 | PyObject * obj0 = 0 ; | |
16022 | PyObject * obj1 = 0 ; | |
16023 | char * kwnames[] = { | |
16024 | (char *) "self",(char *) "menu", NULL | |
16025 | }; | |
16026 | ||
16027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
16028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTaskBarIcon, 0 | 0 ); | |
16029 | if (!SWIG_IsOK(res1)) { | |
16030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "1"" of type '" "wxPyTaskBarIcon *""'"); | |
16031 | } | |
16032 | arg1 = reinterpret_cast< wxPyTaskBarIcon * >(argp1); | |
16033 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
16034 | if (!SWIG_IsOK(res2)) { | |
16035 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TaskBarIcon_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
16036 | } | |
16037 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
16038 | { | |
16039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16040 | result = (bool)(arg1)->PopupMenu(arg2); | |
16041 | wxPyEndAllowThreads(__tstate); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
16043 | } | |
16044 | { | |
16045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16046 | } | |
16047 | return resultobj; | |
16048 | fail: | |
16049 | return NULL; | |
d55e5bfc RD |
16050 | } |
16051 | ||
16052 | ||
554f62e9 RD |
16053 | SWIGINTERN PyObject *TaskBarIcon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16054 | PyObject *obj; | |
16055 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16056 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTaskBarIcon, SWIG_NewClientData(obj)); | |
16057 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16058 | } |
16059 | ||
554f62e9 RD |
16060 | SWIGINTERN PyObject *TaskBarIcon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16061 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16062 | } |
16063 | ||
554f62e9 RD |
16064 | SWIGINTERN PyObject *_wrap_new_TaskBarIconEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16065 | PyObject *resultobj = 0; | |
16066 | wxEventType arg1 ; | |
16067 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
16068 | wxTaskBarIconEvent *result = 0 ; | |
16069 | int val1 ; | |
16070 | int ecode1 = 0 ; | |
16071 | void *argp2 = 0 ; | |
16072 | int res2 = 0 ; | |
16073 | PyObject * obj0 = 0 ; | |
16074 | PyObject * obj1 = 0 ; | |
16075 | char * kwnames[] = { | |
16076 | (char *) "evtType",(char *) "tbIcon", NULL | |
16077 | }; | |
16078 | ||
16079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
16080 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16081 | if (!SWIG_IsOK(ecode1)) { | |
16082 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TaskBarIconEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
16083 | } | |
16084 | arg1 = static_cast< wxEventType >(val1); | |
16085 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTaskBarIcon, 0 | 0 ); | |
16086 | if (!SWIG_IsOK(res2)) { | |
16087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TaskBarIconEvent" "', expected argument " "2"" of type '" "wxTaskBarIcon *""'"); | |
16088 | } | |
16089 | arg2 = reinterpret_cast< wxTaskBarIcon * >(argp2); | |
16090 | { | |
16091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16092 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
16096 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTaskBarIconEvent, SWIG_POINTER_NEW | 0 ); | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
d55e5bfc RD |
16100 | } |
16101 | ||
16102 | ||
554f62e9 RD |
16103 | SWIGINTERN PyObject *TaskBarIconEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16104 | PyObject *obj; | |
16105 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16106 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTaskBarIconEvent, SWIG_NewClientData(obj)); | |
16107 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16108 | } |
16109 | ||
554f62e9 RD |
16110 | SWIGINTERN PyObject *TaskBarIconEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16111 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16112 | } |
16113 | ||
554f62e9 RD |
16114 | SWIGINTERN int FileSelectorPromptStr_set(PyObject *) { |
16115 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only."); | |
16116 | return 1; | |
d55e5bfc RD |
16117 | } |
16118 | ||
16119 | ||
554f62e9 RD |
16120 | SWIGINTERN PyObject *FileSelectorPromptStr_get(void) { |
16121 | PyObject *pyobj = 0; | |
16122 | ||
16123 | { | |
16124 | #if wxUSE_UNICODE | |
16125 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16126 | #else | |
16127 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
16128 | #endif | |
16129 | } | |
16130 | return pyobj; | |
d55e5bfc RD |
16131 | } |
16132 | ||
16133 | ||
554f62e9 RD |
16134 | SWIGINTERN int DirSelectorPromptStr_set(PyObject *) { |
16135 | SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only."); | |
16136 | return 1; | |
d55e5bfc RD |
16137 | } |
16138 | ||
16139 | ||
554f62e9 RD |
16140 | SWIGINTERN PyObject *DirSelectorPromptStr_get(void) { |
16141 | PyObject *pyobj = 0; | |
16142 | ||
16143 | { | |
16144 | #if wxUSE_UNICODE | |
16145 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16146 | #else | |
16147 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
16148 | #endif | |
16149 | } | |
16150 | return pyobj; | |
d55e5bfc RD |
16151 | } |
16152 | ||
16153 | ||
554f62e9 RD |
16154 | SWIGINTERN int DirDialogNameStr_set(PyObject *) { |
16155 | SWIG_Error(SWIG_AttributeError,"Variable DirDialogNameStr is read-only."); | |
16156 | return 1; | |
d55e5bfc RD |
16157 | } |
16158 | ||
16159 | ||
554f62e9 RD |
16160 | SWIGINTERN PyObject *DirDialogNameStr_get(void) { |
16161 | PyObject *pyobj = 0; | |
16162 | ||
16163 | { | |
16164 | #if wxUSE_UNICODE | |
16165 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16166 | #else | |
16167 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
16168 | #endif | |
16169 | } | |
16170 | return pyobj; | |
d55e5bfc RD |
16171 | } |
16172 | ||
16173 | ||
554f62e9 RD |
16174 | SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) { |
16175 | SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
16176 | return 1; | |
d55e5bfc RD |
16177 | } |
16178 | ||
16179 | ||
554f62e9 RD |
16180 | SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) { |
16181 | PyObject *pyobj = 0; | |
16182 | ||
16183 | { | |
16184 | #if wxUSE_UNICODE | |
16185 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16186 | #else | |
16187 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
16188 | #endif | |
16189 | } | |
16190 | return pyobj; | |
d55e5bfc RD |
16191 | } |
16192 | ||
16193 | ||
554f62e9 RD |
16194 | SWIGINTERN int GetTextFromUserPromptStr_set(PyObject *) { |
16195 | SWIG_Error(SWIG_AttributeError,"Variable GetTextFromUserPromptStr is read-only."); | |
16196 | return 1; | |
d55e5bfc RD |
16197 | } |
16198 | ||
16199 | ||
554f62e9 RD |
16200 | SWIGINTERN PyObject *GetTextFromUserPromptStr_get(void) { |
16201 | PyObject *pyobj = 0; | |
16202 | ||
16203 | { | |
16204 | #if wxUSE_UNICODE | |
16205 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16206 | #else | |
16207 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
16208 | #endif | |
16209 | } | |
16210 | return pyobj; | |
d55e5bfc RD |
16211 | } |
16212 | ||
16213 | ||
554f62e9 RD |
16214 | SWIGINTERN int MessageBoxCaptionStr_set(PyObject *) { |
16215 | SWIG_Error(SWIG_AttributeError,"Variable MessageBoxCaptionStr is read-only."); | |
16216 | return 1; | |
d55e5bfc RD |
16217 | } |
16218 | ||
16219 | ||
554f62e9 RD |
16220 | SWIGINTERN PyObject *MessageBoxCaptionStr_get(void) { |
16221 | PyObject *pyobj = 0; | |
16222 | ||
16223 | { | |
16224 | #if wxUSE_UNICODE | |
16225 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16226 | #else | |
16227 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
16228 | #endif | |
16229 | } | |
16230 | return pyobj; | |
d55e5bfc RD |
16231 | } |
16232 | ||
16233 | ||
554f62e9 RD |
16234 | SWIGINTERN PyObject *_wrap_new_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16235 | PyObject *resultobj = 0; | |
16236 | wxColourData *result = 0 ; | |
16237 | ||
16238 | if (!SWIG_Python_UnpackTuple(args,"new_ColourData",0,0,0)) SWIG_fail; | |
16239 | { | |
16240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16241 | result = (wxColourData *)new wxColourData(); | |
16242 | wxPyEndAllowThreads(__tstate); | |
16243 | if (PyErr_Occurred()) SWIG_fail; | |
16244 | } | |
16245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, SWIG_POINTER_NEW | 0 ); | |
16246 | return resultobj; | |
16247 | fail: | |
16248 | return NULL; | |
d55e5bfc RD |
16249 | } |
16250 | ||
16251 | ||
554f62e9 RD |
16252 | SWIGINTERN PyObject *_wrap_delete_ColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16253 | PyObject *resultobj = 0; | |
16254 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16255 | void *argp1 = 0 ; | |
16256 | int res1 = 0 ; | |
16257 | PyObject *swig_obj[1] ; | |
16258 | ||
16259 | if (!args) SWIG_fail; | |
16260 | swig_obj[0] = args; | |
16261 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, SWIG_POINTER_DISOWN | 0 ); | |
16262 | if (!SWIG_IsOK(res1)) { | |
16263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourData" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16264 | } | |
16265 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16266 | { | |
16267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16268 | delete arg1; | |
d55e5bfc | 16269 | |
554f62e9 RD |
16270 | wxPyEndAllowThreads(__tstate); |
16271 | if (PyErr_Occurred()) SWIG_fail; | |
16272 | } | |
16273 | resultobj = SWIG_Py_Void(); | |
16274 | return resultobj; | |
16275 | fail: | |
16276 | return NULL; | |
d55e5bfc RD |
16277 | } |
16278 | ||
16279 | ||
554f62e9 RD |
16280 | SWIGINTERN PyObject *_wrap_ColourData_GetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16281 | PyObject *resultobj = 0; | |
16282 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16283 | bool result; | |
16284 | void *argp1 = 0 ; | |
16285 | int res1 = 0 ; | |
16286 | PyObject *swig_obj[1] ; | |
16287 | ||
16288 | if (!args) SWIG_fail; | |
16289 | swig_obj[0] = args; | |
16290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16291 | if (!SWIG_IsOK(res1)) { | |
16292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16293 | } | |
16294 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16295 | { | |
16296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16297 | result = (bool)(arg1)->GetChooseFull(); | |
16298 | wxPyEndAllowThreads(__tstate); | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | { | |
16302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16303 | } | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
d55e5bfc RD |
16307 | } |
16308 | ||
16309 | ||
554f62e9 RD |
16310 | SWIGINTERN PyObject *_wrap_ColourData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16311 | PyObject *resultobj = 0; | |
16312 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16313 | wxColour result; | |
16314 | void *argp1 = 0 ; | |
16315 | int res1 = 0 ; | |
16316 | PyObject *swig_obj[1] ; | |
16317 | ||
16318 | if (!args) SWIG_fail; | |
16319 | swig_obj[0] = args; | |
16320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16321 | if (!SWIG_IsOK(res1)) { | |
16322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16323 | } | |
16324 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | result = (arg1)->GetColour(); | |
16328 | wxPyEndAllowThreads(__tstate); | |
16329 | if (PyErr_Occurred()) SWIG_fail; | |
16330 | } | |
16331 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16332 | return resultobj; | |
16333 | fail: | |
16334 | return NULL; | |
16335 | } | |
16336 | ||
16337 | ||
16338 | SWIGINTERN PyObject *_wrap_ColourData_GetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16339 | PyObject *resultobj = 0; | |
16340 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16341 | int arg2 ; | |
16342 | wxColour result; | |
16343 | void *argp1 = 0 ; | |
16344 | int res1 = 0 ; | |
16345 | int val2 ; | |
16346 | int ecode2 = 0 ; | |
16347 | PyObject * obj0 = 0 ; | |
16348 | PyObject * obj1 = 0 ; | |
16349 | char * kwnames[] = { | |
16350 | (char *) "self",(char *) "i", NULL | |
16351 | }; | |
16352 | ||
16353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16355 | if (!SWIG_IsOK(res1)) { | |
16356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_GetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16357 | } | |
16358 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16360 | if (!SWIG_IsOK(ecode2)) { | |
16361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_GetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16362 | } | |
16363 | arg2 = static_cast< int >(val2); | |
16364 | { | |
16365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16366 | result = (arg1)->GetCustomColour(arg2); | |
16367 | wxPyEndAllowThreads(__tstate); | |
16368 | if (PyErr_Occurred()) SWIG_fail; | |
16369 | } | |
16370 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16371 | return resultobj; | |
16372 | fail: | |
16373 | return NULL; | |
16374 | } | |
16375 | ||
16376 | ||
16377 | SWIGINTERN PyObject *_wrap_ColourData_SetChooseFull(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16378 | PyObject *resultobj = 0; | |
16379 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16380 | int arg2 ; | |
16381 | void *argp1 = 0 ; | |
16382 | int res1 = 0 ; | |
16383 | int val2 ; | |
16384 | int ecode2 = 0 ; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | PyObject * obj1 = 0 ; | |
16387 | char * kwnames[] = { | |
16388 | (char *) "self",(char *) "flag", NULL | |
16389 | }; | |
16390 | ||
16391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) SWIG_fail; | |
16392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16393 | if (!SWIG_IsOK(res1)) { | |
16394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetChooseFull" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16395 | } | |
16396 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16397 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16398 | if (!SWIG_IsOK(ecode2)) { | |
16399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetChooseFull" "', expected argument " "2"" of type '" "int""'"); | |
16400 | } | |
16401 | arg2 = static_cast< int >(val2); | |
16402 | { | |
16403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16404 | (arg1)->SetChooseFull(arg2); | |
16405 | wxPyEndAllowThreads(__tstate); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | } | |
16408 | resultobj = SWIG_Py_Void(); | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
16415 | SWIGINTERN PyObject *_wrap_ColourData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj = 0; | |
16417 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16418 | wxColour *arg2 = 0 ; | |
16419 | void *argp1 = 0 ; | |
16420 | int res1 = 0 ; | |
16421 | wxColour temp2 ; | |
16422 | PyObject * obj0 = 0 ; | |
16423 | PyObject * obj1 = 0 ; | |
16424 | char * kwnames[] = { | |
16425 | (char *) "self",(char *) "colour", NULL | |
16426 | }; | |
16427 | ||
16428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
16429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16430 | if (!SWIG_IsOK(res1)) { | |
16431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16432 | } | |
16433 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16434 | { | |
16435 | arg2 = &temp2; | |
16436 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16437 | } | |
16438 | { | |
16439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16440 | (arg1)->SetColour((wxColour const &)*arg2); | |
16441 | wxPyEndAllowThreads(__tstate); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
16444 | resultobj = SWIG_Py_Void(); | |
16445 | return resultobj; | |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
16451 | SWIGINTERN PyObject *_wrap_ColourData_SetCustomColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16452 | PyObject *resultobj = 0; | |
16453 | wxColourData *arg1 = (wxColourData *) 0 ; | |
16454 | int arg2 ; | |
16455 | wxColour *arg3 = 0 ; | |
16456 | void *argp1 = 0 ; | |
16457 | int res1 = 0 ; | |
16458 | int val2 ; | |
16459 | int ecode2 = 0 ; | |
16460 | wxColour temp3 ; | |
16461 | PyObject * obj0 = 0 ; | |
16462 | PyObject * obj1 = 0 ; | |
16463 | PyObject * obj2 = 0 ; | |
16464 | char * kwnames[] = { | |
16465 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
16466 | }; | |
16467 | ||
16468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16470 | if (!SWIG_IsOK(res1)) { | |
16471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourData_SetCustomColour" "', expected argument " "1"" of type '" "wxColourData *""'"); | |
16472 | } | |
16473 | arg1 = reinterpret_cast< wxColourData * >(argp1); | |
16474 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16475 | if (!SWIG_IsOK(ecode2)) { | |
16476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ColourData_SetCustomColour" "', expected argument " "2"" of type '" "int""'"); | |
16477 | } | |
16478 | arg2 = static_cast< int >(val2); | |
16479 | { | |
16480 | arg3 = &temp3; | |
16481 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16482 | } | |
16483 | { | |
16484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16485 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
16486 | wxPyEndAllowThreads(__tstate); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
16489 | resultobj = SWIG_Py_Void(); | |
16490 | return resultobj; | |
16491 | fail: | |
16492 | return NULL; | |
d55e5bfc RD |
16493 | } |
16494 | ||
16495 | ||
554f62e9 RD |
16496 | SWIGINTERN PyObject *ColourData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16497 | PyObject *obj; | |
16498 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16499 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourData, SWIG_NewClientData(obj)); | |
16500 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16501 | } |
16502 | ||
554f62e9 RD |
16503 | SWIGINTERN PyObject *ColourData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16504 | return SWIG_Python_InitShadowInstance(args); | |
16505 | } | |
d55e5bfc | 16506 | |
554f62e9 RD |
16507 | SWIGINTERN PyObject *_wrap_new_ColourDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16508 | PyObject *resultobj = 0; | |
16509 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16510 | wxColourData *arg2 = (wxColourData *) NULL ; | |
16511 | wxColourDialog *result = 0 ; | |
16512 | void *argp1 = 0 ; | |
16513 | int res1 = 0 ; | |
16514 | void *argp2 = 0 ; | |
16515 | int res2 = 0 ; | |
16516 | PyObject * obj0 = 0 ; | |
16517 | PyObject * obj1 = 0 ; | |
16518 | char * kwnames[] = { | |
16519 | (char *) "parent",(char *) "data", NULL | |
16520 | }; | |
16521 | ||
16522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16524 | if (!SWIG_IsOK(res1)) { | |
16525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16526 | } | |
16527 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16528 | if (obj1) { | |
16529 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16530 | if (!SWIG_IsOK(res2)) { | |
16531 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ColourDialog" "', expected argument " "2"" of type '" "wxColourData *""'"); | |
d55e5bfc | 16532 | } |
554f62e9 RD |
16533 | arg2 = reinterpret_cast< wxColourData * >(argp2); |
16534 | } | |
16535 | { | |
16536 | if (!wxPyCheckForApp()) SWIG_fail; | |
16537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16538 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDialog, SWIG_POINTER_NEW | 0 ); | |
16543 | return resultobj; | |
16544 | fail: | |
16545 | return NULL; | |
16546 | } | |
16547 | ||
16548 | ||
16549 | SWIGINTERN PyObject *_wrap_ColourDialog_GetColourData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16550 | PyObject *resultobj = 0; | |
16551 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
16552 | wxColourData *result = 0 ; | |
16553 | void *argp1 = 0 ; | |
16554 | int res1 = 0 ; | |
16555 | PyObject *swig_obj[1] ; | |
16556 | ||
16557 | if (!args) SWIG_fail; | |
16558 | swig_obj[0] = args; | |
16559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDialog, 0 | 0 ); | |
16560 | if (!SWIG_IsOK(res1)) { | |
16561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDialog_GetColourData" "', expected argument " "1"" of type '" "wxColourDialog *""'"); | |
16562 | } | |
16563 | arg1 = reinterpret_cast< wxColourDialog * >(argp1); | |
16564 | { | |
16565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16566 | { | |
16567 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
16568 | result = (wxColourData *) &_result_ref; | |
d55e5bfc | 16569 | } |
554f62e9 RD |
16570 | wxPyEndAllowThreads(__tstate); |
16571 | if (PyErr_Occurred()) SWIG_fail; | |
16572 | } | |
16573 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourData, 0 | 0 ); | |
16574 | return resultobj; | |
16575 | fail: | |
16576 | return NULL; | |
16577 | } | |
16578 | ||
16579 | ||
16580 | SWIGINTERN PyObject *ColourDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16581 | PyObject *obj; | |
16582 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16583 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDialog, SWIG_NewClientData(obj)); | |
16584 | return SWIG_Py_Void(); | |
16585 | } | |
16586 | ||
16587 | SWIGINTERN PyObject *ColourDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16588 | return SWIG_Python_InitShadowInstance(args); | |
16589 | } | |
16590 | ||
16591 | SWIGINTERN PyObject *_wrap_GetColourFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16592 | PyObject *resultobj = 0; | |
16593 | wxWindow *arg1 = (wxWindow *) (wxWindow *) NULL ; | |
16594 | wxColour const &arg2_defvalue = wxNullColour ; | |
16595 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
16596 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16597 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16598 | wxColour result; | |
16599 | void *argp1 = 0 ; | |
16600 | int res1 = 0 ; | |
16601 | wxColour temp2 ; | |
16602 | bool temp3 = false ; | |
16603 | PyObject * obj0 = 0 ; | |
16604 | PyObject * obj1 = 0 ; | |
16605 | PyObject * obj2 = 0 ; | |
16606 | char * kwnames[] = { | |
16607 | (char *) "parent",(char *) "colInit",(char *) "caption", NULL | |
16608 | }; | |
16609 | ||
16610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetColourFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16611 | if (obj0) { | |
16612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16613 | if (!SWIG_IsOK(res1)) { | |
16614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetColourFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
d55e5bfc | 16615 | } |
554f62e9 RD |
16616 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
16617 | } | |
16618 | if (obj1) { | |
d55e5bfc | 16619 | { |
554f62e9 RD |
16620 | arg2 = &temp2; |
16621 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 16622 | } |
554f62e9 RD |
16623 | } |
16624 | if (obj2) { | |
d55e5bfc | 16625 | { |
554f62e9 RD |
16626 | arg3 = wxString_in_helper(obj2); |
16627 | if (arg3 == NULL) SWIG_fail; | |
16628 | temp3 = true; | |
d55e5bfc | 16629 | } |
554f62e9 RD |
16630 | } |
16631 | { | |
16632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16633 | result = wxGetColourFromUser(arg1,(wxColour const &)*arg2,(wxString const &)*arg3); | |
16634 | wxPyEndAllowThreads(__tstate); | |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
16636 | } | |
16637 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
16638 | { | |
16639 | if (temp3) | |
16640 | delete arg3; | |
16641 | } | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | { | |
16645 | if (temp3) | |
16646 | delete arg3; | |
16647 | } | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | SWIGINTERN PyObject *_wrap_new_DirDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj = 0; | |
16654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16655 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
16656 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16657 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16658 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16659 | long arg4 = (long) 0 ; | |
16660 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
16661 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16662 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16663 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16664 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
16665 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16666 | wxDirDialog *result = 0 ; | |
16667 | void *argp1 = 0 ; | |
16668 | int res1 = 0 ; | |
16669 | bool temp2 = false ; | |
16670 | bool temp3 = false ; | |
16671 | long val4 ; | |
16672 | int ecode4 = 0 ; | |
16673 | wxPoint temp5 ; | |
16674 | wxSize temp6 ; | |
16675 | bool temp7 = false ; | |
16676 | PyObject * obj0 = 0 ; | |
16677 | PyObject * obj1 = 0 ; | |
16678 | PyObject * obj2 = 0 ; | |
16679 | PyObject * obj3 = 0 ; | |
16680 | PyObject * obj4 = 0 ; | |
16681 | PyObject * obj5 = 0 ; | |
16682 | PyObject * obj6 = 0 ; | |
16683 | char * kwnames[] = { | |
16684 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
16685 | }; | |
16686 | ||
16687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
16688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
16689 | if (!SWIG_IsOK(res1)) { | |
16690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
16691 | } | |
16692 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
16693 | if (obj1) { | |
d55e5bfc | 16694 | { |
554f62e9 RD |
16695 | arg2 = wxString_in_helper(obj1); |
16696 | if (arg2 == NULL) SWIG_fail; | |
16697 | temp2 = true; | |
d55e5bfc | 16698 | } |
554f62e9 RD |
16699 | } |
16700 | if (obj2) { | |
d55e5bfc | 16701 | { |
554f62e9 RD |
16702 | arg3 = wxString_in_helper(obj2); |
16703 | if (arg3 == NULL) SWIG_fail; | |
16704 | temp3 = true; | |
d55e5bfc | 16705 | } |
554f62e9 RD |
16706 | } |
16707 | if (obj3) { | |
16708 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
16709 | if (!SWIG_IsOK(ecode4)) { | |
16710 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DirDialog" "', expected argument " "4"" of type '" "long""'"); | |
16711 | } | |
16712 | arg4 = static_cast< long >(val4); | |
16713 | } | |
16714 | if (obj4) { | |
093d3ff1 | 16715 | { |
554f62e9 RD |
16716 | arg5 = &temp5; |
16717 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 16718 | } |
554f62e9 RD |
16719 | } |
16720 | if (obj5) { | |
d55e5bfc | 16721 | { |
554f62e9 RD |
16722 | arg6 = &temp6; |
16723 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 16724 | } |
554f62e9 RD |
16725 | } |
16726 | if (obj6) { | |
d55e5bfc | 16727 | { |
554f62e9 RD |
16728 | arg7 = wxString_in_helper(obj6); |
16729 | if (arg7 == NULL) SWIG_fail; | |
16730 | temp7 = true; | |
093d3ff1 | 16731 | } |
554f62e9 RD |
16732 | } |
16733 | { | |
16734 | if (!wxPyCheckForApp()) SWIG_fail; | |
16735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16736 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
16740 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirDialog, SWIG_POINTER_NEW | 0 ); | |
16741 | { | |
16742 | if (temp2) | |
16743 | delete arg2; | |
16744 | } | |
16745 | { | |
16746 | if (temp3) | |
16747 | delete arg3; | |
16748 | } | |
16749 | { | |
16750 | if (temp7) | |
16751 | delete arg7; | |
16752 | } | |
16753 | return resultobj; | |
16754 | fail: | |
16755 | { | |
16756 | if (temp2) | |
16757 | delete arg2; | |
16758 | } | |
16759 | { | |
16760 | if (temp3) | |
16761 | delete arg3; | |
16762 | } | |
16763 | { | |
16764 | if (temp7) | |
16765 | delete arg7; | |
16766 | } | |
16767 | return NULL; | |
d55e5bfc RD |
16768 | } |
16769 | ||
16770 | ||
554f62e9 RD |
16771 | SWIGINTERN PyObject *_wrap_DirDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16772 | PyObject *resultobj = 0; | |
16773 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16774 | wxString result; | |
16775 | void *argp1 = 0 ; | |
16776 | int res1 = 0 ; | |
16777 | PyObject *swig_obj[1] ; | |
16778 | ||
16779 | if (!args) SWIG_fail; | |
16780 | swig_obj[0] = args; | |
16781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16782 | if (!SWIG_IsOK(res1)) { | |
16783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16784 | } | |
16785 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16786 | { | |
16787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16788 | result = (arg1)->GetPath(); | |
16789 | wxPyEndAllowThreads(__tstate); | |
16790 | if (PyErr_Occurred()) SWIG_fail; | |
16791 | } | |
16792 | { | |
16793 | #if wxUSE_UNICODE | |
16794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16795 | #else | |
16796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16797 | #endif | |
16798 | } | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
d55e5bfc RD |
16802 | } |
16803 | ||
16804 | ||
554f62e9 RD |
16805 | SWIGINTERN PyObject *_wrap_DirDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16806 | PyObject *resultobj = 0; | |
16807 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16808 | wxString result; | |
16809 | void *argp1 = 0 ; | |
16810 | int res1 = 0 ; | |
16811 | PyObject *swig_obj[1] ; | |
16812 | ||
16813 | if (!args) SWIG_fail; | |
16814 | swig_obj[0] = args; | |
16815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16816 | if (!SWIG_IsOK(res1)) { | |
16817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16818 | } | |
16819 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16820 | { | |
16821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16822 | result = (arg1)->GetMessage(); | |
16823 | wxPyEndAllowThreads(__tstate); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
16826 | { | |
16827 | #if wxUSE_UNICODE | |
16828 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16829 | #else | |
16830 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16831 | #endif | |
16832 | } | |
16833 | return resultobj; | |
16834 | fail: | |
16835 | return NULL; | |
d55e5bfc RD |
16836 | } |
16837 | ||
16838 | ||
554f62e9 RD |
16839 | SWIGINTERN PyObject *_wrap_DirDialog_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16840 | PyObject *resultobj = 0; | |
16841 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16842 | long result; | |
16843 | void *argp1 = 0 ; | |
16844 | int res1 = 0 ; | |
16845 | PyObject *swig_obj[1] ; | |
16846 | ||
16847 | if (!args) SWIG_fail; | |
16848 | swig_obj[0] = args; | |
16849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16850 | if (!SWIG_IsOK(res1)) { | |
16851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_GetStyle" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16852 | } | |
16853 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16854 | { | |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16856 | result = (long)(arg1)->GetStyle(); | |
16857 | wxPyEndAllowThreads(__tstate); | |
16858 | if (PyErr_Occurred()) SWIG_fail; | |
16859 | } | |
16860 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
16861 | return resultobj; | |
16862 | fail: | |
16863 | return NULL; | |
16864 | } | |
16865 | ||
16866 | ||
16867 | SWIGINTERN PyObject *_wrap_DirDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16868 | PyObject *resultobj = 0; | |
16869 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16870 | wxString *arg2 = 0 ; | |
16871 | void *argp1 = 0 ; | |
16872 | int res1 = 0 ; | |
16873 | bool temp2 = false ; | |
16874 | PyObject * obj0 = 0 ; | |
16875 | PyObject * obj1 = 0 ; | |
16876 | char * kwnames[] = { | |
16877 | (char *) "self",(char *) "message", NULL | |
16878 | }; | |
16879 | ||
16880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
16881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16882 | if (!SWIG_IsOK(res1)) { | |
16883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetMessage" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16884 | } | |
16885 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16886 | { | |
16887 | arg2 = wxString_in_helper(obj1); | |
16888 | if (arg2 == NULL) SWIG_fail; | |
16889 | temp2 = true; | |
16890 | } | |
16891 | { | |
16892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16893 | (arg1)->SetMessage((wxString const &)*arg2); | |
16894 | wxPyEndAllowThreads(__tstate); | |
16895 | if (PyErr_Occurred()) SWIG_fail; | |
16896 | } | |
16897 | resultobj = SWIG_Py_Void(); | |
16898 | { | |
16899 | if (temp2) | |
16900 | delete arg2; | |
16901 | } | |
16902 | return resultobj; | |
16903 | fail: | |
16904 | { | |
16905 | if (temp2) | |
16906 | delete arg2; | |
16907 | } | |
16908 | return NULL; | |
d55e5bfc RD |
16909 | } |
16910 | ||
16911 | ||
554f62e9 RD |
16912 | SWIGINTERN PyObject *_wrap_DirDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16913 | PyObject *resultobj = 0; | |
16914 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
16915 | wxString *arg2 = 0 ; | |
16916 | void *argp1 = 0 ; | |
16917 | int res1 = 0 ; | |
16918 | bool temp2 = false ; | |
16919 | PyObject * obj0 = 0 ; | |
16920 | PyObject * obj1 = 0 ; | |
16921 | char * kwnames[] = { | |
16922 | (char *) "self",(char *) "path", NULL | |
16923 | }; | |
16924 | ||
16925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
16926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirDialog, 0 | 0 ); | |
16927 | if (!SWIG_IsOK(res1)) { | |
16928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirDialog_SetPath" "', expected argument " "1"" of type '" "wxDirDialog *""'"); | |
16929 | } | |
16930 | arg1 = reinterpret_cast< wxDirDialog * >(argp1); | |
16931 | { | |
16932 | arg2 = wxString_in_helper(obj1); | |
16933 | if (arg2 == NULL) SWIG_fail; | |
16934 | temp2 = true; | |
16935 | } | |
16936 | { | |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | (arg1)->SetPath((wxString const &)*arg2); | |
16939 | wxPyEndAllowThreads(__tstate); | |
16940 | if (PyErr_Occurred()) SWIG_fail; | |
16941 | } | |
16942 | resultobj = SWIG_Py_Void(); | |
16943 | { | |
16944 | if (temp2) | |
16945 | delete arg2; | |
16946 | } | |
16947 | return resultobj; | |
16948 | fail: | |
16949 | { | |
16950 | if (temp2) | |
16951 | delete arg2; | |
16952 | } | |
16953 | return NULL; | |
16954 | } | |
16955 | ||
16956 | ||
16957 | SWIGINTERN PyObject *DirDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16958 | PyObject *obj; | |
16959 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16960 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDirDialog, SWIG_NewClientData(obj)); | |
16961 | return SWIG_Py_Void(); | |
16962 | } | |
16963 | ||
16964 | SWIGINTERN PyObject *DirDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16965 | return SWIG_Python_InitShadowInstance(args); | |
16966 | } | |
16967 | ||
16968 | SWIGINTERN PyObject *_wrap_new_FileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16969 | PyObject *resultobj = 0; | |
16970 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16971 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
16972 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16973 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16974 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16975 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16976 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16977 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
16978 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
16979 | long arg6 = (long) 0 ; | |
16980 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
16981 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
16982 | wxFileDialog *result = 0 ; | |
16983 | void *argp1 = 0 ; | |
16984 | int res1 = 0 ; | |
16985 | bool temp2 = false ; | |
16986 | bool temp3 = false ; | |
16987 | bool temp4 = false ; | |
16988 | bool temp5 = false ; | |
16989 | long val6 ; | |
16990 | int ecode6 = 0 ; | |
16991 | wxPoint temp7 ; | |
16992 | PyObject * obj0 = 0 ; | |
16993 | PyObject * obj1 = 0 ; | |
16994 | PyObject * obj2 = 0 ; | |
16995 | PyObject * obj3 = 0 ; | |
16996 | PyObject * obj4 = 0 ; | |
16997 | PyObject * obj5 = 0 ; | |
16998 | PyObject * obj6 = 0 ; | |
16999 | char * kwnames[] = { | |
17000 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
17001 | }; | |
17002 | ||
17003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17005 | if (!SWIG_IsOK(res1)) { | |
17006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FileDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17007 | } | |
17008 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17009 | if (obj1) { | |
d55e5bfc | 17010 | { |
554f62e9 RD |
17011 | arg2 = wxString_in_helper(obj1); |
17012 | if (arg2 == NULL) SWIG_fail; | |
17013 | temp2 = true; | |
d55e5bfc | 17014 | } |
554f62e9 RD |
17015 | } |
17016 | if (obj2) { | |
d55e5bfc | 17017 | { |
554f62e9 RD |
17018 | arg3 = wxString_in_helper(obj2); |
17019 | if (arg3 == NULL) SWIG_fail; | |
17020 | temp3 = true; | |
d55e5bfc | 17021 | } |
554f62e9 RD |
17022 | } |
17023 | if (obj3) { | |
17024 | { | |
17025 | arg4 = wxString_in_helper(obj3); | |
17026 | if (arg4 == NULL) SWIG_fail; | |
17027 | temp4 = true; | |
d55e5bfc | 17028 | } |
554f62e9 RD |
17029 | } |
17030 | if (obj4) { | |
d55e5bfc | 17031 | { |
554f62e9 RD |
17032 | arg5 = wxString_in_helper(obj4); |
17033 | if (arg5 == NULL) SWIG_fail; | |
17034 | temp5 = true; | |
d55e5bfc | 17035 | } |
554f62e9 RD |
17036 | } |
17037 | if (obj5) { | |
17038 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
17039 | if (!SWIG_IsOK(ecode6)) { | |
17040 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FileDialog" "', expected argument " "6"" of type '" "long""'"); | |
17041 | } | |
17042 | arg6 = static_cast< long >(val6); | |
17043 | } | |
17044 | if (obj6) { | |
d55e5bfc | 17045 | { |
554f62e9 RD |
17046 | arg7 = &temp7; |
17047 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
d55e5bfc | 17048 | } |
554f62e9 RD |
17049 | } |
17050 | { | |
17051 | if (!wxPyCheckForApp()) SWIG_fail; | |
17052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17053 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
17057 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDialog, SWIG_POINTER_NEW | 0 ); | |
17058 | { | |
17059 | if (temp2) | |
17060 | delete arg2; | |
17061 | } | |
17062 | { | |
17063 | if (temp3) | |
17064 | delete arg3; | |
17065 | } | |
17066 | { | |
17067 | if (temp4) | |
17068 | delete arg4; | |
17069 | } | |
17070 | { | |
17071 | if (temp5) | |
17072 | delete arg5; | |
17073 | } | |
17074 | return resultobj; | |
17075 | fail: | |
17076 | { | |
17077 | if (temp2) | |
17078 | delete arg2; | |
17079 | } | |
17080 | { | |
17081 | if (temp3) | |
17082 | delete arg3; | |
17083 | } | |
17084 | { | |
17085 | if (temp4) | |
17086 | delete arg4; | |
17087 | } | |
17088 | { | |
17089 | if (temp5) | |
17090 | delete arg5; | |
17091 | } | |
17092 | return NULL; | |
d55e5bfc RD |
17093 | } |
17094 | ||
17095 | ||
554f62e9 RD |
17096 | SWIGINTERN PyObject *_wrap_FileDialog_SetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17097 | PyObject *resultobj = 0; | |
17098 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17099 | wxString *arg2 = 0 ; | |
17100 | void *argp1 = 0 ; | |
17101 | int res1 = 0 ; | |
17102 | bool temp2 = false ; | |
17103 | PyObject * obj0 = 0 ; | |
17104 | PyObject * obj1 = 0 ; | |
17105 | char * kwnames[] = { | |
17106 | (char *) "self",(char *) "message", NULL | |
17107 | }; | |
17108 | ||
17109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) SWIG_fail; | |
17110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17111 | if (!SWIG_IsOK(res1)) { | |
17112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetMessage" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17113 | } | |
17114 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17115 | { | |
17116 | arg2 = wxString_in_helper(obj1); | |
17117 | if (arg2 == NULL) SWIG_fail; | |
17118 | temp2 = true; | |
17119 | } | |
17120 | { | |
17121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17122 | (arg1)->SetMessage((wxString const &)*arg2); | |
17123 | wxPyEndAllowThreads(__tstate); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
17126 | resultobj = SWIG_Py_Void(); | |
17127 | { | |
17128 | if (temp2) | |
17129 | delete arg2; | |
17130 | } | |
17131 | return resultobj; | |
17132 | fail: | |
17133 | { | |
17134 | if (temp2) | |
17135 | delete arg2; | |
17136 | } | |
17137 | return NULL; | |
d55e5bfc RD |
17138 | } |
17139 | ||
17140 | ||
554f62e9 RD |
17141 | SWIGINTERN PyObject *_wrap_FileDialog_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17142 | PyObject *resultobj = 0; | |
17143 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17144 | wxString *arg2 = 0 ; | |
17145 | void *argp1 = 0 ; | |
17146 | int res1 = 0 ; | |
17147 | bool temp2 = false ; | |
17148 | PyObject * obj0 = 0 ; | |
17149 | PyObject * obj1 = 0 ; | |
17150 | char * kwnames[] = { | |
17151 | (char *) "self",(char *) "path", NULL | |
17152 | }; | |
17153 | ||
17154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
17155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17156 | if (!SWIG_IsOK(res1)) { | |
17157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetPath" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17158 | } | |
17159 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17160 | { | |
17161 | arg2 = wxString_in_helper(obj1); | |
17162 | if (arg2 == NULL) SWIG_fail; | |
17163 | temp2 = true; | |
17164 | } | |
17165 | { | |
17166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17167 | (arg1)->SetPath((wxString const &)*arg2); | |
17168 | wxPyEndAllowThreads(__tstate); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
17171 | resultobj = SWIG_Py_Void(); | |
17172 | { | |
17173 | if (temp2) | |
17174 | delete arg2; | |
17175 | } | |
17176 | return resultobj; | |
17177 | fail: | |
17178 | { | |
17179 | if (temp2) | |
17180 | delete arg2; | |
17181 | } | |
17182 | return NULL; | |
d55e5bfc RD |
17183 | } |
17184 | ||
17185 | ||
554f62e9 RD |
17186 | SWIGINTERN PyObject *_wrap_FileDialog_SetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17187 | PyObject *resultobj = 0; | |
17188 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17189 | wxString *arg2 = 0 ; | |
17190 | void *argp1 = 0 ; | |
17191 | int res1 = 0 ; | |
17192 | bool temp2 = false ; | |
17193 | PyObject * obj0 = 0 ; | |
17194 | PyObject * obj1 = 0 ; | |
17195 | char * kwnames[] = { | |
17196 | (char *) "self",(char *) "dir", NULL | |
17197 | }; | |
17198 | ||
17199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) SWIG_fail; | |
17200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17201 | if (!SWIG_IsOK(res1)) { | |
17202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetDirectory" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17203 | } | |
17204 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17205 | { | |
17206 | arg2 = wxString_in_helper(obj1); | |
17207 | if (arg2 == NULL) SWIG_fail; | |
17208 | temp2 = true; | |
17209 | } | |
17210 | { | |
17211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17212 | (arg1)->SetDirectory((wxString const &)*arg2); | |
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | resultobj = SWIG_Py_Void(); | |
17217 | { | |
17218 | if (temp2) | |
17219 | delete arg2; | |
17220 | } | |
17221 | return resultobj; | |
17222 | fail: | |
17223 | { | |
17224 | if (temp2) | |
17225 | delete arg2; | |
17226 | } | |
17227 | return NULL; | |
d55e5bfc RD |
17228 | } |
17229 | ||
17230 | ||
554f62e9 RD |
17231 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17232 | PyObject *resultobj = 0; | |
17233 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17234 | wxString *arg2 = 0 ; | |
17235 | void *argp1 = 0 ; | |
17236 | int res1 = 0 ; | |
17237 | bool temp2 = false ; | |
17238 | PyObject * obj0 = 0 ; | |
17239 | PyObject * obj1 = 0 ; | |
17240 | char * kwnames[] = { | |
17241 | (char *) "self",(char *) "name", NULL | |
17242 | }; | |
17243 | ||
17244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
17245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17246 | if (!SWIG_IsOK(res1)) { | |
17247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilename" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17248 | } | |
17249 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17250 | { | |
17251 | arg2 = wxString_in_helper(obj1); | |
17252 | if (arg2 == NULL) SWIG_fail; | |
17253 | temp2 = true; | |
17254 | } | |
17255 | { | |
17256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17257 | (arg1)->SetFilename((wxString const &)*arg2); | |
17258 | wxPyEndAllowThreads(__tstate); | |
17259 | if (PyErr_Occurred()) SWIG_fail; | |
17260 | } | |
17261 | resultobj = SWIG_Py_Void(); | |
17262 | { | |
17263 | if (temp2) | |
17264 | delete arg2; | |
17265 | } | |
17266 | return resultobj; | |
17267 | fail: | |
17268 | { | |
17269 | if (temp2) | |
17270 | delete arg2; | |
17271 | } | |
17272 | return NULL; | |
d55e5bfc RD |
17273 | } |
17274 | ||
17275 | ||
554f62e9 RD |
17276 | SWIGINTERN PyObject *_wrap_FileDialog_SetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17277 | PyObject *resultobj = 0; | |
17278 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17279 | wxString *arg2 = 0 ; | |
17280 | void *argp1 = 0 ; | |
17281 | int res1 = 0 ; | |
17282 | bool temp2 = false ; | |
17283 | PyObject * obj0 = 0 ; | |
17284 | PyObject * obj1 = 0 ; | |
17285 | char * kwnames[] = { | |
17286 | (char *) "self",(char *) "wildCard", NULL | |
17287 | }; | |
17288 | ||
17289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) SWIG_fail; | |
17290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17291 | if (!SWIG_IsOK(res1)) { | |
17292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetWildcard" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17293 | } | |
17294 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17295 | { | |
17296 | arg2 = wxString_in_helper(obj1); | |
17297 | if (arg2 == NULL) SWIG_fail; | |
17298 | temp2 = true; | |
17299 | } | |
17300 | { | |
17301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17302 | (arg1)->SetWildcard((wxString const &)*arg2); | |
17303 | wxPyEndAllowThreads(__tstate); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
17305 | } | |
17306 | resultobj = SWIG_Py_Void(); | |
17307 | { | |
17308 | if (temp2) | |
17309 | delete arg2; | |
17310 | } | |
17311 | return resultobj; | |
17312 | fail: | |
17313 | { | |
17314 | if (temp2) | |
17315 | delete arg2; | |
17316 | } | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
17321 | SWIGINTERN PyObject *_wrap_FileDialog_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17322 | PyObject *resultobj = 0; | |
17323 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17324 | long arg2 ; | |
17325 | void *argp1 = 0 ; | |
17326 | int res1 = 0 ; | |
17327 | long val2 ; | |
17328 | int ecode2 = 0 ; | |
17329 | PyObject * obj0 = 0 ; | |
17330 | PyObject * obj1 = 0 ; | |
17331 | char * kwnames[] = { | |
17332 | (char *) "self",(char *) "style", NULL | |
17333 | }; | |
17334 | ||
17335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
17336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17337 | if (!SWIG_IsOK(res1)) { | |
17338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetStyle" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17339 | } | |
17340 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17341 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
17342 | if (!SWIG_IsOK(ecode2)) { | |
17343 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetStyle" "', expected argument " "2"" of type '" "long""'"); | |
17344 | } | |
17345 | arg2 = static_cast< long >(val2); | |
17346 | { | |
17347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17348 | (arg1)->SetStyle(arg2); | |
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | resultobj = SWIG_Py_Void(); | |
17353 | return resultobj; | |
17354 | fail: | |
17355 | return NULL; | |
17356 | } | |
17357 | ||
17358 | ||
17359 | SWIGINTERN PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17360 | PyObject *resultobj = 0; | |
17361 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17362 | int arg2 ; | |
17363 | void *argp1 = 0 ; | |
17364 | int res1 = 0 ; | |
17365 | int val2 ; | |
17366 | int ecode2 = 0 ; | |
17367 | PyObject * obj0 = 0 ; | |
17368 | PyObject * obj1 = 0 ; | |
17369 | char * kwnames[] = { | |
17370 | (char *) "self",(char *) "filterIndex", NULL | |
17371 | }; | |
17372 | ||
17373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
17374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17375 | if (!SWIG_IsOK(res1)) { | |
17376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17377 | } | |
17378 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17379 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17380 | if (!SWIG_IsOK(ecode2)) { | |
17381 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FileDialog_SetFilterIndex" "', expected argument " "2"" of type '" "int""'"); | |
17382 | } | |
17383 | arg2 = static_cast< int >(val2); | |
17384 | { | |
17385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17386 | (arg1)->SetFilterIndex(arg2); | |
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | resultobj = SWIG_Py_Void(); | |
17391 | return resultobj; | |
17392 | fail: | |
17393 | return NULL; | |
d55e5bfc RD |
17394 | } |
17395 | ||
17396 | ||
554f62e9 RD |
17397 | SWIGINTERN PyObject *_wrap_FileDialog_GetMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17398 | PyObject *resultobj = 0; | |
17399 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17400 | wxString result; | |
17401 | void *argp1 = 0 ; | |
17402 | int res1 = 0 ; | |
17403 | PyObject *swig_obj[1] ; | |
17404 | ||
17405 | if (!args) SWIG_fail; | |
17406 | swig_obj[0] = args; | |
17407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17408 | if (!SWIG_IsOK(res1)) { | |
17409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetMessage" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17410 | } | |
17411 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17412 | { | |
17413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17414 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
17415 | wxPyEndAllowThreads(__tstate); | |
17416 | if (PyErr_Occurred()) SWIG_fail; | |
17417 | } | |
17418 | { | |
17419 | #if wxUSE_UNICODE | |
17420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17421 | #else | |
17422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17423 | #endif | |
17424 | } | |
17425 | return resultobj; | |
17426 | fail: | |
17427 | return NULL; | |
d55e5bfc RD |
17428 | } |
17429 | ||
17430 | ||
554f62e9 RD |
17431 | SWIGINTERN PyObject *_wrap_FileDialog_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17432 | PyObject *resultobj = 0; | |
17433 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17434 | wxString result; | |
17435 | void *argp1 = 0 ; | |
17436 | int res1 = 0 ; | |
17437 | PyObject *swig_obj[1] ; | |
17438 | ||
17439 | if (!args) SWIG_fail; | |
17440 | swig_obj[0] = args; | |
17441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17442 | if (!SWIG_IsOK(res1)) { | |
17443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPath" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17444 | } | |
17445 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17446 | { | |
17447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17448 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
17449 | wxPyEndAllowThreads(__tstate); | |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
17452 | { | |
17453 | #if wxUSE_UNICODE | |
17454 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17455 | #else | |
17456 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17457 | #endif | |
17458 | } | |
17459 | return resultobj; | |
17460 | fail: | |
17461 | return NULL; | |
d55e5bfc RD |
17462 | } |
17463 | ||
17464 | ||
554f62e9 RD |
17465 | SWIGINTERN PyObject *_wrap_FileDialog_GetDirectory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17466 | PyObject *resultobj = 0; | |
17467 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17468 | wxString result; | |
17469 | void *argp1 = 0 ; | |
17470 | int res1 = 0 ; | |
17471 | PyObject *swig_obj[1] ; | |
17472 | ||
17473 | if (!args) SWIG_fail; | |
17474 | swig_obj[0] = args; | |
17475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17476 | if (!SWIG_IsOK(res1)) { | |
17477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetDirectory" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17478 | } | |
17479 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17480 | { | |
17481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17482 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
17483 | wxPyEndAllowThreads(__tstate); | |
17484 | if (PyErr_Occurred()) SWIG_fail; | |
17485 | } | |
17486 | { | |
17487 | #if wxUSE_UNICODE | |
17488 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17489 | #else | |
17490 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17491 | #endif | |
17492 | } | |
17493 | return resultobj; | |
17494 | fail: | |
17495 | return NULL; | |
d55e5bfc RD |
17496 | } |
17497 | ||
17498 | ||
554f62e9 RD |
17499 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17500 | PyObject *resultobj = 0; | |
17501 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17502 | wxString result; | |
17503 | void *argp1 = 0 ; | |
17504 | int res1 = 0 ; | |
17505 | PyObject *swig_obj[1] ; | |
17506 | ||
17507 | if (!args) SWIG_fail; | |
17508 | swig_obj[0] = args; | |
17509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17510 | if (!SWIG_IsOK(res1)) { | |
17511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilename" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17512 | } | |
17513 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17514 | { | |
17515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17516 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
17517 | wxPyEndAllowThreads(__tstate); | |
17518 | if (PyErr_Occurred()) SWIG_fail; | |
17519 | } | |
17520 | { | |
17521 | #if wxUSE_UNICODE | |
17522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17523 | #else | |
17524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17525 | #endif | |
17526 | } | |
17527 | return resultobj; | |
17528 | fail: | |
17529 | return NULL; | |
d55e5bfc RD |
17530 | } |
17531 | ||
17532 | ||
554f62e9 RD |
17533 | SWIGINTERN PyObject *_wrap_FileDialog_GetWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17534 | PyObject *resultobj = 0; | |
17535 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17536 | wxString result; | |
17537 | void *argp1 = 0 ; | |
17538 | int res1 = 0 ; | |
17539 | PyObject *swig_obj[1] ; | |
17540 | ||
17541 | if (!args) SWIG_fail; | |
17542 | swig_obj[0] = args; | |
17543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17544 | if (!SWIG_IsOK(res1)) { | |
17545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetWildcard" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17546 | } | |
17547 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17548 | { | |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | { | |
17555 | #if wxUSE_UNICODE | |
17556 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17557 | #else | |
17558 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17559 | #endif | |
17560 | } | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
d55e5bfc RD |
17564 | } |
17565 | ||
17566 | ||
554f62e9 RD |
17567 | SWIGINTERN PyObject *_wrap_FileDialog_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17568 | PyObject *resultobj = 0; | |
17569 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17570 | long result; | |
17571 | void *argp1 = 0 ; | |
17572 | int res1 = 0 ; | |
17573 | PyObject *swig_obj[1] ; | |
17574 | ||
17575 | if (!args) SWIG_fail; | |
17576 | swig_obj[0] = args; | |
17577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17578 | if (!SWIG_IsOK(res1)) { | |
17579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetStyle" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17580 | } | |
17581 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17582 | { | |
17583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17584 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
17585 | wxPyEndAllowThreads(__tstate); | |
17586 | if (PyErr_Occurred()) SWIG_fail; | |
17587 | } | |
17588 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
17589 | return resultobj; | |
17590 | fail: | |
17591 | return NULL; | |
d55e5bfc RD |
17592 | } |
17593 | ||
17594 | ||
554f62e9 RD |
17595 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17596 | PyObject *resultobj = 0; | |
17597 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17598 | int result; | |
17599 | void *argp1 = 0 ; | |
17600 | int res1 = 0 ; | |
17601 | PyObject *swig_obj[1] ; | |
17602 | ||
17603 | if (!args) SWIG_fail; | |
17604 | swig_obj[0] = args; | |
17605 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17606 | if (!SWIG_IsOK(res1)) { | |
17607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilterIndex" "', expected argument " "1"" of type '" "wxFileDialog const *""'"); | |
17608 | } | |
17609 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17610 | { | |
17611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17612 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
17617 | return resultobj; | |
17618 | fail: | |
17619 | return NULL; | |
d55e5bfc RD |
17620 | } |
17621 | ||
17622 | ||
554f62e9 RD |
17623 | SWIGINTERN PyObject *_wrap_FileDialog_GetFilenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17624 | PyObject *resultobj = 0; | |
17625 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17626 | PyObject *result = 0 ; | |
17627 | void *argp1 = 0 ; | |
17628 | int res1 = 0 ; | |
17629 | PyObject *swig_obj[1] ; | |
17630 | ||
17631 | if (!args) SWIG_fail; | |
17632 | swig_obj[0] = args; | |
17633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17634 | if (!SWIG_IsOK(res1)) { | |
17635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetFilenames" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17636 | } | |
17637 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17638 | { | |
17639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17640 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
17641 | wxPyEndAllowThreads(__tstate); | |
17642 | if (PyErr_Occurred()) SWIG_fail; | |
17643 | } | |
17644 | resultobj = result; | |
17645 | return resultobj; | |
17646 | fail: | |
17647 | return NULL; | |
d55e5bfc RD |
17648 | } |
17649 | ||
17650 | ||
554f62e9 RD |
17651 | SWIGINTERN PyObject *_wrap_FileDialog_GetPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17652 | PyObject *resultobj = 0; | |
17653 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
17654 | PyObject *result = 0 ; | |
17655 | void *argp1 = 0 ; | |
17656 | int res1 = 0 ; | |
17657 | PyObject *swig_obj[1] ; | |
17658 | ||
17659 | if (!args) SWIG_fail; | |
17660 | swig_obj[0] = args; | |
17661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDialog, 0 | 0 ); | |
17662 | if (!SWIG_IsOK(res1)) { | |
17663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDialog_GetPaths" "', expected argument " "1"" of type '" "wxFileDialog *""'"); | |
17664 | } | |
17665 | arg1 = reinterpret_cast< wxFileDialog * >(argp1); | |
17666 | { | |
17667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17668 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
17669 | wxPyEndAllowThreads(__tstate); | |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
17671 | } | |
17672 | resultobj = result; | |
17673 | return resultobj; | |
17674 | fail: | |
17675 | return NULL; | |
17676 | } | |
17677 | ||
17678 | ||
17679 | SWIGINTERN PyObject *FileDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17680 | PyObject *obj; | |
17681 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17682 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDialog, SWIG_NewClientData(obj)); | |
17683 | return SWIG_Py_Void(); | |
17684 | } | |
17685 | ||
17686 | SWIGINTERN PyObject *FileDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17687 | return SWIG_Python_InitShadowInstance(args); | |
17688 | } | |
17689 | ||
17690 | SWIGINTERN PyObject *_wrap_new_MultiChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17691 | PyObject *resultobj = 0; | |
17692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17693 | wxString *arg2 = 0 ; | |
17694 | wxString *arg3 = 0 ; | |
17695 | int arg4 = (int) 0 ; | |
17696 | wxString *arg5 = (wxString *) NULL ; | |
17697 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17698 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17699 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17700 | wxMultiChoiceDialog *result = 0 ; | |
17701 | void *argp1 = 0 ; | |
17702 | int res1 = 0 ; | |
17703 | bool temp2 = false ; | |
17704 | bool temp3 = false ; | |
17705 | long val6 ; | |
17706 | int ecode6 = 0 ; | |
17707 | wxPoint temp7 ; | |
17708 | PyObject * obj0 = 0 ; | |
17709 | PyObject * obj1 = 0 ; | |
17710 | PyObject * obj2 = 0 ; | |
17711 | PyObject * obj3 = 0 ; | |
17712 | PyObject * obj4 = 0 ; | |
17713 | PyObject * obj5 = 0 ; | |
17714 | char * kwnames[] = { | |
17715 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17716 | }; | |
17717 | ||
17718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17720 | if (!SWIG_IsOK(res1)) { | |
17721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MultiChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17722 | } | |
17723 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17724 | { | |
17725 | arg2 = wxString_in_helper(obj1); | |
17726 | if (arg2 == NULL) SWIG_fail; | |
17727 | temp2 = true; | |
17728 | } | |
17729 | { | |
17730 | arg3 = wxString_in_helper(obj2); | |
17731 | if (arg3 == NULL) SWIG_fail; | |
17732 | temp3 = true; | |
17733 | } | |
17734 | if (obj3) { | |
d55e5bfc | 17735 | { |
554f62e9 RD |
17736 | arg4 = PyList_Size(obj3); |
17737 | arg5 = wxString_LIST_helper(obj3); | |
17738 | if (arg5 == NULL) SWIG_fail; | |
d55e5bfc | 17739 | } |
554f62e9 RD |
17740 | } |
17741 | if (obj4) { | |
17742 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17743 | if (!SWIG_IsOK(ecode6)) { | |
17744 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MultiChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17745 | } | |
17746 | arg6 = static_cast< long >(val6); | |
17747 | } | |
17748 | if (obj5) { | |
d55e5bfc | 17749 | { |
554f62e9 RD |
17750 | arg7 = &temp7; |
17751 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
d55e5bfc | 17752 | } |
554f62e9 RD |
17753 | } |
17754 | { | |
17755 | if (!wxPyCheckForApp()) SWIG_fail; | |
17756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17757 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMultiChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17762 | { | |
17763 | if (temp2) | |
17764 | delete arg2; | |
17765 | } | |
17766 | { | |
17767 | if (temp3) | |
17768 | delete arg3; | |
17769 | } | |
17770 | { | |
17771 | if (arg5) delete [] arg5; | |
17772 | } | |
17773 | return resultobj; | |
17774 | fail: | |
17775 | { | |
17776 | if (temp2) | |
17777 | delete arg2; | |
17778 | } | |
17779 | { | |
17780 | if (temp3) | |
17781 | delete arg3; | |
17782 | } | |
17783 | { | |
17784 | if (arg5) delete [] arg5; | |
17785 | } | |
17786 | return NULL; | |
d55e5bfc RD |
17787 | } |
17788 | ||
17789 | ||
554f62e9 RD |
17790 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17791 | PyObject *resultobj = 0; | |
17792 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17793 | wxArrayInt *arg2 = 0 ; | |
17794 | void *argp1 = 0 ; | |
17795 | int res1 = 0 ; | |
17796 | bool temp2 = false ; | |
17797 | PyObject * obj0 = 0 ; | |
17798 | PyObject * obj1 = 0 ; | |
17799 | char * kwnames[] = { | |
17800 | (char *) "self",(char *) "selections", NULL | |
17801 | }; | |
17802 | ||
17803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) SWIG_fail; | |
17804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17805 | if (!SWIG_IsOK(res1)) { | |
17806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_SetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17807 | } | |
17808 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17809 | { | |
17810 | if (! PySequence_Check(obj1)) { | |
17811 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
17812 | SWIG_fail; | |
17813 | } | |
17814 | arg2 = new wxArrayInt; | |
17815 | temp2 = true; | |
17816 | int i, len=PySequence_Length(obj1); | |
17817 | for (i=0; i<len; i++) { | |
17818 | PyObject* item = PySequence_GetItem(obj1, i); | |
17819 | PyObject* number = PyNumber_Int(item); | |
17820 | arg2->Add(PyInt_AS_LONG(number)); | |
17821 | Py_DECREF(item); | |
17822 | Py_DECREF(number); | |
093d3ff1 | 17823 | } |
554f62e9 RD |
17824 | } |
17825 | { | |
17826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17827 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
17828 | wxPyEndAllowThreads(__tstate); | |
17829 | if (PyErr_Occurred()) SWIG_fail; | |
17830 | } | |
17831 | resultobj = SWIG_Py_Void(); | |
17832 | { | |
17833 | if (temp2) delete arg2; | |
17834 | } | |
17835 | return resultobj; | |
17836 | fail: | |
17837 | { | |
17838 | if (temp2) delete arg2; | |
17839 | } | |
17840 | return NULL; | |
d55e5bfc RD |
17841 | } |
17842 | ||
17843 | ||
554f62e9 RD |
17844 | SWIGINTERN PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17845 | PyObject *resultobj = 0; | |
17846 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
17847 | PyObject *result = 0 ; | |
17848 | void *argp1 = 0 ; | |
17849 | int res1 = 0 ; | |
17850 | PyObject *swig_obj[1] ; | |
17851 | ||
17852 | if (!args) SWIG_fail; | |
17853 | swig_obj[0] = args; | |
17854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMultiChoiceDialog, 0 | 0 ); | |
17855 | if (!SWIG_IsOK(res1)) { | |
17856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MultiChoiceDialog_GetSelections" "', expected argument " "1"" of type '" "wxMultiChoiceDialog *""'"); | |
17857 | } | |
17858 | arg1 = reinterpret_cast< wxMultiChoiceDialog * >(argp1); | |
17859 | { | |
17860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17861 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
17862 | wxPyEndAllowThreads(__tstate); | |
17863 | if (PyErr_Occurred()) SWIG_fail; | |
17864 | } | |
17865 | resultobj = result; | |
17866 | return resultobj; | |
17867 | fail: | |
17868 | return NULL; | |
17869 | } | |
17870 | ||
17871 | ||
17872 | SWIGINTERN PyObject *MultiChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17873 | PyObject *obj; | |
17874 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17875 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMultiChoiceDialog, SWIG_NewClientData(obj)); | |
17876 | return SWIG_Py_Void(); | |
17877 | } | |
17878 | ||
17879 | SWIGINTERN PyObject *MultiChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17880 | return SWIG_Python_InitShadowInstance(args); | |
17881 | } | |
17882 | ||
17883 | SWIGINTERN PyObject *_wrap_new_SingleChoiceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17884 | PyObject *resultobj = 0; | |
17885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17886 | wxString *arg2 = 0 ; | |
17887 | wxString *arg3 = 0 ; | |
17888 | int arg4 ; | |
17889 | wxString *arg5 = (wxString *) 0 ; | |
17890 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
17891 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
17892 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
17893 | wxSingleChoiceDialog *result = 0 ; | |
17894 | void *argp1 = 0 ; | |
17895 | int res1 = 0 ; | |
17896 | bool temp2 = false ; | |
17897 | bool temp3 = false ; | |
17898 | long val6 ; | |
17899 | int ecode6 = 0 ; | |
17900 | wxPoint temp7 ; | |
17901 | PyObject * obj0 = 0 ; | |
17902 | PyObject * obj1 = 0 ; | |
17903 | PyObject * obj2 = 0 ; | |
17904 | PyObject * obj3 = 0 ; | |
17905 | PyObject * obj4 = 0 ; | |
17906 | PyObject * obj5 = 0 ; | |
17907 | char * kwnames[] = { | |
17908 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
17909 | }; | |
17910 | ||
17911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
17912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
17913 | if (!SWIG_IsOK(res1)) { | |
17914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SingleChoiceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
17915 | } | |
17916 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
17917 | { | |
17918 | arg2 = wxString_in_helper(obj1); | |
17919 | if (arg2 == NULL) SWIG_fail; | |
17920 | temp2 = true; | |
17921 | } | |
17922 | { | |
17923 | arg3 = wxString_in_helper(obj2); | |
17924 | if (arg3 == NULL) SWIG_fail; | |
17925 | temp3 = true; | |
17926 | } | |
17927 | { | |
17928 | arg4 = PyList_Size(obj3); | |
17929 | arg5 = wxString_LIST_helper(obj3); | |
17930 | if (arg5 == NULL) SWIG_fail; | |
17931 | } | |
17932 | if (obj4) { | |
17933 | ecode6 = SWIG_AsVal_long(obj4, &val6); | |
17934 | if (!SWIG_IsOK(ecode6)) { | |
17935 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SingleChoiceDialog" "', expected argument " "6"" of type '" "long""'"); | |
17936 | } | |
17937 | arg6 = static_cast< long >(val6); | |
17938 | } | |
17939 | if (obj5) { | |
093d3ff1 | 17940 | { |
554f62e9 RD |
17941 | arg7 = &temp7; |
17942 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
093d3ff1 | 17943 | } |
554f62e9 RD |
17944 | } |
17945 | { | |
17946 | if (!wxPyCheckForApp()) SWIG_fail; | |
17947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17948 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
17949 | wxPyEndAllowThreads(__tstate); | |
17950 | if (PyErr_Occurred()) SWIG_fail; | |
17951 | } | |
17952 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSingleChoiceDialog, SWIG_POINTER_NEW | 0 ); | |
17953 | { | |
17954 | if (temp2) | |
17955 | delete arg2; | |
17956 | } | |
17957 | { | |
17958 | if (temp3) | |
17959 | delete arg3; | |
17960 | } | |
17961 | { | |
17962 | if (arg5) delete [] arg5; | |
17963 | } | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | { | |
17967 | if (temp2) | |
17968 | delete arg2; | |
17969 | } | |
17970 | { | |
17971 | if (temp3) | |
17972 | delete arg3; | |
17973 | } | |
17974 | { | |
17975 | if (arg5) delete [] arg5; | |
17976 | } | |
17977 | return NULL; | |
d55e5bfc RD |
17978 | } |
17979 | ||
17980 | ||
554f62e9 RD |
17981 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17982 | PyObject *resultobj = 0; | |
17983 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
17984 | int result; | |
17985 | void *argp1 = 0 ; | |
17986 | int res1 = 0 ; | |
17987 | PyObject *swig_obj[1] ; | |
17988 | ||
17989 | if (!args) SWIG_fail; | |
17990 | swig_obj[0] = args; | |
17991 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
17992 | if (!SWIG_IsOK(res1)) { | |
17993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
17994 | } | |
17995 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
17996 | { | |
17997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17998 | result = (int)(arg1)->GetSelection(); | |
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
d55e5bfc RD |
18006 | } |
18007 | ||
18008 | ||
554f62e9 RD |
18009 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18010 | PyObject *resultobj = 0; | |
18011 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18012 | wxString result; | |
18013 | void *argp1 = 0 ; | |
18014 | int res1 = 0 ; | |
18015 | PyObject *swig_obj[1] ; | |
18016 | ||
18017 | if (!args) SWIG_fail; | |
18018 | swig_obj[0] = args; | |
18019 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18020 | if (!SWIG_IsOK(res1)) { | |
18021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_GetStringSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18022 | } | |
18023 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18024 | { | |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | result = (arg1)->GetStringSelection(); | |
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | { | |
18031 | #if wxUSE_UNICODE | |
18032 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18033 | #else | |
18034 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18035 | #endif | |
18036 | } | |
18037 | return resultobj; | |
18038 | fail: | |
18039 | return NULL; | |
18040 | } | |
18041 | ||
18042 | ||
18043 | SWIGINTERN PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18044 | PyObject *resultobj = 0; | |
18045 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
18046 | int arg2 ; | |
18047 | void *argp1 = 0 ; | |
18048 | int res1 = 0 ; | |
18049 | int val2 ; | |
18050 | int ecode2 = 0 ; | |
18051 | PyObject * obj0 = 0 ; | |
18052 | PyObject * obj1 = 0 ; | |
18053 | char * kwnames[] = { | |
18054 | (char *) "self",(char *) "sel", NULL | |
18055 | }; | |
18056 | ||
18057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
18058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSingleChoiceDialog, 0 | 0 ); | |
18059 | if (!SWIG_IsOK(res1)) { | |
18060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "1"" of type '" "wxSingleChoiceDialog *""'"); | |
18061 | } | |
18062 | arg1 = reinterpret_cast< wxSingleChoiceDialog * >(argp1); | |
18063 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18064 | if (!SWIG_IsOK(ecode2)) { | |
18065 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SingleChoiceDialog_SetSelection" "', expected argument " "2"" of type '" "int""'"); | |
18066 | } | |
18067 | arg2 = static_cast< int >(val2); | |
18068 | { | |
18069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18070 | (arg1)->SetSelection(arg2); | |
18071 | wxPyEndAllowThreads(__tstate); | |
18072 | if (PyErr_Occurred()) SWIG_fail; | |
18073 | } | |
18074 | resultobj = SWIG_Py_Void(); | |
18075 | return resultobj; | |
18076 | fail: | |
18077 | return NULL; | |
18078 | } | |
18079 | ||
18080 | ||
18081 | SWIGINTERN PyObject *SingleChoiceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18082 | PyObject *obj; | |
18083 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18084 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSingleChoiceDialog, SWIG_NewClientData(obj)); | |
18085 | return SWIG_Py_Void(); | |
18086 | } | |
18087 | ||
18088 | SWIGINTERN PyObject *SingleChoiceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
18089 | return SWIG_Python_InitShadowInstance(args); | |
18090 | } | |
18091 | ||
18092 | SWIGINTERN PyObject *_wrap_new_TextEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18093 | PyObject *resultobj = 0; | |
18094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18095 | wxString *arg2 = 0 ; | |
18096 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
18097 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18098 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18099 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18100 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18101 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18102 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18103 | wxTextEntryDialog *result = 0 ; | |
18104 | void *argp1 = 0 ; | |
18105 | int res1 = 0 ; | |
18106 | bool temp2 = false ; | |
18107 | bool temp3 = false ; | |
18108 | bool temp4 = false ; | |
18109 | long val5 ; | |
18110 | int ecode5 = 0 ; | |
18111 | wxPoint temp6 ; | |
18112 | PyObject * obj0 = 0 ; | |
18113 | PyObject * obj1 = 0 ; | |
18114 | PyObject * obj2 = 0 ; | |
18115 | PyObject * obj3 = 0 ; | |
18116 | PyObject * obj4 = 0 ; | |
18117 | PyObject * obj5 = 0 ; | |
18118 | char * kwnames[] = { | |
18119 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
18120 | }; | |
18121 | ||
18122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18124 | if (!SWIG_IsOK(res1)) { | |
18125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18126 | } | |
18127 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18128 | { | |
18129 | arg2 = wxString_in_helper(obj1); | |
18130 | if (arg2 == NULL) SWIG_fail; | |
18131 | temp2 = true; | |
18132 | } | |
18133 | if (obj2) { | |
093d3ff1 | 18134 | { |
554f62e9 RD |
18135 | arg3 = wxString_in_helper(obj2); |
18136 | if (arg3 == NULL) SWIG_fail; | |
18137 | temp3 = true; | |
093d3ff1 | 18138 | } |
554f62e9 RD |
18139 | } |
18140 | if (obj3) { | |
d55e5bfc | 18141 | { |
554f62e9 RD |
18142 | arg4 = wxString_in_helper(obj3); |
18143 | if (arg4 == NULL) SWIG_fail; | |
18144 | temp4 = true; | |
d55e5bfc | 18145 | } |
554f62e9 RD |
18146 | } |
18147 | if (obj4) { | |
18148 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18149 | if (!SWIG_IsOK(ecode5)) { | |
18150 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TextEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18151 | } | |
18152 | arg5 = static_cast< long >(val5); | |
18153 | } | |
18154 | if (obj5) { | |
d55e5bfc | 18155 | { |
554f62e9 RD |
18156 | arg6 = &temp6; |
18157 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 18158 | } |
554f62e9 RD |
18159 | } |
18160 | { | |
18161 | if (!wxPyCheckForApp()) SWIG_fail; | |
18162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18163 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18164 | wxPyEndAllowThreads(__tstate); | |
18165 | if (PyErr_Occurred()) SWIG_fail; | |
18166 | } | |
18167 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18168 | { | |
18169 | if (temp2) | |
18170 | delete arg2; | |
18171 | } | |
18172 | { | |
18173 | if (temp3) | |
18174 | delete arg3; | |
18175 | } | |
18176 | { | |
18177 | if (temp4) | |
18178 | delete arg4; | |
18179 | } | |
18180 | return resultobj; | |
18181 | fail: | |
18182 | { | |
18183 | if (temp2) | |
18184 | delete arg2; | |
18185 | } | |
18186 | { | |
18187 | if (temp3) | |
18188 | delete arg3; | |
18189 | } | |
18190 | { | |
18191 | if (temp4) | |
18192 | delete arg4; | |
18193 | } | |
18194 | return NULL; | |
d55e5bfc RD |
18195 | } |
18196 | ||
18197 | ||
554f62e9 RD |
18198 | SWIGINTERN PyObject *_wrap_TextEntryDialog_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18199 | PyObject *resultobj = 0; | |
18200 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18201 | wxString result; | |
18202 | void *argp1 = 0 ; | |
18203 | int res1 = 0 ; | |
18204 | PyObject *swig_obj[1] ; | |
18205 | ||
18206 | if (!args) SWIG_fail; | |
18207 | swig_obj[0] = args; | |
18208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18209 | if (!SWIG_IsOK(res1)) { | |
18210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_GetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18211 | } | |
18212 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18213 | { | |
18214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18215 | result = (arg1)->GetValue(); | |
18216 | wxPyEndAllowThreads(__tstate); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | } | |
18219 | { | |
18220 | #if wxUSE_UNICODE | |
18221 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18222 | #else | |
18223 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18224 | #endif | |
18225 | } | |
18226 | return resultobj; | |
18227 | fail: | |
18228 | return NULL; | |
18229 | } | |
18230 | ||
18231 | ||
18232 | SWIGINTERN PyObject *_wrap_TextEntryDialog_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18233 | PyObject *resultobj = 0; | |
18234 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
18235 | wxString *arg2 = 0 ; | |
18236 | void *argp1 = 0 ; | |
18237 | int res1 = 0 ; | |
18238 | bool temp2 = false ; | |
18239 | PyObject * obj0 = 0 ; | |
18240 | PyObject * obj1 = 0 ; | |
18241 | char * kwnames[] = { | |
18242 | (char *) "self",(char *) "value", NULL | |
18243 | }; | |
18244 | ||
18245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
18246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextEntryDialog, 0 | 0 ); | |
18247 | if (!SWIG_IsOK(res1)) { | |
18248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextEntryDialog_SetValue" "', expected argument " "1"" of type '" "wxTextEntryDialog *""'"); | |
18249 | } | |
18250 | arg1 = reinterpret_cast< wxTextEntryDialog * >(argp1); | |
18251 | { | |
18252 | arg2 = wxString_in_helper(obj1); | |
18253 | if (arg2 == NULL) SWIG_fail; | |
18254 | temp2 = true; | |
18255 | } | |
18256 | { | |
18257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18258 | (arg1)->SetValue((wxString const &)*arg2); | |
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
18262 | resultobj = SWIG_Py_Void(); | |
18263 | { | |
18264 | if (temp2) | |
18265 | delete arg2; | |
18266 | } | |
18267 | return resultobj; | |
18268 | fail: | |
18269 | { | |
18270 | if (temp2) | |
18271 | delete arg2; | |
18272 | } | |
18273 | return NULL; | |
d55e5bfc RD |
18274 | } |
18275 | ||
18276 | ||
554f62e9 RD |
18277 | SWIGINTERN PyObject *TextEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18278 | PyObject *obj; | |
18279 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18280 | SWIG_TypeNewClientData(SWIGTYPE_p_wxTextEntryDialog, SWIG_NewClientData(obj)); | |
18281 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18282 | } |
18283 | ||
554f62e9 RD |
18284 | SWIGINTERN PyObject *TextEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18285 | return SWIG_Python_InitShadowInstance(args); | |
18286 | } | |
d55e5bfc | 18287 | |
554f62e9 RD |
18288 | SWIGINTERN int GetPasswordFromUserPromptStr_set(PyObject *) { |
18289 | SWIG_Error(SWIG_AttributeError,"Variable GetPasswordFromUserPromptStr is read-only."); | |
18290 | return 1; | |
d55e5bfc RD |
18291 | } |
18292 | ||
18293 | ||
554f62e9 RD |
18294 | SWIGINTERN PyObject *GetPasswordFromUserPromptStr_get(void) { |
18295 | PyObject *pyobj = 0; | |
18296 | ||
18297 | { | |
18298 | #if wxUSE_UNICODE | |
18299 | pyobj = PyUnicode_FromWideChar((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18300 | #else | |
18301 | pyobj = PyString_FromStringAndSize((&wxPyGetPasswordFromUserPromptStr)->c_str(), (&wxPyGetPasswordFromUserPromptStr)->Len()); | |
18302 | #endif | |
18303 | } | |
18304 | return pyobj; | |
18305 | } | |
18306 | ||
18307 | ||
18308 | SWIGINTERN PyObject *_wrap_new_PasswordEntryDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18309 | PyObject *resultobj = 0; | |
18310 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18311 | wxString *arg2 = 0 ; | |
18312 | wxString const &arg3_defvalue = wxPyGetPasswordFromUserPromptStr ; | |
18313 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18314 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
18315 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
18316 | long arg5 = (long) wxTextEntryDialogStyle ; | |
18317 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
18318 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
18319 | wxPasswordEntryDialog *result = 0 ; | |
18320 | void *argp1 = 0 ; | |
18321 | int res1 = 0 ; | |
18322 | bool temp2 = false ; | |
18323 | bool temp3 = false ; | |
18324 | bool temp4 = false ; | |
18325 | long val5 ; | |
18326 | int ecode5 = 0 ; | |
18327 | wxPoint temp6 ; | |
18328 | PyObject * obj0 = 0 ; | |
18329 | PyObject * obj1 = 0 ; | |
18330 | PyObject * obj2 = 0 ; | |
18331 | PyObject * obj3 = 0 ; | |
18332 | PyObject * obj4 = 0 ; | |
18333 | PyObject * obj5 = 0 ; | |
18334 | char * kwnames[] = { | |
18335 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "value",(char *) "style",(char *) "pos", NULL | |
18336 | }; | |
18337 | ||
18338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PasswordEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18340 | if (!SWIG_IsOK(res1)) { | |
18341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PasswordEntryDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18342 | } | |
18343 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18344 | { | |
18345 | arg2 = wxString_in_helper(obj1); | |
18346 | if (arg2 == NULL) SWIG_fail; | |
18347 | temp2 = true; | |
18348 | } | |
18349 | if (obj2) { | |
d55e5bfc | 18350 | { |
554f62e9 RD |
18351 | arg3 = wxString_in_helper(obj2); |
18352 | if (arg3 == NULL) SWIG_fail; | |
18353 | temp3 = true; | |
d55e5bfc | 18354 | } |
554f62e9 RD |
18355 | } |
18356 | if (obj3) { | |
d55e5bfc | 18357 | { |
554f62e9 RD |
18358 | arg4 = wxString_in_helper(obj3); |
18359 | if (arg4 == NULL) SWIG_fail; | |
18360 | temp4 = true; | |
d55e5bfc | 18361 | } |
554f62e9 RD |
18362 | } |
18363 | if (obj4) { | |
18364 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
18365 | if (!SWIG_IsOK(ecode5)) { | |
18366 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PasswordEntryDialog" "', expected argument " "5"" of type '" "long""'"); | |
18367 | } | |
18368 | arg5 = static_cast< long >(val5); | |
18369 | } | |
18370 | if (obj5) { | |
093d3ff1 | 18371 | { |
554f62e9 RD |
18372 | arg6 = &temp6; |
18373 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 18374 | } |
554f62e9 RD |
18375 | } |
18376 | { | |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | result = (wxPasswordEntryDialog *)new wxPasswordEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPasswordEntryDialog, SWIG_POINTER_NEW | 0 ); | |
18383 | { | |
18384 | if (temp2) | |
18385 | delete arg2; | |
18386 | } | |
18387 | { | |
18388 | if (temp3) | |
18389 | delete arg3; | |
18390 | } | |
18391 | { | |
18392 | if (temp4) | |
18393 | delete arg4; | |
18394 | } | |
18395 | return resultobj; | |
18396 | fail: | |
18397 | { | |
18398 | if (temp2) | |
18399 | delete arg2; | |
18400 | } | |
18401 | { | |
18402 | if (temp3) | |
18403 | delete arg3; | |
18404 | } | |
18405 | { | |
18406 | if (temp4) | |
18407 | delete arg4; | |
18408 | } | |
18409 | return NULL; | |
d55e5bfc RD |
18410 | } |
18411 | ||
18412 | ||
554f62e9 RD |
18413 | SWIGINTERN PyObject *PasswordEntryDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18414 | PyObject *obj; | |
18415 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18416 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPasswordEntryDialog, SWIG_NewClientData(obj)); | |
18417 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18418 | } |
18419 | ||
554f62e9 RD |
18420 | SWIGINTERN PyObject *PasswordEntryDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18421 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
18422 | } |
18423 | ||
554f62e9 RD |
18424 | SWIGINTERN PyObject *_wrap_new_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18425 | PyObject *resultobj = 0; | |
18426 | wxFontData *result = 0 ; | |
18427 | ||
18428 | if (!SWIG_Python_UnpackTuple(args,"new_FontData",0,0,0)) SWIG_fail; | |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | result = (wxFontData *)new wxFontData(); | |
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, SWIG_POINTER_NEW | 0 ); | |
18436 | return resultobj; | |
18437 | fail: | |
18438 | return NULL; | |
d55e5bfc RD |
18439 | } |
18440 | ||
18441 | ||
554f62e9 RD |
18442 | SWIGINTERN PyObject *_wrap_delete_FontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18443 | PyObject *resultobj = 0; | |
18444 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18445 | void *argp1 = 0 ; | |
18446 | int res1 = 0 ; | |
18447 | PyObject *swig_obj[1] ; | |
18448 | ||
18449 | if (!args) SWIG_fail; | |
18450 | swig_obj[0] = args; | |
18451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, SWIG_POINTER_DISOWN | 0 ); | |
18452 | if (!SWIG_IsOK(res1)) { | |
18453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontData" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18454 | } | |
18455 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18456 | { | |
18457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18458 | delete arg1; | |
d55e5bfc | 18459 | |
554f62e9 RD |
18460 | wxPyEndAllowThreads(__tstate); |
18461 | if (PyErr_Occurred()) SWIG_fail; | |
18462 | } | |
18463 | resultobj = SWIG_Py_Void(); | |
18464 | return resultobj; | |
18465 | fail: | |
18466 | return NULL; | |
18467 | } | |
18468 | ||
18469 | ||
18470 | SWIGINTERN PyObject *_wrap_FontData_EnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18471 | PyObject *resultobj = 0; | |
18472 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18473 | bool arg2 ; | |
18474 | void *argp1 = 0 ; | |
18475 | int res1 = 0 ; | |
18476 | bool val2 ; | |
18477 | int ecode2 = 0 ; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | PyObject * obj1 = 0 ; | |
18480 | char * kwnames[] = { | |
18481 | (char *) "self",(char *) "enable", NULL | |
18482 | }; | |
18483 | ||
18484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) SWIG_fail; | |
18485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18486 | if (!SWIG_IsOK(res1)) { | |
18487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_EnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18488 | } | |
18489 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18490 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18491 | if (!SWIG_IsOK(ecode2)) { | |
18492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_EnableEffects" "', expected argument " "2"" of type '" "bool""'"); | |
18493 | } | |
18494 | arg2 = static_cast< bool >(val2); | |
18495 | { | |
18496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18497 | (arg1)->EnableEffects(arg2); | |
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
18501 | resultobj = SWIG_Py_Void(); | |
18502 | return resultobj; | |
18503 | fail: | |
18504 | return NULL; | |
d55e5bfc RD |
18505 | } |
18506 | ||
18507 | ||
554f62e9 RD |
18508 | SWIGINTERN PyObject *_wrap_FontData_GetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18509 | PyObject *resultobj = 0; | |
18510 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18511 | bool result; | |
18512 | void *argp1 = 0 ; | |
18513 | int res1 = 0 ; | |
18514 | PyObject *swig_obj[1] ; | |
18515 | ||
18516 | if (!args) SWIG_fail; | |
18517 | swig_obj[0] = args; | |
18518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18519 | if (!SWIG_IsOK(res1)) { | |
18520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18521 | } | |
18522 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18523 | { | |
18524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18525 | result = (bool)(arg1)->GetAllowSymbols(); | |
18526 | wxPyEndAllowThreads(__tstate); | |
18527 | if (PyErr_Occurred()) SWIG_fail; | |
18528 | } | |
18529 | { | |
18530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18531 | } | |
18532 | return resultobj; | |
18533 | fail: | |
18534 | return NULL; | |
d55e5bfc RD |
18535 | } |
18536 | ||
18537 | ||
554f62e9 RD |
18538 | SWIGINTERN PyObject *_wrap_FontData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18539 | PyObject *resultobj = 0; | |
18540 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18541 | wxColour result; | |
18542 | void *argp1 = 0 ; | |
18543 | int res1 = 0 ; | |
18544 | PyObject *swig_obj[1] ; | |
18545 | ||
18546 | if (!args) SWIG_fail; | |
18547 | swig_obj[0] = args; | |
18548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18549 | if (!SWIG_IsOK(res1)) { | |
18550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18551 | } | |
18552 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18553 | { | |
18554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18555 | result = (arg1)->GetColour(); | |
18556 | wxPyEndAllowThreads(__tstate); | |
18557 | if (PyErr_Occurred()) SWIG_fail; | |
18558 | } | |
18559 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18560 | return resultobj; | |
18561 | fail: | |
18562 | return NULL; | |
70b7a5fe RD |
18563 | } |
18564 | ||
18565 | ||
554f62e9 RD |
18566 | SWIGINTERN PyObject *_wrap_FontData_GetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18567 | PyObject *resultobj = 0; | |
18568 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18569 | wxFont result; | |
18570 | void *argp1 = 0 ; | |
18571 | int res1 = 0 ; | |
18572 | PyObject *swig_obj[1] ; | |
18573 | ||
18574 | if (!args) SWIG_fail; | |
18575 | swig_obj[0] = args; | |
18576 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18577 | if (!SWIG_IsOK(res1)) { | |
18578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18579 | } | |
18580 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18581 | { | |
18582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18583 | result = (arg1)->GetChosenFont(); | |
18584 | wxPyEndAllowThreads(__tstate); | |
18585 | if (PyErr_Occurred()) SWIG_fail; | |
18586 | } | |
18587 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18588 | return resultobj; | |
18589 | fail: | |
18590 | return NULL; | |
70b7a5fe RD |
18591 | } |
18592 | ||
18593 | ||
554f62e9 RD |
18594 | SWIGINTERN PyObject *_wrap_FontData_GetEnableEffects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18595 | PyObject *resultobj = 0; | |
18596 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18597 | bool result; | |
18598 | void *argp1 = 0 ; | |
18599 | int res1 = 0 ; | |
18600 | PyObject *swig_obj[1] ; | |
18601 | ||
18602 | if (!args) SWIG_fail; | |
18603 | swig_obj[0] = args; | |
18604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18605 | if (!SWIG_IsOK(res1)) { | |
18606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetEnableEffects" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18607 | } | |
18608 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18609 | { | |
18610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18611 | result = (bool)(arg1)->GetEnableEffects(); | |
18612 | wxPyEndAllowThreads(__tstate); | |
18613 | if (PyErr_Occurred()) SWIG_fail; | |
18614 | } | |
18615 | { | |
18616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18617 | } | |
18618 | return resultobj; | |
18619 | fail: | |
18620 | return NULL; | |
d55e5bfc RD |
18621 | } |
18622 | ||
18623 | ||
554f62e9 RD |
18624 | SWIGINTERN PyObject *_wrap_FontData_GetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18625 | PyObject *resultobj = 0; | |
18626 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18627 | wxFont result; | |
18628 | void *argp1 = 0 ; | |
18629 | int res1 = 0 ; | |
18630 | PyObject *swig_obj[1] ; | |
18631 | ||
18632 | if (!args) SWIG_fail; | |
18633 | swig_obj[0] = args; | |
18634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18635 | if (!SWIG_IsOK(res1)) { | |
18636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18637 | } | |
18638 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18639 | { | |
18640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18641 | result = (arg1)->GetInitialFont(); | |
18642 | wxPyEndAllowThreads(__tstate); | |
18643 | if (PyErr_Occurred()) SWIG_fail; | |
18644 | } | |
18645 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
18646 | return resultobj; | |
18647 | fail: | |
18648 | return NULL; | |
d55e5bfc RD |
18649 | } |
18650 | ||
18651 | ||
554f62e9 RD |
18652 | SWIGINTERN PyObject *_wrap_FontData_GetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18653 | PyObject *resultobj = 0; | |
18654 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18655 | bool result; | |
18656 | void *argp1 = 0 ; | |
18657 | int res1 = 0 ; | |
18658 | PyObject *swig_obj[1] ; | |
18659 | ||
18660 | if (!args) SWIG_fail; | |
18661 | swig_obj[0] = args; | |
18662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18663 | if (!SWIG_IsOK(res1)) { | |
18664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_GetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18665 | } | |
18666 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18667 | { | |
18668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18669 | result = (bool)(arg1)->GetShowHelp(); | |
18670 | wxPyEndAllowThreads(__tstate); | |
18671 | if (PyErr_Occurred()) SWIG_fail; | |
18672 | } | |
18673 | { | |
18674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18675 | } | |
18676 | return resultobj; | |
18677 | fail: | |
18678 | return NULL; | |
18679 | } | |
18680 | ||
18681 | ||
18682 | SWIGINTERN PyObject *_wrap_FontData_SetAllowSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18683 | PyObject *resultobj = 0; | |
18684 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18685 | bool arg2 ; | |
18686 | void *argp1 = 0 ; | |
18687 | int res1 = 0 ; | |
18688 | bool val2 ; | |
18689 | int ecode2 = 0 ; | |
18690 | PyObject * obj0 = 0 ; | |
18691 | PyObject * obj1 = 0 ; | |
18692 | char * kwnames[] = { | |
18693 | (char *) "self",(char *) "allowSymbols", NULL | |
18694 | }; | |
18695 | ||
18696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) SWIG_fail; | |
18697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18698 | if (!SWIG_IsOK(res1)) { | |
18699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetAllowSymbols" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18700 | } | |
18701 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18702 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18703 | if (!SWIG_IsOK(ecode2)) { | |
18704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetAllowSymbols" "', expected argument " "2"" of type '" "bool""'"); | |
18705 | } | |
18706 | arg2 = static_cast< bool >(val2); | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | (arg1)->SetAllowSymbols(arg2); | |
18710 | wxPyEndAllowThreads(__tstate); | |
18711 | if (PyErr_Occurred()) SWIG_fail; | |
18712 | } | |
18713 | resultobj = SWIG_Py_Void(); | |
18714 | return resultobj; | |
18715 | fail: | |
18716 | return NULL; | |
18717 | } | |
18718 | ||
18719 | ||
18720 | SWIGINTERN PyObject *_wrap_FontData_SetChosenFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18721 | PyObject *resultobj = 0; | |
18722 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18723 | wxFont *arg2 = 0 ; | |
18724 | void *argp1 = 0 ; | |
18725 | int res1 = 0 ; | |
18726 | void *argp2 = 0 ; | |
18727 | int res2 = 0 ; | |
18728 | PyObject * obj0 = 0 ; | |
18729 | PyObject * obj1 = 0 ; | |
18730 | char * kwnames[] = { | |
18731 | (char *) "self",(char *) "font", NULL | |
18732 | }; | |
18733 | ||
18734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18736 | if (!SWIG_IsOK(res1)) { | |
18737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetChosenFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18738 | } | |
18739 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18740 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18741 | if (!SWIG_IsOK(res2)) { | |
18742 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18743 | } | |
18744 | if (!argp2) { | |
18745 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetChosenFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18746 | } | |
18747 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18748 | { | |
18749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18750 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
18751 | wxPyEndAllowThreads(__tstate); | |
18752 | if (PyErr_Occurred()) SWIG_fail; | |
18753 | } | |
18754 | resultobj = SWIG_Py_Void(); | |
18755 | return resultobj; | |
18756 | fail: | |
18757 | return NULL; | |
18758 | } | |
18759 | ||
18760 | ||
18761 | SWIGINTERN PyObject *_wrap_FontData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18762 | PyObject *resultobj = 0; | |
18763 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18764 | wxColour *arg2 = 0 ; | |
18765 | void *argp1 = 0 ; | |
18766 | int res1 = 0 ; | |
18767 | wxColour temp2 ; | |
18768 | PyObject * obj0 = 0 ; | |
18769 | PyObject * obj1 = 0 ; | |
18770 | char * kwnames[] = { | |
18771 | (char *) "self",(char *) "colour", NULL | |
18772 | }; | |
18773 | ||
18774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
18775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18776 | if (!SWIG_IsOK(res1)) { | |
18777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetColour" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18778 | } | |
18779 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18780 | { | |
18781 | arg2 = &temp2; | |
18782 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18783 | } | |
18784 | { | |
18785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18786 | (arg1)->SetColour((wxColour const &)*arg2); | |
18787 | wxPyEndAllowThreads(__tstate); | |
18788 | if (PyErr_Occurred()) SWIG_fail; | |
18789 | } | |
18790 | resultobj = SWIG_Py_Void(); | |
18791 | return resultobj; | |
18792 | fail: | |
18793 | return NULL; | |
18794 | } | |
18795 | ||
18796 | ||
18797 | SWIGINTERN PyObject *_wrap_FontData_SetInitialFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18798 | PyObject *resultobj = 0; | |
18799 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18800 | wxFont *arg2 = 0 ; | |
18801 | void *argp1 = 0 ; | |
18802 | int res1 = 0 ; | |
18803 | void *argp2 = 0 ; | |
18804 | int res2 = 0 ; | |
18805 | PyObject * obj0 = 0 ; | |
18806 | PyObject * obj1 = 0 ; | |
18807 | char * kwnames[] = { | |
18808 | (char *) "self",(char *) "font", NULL | |
18809 | }; | |
18810 | ||
18811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
18812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18813 | if (!SWIG_IsOK(res1)) { | |
18814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetInitialFont" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18815 | } | |
18816 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18817 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
18818 | if (!SWIG_IsOK(res2)) { | |
18819 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18820 | } | |
18821 | if (!argp2) { | |
18822 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontData_SetInitialFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
18823 | } | |
18824 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
18825 | { | |
18826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18827 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | resultobj = SWIG_Py_Void(); | |
18832 | return resultobj; | |
18833 | fail: | |
18834 | return NULL; | |
18835 | } | |
18836 | ||
18837 | ||
18838 | SWIGINTERN PyObject *_wrap_FontData_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18839 | PyObject *resultobj = 0; | |
18840 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18841 | int arg2 ; | |
18842 | int arg3 ; | |
18843 | void *argp1 = 0 ; | |
18844 | int res1 = 0 ; | |
18845 | int val2 ; | |
18846 | int ecode2 = 0 ; | |
18847 | int val3 ; | |
18848 | int ecode3 = 0 ; | |
18849 | PyObject * obj0 = 0 ; | |
18850 | PyObject * obj1 = 0 ; | |
18851 | PyObject * obj2 = 0 ; | |
18852 | char * kwnames[] = { | |
18853 | (char *) "self",(char *) "min",(char *) "max", NULL | |
18854 | }; | |
18855 | ||
18856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18858 | if (!SWIG_IsOK(res1)) { | |
18859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetRange" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18860 | } | |
18861 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18863 | if (!SWIG_IsOK(ecode2)) { | |
18864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetRange" "', expected argument " "2"" of type '" "int""'"); | |
18865 | } | |
18866 | arg2 = static_cast< int >(val2); | |
18867 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18868 | if (!SWIG_IsOK(ecode3)) { | |
18869 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontData_SetRange" "', expected argument " "3"" of type '" "int""'"); | |
18870 | } | |
18871 | arg3 = static_cast< int >(val3); | |
18872 | { | |
18873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18874 | (arg1)->SetRange(arg2,arg3); | |
18875 | wxPyEndAllowThreads(__tstate); | |
18876 | if (PyErr_Occurred()) SWIG_fail; | |
18877 | } | |
18878 | resultobj = SWIG_Py_Void(); | |
18879 | return resultobj; | |
18880 | fail: | |
18881 | return NULL; | |
18882 | } | |
18883 | ||
18884 | ||
18885 | SWIGINTERN PyObject *_wrap_FontData_SetShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18886 | PyObject *resultobj = 0; | |
18887 | wxFontData *arg1 = (wxFontData *) 0 ; | |
18888 | bool arg2 ; | |
18889 | void *argp1 = 0 ; | |
18890 | int res1 = 0 ; | |
18891 | bool val2 ; | |
18892 | int ecode2 = 0 ; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | PyObject * obj1 = 0 ; | |
18895 | char * kwnames[] = { | |
18896 | (char *) "self",(char *) "showHelp", NULL | |
18897 | }; | |
18898 | ||
18899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
18900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontData, 0 | 0 ); | |
18901 | if (!SWIG_IsOK(res1)) { | |
18902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontData_SetShowHelp" "', expected argument " "1"" of type '" "wxFontData *""'"); | |
18903 | } | |
18904 | arg1 = reinterpret_cast< wxFontData * >(argp1); | |
18905 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
18906 | if (!SWIG_IsOK(ecode2)) { | |
18907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontData_SetShowHelp" "', expected argument " "2"" of type '" "bool""'"); | |
18908 | } | |
18909 | arg2 = static_cast< bool >(val2); | |
18910 | { | |
18911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18912 | (arg1)->SetShowHelp(arg2); | |
18913 | wxPyEndAllowThreads(__tstate); | |
18914 | if (PyErr_Occurred()) SWIG_fail; | |
18915 | } | |
18916 | resultobj = SWIG_Py_Void(); | |
18917 | return resultobj; | |
18918 | fail: | |
18919 | return NULL; | |
d55e5bfc RD |
18920 | } |
18921 | ||
18922 | ||
554f62e9 RD |
18923 | SWIGINTERN PyObject *FontData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18924 | PyObject *obj; | |
18925 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18926 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontData, SWIG_NewClientData(obj)); | |
18927 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18928 | } |
18929 | ||
554f62e9 RD |
18930 | SWIGINTERN PyObject *FontData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18931 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
18932 | } |
18933 | ||
554f62e9 RD |
18934 | SWIGINTERN PyObject *_wrap_new_FontDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18935 | PyObject *resultobj = 0; | |
18936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18937 | wxFontData *arg2 = 0 ; | |
18938 | wxFontDialog *result = 0 ; | |
18939 | void *argp1 = 0 ; | |
18940 | int res1 = 0 ; | |
18941 | void *argp2 = 0 ; | |
18942 | int res2 = 0 ; | |
18943 | PyObject * obj0 = 0 ; | |
18944 | PyObject * obj1 = 0 ; | |
18945 | char * kwnames[] = { | |
18946 | (char *) "parent",(char *) "data", NULL | |
18947 | }; | |
18948 | ||
18949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
18950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
18951 | if (!SWIG_IsOK(res1)) { | |
18952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
18953 | } | |
18954 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
18955 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFontData, 0 | 0); | |
18956 | if (!SWIG_IsOK(res2)) { | |
18957 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
18958 | } | |
18959 | if (!argp2) { | |
18960 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontDialog" "', expected argument " "2"" of type '" "wxFontData const &""'"); | |
18961 | } | |
18962 | arg2 = reinterpret_cast< wxFontData * >(argp2); | |
18963 | { | |
18964 | if (!wxPyCheckForApp()) SWIG_fail; | |
18965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18966 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
18967 | wxPyEndAllowThreads(__tstate); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontDialog, SWIG_POINTER_NEW | 0 ); | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | return NULL; | |
d55e5bfc RD |
18974 | } |
18975 | ||
18976 | ||
554f62e9 RD |
18977 | SWIGINTERN PyObject *_wrap_FontDialog_GetFontData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18978 | PyObject *resultobj = 0; | |
18979 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
18980 | wxFontData *result = 0 ; | |
18981 | void *argp1 = 0 ; | |
18982 | int res1 = 0 ; | |
18983 | PyObject *swig_obj[1] ; | |
18984 | ||
18985 | if (!args) SWIG_fail; | |
18986 | swig_obj[0] = args; | |
18987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontDialog, 0 | 0 ); | |
18988 | if (!SWIG_IsOK(res1)) { | |
18989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontDialog_GetFontData" "', expected argument " "1"" of type '" "wxFontDialog *""'"); | |
18990 | } | |
18991 | arg1 = reinterpret_cast< wxFontDialog * >(argp1); | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 18994 | { |
554f62e9 RD |
18995 | wxFontData &_result_ref = (arg1)->GetFontData(); |
18996 | result = (wxFontData *) &_result_ref; | |
d55e5bfc | 18997 | } |
554f62e9 RD |
18998 | wxPyEndAllowThreads(__tstate); |
18999 | if (PyErr_Occurred()) SWIG_fail; | |
19000 | } | |
19001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontData, 0 | 0 ); | |
19002 | return resultobj; | |
19003 | fail: | |
19004 | return NULL; | |
19005 | } | |
19006 | ||
19007 | ||
19008 | SWIGINTERN PyObject *FontDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19009 | PyObject *obj; | |
19010 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19011 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontDialog, SWIG_NewClientData(obj)); | |
19012 | return SWIG_Py_Void(); | |
19013 | } | |
19014 | ||
19015 | SWIGINTERN PyObject *FontDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19016 | return SWIG_Python_InitShadowInstance(args); | |
19017 | } | |
19018 | ||
19019 | SWIGINTERN PyObject *_wrap_GetFontFromUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19020 | PyObject *resultobj = 0; | |
19021 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19022 | wxFont const &arg2_defvalue = wxNullFont ; | |
19023 | wxFont *arg2 = (wxFont *) &arg2_defvalue ; | |
19024 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19025 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19026 | wxFont result; | |
19027 | void *argp1 = 0 ; | |
19028 | int res1 = 0 ; | |
19029 | void *argp2 = 0 ; | |
19030 | int res2 = 0 ; | |
19031 | bool temp3 = false ; | |
19032 | PyObject * obj0 = 0 ; | |
19033 | PyObject * obj1 = 0 ; | |
19034 | PyObject * obj2 = 0 ; | |
19035 | char * kwnames[] = { | |
19036 | (char *) "parent",(char *) "fontInit",(char *) "caption", NULL | |
19037 | }; | |
19038 | ||
19039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:GetFontFromUser",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19040 | if (obj0) { | |
19041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19042 | if (!SWIG_IsOK(res1)) { | |
19043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetFontFromUser" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
093d3ff1 | 19044 | } |
554f62e9 RD |
19045 | arg1 = reinterpret_cast< wxWindow * >(argp1); |
19046 | } | |
19047 | if (obj1) { | |
19048 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
19049 | if (!SWIG_IsOK(res2)) { | |
19050 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
093d3ff1 | 19051 | } |
554f62e9 RD |
19052 | if (!argp2) { |
19053 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetFontFromUser" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
d55e5bfc | 19054 | } |
554f62e9 RD |
19055 | arg2 = reinterpret_cast< wxFont * >(argp2); |
19056 | } | |
19057 | if (obj2) { | |
d55e5bfc | 19058 | { |
554f62e9 RD |
19059 | arg3 = wxString_in_helper(obj2); |
19060 | if (arg3 == NULL) SWIG_fail; | |
19061 | temp3 = true; | |
d55e5bfc | 19062 | } |
554f62e9 RD |
19063 | } |
19064 | { | |
19065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19066 | result = wxGetFontFromUser(arg1,(wxFont const &)*arg2,(wxString const &)*arg3); | |
19067 | wxPyEndAllowThreads(__tstate); | |
19068 | if (PyErr_Occurred()) SWIG_fail; | |
19069 | } | |
19070 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
19071 | { | |
19072 | if (temp3) | |
19073 | delete arg3; | |
19074 | } | |
19075 | return resultobj; | |
19076 | fail: | |
19077 | { | |
19078 | if (temp3) | |
19079 | delete arg3; | |
19080 | } | |
19081 | return NULL; | |
19082 | } | |
19083 | ||
19084 | ||
19085 | SWIGINTERN PyObject *_wrap_new_MessageDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19086 | PyObject *resultobj = 0; | |
19087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19088 | wxString *arg2 = 0 ; | |
19089 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
19090 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19091 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
19092 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
19093 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
19094 | wxMessageDialog *result = 0 ; | |
19095 | void *argp1 = 0 ; | |
19096 | int res1 = 0 ; | |
19097 | bool temp2 = false ; | |
19098 | bool temp3 = false ; | |
19099 | long val4 ; | |
19100 | int ecode4 = 0 ; | |
19101 | wxPoint temp5 ; | |
19102 | PyObject * obj0 = 0 ; | |
19103 | PyObject * obj1 = 0 ; | |
19104 | PyObject * obj2 = 0 ; | |
19105 | PyObject * obj3 = 0 ; | |
19106 | PyObject * obj4 = 0 ; | |
19107 | char * kwnames[] = { | |
19108 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
19109 | }; | |
19110 | ||
19111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19113 | if (!SWIG_IsOK(res1)) { | |
19114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessageDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
19115 | } | |
19116 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
19117 | { | |
19118 | arg2 = wxString_in_helper(obj1); | |
19119 | if (arg2 == NULL) SWIG_fail; | |
19120 | temp2 = true; | |
19121 | } | |
19122 | if (obj2) { | |
093d3ff1 | 19123 | { |
554f62e9 RD |
19124 | arg3 = wxString_in_helper(obj2); |
19125 | if (arg3 == NULL) SWIG_fail; | |
19126 | temp3 = true; | |
093d3ff1 | 19127 | } |
554f62e9 RD |
19128 | } |
19129 | if (obj3) { | |
19130 | ecode4 = SWIG_AsVal_long(obj3, &val4); | |
19131 | if (!SWIG_IsOK(ecode4)) { | |
19132 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_MessageDialog" "', expected argument " "4"" of type '" "long""'"); | |
19133 | } | |
19134 | arg4 = static_cast< long >(val4); | |
19135 | } | |
19136 | if (obj4) { | |
d55e5bfc | 19137 | { |
554f62e9 RD |
19138 | arg5 = &temp5; |
19139 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19140 | } | |
19141 | } | |
19142 | { | |
19143 | if (!wxPyCheckForApp()) SWIG_fail; | |
19144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19145 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
19146 | wxPyEndAllowThreads(__tstate); | |
19147 | if (PyErr_Occurred()) SWIG_fail; | |
19148 | } | |
19149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMessageDialog, SWIG_POINTER_NEW | 0 ); | |
19150 | { | |
19151 | if (temp2) | |
19152 | delete arg2; | |
19153 | } | |
19154 | { | |
19155 | if (temp3) | |
19156 | delete arg3; | |
19157 | } | |
19158 | return resultobj; | |
19159 | fail: | |
19160 | { | |
19161 | if (temp2) | |
19162 | delete arg2; | |
19163 | } | |
19164 | { | |
19165 | if (temp3) | |
19166 | delete arg3; | |
19167 | } | |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | SWIGINTERN PyObject *MessageDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19173 | PyObject *obj; | |
19174 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19175 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMessageDialog, SWIG_NewClientData(obj)); | |
19176 | return SWIG_Py_Void(); | |
19177 | } | |
19178 | ||
19179 | SWIGINTERN PyObject *MessageDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19180 | return SWIG_Python_InitShadowInstance(args); | |
19181 | } | |
19182 | ||
19183 | SWIGINTERN PyObject *_wrap_new_ProgressDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19184 | PyObject *resultobj = 0; | |
19185 | wxString *arg1 = 0 ; | |
19186 | wxString *arg2 = 0 ; | |
19187 | int arg3 = (int) 100 ; | |
19188 | wxWindow *arg4 = (wxWindow *) NULL ; | |
19189 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
19190 | wxProgressDialog *result = 0 ; | |
19191 | bool temp1 = false ; | |
19192 | bool temp2 = false ; | |
19193 | int val3 ; | |
19194 | int ecode3 = 0 ; | |
19195 | void *argp4 = 0 ; | |
19196 | int res4 = 0 ; | |
19197 | int val5 ; | |
19198 | int ecode5 = 0 ; | |
19199 | PyObject * obj0 = 0 ; | |
19200 | PyObject * obj1 = 0 ; | |
19201 | PyObject * obj2 = 0 ; | |
19202 | PyObject * obj3 = 0 ; | |
19203 | PyObject * obj4 = 0 ; | |
19204 | char * kwnames[] = { | |
19205 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
19206 | }; | |
19207 | ||
19208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19209 | { | |
19210 | arg1 = wxString_in_helper(obj0); | |
19211 | if (arg1 == NULL) SWIG_fail; | |
19212 | temp1 = true; | |
19213 | } | |
19214 | { | |
19215 | arg2 = wxString_in_helper(obj1); | |
19216 | if (arg2 == NULL) SWIG_fail; | |
19217 | temp2 = true; | |
19218 | } | |
19219 | if (obj2) { | |
19220 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19221 | if (!SWIG_IsOK(ecode3)) { | |
19222 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ProgressDialog" "', expected argument " "3"" of type '" "int""'"); | |
19223 | } | |
19224 | arg3 = static_cast< int >(val3); | |
19225 | } | |
19226 | if (obj3) { | |
19227 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
19228 | if (!SWIG_IsOK(res4)) { | |
19229 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_ProgressDialog" "', expected argument " "4"" of type '" "wxWindow *""'"); | |
d55e5bfc | 19230 | } |
554f62e9 RD |
19231 | arg4 = reinterpret_cast< wxWindow * >(argp4); |
19232 | } | |
19233 | if (obj4) { | |
19234 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19235 | if (!SWIG_IsOK(ecode5)) { | |
19236 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ProgressDialog" "', expected argument " "5"" of type '" "int""'"); | |
19237 | } | |
19238 | arg5 = static_cast< int >(val5); | |
19239 | } | |
19240 | { | |
19241 | if (!wxPyCheckForApp()) SWIG_fail; | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
19244 | wxPyEndAllowThreads(__tstate); | |
19245 | if (PyErr_Occurred()) SWIG_fail; | |
19246 | } | |
19247 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxProgressDialog, SWIG_POINTER_NEW | 0 ); | |
19248 | { | |
19249 | if (temp1) | |
19250 | delete arg1; | |
19251 | } | |
19252 | { | |
19253 | if (temp2) | |
19254 | delete arg2; | |
19255 | } | |
19256 | return resultobj; | |
19257 | fail: | |
19258 | { | |
19259 | if (temp1) | |
19260 | delete arg1; | |
19261 | } | |
19262 | { | |
19263 | if (temp2) | |
19264 | delete arg2; | |
19265 | } | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | SWIGINTERN PyObject *_wrap_ProgressDialog_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj = 0; | |
19272 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19273 | int arg2 ; | |
19274 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
19275 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
19276 | bool result; | |
19277 | void *argp1 = 0 ; | |
19278 | int res1 = 0 ; | |
19279 | int val2 ; | |
19280 | int ecode2 = 0 ; | |
19281 | bool temp3 = false ; | |
19282 | PyObject * obj0 = 0 ; | |
19283 | PyObject * obj1 = 0 ; | |
19284 | PyObject * obj2 = 0 ; | |
19285 | char * kwnames[] = { | |
19286 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
19287 | }; | |
19288 | ||
19289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19291 | if (!SWIG_IsOK(res1)) { | |
19292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Update" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19293 | } | |
19294 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19295 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19296 | if (!SWIG_IsOK(ecode2)) { | |
19297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProgressDialog_Update" "', expected argument " "2"" of type '" "int""'"); | |
19298 | } | |
19299 | arg2 = static_cast< int >(val2); | |
19300 | if (obj2) { | |
d55e5bfc | 19301 | { |
554f62e9 RD |
19302 | arg3 = wxString_in_helper(obj2); |
19303 | if (arg3 == NULL) SWIG_fail; | |
19304 | temp3 = true; | |
d55e5bfc | 19305 | } |
554f62e9 RD |
19306 | } |
19307 | { | |
19308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19309 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
19310 | wxPyEndAllowThreads(__tstate); | |
19311 | if (PyErr_Occurred()) SWIG_fail; | |
19312 | } | |
19313 | { | |
19314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19315 | } | |
19316 | { | |
19317 | if (temp3) | |
19318 | delete arg3; | |
19319 | } | |
19320 | return resultobj; | |
19321 | fail: | |
19322 | { | |
19323 | if (temp3) | |
19324 | delete arg3; | |
19325 | } | |
19326 | return NULL; | |
d55e5bfc RD |
19327 | } |
19328 | ||
19329 | ||
554f62e9 RD |
19330 | SWIGINTERN PyObject *_wrap_ProgressDialog_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19331 | PyObject *resultobj = 0; | |
19332 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
19333 | void *argp1 = 0 ; | |
19334 | int res1 = 0 ; | |
19335 | PyObject *swig_obj[1] ; | |
19336 | ||
19337 | if (!args) SWIG_fail; | |
19338 | swig_obj[0] = args; | |
19339 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxProgressDialog, 0 | 0 ); | |
19340 | if (!SWIG_IsOK(res1)) { | |
19341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProgressDialog_Resume" "', expected argument " "1"" of type '" "wxProgressDialog *""'"); | |
19342 | } | |
19343 | arg1 = reinterpret_cast< wxProgressDialog * >(argp1); | |
19344 | { | |
19345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19346 | (arg1)->Resume(); | |
19347 | wxPyEndAllowThreads(__tstate); | |
19348 | if (PyErr_Occurred()) SWIG_fail; | |
19349 | } | |
19350 | resultobj = SWIG_Py_Void(); | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
d55e5bfc RD |
19354 | } |
19355 | ||
19356 | ||
554f62e9 RD |
19357 | SWIGINTERN PyObject *ProgressDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19358 | PyObject *obj; | |
19359 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19360 | SWIG_TypeNewClientData(SWIGTYPE_p_wxProgressDialog, SWIG_NewClientData(obj)); | |
19361 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19362 | } |
19363 | ||
554f62e9 RD |
19364 | SWIGINTERN PyObject *ProgressDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19365 | return SWIG_Python_InitShadowInstance(args); | |
19366 | } | |
d55e5bfc | 19367 | |
554f62e9 RD |
19368 | SWIGINTERN PyObject *_wrap_new_FindDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19369 | PyObject *resultobj = 0; | |
19370 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19371 | int arg2 = (int) 0 ; | |
19372 | wxFindDialogEvent *result = 0 ; | |
19373 | int val1 ; | |
19374 | int ecode1 = 0 ; | |
19375 | int val2 ; | |
19376 | int ecode2 = 0 ; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | PyObject * obj1 = 0 ; | |
19379 | char * kwnames[] = { | |
19380 | (char *) "commandType",(char *) "id", NULL | |
19381 | }; | |
19382 | ||
19383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
19384 | if (obj0) { | |
19385 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19386 | if (!SWIG_IsOK(ecode1)) { | |
19387 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindDialogEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
19388 | } | |
19389 | arg1 = static_cast< wxEventType >(val1); | |
19390 | } | |
19391 | if (obj1) { | |
19392 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19393 | if (!SWIG_IsOK(ecode2)) { | |
19394 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FindDialogEvent" "', expected argument " "2"" of type '" "int""'"); | |
19395 | } | |
19396 | arg2 = static_cast< int >(val2); | |
19397 | } | |
19398 | { | |
19399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19400 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
19401 | wxPyEndAllowThreads(__tstate); | |
19402 | if (PyErr_Occurred()) SWIG_fail; | |
19403 | } | |
19404 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindDialogEvent, SWIG_POINTER_NEW | 0 ); | |
19405 | return resultobj; | |
19406 | fail: | |
19407 | return NULL; | |
d55e5bfc RD |
19408 | } |
19409 | ||
19410 | ||
554f62e9 RD |
19411 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19412 | PyObject *resultobj = 0; | |
19413 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19414 | int result; | |
19415 | void *argp1 = 0 ; | |
19416 | int res1 = 0 ; | |
19417 | PyObject *swig_obj[1] ; | |
19418 | ||
19419 | if (!args) SWIG_fail; | |
19420 | swig_obj[0] = args; | |
19421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19422 | if (!SWIG_IsOK(res1)) { | |
19423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19424 | } | |
19425 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19426 | { | |
19427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19428 | result = (int)(arg1)->GetFlags(); | |
19429 | wxPyEndAllowThreads(__tstate); | |
19430 | if (PyErr_Occurred()) SWIG_fail; | |
19431 | } | |
19432 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19433 | return resultobj; | |
19434 | fail: | |
19435 | return NULL; | |
d55e5bfc RD |
19436 | } |
19437 | ||
19438 | ||
554f62e9 RD |
19439 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19440 | PyObject *resultobj = 0; | |
19441 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19442 | wxString *result = 0 ; | |
19443 | void *argp1 = 0 ; | |
19444 | int res1 = 0 ; | |
19445 | PyObject *swig_obj[1] ; | |
19446 | ||
19447 | if (!args) SWIG_fail; | |
19448 | swig_obj[0] = args; | |
19449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19450 | if (!SWIG_IsOK(res1)) { | |
19451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19452 | } | |
19453 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19454 | { | |
19455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19456 | { |
554f62e9 RD |
19457 | wxString const &_result_ref = (arg1)->GetFindString(); |
19458 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19459 | } |
554f62e9 RD |
19460 | wxPyEndAllowThreads(__tstate); |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
19463 | { | |
19464 | #if wxUSE_UNICODE | |
19465 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19466 | #else | |
19467 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19468 | #endif | |
19469 | } | |
19470 | return resultobj; | |
19471 | fail: | |
19472 | return NULL; | |
d55e5bfc RD |
19473 | } |
19474 | ||
19475 | ||
554f62e9 RD |
19476 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19477 | PyObject *resultobj = 0; | |
19478 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19479 | wxString *result = 0 ; | |
19480 | void *argp1 = 0 ; | |
19481 | int res1 = 0 ; | |
19482 | PyObject *swig_obj[1] ; | |
19483 | ||
19484 | if (!args) SWIG_fail; | |
19485 | swig_obj[0] = args; | |
19486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19487 | if (!SWIG_IsOK(res1)) { | |
19488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19489 | } | |
19490 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19491 | { | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19493 | { |
554f62e9 RD |
19494 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19495 | result = (wxString *) &_result_ref; | |
093d3ff1 | 19496 | } |
554f62e9 RD |
19497 | wxPyEndAllowThreads(__tstate); |
19498 | if (PyErr_Occurred()) SWIG_fail; | |
19499 | } | |
19500 | { | |
19501 | #if wxUSE_UNICODE | |
19502 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19503 | #else | |
19504 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19505 | #endif | |
19506 | } | |
19507 | return resultobj; | |
19508 | fail: | |
19509 | return NULL; | |
d55e5bfc RD |
19510 | } |
19511 | ||
19512 | ||
554f62e9 RD |
19513 | SWIGINTERN PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19514 | PyObject *resultobj = 0; | |
19515 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19516 | wxFindReplaceDialog *result = 0 ; | |
19517 | void *argp1 = 0 ; | |
19518 | int res1 = 0 ; | |
19519 | PyObject *swig_obj[1] ; | |
19520 | ||
19521 | if (!args) SWIG_fail; | |
19522 | swig_obj[0] = args; | |
19523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19524 | if (!SWIG_IsOK(res1)) { | |
19525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_GetDialog" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19526 | } | |
19527 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19528 | { | |
19529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19530 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
19531 | wxPyEndAllowThreads(__tstate); | |
19532 | if (PyErr_Occurred()) SWIG_fail; | |
19533 | } | |
19534 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
19535 | return resultobj; | |
19536 | fail: | |
19537 | return NULL; | |
19538 | } | |
19539 | ||
19540 | ||
19541 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19542 | PyObject *resultobj = 0; | |
19543 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19544 | int arg2 ; | |
19545 | void *argp1 = 0 ; | |
19546 | int res1 = 0 ; | |
19547 | int val2 ; | |
19548 | int ecode2 = 0 ; | |
19549 | PyObject * obj0 = 0 ; | |
19550 | PyObject * obj1 = 0 ; | |
19551 | char * kwnames[] = { | |
19552 | (char *) "self",(char *) "flags", NULL | |
19553 | }; | |
19554 | ||
19555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19556 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19557 | if (!SWIG_IsOK(res1)) { | |
19558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19559 | } | |
19560 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19561 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19562 | if (!SWIG_IsOK(ecode2)) { | |
19563 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindDialogEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19564 | } | |
19565 | arg2 = static_cast< int >(val2); | |
19566 | { | |
19567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19568 | (arg1)->SetFlags(arg2); | |
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
19572 | resultobj = SWIG_Py_Void(); | |
19573 | return resultobj; | |
19574 | fail: | |
19575 | return NULL; | |
19576 | } | |
19577 | ||
19578 | ||
19579 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19580 | PyObject *resultobj = 0; | |
19581 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19582 | wxString *arg2 = 0 ; | |
19583 | void *argp1 = 0 ; | |
19584 | int res1 = 0 ; | |
19585 | bool temp2 = false ; | |
19586 | PyObject * obj0 = 0 ; | |
19587 | PyObject * obj1 = 0 ; | |
19588 | char * kwnames[] = { | |
19589 | (char *) "self",(char *) "str", NULL | |
19590 | }; | |
19591 | ||
19592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19594 | if (!SWIG_IsOK(res1)) { | |
19595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetFindString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19596 | } | |
19597 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19598 | { | |
19599 | arg2 = wxString_in_helper(obj1); | |
19600 | if (arg2 == NULL) SWIG_fail; | |
19601 | temp2 = true; | |
19602 | } | |
19603 | { | |
19604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19605 | (arg1)->SetFindString((wxString const &)*arg2); | |
19606 | wxPyEndAllowThreads(__tstate); | |
19607 | if (PyErr_Occurred()) SWIG_fail; | |
19608 | } | |
19609 | resultobj = SWIG_Py_Void(); | |
19610 | { | |
19611 | if (temp2) | |
19612 | delete arg2; | |
19613 | } | |
19614 | return resultobj; | |
19615 | fail: | |
19616 | { | |
19617 | if (temp2) | |
19618 | delete arg2; | |
19619 | } | |
19620 | return NULL; | |
d55e5bfc RD |
19621 | } |
19622 | ||
19623 | ||
554f62e9 RD |
19624 | SWIGINTERN PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19625 | PyObject *resultobj = 0; | |
19626 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
19627 | wxString *arg2 = 0 ; | |
19628 | void *argp1 = 0 ; | |
19629 | int res1 = 0 ; | |
19630 | bool temp2 = false ; | |
19631 | PyObject * obj0 = 0 ; | |
19632 | PyObject * obj1 = 0 ; | |
19633 | char * kwnames[] = { | |
19634 | (char *) "self",(char *) "str", NULL | |
19635 | }; | |
19636 | ||
19637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindDialogEvent, 0 | 0 ); | |
19639 | if (!SWIG_IsOK(res1)) { | |
19640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindDialogEvent_SetReplaceString" "', expected argument " "1"" of type '" "wxFindDialogEvent *""'"); | |
19641 | } | |
19642 | arg1 = reinterpret_cast< wxFindDialogEvent * >(argp1); | |
19643 | { | |
19644 | arg2 = wxString_in_helper(obj1); | |
19645 | if (arg2 == NULL) SWIG_fail; | |
19646 | temp2 = true; | |
19647 | } | |
19648 | { | |
19649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19650 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19651 | wxPyEndAllowThreads(__tstate); | |
19652 | if (PyErr_Occurred()) SWIG_fail; | |
19653 | } | |
19654 | resultobj = SWIG_Py_Void(); | |
19655 | { | |
19656 | if (temp2) | |
19657 | delete arg2; | |
19658 | } | |
19659 | return resultobj; | |
19660 | fail: | |
19661 | { | |
19662 | if (temp2) | |
19663 | delete arg2; | |
19664 | } | |
19665 | return NULL; | |
d55e5bfc RD |
19666 | } |
19667 | ||
19668 | ||
554f62e9 RD |
19669 | SWIGINTERN PyObject *FindDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19670 | PyObject *obj; | |
19671 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19672 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindDialogEvent, SWIG_NewClientData(obj)); | |
19673 | return SWIG_Py_Void(); | |
d55e5bfc RD |
19674 | } |
19675 | ||
554f62e9 RD |
19676 | SWIGINTERN PyObject *FindDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19677 | return SWIG_Python_InitShadowInstance(args); | |
19678 | } | |
d55e5bfc | 19679 | |
554f62e9 RD |
19680 | SWIGINTERN PyObject *_wrap_new_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19681 | PyObject *resultobj = 0; | |
19682 | int arg1 = (int) 0 ; | |
19683 | wxFindReplaceData *result = 0 ; | |
19684 | int val1 ; | |
19685 | int ecode1 = 0 ; | |
19686 | PyObject * obj0 = 0 ; | |
19687 | char * kwnames[] = { | |
19688 | (char *) "flags", NULL | |
19689 | }; | |
19690 | ||
19691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) SWIG_fail; | |
19692 | if (obj0) { | |
19693 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
19694 | if (!SWIG_IsOK(ecode1)) { | |
19695 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FindReplaceData" "', expected argument " "1"" of type '" "int""'"); | |
19696 | } | |
19697 | arg1 = static_cast< int >(val1); | |
19698 | } | |
19699 | { | |
19700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19701 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
19702 | wxPyEndAllowThreads(__tstate); | |
19703 | if (PyErr_Occurred()) SWIG_fail; | |
19704 | } | |
19705 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_NEW | 0 ); | |
19706 | return resultobj; | |
19707 | fail: | |
19708 | return NULL; | |
d55e5bfc RD |
19709 | } |
19710 | ||
19711 | ||
554f62e9 RD |
19712 | SWIGINTERN PyObject *_wrap_delete_FindReplaceData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19713 | PyObject *resultobj = 0; | |
19714 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19715 | void *argp1 = 0 ; | |
19716 | int res1 = 0 ; | |
19717 | PyObject *swig_obj[1] ; | |
19718 | ||
19719 | if (!args) SWIG_fail; | |
19720 | swig_obj[0] = args; | |
19721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, SWIG_POINTER_DISOWN | 0 ); | |
19722 | if (!SWIG_IsOK(res1)) { | |
19723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FindReplaceData" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19724 | } | |
19725 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19726 | { | |
19727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19728 | delete arg1; | |
d55e5bfc | 19729 | |
554f62e9 RD |
19730 | wxPyEndAllowThreads(__tstate); |
19731 | if (PyErr_Occurred()) SWIG_fail; | |
19732 | } | |
19733 | resultobj = SWIG_Py_Void(); | |
19734 | return resultobj; | |
19735 | fail: | |
19736 | return NULL; | |
d55e5bfc RD |
19737 | } |
19738 | ||
19739 | ||
554f62e9 RD |
19740 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19741 | PyObject *resultobj = 0; | |
19742 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19743 | wxString *result = 0 ; | |
19744 | void *argp1 = 0 ; | |
19745 | int res1 = 0 ; | |
19746 | PyObject *swig_obj[1] ; | |
19747 | ||
19748 | if (!args) SWIG_fail; | |
19749 | swig_obj[0] = args; | |
19750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19751 | if (!SWIG_IsOK(res1)) { | |
19752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19753 | } | |
19754 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19755 | { | |
19756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19757 | { |
554f62e9 RD |
19758 | wxString const &_result_ref = (arg1)->GetFindString(); |
19759 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19760 | } |
554f62e9 RD |
19761 | wxPyEndAllowThreads(__tstate); |
19762 | if (PyErr_Occurred()) SWIG_fail; | |
19763 | } | |
19764 | { | |
19765 | #if wxUSE_UNICODE | |
19766 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19767 | #else | |
19768 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19769 | #endif | |
19770 | } | |
19771 | return resultobj; | |
19772 | fail: | |
19773 | return NULL; | |
d55e5bfc RD |
19774 | } |
19775 | ||
19776 | ||
554f62e9 RD |
19777 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19778 | PyObject *resultobj = 0; | |
19779 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19780 | wxString *result = 0 ; | |
19781 | void *argp1 = 0 ; | |
19782 | int res1 = 0 ; | |
19783 | PyObject *swig_obj[1] ; | |
19784 | ||
19785 | if (!args) SWIG_fail; | |
19786 | swig_obj[0] = args; | |
19787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19788 | if (!SWIG_IsOK(res1)) { | |
19789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19790 | } | |
19791 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19792 | { | |
19793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 19794 | { |
554f62e9 RD |
19795 | wxString const &_result_ref = (arg1)->GetReplaceString(); |
19796 | result = (wxString *) &_result_ref; | |
d55e5bfc | 19797 | } |
554f62e9 RD |
19798 | wxPyEndAllowThreads(__tstate); |
19799 | if (PyErr_Occurred()) SWIG_fail; | |
19800 | } | |
19801 | { | |
19802 | #if wxUSE_UNICODE | |
19803 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19804 | #else | |
19805 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19806 | #endif | |
19807 | } | |
19808 | return resultobj; | |
19809 | fail: | |
19810 | return NULL; | |
d55e5bfc RD |
19811 | } |
19812 | ||
19813 | ||
554f62e9 RD |
19814 | SWIGINTERN PyObject *_wrap_FindReplaceData_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
19815 | PyObject *resultobj = 0; | |
19816 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19817 | int result; | |
19818 | void *argp1 = 0 ; | |
19819 | int res1 = 0 ; | |
19820 | PyObject *swig_obj[1] ; | |
19821 | ||
19822 | if (!args) SWIG_fail; | |
19823 | swig_obj[0] = args; | |
19824 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19825 | if (!SWIG_IsOK(res1)) { | |
19826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_GetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19827 | } | |
19828 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19829 | { | |
19830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19831 | result = (int)(arg1)->GetFlags(); | |
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
19842 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19843 | PyObject *resultobj = 0; | |
19844 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19845 | int arg2 ; | |
19846 | void *argp1 = 0 ; | |
19847 | int res1 = 0 ; | |
19848 | int val2 ; | |
19849 | int ecode2 = 0 ; | |
19850 | PyObject * obj0 = 0 ; | |
19851 | PyObject * obj1 = 0 ; | |
19852 | char * kwnames[] = { | |
19853 | (char *) "self",(char *) "flags", NULL | |
19854 | }; | |
19855 | ||
19856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
19857 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19858 | if (!SWIG_IsOK(res1)) { | |
19859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFlags" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19860 | } | |
19861 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19863 | if (!SWIG_IsOK(ecode2)) { | |
19864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FindReplaceData_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
19865 | } | |
19866 | arg2 = static_cast< int >(val2); | |
19867 | { | |
19868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19869 | (arg1)->SetFlags(arg2); | |
19870 | wxPyEndAllowThreads(__tstate); | |
19871 | if (PyErr_Occurred()) SWIG_fail; | |
19872 | } | |
19873 | resultobj = SWIG_Py_Void(); | |
19874 | return resultobj; | |
19875 | fail: | |
19876 | return NULL; | |
19877 | } | |
19878 | ||
19879 | ||
19880 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetFindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19881 | PyObject *resultobj = 0; | |
19882 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19883 | wxString *arg2 = 0 ; | |
19884 | void *argp1 = 0 ; | |
19885 | int res1 = 0 ; | |
19886 | bool temp2 = false ; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | PyObject * obj1 = 0 ; | |
19889 | char * kwnames[] = { | |
19890 | (char *) "self",(char *) "str", NULL | |
19891 | }; | |
19892 | ||
19893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19895 | if (!SWIG_IsOK(res1)) { | |
19896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetFindString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19897 | } | |
19898 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19899 | { | |
19900 | arg2 = wxString_in_helper(obj1); | |
19901 | if (arg2 == NULL) SWIG_fail; | |
19902 | temp2 = true; | |
19903 | } | |
19904 | { | |
19905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19906 | (arg1)->SetFindString((wxString const &)*arg2); | |
19907 | wxPyEndAllowThreads(__tstate); | |
19908 | if (PyErr_Occurred()) SWIG_fail; | |
19909 | } | |
19910 | resultobj = SWIG_Py_Void(); | |
19911 | { | |
19912 | if (temp2) | |
19913 | delete arg2; | |
19914 | } | |
19915 | return resultobj; | |
19916 | fail: | |
19917 | { | |
19918 | if (temp2) | |
19919 | delete arg2; | |
19920 | } | |
19921 | return NULL; | |
d55e5bfc RD |
19922 | } |
19923 | ||
19924 | ||
554f62e9 RD |
19925 | SWIGINTERN PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
19926 | PyObject *resultobj = 0; | |
19927 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
19928 | wxString *arg2 = 0 ; | |
19929 | void *argp1 = 0 ; | |
19930 | int res1 = 0 ; | |
19931 | bool temp2 = false ; | |
19932 | PyObject * obj0 = 0 ; | |
19933 | PyObject * obj1 = 0 ; | |
19934 | char * kwnames[] = { | |
19935 | (char *) "self",(char *) "str", NULL | |
19936 | }; | |
19937 | ||
19938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) SWIG_fail; | |
19939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
19940 | if (!SWIG_IsOK(res1)) { | |
19941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceData_SetReplaceString" "', expected argument " "1"" of type '" "wxFindReplaceData *""'"); | |
19942 | } | |
19943 | arg1 = reinterpret_cast< wxFindReplaceData * >(argp1); | |
19944 | { | |
19945 | arg2 = wxString_in_helper(obj1); | |
19946 | if (arg2 == NULL) SWIG_fail; | |
19947 | temp2 = true; | |
19948 | } | |
19949 | { | |
19950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19951 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
19952 | wxPyEndAllowThreads(__tstate); | |
19953 | if (PyErr_Occurred()) SWIG_fail; | |
19954 | } | |
19955 | resultobj = SWIG_Py_Void(); | |
19956 | { | |
19957 | if (temp2) | |
19958 | delete arg2; | |
19959 | } | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | { | |
19963 | if (temp2) | |
19964 | delete arg2; | |
19965 | } | |
19966 | return NULL; | |
19967 | } | |
19968 | ||
19969 | ||
19970 | SWIGINTERN PyObject *FindReplaceData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19971 | PyObject *obj; | |
19972 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
19973 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceData, SWIG_NewClientData(obj)); | |
19974 | return SWIG_Py_Void(); | |
19975 | } | |
19976 | ||
19977 | SWIGINTERN PyObject *FindReplaceData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19978 | return SWIG_Python_InitShadowInstance(args); | |
19979 | } | |
19980 | ||
19981 | SWIGINTERN PyObject *_wrap_new_FindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19982 | PyObject *resultobj = 0; | |
19983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19984 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
19985 | wxString *arg3 = 0 ; | |
19986 | int arg4 = (int) 0 ; | |
19987 | wxFindReplaceDialog *result = 0 ; | |
19988 | void *argp1 = 0 ; | |
19989 | int res1 = 0 ; | |
19990 | void *argp2 = 0 ; | |
19991 | int res2 = 0 ; | |
19992 | bool temp3 = false ; | |
19993 | int val4 ; | |
19994 | int ecode4 = 0 ; | |
19995 | PyObject * obj0 = 0 ; | |
19996 | PyObject * obj1 = 0 ; | |
19997 | PyObject * obj2 = 0 ; | |
19998 | PyObject * obj3 = 0 ; | |
19999 | char * kwnames[] = { | |
20000 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20001 | }; | |
20002 | ||
20003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20005 | if (!SWIG_IsOK(res1)) { | |
20006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FindReplaceDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20007 | } | |
20008 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20009 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20010 | if (!SWIG_IsOK(res2)) { | |
20011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FindReplaceDialog" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20012 | } | |
20013 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20014 | { | |
20015 | arg3 = wxString_in_helper(obj2); | |
20016 | if (arg3 == NULL) SWIG_fail; | |
20017 | temp3 = true; | |
20018 | } | |
20019 | if (obj3) { | |
20020 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20021 | if (!SWIG_IsOK(ecode4)) { | |
20022 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FindReplaceDialog" "', expected argument " "4"" of type '" "int""'"); | |
20023 | } | |
20024 | arg4 = static_cast< int >(val4); | |
20025 | } | |
20026 | { | |
20027 | if (!wxPyCheckForApp()) SWIG_fail; | |
20028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20029 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
20033 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_NEW | 0 ); | |
20034 | { | |
20035 | if (temp3) | |
20036 | delete arg3; | |
20037 | } | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | { | |
20041 | if (temp3) | |
20042 | delete arg3; | |
20043 | } | |
20044 | return NULL; | |
d55e5bfc RD |
20045 | } |
20046 | ||
20047 | ||
554f62e9 RD |
20048 | SWIGINTERN PyObject *_wrap_new_PreFindReplaceDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20049 | PyObject *resultobj = 0; | |
20050 | wxFindReplaceDialog *result = 0 ; | |
20051 | ||
20052 | if (!SWIG_Python_UnpackTuple(args,"new_PreFindReplaceDialog",0,0,0)) SWIG_fail; | |
20053 | { | |
20054 | if (!wxPyCheckForApp()) SWIG_fail; | |
20055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20056 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
20057 | wxPyEndAllowThreads(__tstate); | |
20058 | if (PyErr_Occurred()) SWIG_fail; | |
20059 | } | |
20060 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceDialog, SWIG_POINTER_OWN | 0 ); | |
20061 | return resultobj; | |
20062 | fail: | |
20063 | return NULL; | |
20064 | } | |
20065 | ||
20066 | ||
20067 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20068 | PyObject *resultobj = 0; | |
20069 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20070 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20071 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
20072 | wxString *arg4 = 0 ; | |
20073 | int arg5 = (int) 0 ; | |
20074 | bool result; | |
20075 | void *argp1 = 0 ; | |
20076 | int res1 = 0 ; | |
20077 | void *argp2 = 0 ; | |
20078 | int res2 = 0 ; | |
20079 | void *argp3 = 0 ; | |
20080 | int res3 = 0 ; | |
20081 | bool temp4 = false ; | |
20082 | int val5 ; | |
20083 | int ecode5 = 0 ; | |
20084 | PyObject * obj0 = 0 ; | |
20085 | PyObject * obj1 = 0 ; | |
20086 | PyObject * obj2 = 0 ; | |
20087 | PyObject * obj3 = 0 ; | |
20088 | PyObject * obj4 = 0 ; | |
20089 | char * kwnames[] = { | |
20090 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
20091 | }; | |
20092 | ||
20093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20095 | if (!SWIG_IsOK(res1)) { | |
20096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_Create" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20097 | } | |
20098 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20099 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20100 | if (!SWIG_IsOK(res2)) { | |
20101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20102 | } | |
20103 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20104 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20105 | if (!SWIG_IsOK(res3)) { | |
20106 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FindReplaceDialog_Create" "', expected argument " "3"" of type '" "wxFindReplaceData *""'"); | |
20107 | } | |
20108 | arg3 = reinterpret_cast< wxFindReplaceData * >(argp3); | |
20109 | { | |
20110 | arg4 = wxString_in_helper(obj3); | |
20111 | if (arg4 == NULL) SWIG_fail; | |
20112 | temp4 = true; | |
20113 | } | |
20114 | if (obj4) { | |
20115 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20116 | if (!SWIG_IsOK(ecode5)) { | |
20117 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FindReplaceDialog_Create" "', expected argument " "5"" of type '" "int""'"); | |
20118 | } | |
20119 | arg5 = static_cast< int >(val5); | |
20120 | } | |
20121 | { | |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20123 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
20124 | wxPyEndAllowThreads(__tstate); | |
20125 | if (PyErr_Occurred()) SWIG_fail; | |
20126 | } | |
20127 | { | |
20128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20129 | } | |
20130 | { | |
20131 | if (temp4) | |
20132 | delete arg4; | |
20133 | } | |
20134 | return resultobj; | |
20135 | fail: | |
20136 | { | |
20137 | if (temp4) | |
20138 | delete arg4; | |
20139 | } | |
20140 | return NULL; | |
d55e5bfc RD |
20141 | } |
20142 | ||
20143 | ||
554f62e9 RD |
20144 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20145 | PyObject *resultobj = 0; | |
20146 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20147 | wxFindReplaceData *result = 0 ; | |
20148 | void *argp1 = 0 ; | |
20149 | int res1 = 0 ; | |
20150 | PyObject *swig_obj[1] ; | |
20151 | ||
20152 | if (!args) SWIG_fail; | |
20153 | swig_obj[0] = args; | |
20154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20155 | if (!SWIG_IsOK(res1)) { | |
20156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_GetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20157 | } | |
20158 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20159 | { | |
20160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20161 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
20162 | wxPyEndAllowThreads(__tstate); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
20164 | } | |
20165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20166 | return resultobj; | |
20167 | fail: | |
20168 | return NULL; | |
20169 | } | |
20170 | ||
20171 | ||
20172 | SWIGINTERN PyObject *_wrap_FindReplaceDialog_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20173 | PyObject *resultobj = 0; | |
20174 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
20175 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
20176 | void *argp1 = 0 ; | |
20177 | int res1 = 0 ; | |
20178 | void *argp2 = 0 ; | |
20179 | int res2 = 0 ; | |
20180 | PyObject * obj0 = 0 ; | |
20181 | PyObject * obj1 = 0 ; | |
20182 | char * kwnames[] = { | |
20183 | (char *) "self",(char *) "data", NULL | |
20184 | }; | |
20185 | ||
20186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) SWIG_fail; | |
20187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFindReplaceDialog, 0 | 0 ); | |
20188 | if (!SWIG_IsOK(res1)) { | |
20189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FindReplaceDialog_SetData" "', expected argument " "1"" of type '" "wxFindReplaceDialog *""'"); | |
20190 | } | |
20191 | arg1 = reinterpret_cast< wxFindReplaceDialog * >(argp1); | |
20192 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFindReplaceData, 0 | 0 ); | |
20193 | if (!SWIG_IsOK(res2)) { | |
20194 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindReplaceDialog_SetData" "', expected argument " "2"" of type '" "wxFindReplaceData *""'"); | |
20195 | } | |
20196 | arg2 = reinterpret_cast< wxFindReplaceData * >(argp2); | |
20197 | { | |
20198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20199 | (arg1)->SetData(arg2); | |
20200 | wxPyEndAllowThreads(__tstate); | |
20201 | if (PyErr_Occurred()) SWIG_fail; | |
20202 | } | |
20203 | resultobj = SWIG_Py_Void(); | |
20204 | return resultobj; | |
20205 | fail: | |
20206 | return NULL; | |
20207 | } | |
20208 | ||
20209 | ||
20210 | SWIGINTERN PyObject *FindReplaceDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20211 | PyObject *obj; | |
20212 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20213 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFindReplaceDialog, SWIG_NewClientData(obj)); | |
20214 | return SWIG_Py_Void(); | |
20215 | } | |
20216 | ||
20217 | SWIGINTERN PyObject *FindReplaceDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20218 | return SWIG_Python_InitShadowInstance(args); | |
20219 | } | |
20220 | ||
20221 | SWIGINTERN PyObject *_wrap_new_MDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20222 | PyObject *resultobj = 0; | |
20223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20224 | int arg2 = (int) (int)-1 ; | |
20225 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20226 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20227 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20228 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20229 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20230 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20231 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20232 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20233 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20234 | wxMDIParentFrame *result = 0 ; | |
20235 | void *argp1 = 0 ; | |
20236 | int res1 = 0 ; | |
20237 | int val2 ; | |
20238 | int ecode2 = 0 ; | |
20239 | bool temp3 = false ; | |
20240 | wxPoint temp4 ; | |
20241 | wxSize temp5 ; | |
20242 | long val6 ; | |
20243 | int ecode6 = 0 ; | |
20244 | bool temp7 = false ; | |
20245 | PyObject * obj0 = 0 ; | |
20246 | PyObject * obj1 = 0 ; | |
20247 | PyObject * obj2 = 0 ; | |
20248 | PyObject * obj3 = 0 ; | |
20249 | PyObject * obj4 = 0 ; | |
20250 | PyObject * obj5 = 0 ; | |
20251 | PyObject * obj6 = 0 ; | |
20252 | char * kwnames[] = { | |
20253 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20254 | }; | |
20255 | ||
20256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20258 | if (!SWIG_IsOK(res1)) { | |
20259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIParentFrame" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
20260 | } | |
20261 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
20262 | if (obj1) { | |
20263 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20264 | if (!SWIG_IsOK(ecode2)) { | |
20265 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIParentFrame" "', expected argument " "2"" of type '" "int""'"); | |
20266 | } | |
20267 | arg2 = static_cast< int >(val2); | |
20268 | } | |
20269 | if (obj2) { | |
d55e5bfc | 20270 | { |
554f62e9 RD |
20271 | arg3 = wxString_in_helper(obj2); |
20272 | if (arg3 == NULL) SWIG_fail; | |
20273 | temp3 = true; | |
d55e5bfc | 20274 | } |
554f62e9 RD |
20275 | } |
20276 | if (obj3) { | |
d55e5bfc | 20277 | { |
554f62e9 RD |
20278 | arg4 = &temp4; |
20279 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20280 | } |
554f62e9 RD |
20281 | } |
20282 | if (obj4) { | |
d55e5bfc | 20283 | { |
554f62e9 RD |
20284 | arg5 = &temp5; |
20285 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20286 | } | |
20287 | } | |
20288 | if (obj5) { | |
20289 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20290 | if (!SWIG_IsOK(ecode6)) { | |
20291 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIParentFrame" "', expected argument " "6"" of type '" "long""'"); | |
20292 | } | |
20293 | arg6 = static_cast< long >(val6); | |
20294 | } | |
20295 | if (obj6) { | |
d55e5bfc | 20296 | { |
554f62e9 RD |
20297 | arg7 = wxString_in_helper(obj6); |
20298 | if (arg7 == NULL) SWIG_fail; | |
20299 | temp7 = true; | |
20300 | } | |
20301 | } | |
20302 | { | |
20303 | if (!wxPyCheckForApp()) SWIG_fail; | |
20304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20305 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20306 | wxPyEndAllowThreads(__tstate); | |
20307 | if (PyErr_Occurred()) SWIG_fail; | |
20308 | } | |
20309 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_NEW | 0 ); | |
20310 | { | |
20311 | if (temp3) | |
20312 | delete arg3; | |
20313 | } | |
20314 | { | |
20315 | if (temp7) | |
20316 | delete arg7; | |
20317 | } | |
20318 | return resultobj; | |
20319 | fail: | |
20320 | { | |
20321 | if (temp3) | |
20322 | delete arg3; | |
20323 | } | |
20324 | { | |
20325 | if (temp7) | |
20326 | delete arg7; | |
20327 | } | |
20328 | return NULL; | |
d55e5bfc RD |
20329 | } |
20330 | ||
20331 | ||
554f62e9 RD |
20332 | SWIGINTERN PyObject *_wrap_new_PreMDIParentFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20333 | PyObject *resultobj = 0; | |
20334 | wxMDIParentFrame *result = 0 ; | |
20335 | ||
20336 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIParentFrame",0,0,0)) SWIG_fail; | |
20337 | { | |
20338 | if (!wxPyCheckForApp()) SWIG_fail; | |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
20344 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIParentFrame, SWIG_POINTER_OWN | 0 ); | |
20345 | return resultobj; | |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
20351 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20352 | PyObject *resultobj = 0; | |
20353 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20354 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20355 | int arg3 = (int) (int)-1 ; | |
20356 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20357 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20358 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20359 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20360 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20361 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20362 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
20363 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20364 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20365 | bool result; | |
20366 | void *argp1 = 0 ; | |
20367 | int res1 = 0 ; | |
20368 | void *argp2 = 0 ; | |
20369 | int res2 = 0 ; | |
20370 | int val3 ; | |
20371 | int ecode3 = 0 ; | |
20372 | bool temp4 = false ; | |
20373 | wxPoint temp5 ; | |
20374 | wxSize temp6 ; | |
20375 | long val7 ; | |
20376 | int ecode7 = 0 ; | |
20377 | bool temp8 = false ; | |
20378 | PyObject * obj0 = 0 ; | |
20379 | PyObject * obj1 = 0 ; | |
20380 | PyObject * obj2 = 0 ; | |
20381 | PyObject * obj3 = 0 ; | |
20382 | PyObject * obj4 = 0 ; | |
20383 | PyObject * obj5 = 0 ; | |
20384 | PyObject * obj6 = 0 ; | |
20385 | PyObject * obj7 = 0 ; | |
20386 | char * kwnames[] = { | |
20387 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20388 | }; | |
20389 | ||
20390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20392 | if (!SWIG_IsOK(res1)) { | |
20393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Create" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20394 | } | |
20395 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20396 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
20397 | if (!SWIG_IsOK(res2)) { | |
20398 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
20399 | } | |
20400 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
20401 | if (obj2) { | |
20402 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20403 | if (!SWIG_IsOK(ecode3)) { | |
20404 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIParentFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20405 | } | |
20406 | arg3 = static_cast< int >(val3); | |
20407 | } | |
20408 | if (obj3) { | |
d55e5bfc | 20409 | { |
554f62e9 RD |
20410 | arg4 = wxString_in_helper(obj3); |
20411 | if (arg4 == NULL) SWIG_fail; | |
20412 | temp4 = true; | |
d55e5bfc | 20413 | } |
554f62e9 RD |
20414 | } |
20415 | if (obj4) { | |
d55e5bfc | 20416 | { |
554f62e9 RD |
20417 | arg5 = &temp5; |
20418 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20419 | } |
554f62e9 RD |
20420 | } |
20421 | if (obj5) { | |
d55e5bfc | 20422 | { |
554f62e9 RD |
20423 | arg6 = &temp6; |
20424 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
d55e5bfc | 20425 | } |
554f62e9 RD |
20426 | } |
20427 | if (obj6) { | |
20428 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20429 | if (!SWIG_IsOK(ecode7)) { | |
20430 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIParentFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20431 | } | |
20432 | arg7 = static_cast< long >(val7); | |
20433 | } | |
20434 | if (obj7) { | |
d55e5bfc | 20435 | { |
554f62e9 RD |
20436 | arg8 = wxString_in_helper(obj7); |
20437 | if (arg8 == NULL) SWIG_fail; | |
20438 | temp8 = true; | |
d55e5bfc | 20439 | } |
554f62e9 RD |
20440 | } |
20441 | { | |
20442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20443 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
20444 | wxPyEndAllowThreads(__tstate); | |
20445 | if (PyErr_Occurred()) SWIG_fail; | |
20446 | } | |
20447 | { | |
20448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20449 | } | |
20450 | { | |
20451 | if (temp4) | |
20452 | delete arg4; | |
20453 | } | |
20454 | { | |
20455 | if (temp8) | |
20456 | delete arg8; | |
20457 | } | |
20458 | return resultobj; | |
20459 | fail: | |
20460 | { | |
20461 | if (temp4) | |
20462 | delete arg4; | |
20463 | } | |
20464 | { | |
20465 | if (temp8) | |
20466 | delete arg8; | |
20467 | } | |
20468 | return NULL; | |
d55e5bfc RD |
20469 | } |
20470 | ||
20471 | ||
554f62e9 RD |
20472 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20473 | PyObject *resultobj = 0; | |
20474 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20475 | void *argp1 = 0 ; | |
20476 | int res1 = 0 ; | |
20477 | PyObject *swig_obj[1] ; | |
20478 | ||
20479 | if (!args) SWIG_fail; | |
20480 | swig_obj[0] = args; | |
20481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20482 | if (!SWIG_IsOK(res1)) { | |
20483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivateNext" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20484 | } | |
20485 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20486 | { | |
20487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20488 | (arg1)->ActivateNext(); | |
20489 | wxPyEndAllowThreads(__tstate); | |
20490 | if (PyErr_Occurred()) SWIG_fail; | |
20491 | } | |
20492 | resultobj = SWIG_Py_Void(); | |
20493 | return resultobj; | |
20494 | fail: | |
20495 | return NULL; | |
d55e5bfc RD |
20496 | } |
20497 | ||
20498 | ||
554f62e9 RD |
20499 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20500 | PyObject *resultobj = 0; | |
20501 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20502 | void *argp1 = 0 ; | |
20503 | int res1 = 0 ; | |
20504 | PyObject *swig_obj[1] ; | |
20505 | ||
20506 | if (!args) SWIG_fail; | |
20507 | swig_obj[0] = args; | |
20508 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20509 | if (!SWIG_IsOK(res1)) { | |
20510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ActivatePrevious" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20511 | } | |
20512 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20513 | { | |
20514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20515 | (arg1)->ActivatePrevious(); | |
20516 | wxPyEndAllowThreads(__tstate); | |
20517 | if (PyErr_Occurred()) SWIG_fail; | |
20518 | } | |
20519 | resultobj = SWIG_Py_Void(); | |
20520 | return resultobj; | |
20521 | fail: | |
20522 | return NULL; | |
d55e5bfc RD |
20523 | } |
20524 | ||
20525 | ||
554f62e9 RD |
20526 | SWIGINTERN PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20527 | PyObject *resultobj = 0; | |
20528 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20529 | void *argp1 = 0 ; | |
20530 | int res1 = 0 ; | |
20531 | PyObject *swig_obj[1] ; | |
20532 | ||
20533 | if (!args) SWIG_fail; | |
20534 | swig_obj[0] = args; | |
20535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20536 | if (!SWIG_IsOK(res1)) { | |
20537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_ArrangeIcons" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20538 | } | |
20539 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20540 | { | |
20541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20542 | (arg1)->ArrangeIcons(); | |
20543 | wxPyEndAllowThreads(__tstate); | |
20544 | if (PyErr_Occurred()) SWIG_fail; | |
20545 | } | |
20546 | resultobj = SWIG_Py_Void(); | |
20547 | return resultobj; | |
20548 | fail: | |
20549 | return NULL; | |
7e08d4ef RD |
20550 | } |
20551 | ||
20552 | ||
554f62e9 RD |
20553 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Cascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20554 | PyObject *resultobj = 0; | |
20555 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20556 | void *argp1 = 0 ; | |
20557 | int res1 = 0 ; | |
20558 | PyObject *swig_obj[1] ; | |
20559 | ||
20560 | if (!args) SWIG_fail; | |
20561 | swig_obj[0] = args; | |
20562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20563 | if (!SWIG_IsOK(res1)) { | |
20564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Cascade" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20565 | } | |
20566 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20567 | { | |
20568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20569 | (arg1)->Cascade(); | |
20570 | wxPyEndAllowThreads(__tstate); | |
20571 | if (PyErr_Occurred()) SWIG_fail; | |
20572 | } | |
20573 | resultobj = SWIG_Py_Void(); | |
20574 | return resultobj; | |
20575 | fail: | |
20576 | return NULL; | |
d55e5bfc RD |
20577 | } |
20578 | ||
20579 | ||
554f62e9 RD |
20580 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20581 | PyObject *resultobj = 0; | |
20582 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20583 | wxMDIChildFrame *result = 0 ; | |
20584 | void *argp1 = 0 ; | |
20585 | int res1 = 0 ; | |
20586 | PyObject *swig_obj[1] ; | |
20587 | ||
20588 | if (!args) SWIG_fail; | |
20589 | swig_obj[0] = args; | |
20590 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20591 | if (!SWIG_IsOK(res1)) { | |
20592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetActiveChild" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20593 | } | |
20594 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20595 | { | |
20596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20597 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
20598 | wxPyEndAllowThreads(__tstate); | |
20599 | if (PyErr_Occurred()) SWIG_fail; | |
20600 | } | |
20601 | { | |
20602 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20603 | } | |
20604 | return resultobj; | |
20605 | fail: | |
20606 | return NULL; | |
d55e5bfc RD |
20607 | } |
20608 | ||
20609 | ||
554f62e9 RD |
20610 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20611 | PyObject *resultobj = 0; | |
20612 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20613 | wxMDIClientWindow *result = 0 ; | |
20614 | void *argp1 = 0 ; | |
20615 | int res1 = 0 ; | |
20616 | PyObject *swig_obj[1] ; | |
20617 | ||
20618 | if (!args) SWIG_fail; | |
20619 | swig_obj[0] = args; | |
20620 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20621 | if (!SWIG_IsOK(res1)) { | |
20622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20623 | } | |
20624 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20625 | { | |
20626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20627 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
20628 | wxPyEndAllowThreads(__tstate); | |
20629 | if (PyErr_Occurred()) SWIG_fail; | |
20630 | } | |
20631 | { | |
20632 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
20633 | } | |
20634 | return resultobj; | |
20635 | fail: | |
20636 | return NULL; | |
d55e5bfc RD |
20637 | } |
20638 | ||
20639 | ||
554f62e9 RD |
20640 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20641 | PyObject *resultobj = 0; | |
20642 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20643 | wxWindow *result = 0 ; | |
20644 | void *argp1 = 0 ; | |
20645 | int res1 = 0 ; | |
20646 | PyObject *swig_obj[1] ; | |
20647 | ||
20648 | if (!args) SWIG_fail; | |
20649 | swig_obj[0] = args; | |
20650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20651 | if (!SWIG_IsOK(res1)) { | |
20652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetToolBar" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20653 | } | |
20654 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20655 | { | |
20656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20657 | result = (wxWindow *)(arg1)->GetToolBar(); | |
20658 | wxPyEndAllowThreads(__tstate); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | { | |
20662 | resultobj = wxPyMake_wxObject(result, 0); | |
20663 | } | |
20664 | return resultobj; | |
20665 | fail: | |
20666 | return NULL; | |
d55e5bfc RD |
20667 | } |
20668 | ||
20669 | ||
554f62e9 RD |
20670 | SWIGINTERN PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20671 | PyObject *resultobj = 0; | |
20672 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20673 | wxMenu *result = 0 ; | |
20674 | void *argp1 = 0 ; | |
20675 | int res1 = 0 ; | |
20676 | PyObject *swig_obj[1] ; | |
20677 | ||
20678 | if (!args) SWIG_fail; | |
20679 | swig_obj[0] = args; | |
20680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20681 | if (!SWIG_IsOK(res1)) { | |
20682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_GetWindowMenu" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20683 | } | |
20684 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20685 | { | |
20686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20687 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
20688 | wxPyEndAllowThreads(__tstate); | |
20689 | if (PyErr_Occurred()) SWIG_fail; | |
20690 | } | |
20691 | { | |
20692 | resultobj = wxPyMake_wxObject(result, 0); | |
20693 | } | |
20694 | return resultobj; | |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
20700 | SWIGINTERN PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20701 | PyObject *resultobj = 0; | |
20702 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20703 | wxMenu *arg2 = (wxMenu *) 0 ; | |
20704 | void *argp1 = 0 ; | |
20705 | int res1 = 0 ; | |
20706 | void *argp2 = 0 ; | |
20707 | int res2 = 0 ; | |
20708 | PyObject * obj0 = 0 ; | |
20709 | PyObject * obj1 = 0 ; | |
20710 | char * kwnames[] = { | |
20711 | (char *) "self",(char *) "menu", NULL | |
20712 | }; | |
20713 | ||
20714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) SWIG_fail; | |
20715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20716 | if (!SWIG_IsOK(res1)) { | |
20717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_SetWindowMenu" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20718 | } | |
20719 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20720 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 ); | |
20721 | if (!SWIG_IsOK(res2)) { | |
20722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIParentFrame_SetWindowMenu" "', expected argument " "2"" of type '" "wxMenu *""'"); | |
20723 | } | |
20724 | arg2 = reinterpret_cast< wxMenu * >(argp2); | |
20725 | { | |
20726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20727 | (arg1)->SetWindowMenu(arg2); | |
20728 | wxPyEndAllowThreads(__tstate); | |
20729 | if (PyErr_Occurred()) SWIG_fail; | |
20730 | } | |
20731 | resultobj = SWIG_Py_Void(); | |
20732 | return resultobj; | |
20733 | fail: | |
20734 | return NULL; | |
20735 | } | |
20736 | ||
20737 | ||
20738 | SWIGINTERN PyObject *_wrap_MDIParentFrame_Tile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20739 | PyObject *resultobj = 0; | |
20740 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20741 | wxOrientation arg2 = (wxOrientation) wxHORIZONTAL ; | |
20742 | void *argp1 = 0 ; | |
20743 | int res1 = 0 ; | |
20744 | int val2 ; | |
20745 | int ecode2 = 0 ; | |
20746 | PyObject * obj0 = 0 ; | |
20747 | PyObject * obj1 = 0 ; | |
20748 | char * kwnames[] = { | |
20749 | (char *) "self",(char *) "orient", NULL | |
20750 | }; | |
20751 | ||
20752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MDIParentFrame_Tile",kwnames,&obj0,&obj1)) SWIG_fail; | |
20753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20754 | if (!SWIG_IsOK(res1)) { | |
20755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIParentFrame_Tile" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20756 | } | |
20757 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20758 | if (obj1) { | |
20759 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20760 | if (!SWIG_IsOK(ecode2)) { | |
20761 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MDIParentFrame_Tile" "', expected argument " "2"" of type '" "wxOrientation""'"); | |
20762 | } | |
20763 | arg2 = static_cast< wxOrientation >(val2); | |
20764 | } | |
20765 | { | |
20766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20767 | (arg1)->Tile(arg2); | |
20768 | wxPyEndAllowThreads(__tstate); | |
20769 | if (PyErr_Occurred()) SWIG_fail; | |
20770 | } | |
20771 | resultobj = SWIG_Py_Void(); | |
20772 | return resultobj; | |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
20778 | SWIGINTERN PyObject *MDIParentFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20779 | PyObject *obj; | |
20780 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
20781 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIParentFrame, SWIG_NewClientData(obj)); | |
20782 | return SWIG_Py_Void(); | |
20783 | } | |
20784 | ||
20785 | SWIGINTERN PyObject *MDIParentFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20786 | return SWIG_Python_InitShadowInstance(args); | |
20787 | } | |
20788 | ||
20789 | SWIGINTERN PyObject *_wrap_new_MDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20790 | PyObject *resultobj = 0; | |
20791 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
20792 | int arg2 = (int) (int)-1 ; | |
20793 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
20794 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20795 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20796 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20797 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20798 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20799 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20800 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20801 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20802 | wxMDIChildFrame *result = 0 ; | |
20803 | void *argp1 = 0 ; | |
20804 | int res1 = 0 ; | |
20805 | int val2 ; | |
20806 | int ecode2 = 0 ; | |
20807 | bool temp3 = false ; | |
20808 | wxPoint temp4 ; | |
20809 | wxSize temp5 ; | |
20810 | long val6 ; | |
20811 | int ecode6 = 0 ; | |
20812 | bool temp7 = false ; | |
20813 | PyObject * obj0 = 0 ; | |
20814 | PyObject * obj1 = 0 ; | |
20815 | PyObject * obj2 = 0 ; | |
20816 | PyObject * obj3 = 0 ; | |
20817 | PyObject * obj4 = 0 ; | |
20818 | PyObject * obj5 = 0 ; | |
20819 | PyObject * obj6 = 0 ; | |
20820 | char * kwnames[] = { | |
20821 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20822 | }; | |
20823 | ||
20824 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
20825 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20826 | if (!SWIG_IsOK(res1)) { | |
20827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIChildFrame" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
20828 | } | |
20829 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
20830 | if (obj1) { | |
20831 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20832 | if (!SWIG_IsOK(ecode2)) { | |
20833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIChildFrame" "', expected argument " "2"" of type '" "int""'"); | |
20834 | } | |
20835 | arg2 = static_cast< int >(val2); | |
20836 | } | |
20837 | if (obj2) { | |
d55e5bfc | 20838 | { |
554f62e9 RD |
20839 | arg3 = wxString_in_helper(obj2); |
20840 | if (arg3 == NULL) SWIG_fail; | |
20841 | temp3 = true; | |
d55e5bfc | 20842 | } |
554f62e9 RD |
20843 | } |
20844 | if (obj3) { | |
d55e5bfc | 20845 | { |
554f62e9 RD |
20846 | arg4 = &temp4; |
20847 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 20848 | } |
554f62e9 RD |
20849 | } |
20850 | if (obj4) { | |
d55e5bfc | 20851 | { |
554f62e9 RD |
20852 | arg5 = &temp5; |
20853 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20854 | } |
554f62e9 RD |
20855 | } |
20856 | if (obj5) { | |
20857 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
20858 | if (!SWIG_IsOK(ecode6)) { | |
20859 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_MDIChildFrame" "', expected argument " "6"" of type '" "long""'"); | |
20860 | } | |
20861 | arg6 = static_cast< long >(val6); | |
20862 | } | |
20863 | if (obj6) { | |
d55e5bfc | 20864 | { |
554f62e9 RD |
20865 | arg7 = wxString_in_helper(obj6); |
20866 | if (arg7 == NULL) SWIG_fail; | |
20867 | temp7 = true; | |
d55e5bfc | 20868 | } |
554f62e9 RD |
20869 | } |
20870 | { | |
20871 | if (!wxPyCheckForApp()) SWIG_fail; | |
20872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20873 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
20877 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_NEW | 0 ); | |
20878 | { | |
20879 | if (temp3) | |
20880 | delete arg3; | |
20881 | } | |
20882 | { | |
20883 | if (temp7) | |
20884 | delete arg7; | |
20885 | } | |
20886 | return resultobj; | |
20887 | fail: | |
20888 | { | |
20889 | if (temp3) | |
20890 | delete arg3; | |
20891 | } | |
20892 | { | |
20893 | if (temp7) | |
20894 | delete arg7; | |
20895 | } | |
20896 | return NULL; | |
d55e5bfc RD |
20897 | } |
20898 | ||
20899 | ||
554f62e9 RD |
20900 | SWIGINTERN PyObject *_wrap_new_PreMDIChildFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
20901 | PyObject *resultobj = 0; | |
20902 | wxMDIChildFrame *result = 0 ; | |
20903 | ||
20904 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIChildFrame",0,0,0)) SWIG_fail; | |
20905 | { | |
20906 | if (!wxPyCheckForApp()) SWIG_fail; | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
20909 | wxPyEndAllowThreads(__tstate); | |
20910 | if (PyErr_Occurred()) SWIG_fail; | |
20911 | } | |
20912 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIChildFrame, SWIG_POINTER_OWN | 0 ); | |
20913 | return resultobj; | |
20914 | fail: | |
20915 | return NULL; | |
20916 | } | |
20917 | ||
20918 | ||
20919 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20920 | PyObject *resultobj = 0; | |
20921 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
20922 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
20923 | int arg3 = (int) (int)-1 ; | |
20924 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
20925 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
20926 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
20927 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
20928 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
20929 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
20930 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
20931 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
20932 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20933 | bool result; | |
20934 | void *argp1 = 0 ; | |
20935 | int res1 = 0 ; | |
20936 | void *argp2 = 0 ; | |
20937 | int res2 = 0 ; | |
20938 | int val3 ; | |
20939 | int ecode3 = 0 ; | |
20940 | bool temp4 = false ; | |
20941 | wxPoint temp5 ; | |
20942 | wxSize temp6 ; | |
20943 | long val7 ; | |
20944 | int ecode7 = 0 ; | |
20945 | bool temp8 = false ; | |
20946 | PyObject * obj0 = 0 ; | |
20947 | PyObject * obj1 = 0 ; | |
20948 | PyObject * obj2 = 0 ; | |
20949 | PyObject * obj3 = 0 ; | |
20950 | PyObject * obj4 = 0 ; | |
20951 | PyObject * obj5 = 0 ; | |
20952 | PyObject * obj6 = 0 ; | |
20953 | PyObject * obj7 = 0 ; | |
20954 | char * kwnames[] = { | |
20955 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20956 | }; | |
20957 | ||
20958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
20960 | if (!SWIG_IsOK(res1)) { | |
20961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Create" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
20962 | } | |
20963 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
20964 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
20965 | if (!SWIG_IsOK(res2)) { | |
20966 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIChildFrame_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
20967 | } | |
20968 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
20969 | if (obj2) { | |
20970 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20971 | if (!SWIG_IsOK(ecode3)) { | |
20972 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIChildFrame_Create" "', expected argument " "3"" of type '" "int""'"); | |
20973 | } | |
20974 | arg3 = static_cast< int >(val3); | |
20975 | } | |
20976 | if (obj3) { | |
d55e5bfc | 20977 | { |
554f62e9 RD |
20978 | arg4 = wxString_in_helper(obj3); |
20979 | if (arg4 == NULL) SWIG_fail; | |
20980 | temp4 = true; | |
d55e5bfc | 20981 | } |
554f62e9 RD |
20982 | } |
20983 | if (obj4) { | |
d55e5bfc | 20984 | { |
554f62e9 RD |
20985 | arg5 = &temp5; |
20986 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 20987 | } |
554f62e9 RD |
20988 | } |
20989 | if (obj5) { | |
093d3ff1 | 20990 | { |
554f62e9 RD |
20991 | arg6 = &temp6; |
20992 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
093d3ff1 | 20993 | } |
554f62e9 RD |
20994 | } |
20995 | if (obj6) { | |
20996 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
20997 | if (!SWIG_IsOK(ecode7)) { | |
20998 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "MDIChildFrame_Create" "', expected argument " "7"" of type '" "long""'"); | |
20999 | } | |
21000 | arg7 = static_cast< long >(val7); | |
21001 | } | |
21002 | if (obj7) { | |
d55e5bfc | 21003 | { |
554f62e9 RD |
21004 | arg8 = wxString_in_helper(obj7); |
21005 | if (arg8 == NULL) SWIG_fail; | |
21006 | temp8 = true; | |
d55e5bfc | 21007 | } |
554f62e9 RD |
21008 | } |
21009 | { | |
21010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21011 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
21012 | wxPyEndAllowThreads(__tstate); | |
21013 | if (PyErr_Occurred()) SWIG_fail; | |
21014 | } | |
21015 | { | |
21016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21017 | } | |
21018 | { | |
21019 | if (temp4) | |
21020 | delete arg4; | |
21021 | } | |
21022 | { | |
21023 | if (temp8) | |
21024 | delete arg8; | |
21025 | } | |
21026 | return resultobj; | |
21027 | fail: | |
21028 | { | |
21029 | if (temp4) | |
21030 | delete arg4; | |
21031 | } | |
21032 | { | |
21033 | if (temp8) | |
21034 | delete arg8; | |
21035 | } | |
21036 | return NULL; | |
d55e5bfc RD |
21037 | } |
21038 | ||
21039 | ||
554f62e9 RD |
21040 | SWIGINTERN PyObject *_wrap_MDIChildFrame_Activate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21041 | PyObject *resultobj = 0; | |
21042 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
21043 | void *argp1 = 0 ; | |
21044 | int res1 = 0 ; | |
21045 | PyObject *swig_obj[1] ; | |
21046 | ||
21047 | if (!args) SWIG_fail; | |
21048 | swig_obj[0] = args; | |
21049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMDIChildFrame, 0 | 0 ); | |
21050 | if (!SWIG_IsOK(res1)) { | |
21051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIChildFrame_Activate" "', expected argument " "1"" of type '" "wxMDIChildFrame *""'"); | |
21052 | } | |
21053 | arg1 = reinterpret_cast< wxMDIChildFrame * >(argp1); | |
21054 | { | |
21055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21056 | (arg1)->Activate(); | |
21057 | wxPyEndAllowThreads(__tstate); | |
21058 | if (PyErr_Occurred()) SWIG_fail; | |
21059 | } | |
21060 | resultobj = SWIG_Py_Void(); | |
21061 | return resultobj; | |
21062 | fail: | |
21063 | return NULL; | |
d55e5bfc RD |
21064 | } |
21065 | ||
21066 | ||
554f62e9 RD |
21067 | SWIGINTERN PyObject *MDIChildFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21068 | PyObject *obj; | |
21069 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21070 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIChildFrame, SWIG_NewClientData(obj)); | |
21071 | return SWIG_Py_Void(); | |
d55e5bfc RD |
21072 | } |
21073 | ||
554f62e9 RD |
21074 | SWIGINTERN PyObject *MDIChildFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21075 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
21076 | } |
21077 | ||
554f62e9 RD |
21078 | SWIGINTERN PyObject *_wrap_new_MDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
21079 | PyObject *resultobj = 0; | |
21080 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
21081 | long arg2 = (long) 0 ; | |
21082 | wxMDIClientWindow *result = 0 ; | |
21083 | void *argp1 = 0 ; | |
21084 | int res1 = 0 ; | |
21085 | long val2 ; | |
21086 | int ecode2 = 0 ; | |
21087 | PyObject * obj0 = 0 ; | |
21088 | PyObject * obj1 = 0 ; | |
21089 | char * kwnames[] = { | |
21090 | (char *) "parent",(char *) "style", NULL | |
21091 | }; | |
21092 | ||
21093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) SWIG_fail; | |
21094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21095 | if (!SWIG_IsOK(res1)) { | |
21096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MDIClientWindow" "', expected argument " "1"" of type '" "wxMDIParentFrame *""'"); | |
21097 | } | |
21098 | arg1 = reinterpret_cast< wxMDIParentFrame * >(argp1); | |
21099 | if (obj1) { | |
21100 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
21101 | if (!SWIG_IsOK(ecode2)) { | |
21102 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MDIClientWindow" "', expected argument " "2"" of type '" "long""'"); | |
21103 | } | |
21104 | arg2 = static_cast< long >(val2); | |
21105 | } | |
21106 | { | |
21107 | if (!wxPyCheckForApp()) SWIG_fail; | |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
21110 | wxPyEndAllowThreads(__tstate); | |
21111 | if (PyErr_Occurred()) SWIG_fail; | |
21112 | } | |
21113 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_NEW | 0 ); | |
21114 | return resultobj; | |
21115 | fail: | |
21116 | return NULL; | |
d55e5bfc RD |
21117 | } |
21118 | ||
21119 | ||
554f62e9 RD |
21120 | SWIGINTERN PyObject *_wrap_new_PreMDIClientWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21121 | PyObject *resultobj = 0; | |
21122 | wxMDIClientWindow *result = 0 ; | |
21123 | ||
21124 | if (!SWIG_Python_UnpackTuple(args,"new_PreMDIClientWindow",0,0,0)) SWIG_fail; | |
21125 | { | |
21126 | if (!wxPyCheckForApp()) SWIG_fail; | |
21127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21128 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
21129 | wxPyEndAllowThreads(__tstate); | |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
21131 | } | |
21132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMDIClientWindow, SWIG_POINTER_OWN | 0 ); | |
21133 | return resultobj; | |
21134 | fail: | |
21135 | return NULL; | |
21136 | } | |
21137 | ||
21138 | ||
21139 | SWIGINTERN PyObject *_wrap_MDIClientWindow_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21140 | PyObject *resultobj = 0; | |
21141 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
21142 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
21143 | long arg3 = (long) 0 ; | |
21144 | bool result; | |
21145 | void *argp1 = 0 ; | |
21146 | int res1 = 0 ; | |
21147 | void *argp2 = 0 ; | |
21148 | int res2 = 0 ; | |
21149 | long val3 ; | |
21150 | int ecode3 = 0 ; | |
21151 | PyObject * obj0 = 0 ; | |
21152 | PyObject * obj1 = 0 ; | |
21153 | PyObject * obj2 = 0 ; | |
21154 | char * kwnames[] = { | |
21155 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
21156 | }; | |
21157 | ||
21158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMDIClientWindow, 0 | 0 ); | |
21160 | if (!SWIG_IsOK(res1)) { | |
21161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MDIClientWindow_Create" "', expected argument " "1"" of type '" "wxMDIClientWindow *""'"); | |
21162 | } | |
21163 | arg1 = reinterpret_cast< wxMDIClientWindow * >(argp1); | |
21164 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMDIParentFrame, 0 | 0 ); | |
21165 | if (!SWIG_IsOK(res2)) { | |
21166 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MDIClientWindow_Create" "', expected argument " "2"" of type '" "wxMDIParentFrame *""'"); | |
21167 | } | |
21168 | arg2 = reinterpret_cast< wxMDIParentFrame * >(argp2); | |
21169 | if (obj2) { | |
21170 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
21171 | if (!SWIG_IsOK(ecode3)) { | |
21172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MDIClientWindow_Create" "', expected argument " "3"" of type '" "long""'"); | |
21173 | } | |
21174 | arg3 = static_cast< long >(val3); | |
21175 | } | |
21176 | { | |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | result = (bool)(arg1)->Create(arg2,arg3); | |
21179 | wxPyEndAllowThreads(__tstate); | |
21180 | if (PyErr_Occurred()) SWIG_fail; | |
21181 | } | |
21182 | { | |
21183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21184 | } | |
21185 | return resultobj; | |
21186 | fail: | |
21187 | return NULL; | |
21188 | } | |
21189 | ||
21190 | ||
21191 | SWIGINTERN PyObject *MDIClientWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21192 | PyObject *obj; | |
21193 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21194 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMDIClientWindow, SWIG_NewClientData(obj)); | |
21195 | return SWIG_Py_Void(); | |
21196 | } | |
21197 | ||
21198 | SWIGINTERN PyObject *MDIClientWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21199 | return SWIG_Python_InitShadowInstance(args); | |
21200 | } | |
21201 | ||
21202 | SWIGINTERN PyObject *_wrap_new_PyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21203 | PyObject *resultobj = 0; | |
21204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21205 | int arg2 = (int) (int)-1 ; | |
21206 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21207 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21208 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21209 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21210 | long arg5 = (long) 0 ; | |
21211 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21212 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21213 | wxPyWindow *result = 0 ; | |
21214 | void *argp1 = 0 ; | |
21215 | int res1 = 0 ; | |
21216 | int val2 ; | |
21217 | int ecode2 = 0 ; | |
21218 | wxPoint temp3 ; | |
21219 | wxSize temp4 ; | |
21220 | long val5 ; | |
21221 | int ecode5 = 0 ; | |
21222 | bool temp6 = false ; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | PyObject * obj1 = 0 ; | |
21225 | PyObject * obj2 = 0 ; | |
21226 | PyObject * obj3 = 0 ; | |
21227 | PyObject * obj4 = 0 ; | |
21228 | PyObject * obj5 = 0 ; | |
21229 | char * kwnames[] = { | |
21230 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21231 | }; | |
21232 | ||
21233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21235 | if (!SWIG_IsOK(res1)) { | |
21236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21237 | } | |
21238 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21239 | if (obj1) { | |
21240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21241 | if (!SWIG_IsOK(ecode2)) { | |
21242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyWindow" "', expected argument " "2"" of type '" "int""'"); | |
21243 | } | |
21244 | arg2 = static_cast< int >(val2); | |
21245 | } | |
21246 | if (obj2) { | |
d55e5bfc | 21247 | { |
554f62e9 RD |
21248 | arg3 = &temp3; |
21249 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc | 21250 | } |
554f62e9 RD |
21251 | } |
21252 | if (obj3) { | |
d55e5bfc | 21253 | { |
554f62e9 RD |
21254 | arg4 = &temp4; |
21255 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21256 | } |
554f62e9 RD |
21257 | } |
21258 | if (obj4) { | |
21259 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21260 | if (!SWIG_IsOK(ecode5)) { | |
21261 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyWindow" "', expected argument " "5"" of type '" "long""'"); | |
21262 | } | |
21263 | arg5 = static_cast< long >(val5); | |
21264 | } | |
21265 | if (obj5) { | |
d55e5bfc | 21266 | { |
554f62e9 RD |
21267 | arg6 = wxString_in_helper(obj5); |
21268 | if (arg6 == NULL) SWIG_fail; | |
21269 | temp6 = true; | |
d55e5bfc | 21270 | } |
554f62e9 RD |
21271 | } |
21272 | { | |
21273 | if (!wxPyCheckForApp()) SWIG_fail; | |
21274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21275 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21276 | wxPyEndAllowThreads(__tstate); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | } | |
21279 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_NEW | 0 ); | |
21280 | { | |
21281 | if (temp6) | |
21282 | delete arg6; | |
21283 | } | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | { | |
21287 | if (temp6) | |
21288 | delete arg6; | |
21289 | } | |
21290 | return NULL; | |
d55e5bfc RD |
21291 | } |
21292 | ||
21293 | ||
554f62e9 RD |
21294 | SWIGINTERN PyObject *_wrap_new_PrePyWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21295 | PyObject *resultobj = 0; | |
21296 | wxPyWindow *result = 0 ; | |
21297 | ||
21298 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyWindow",0,0,0)) SWIG_fail; | |
21299 | { | |
21300 | if (!wxPyCheckForApp()) SWIG_fail; | |
21301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21302 | result = (wxPyWindow *)new wxPyWindow(); | |
21303 | wxPyEndAllowThreads(__tstate); | |
21304 | if (PyErr_Occurred()) SWIG_fail; | |
21305 | } | |
21306 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyWindow, SWIG_POINTER_OWN | 0 ); | |
21307 | return resultobj; | |
21308 | fail: | |
21309 | return NULL; | |
21310 | } | |
21311 | ||
21312 | ||
21313 | SWIGINTERN PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21314 | PyObject *resultobj = 0; | |
21315 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21316 | PyObject *arg2 = (PyObject *) 0 ; | |
21317 | PyObject *arg3 = (PyObject *) 0 ; | |
21318 | void *argp1 = 0 ; | |
21319 | int res1 = 0 ; | |
21320 | PyObject * obj0 = 0 ; | |
21321 | PyObject * obj1 = 0 ; | |
21322 | PyObject * obj2 = 0 ; | |
21323 | char * kwnames[] = { | |
21324 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21325 | }; | |
21326 | ||
21327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21329 | if (!SWIG_IsOK(res1)) { | |
21330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21331 | } | |
21332 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21333 | arg2 = obj1; | |
21334 | arg3 = obj2; | |
21335 | { | |
21336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21337 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | resultobj = SWIG_Py_Void(); | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | SWIGINTERN PyObject *_wrap_PyWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21349 | PyObject *resultobj = 0; | |
21350 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21351 | wxSize *arg2 = 0 ; | |
21352 | void *argp1 = 0 ; | |
21353 | int res1 = 0 ; | |
21354 | wxSize temp2 ; | |
21355 | PyObject * obj0 = 0 ; | |
21356 | PyObject * obj1 = 0 ; | |
21357 | char * kwnames[] = { | |
21358 | (char *) "self",(char *) "size", NULL | |
21359 | }; | |
21360 | ||
21361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
21362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21363 | if (!SWIG_IsOK(res1)) { | |
21364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21365 | } | |
21366 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21367 | { | |
21368 | arg2 = &temp2; | |
21369 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21370 | } | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
21374 | wxPyEndAllowThreads(__tstate); | |
21375 | if (PyErr_Occurred()) SWIG_fail; | |
21376 | } | |
21377 | resultobj = SWIG_Py_Void(); | |
21378 | return resultobj; | |
21379 | fail: | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
21384 | SWIGINTERN PyObject *_wrap_PyWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21385 | PyObject *resultobj = 0; | |
21386 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21387 | wxDC *arg2 = (wxDC *) 0 ; | |
21388 | bool result; | |
21389 | void *argp1 = 0 ; | |
21390 | int res1 = 0 ; | |
21391 | void *argp2 = 0 ; | |
21392 | int res2 = 0 ; | |
21393 | PyObject * obj0 = 0 ; | |
21394 | PyObject * obj1 = 0 ; | |
21395 | char * kwnames[] = { | |
21396 | (char *) "self",(char *) "dc", NULL | |
21397 | }; | |
21398 | ||
21399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21401 | if (!SWIG_IsOK(res1)) { | |
21402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21403 | } | |
21404 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21405 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21406 | if (!SWIG_IsOK(res2)) { | |
21407 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
21408 | } | |
21409 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
21410 | { | |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
21413 | wxPyEndAllowThreads(__tstate); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | } | |
21416 | { | |
21417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21418 | } | |
21419 | return resultobj; | |
21420 | fail: | |
21421 | return NULL; | |
21422 | } | |
21423 | ||
21424 | ||
21425 | SWIGINTERN PyObject *_wrap_PyWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21426 | PyObject *resultobj = 0; | |
21427 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21428 | int arg2 ; | |
21429 | int arg3 ; | |
21430 | int arg4 ; | |
21431 | int arg5 ; | |
21432 | void *argp1 = 0 ; | |
21433 | int res1 = 0 ; | |
21434 | int val2 ; | |
21435 | int ecode2 = 0 ; | |
21436 | int val3 ; | |
21437 | int ecode3 = 0 ; | |
21438 | int val4 ; | |
21439 | int ecode4 = 0 ; | |
21440 | int val5 ; | |
21441 | int ecode5 = 0 ; | |
21442 | PyObject * obj0 = 0 ; | |
21443 | PyObject * obj1 = 0 ; | |
21444 | PyObject * obj2 = 0 ; | |
21445 | PyObject * obj3 = 0 ; | |
21446 | PyObject * obj4 = 0 ; | |
21447 | char * kwnames[] = { | |
21448 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
21449 | }; | |
21450 | ||
21451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
21452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21453 | if (!SWIG_IsOK(res1)) { | |
21454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21455 | } | |
21456 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21457 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21458 | if (!SWIG_IsOK(ecode2)) { | |
21459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
21460 | } | |
21461 | arg2 = static_cast< int >(val2); | |
21462 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21463 | if (!SWIG_IsOK(ecode3)) { | |
21464 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
21465 | } | |
21466 | arg3 = static_cast< int >(val3); | |
21467 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21468 | if (!SWIG_IsOK(ecode4)) { | |
21469 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
21470 | } | |
21471 | arg4 = static_cast< int >(val4); | |
21472 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21473 | if (!SWIG_IsOK(ecode5)) { | |
21474 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
21475 | } | |
21476 | arg5 = static_cast< int >(val5); | |
21477 | { | |
21478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21479 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
21480 | wxPyEndAllowThreads(__tstate); | |
21481 | if (PyErr_Occurred()) SWIG_fail; | |
21482 | } | |
21483 | resultobj = SWIG_Py_Void(); | |
21484 | return resultobj; | |
21485 | fail: | |
21486 | return NULL; | |
21487 | } | |
21488 | ||
21489 | ||
21490 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21491 | PyObject *resultobj = 0; | |
21492 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21493 | int arg2 ; | |
21494 | int arg3 ; | |
21495 | int arg4 ; | |
21496 | int arg5 ; | |
21497 | int arg6 = (int) wxSIZE_AUTO ; | |
21498 | void *argp1 = 0 ; | |
21499 | int res1 = 0 ; | |
21500 | int val2 ; | |
21501 | int ecode2 = 0 ; | |
21502 | int val3 ; | |
21503 | int ecode3 = 0 ; | |
21504 | int val4 ; | |
21505 | int ecode4 = 0 ; | |
21506 | int val5 ; | |
21507 | int ecode5 = 0 ; | |
21508 | int val6 ; | |
21509 | int ecode6 = 0 ; | |
21510 | PyObject * obj0 = 0 ; | |
21511 | PyObject * obj1 = 0 ; | |
21512 | PyObject * obj2 = 0 ; | |
21513 | PyObject * obj3 = 0 ; | |
21514 | PyObject * obj4 = 0 ; | |
21515 | PyObject * obj5 = 0 ; | |
21516 | char * kwnames[] = { | |
21517 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21518 | }; | |
21519 | ||
21520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21522 | if (!SWIG_IsOK(res1)) { | |
21523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21524 | } | |
21525 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21526 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21527 | if (!SWIG_IsOK(ecode2)) { | |
21528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
21529 | } | |
21530 | arg2 = static_cast< int >(val2); | |
21531 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21532 | if (!SWIG_IsOK(ecode3)) { | |
21533 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
21534 | } | |
21535 | arg3 = static_cast< int >(val3); | |
21536 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
21537 | if (!SWIG_IsOK(ecode4)) { | |
21538 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
21539 | } | |
21540 | arg4 = static_cast< int >(val4); | |
21541 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21542 | if (!SWIG_IsOK(ecode5)) { | |
21543 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
21544 | } | |
21545 | arg5 = static_cast< int >(val5); | |
21546 | if (obj5) { | |
21547 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21548 | if (!SWIG_IsOK(ecode6)) { | |
21549 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
21550 | } | |
21551 | arg6 = static_cast< int >(val6); | |
21552 | } | |
21553 | { | |
21554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21555 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
21556 | wxPyEndAllowThreads(__tstate); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | } | |
21559 | resultobj = SWIG_Py_Void(); | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21567 | PyObject *resultobj = 0; | |
21568 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21569 | int arg2 ; | |
21570 | int arg3 ; | |
21571 | void *argp1 = 0 ; | |
21572 | int res1 = 0 ; | |
21573 | int val2 ; | |
21574 | int ecode2 = 0 ; | |
21575 | int val3 ; | |
21576 | int ecode3 = 0 ; | |
21577 | PyObject * obj0 = 0 ; | |
21578 | PyObject * obj1 = 0 ; | |
21579 | PyObject * obj2 = 0 ; | |
21580 | char * kwnames[] = { | |
21581 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21582 | }; | |
21583 | ||
21584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21586 | if (!SWIG_IsOK(res1)) { | |
21587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21588 | } | |
21589 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21591 | if (!SWIG_IsOK(ecode2)) { | |
21592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
21593 | } | |
21594 | arg2 = static_cast< int >(val2); | |
21595 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21596 | if (!SWIG_IsOK(ecode3)) { | |
21597 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
21598 | } | |
21599 | arg3 = static_cast< int >(val3); | |
21600 | { | |
21601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21602 | (arg1)->DoSetClientSize(arg2,arg3); | |
21603 | wxPyEndAllowThreads(__tstate); | |
21604 | if (PyErr_Occurred()) SWIG_fail; | |
21605 | } | |
21606 | resultobj = SWIG_Py_Void(); | |
21607 | return resultobj; | |
21608 | fail: | |
21609 | return NULL; | |
21610 | } | |
21611 | ||
21612 | ||
21613 | SWIGINTERN PyObject *_wrap_PyWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21614 | PyObject *resultobj = 0; | |
21615 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21616 | int arg2 ; | |
21617 | int arg3 ; | |
21618 | void *argp1 = 0 ; | |
21619 | int res1 = 0 ; | |
21620 | int val2 ; | |
21621 | int ecode2 = 0 ; | |
21622 | int val3 ; | |
21623 | int ecode3 = 0 ; | |
21624 | PyObject * obj0 = 0 ; | |
21625 | PyObject * obj1 = 0 ; | |
21626 | PyObject * obj2 = 0 ; | |
21627 | char * kwnames[] = { | |
21628 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21629 | }; | |
21630 | ||
21631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21633 | if (!SWIG_IsOK(res1)) { | |
21634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21635 | } | |
21636 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21637 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21638 | if (!SWIG_IsOK(ecode2)) { | |
21639 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
21640 | } | |
21641 | arg2 = static_cast< int >(val2); | |
21642 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21643 | if (!SWIG_IsOK(ecode3)) { | |
21644 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
21645 | } | |
21646 | arg3 = static_cast< int >(val3); | |
21647 | { | |
21648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21649 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
21650 | wxPyEndAllowThreads(__tstate); | |
21651 | if (PyErr_Occurred()) SWIG_fail; | |
21652 | } | |
21653 | resultobj = SWIG_Py_Void(); | |
21654 | return resultobj; | |
21655 | fail: | |
21656 | return NULL; | |
21657 | } | |
21658 | ||
21659 | ||
21660 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21661 | PyObject *resultobj = 0; | |
21662 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21663 | int *arg2 = (int *) 0 ; | |
21664 | int *arg3 = (int *) 0 ; | |
21665 | void *argp1 = 0 ; | |
21666 | int res1 = 0 ; | |
21667 | int temp2 ; | |
21668 | int res2 = SWIG_TMPOBJ ; | |
21669 | int temp3 ; | |
21670 | int res3 = SWIG_TMPOBJ ; | |
21671 | PyObject *swig_obj[1] ; | |
21672 | ||
21673 | arg2 = &temp2; | |
21674 | arg3 = &temp3; | |
21675 | if (!args) SWIG_fail; | |
21676 | swig_obj[0] = args; | |
21677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21678 | if (!SWIG_IsOK(res1)) { | |
21679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21680 | } | |
21681 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21682 | { | |
21683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21684 | ((wxPyWindow const *)arg1)->DoGetSize(arg2,arg3); | |
21685 | wxPyEndAllowThreads(__tstate); | |
21686 | if (PyErr_Occurred()) SWIG_fail; | |
21687 | } | |
21688 | resultobj = SWIG_Py_Void(); | |
21689 | if (SWIG_IsTmpObj(res2)) { | |
21690 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21691 | } else { | |
21692 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21693 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21694 | } | |
21695 | if (SWIG_IsTmpObj(res3)) { | |
21696 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21697 | } else { | |
21698 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21699 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21700 | } | |
21701 | return resultobj; | |
21702 | fail: | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21708 | PyObject *resultobj = 0; | |
21709 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21710 | int *arg2 = (int *) 0 ; | |
21711 | int *arg3 = (int *) 0 ; | |
21712 | void *argp1 = 0 ; | |
21713 | int res1 = 0 ; | |
21714 | int temp2 ; | |
21715 | int res2 = SWIG_TMPOBJ ; | |
21716 | int temp3 ; | |
21717 | int res3 = SWIG_TMPOBJ ; | |
21718 | PyObject *swig_obj[1] ; | |
21719 | ||
21720 | arg2 = &temp2; | |
21721 | arg3 = &temp3; | |
21722 | if (!args) SWIG_fail; | |
21723 | swig_obj[0] = args; | |
21724 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21725 | if (!SWIG_IsOK(res1)) { | |
21726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21727 | } | |
21728 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | ((wxPyWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
21732 | wxPyEndAllowThreads(__tstate); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
21734 | } | |
21735 | resultobj = SWIG_Py_Void(); | |
21736 | if (SWIG_IsTmpObj(res2)) { | |
21737 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21738 | } else { | |
21739 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21740 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21741 | } | |
21742 | if (SWIG_IsTmpObj(res3)) { | |
21743 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21744 | } else { | |
21745 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21746 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21747 | } | |
21748 | return resultobj; | |
21749 | fail: | |
21750 | return NULL; | |
21751 | } | |
21752 | ||
21753 | ||
21754 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21755 | PyObject *resultobj = 0; | |
21756 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21757 | int *arg2 = (int *) 0 ; | |
21758 | int *arg3 = (int *) 0 ; | |
21759 | void *argp1 = 0 ; | |
21760 | int res1 = 0 ; | |
21761 | int temp2 ; | |
21762 | int res2 = SWIG_TMPOBJ ; | |
21763 | int temp3 ; | |
21764 | int res3 = SWIG_TMPOBJ ; | |
21765 | PyObject *swig_obj[1] ; | |
21766 | ||
21767 | arg2 = &temp2; | |
21768 | arg3 = &temp3; | |
21769 | if (!args) SWIG_fail; | |
21770 | swig_obj[0] = args; | |
21771 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21772 | if (!SWIG_IsOK(res1)) { | |
21773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21774 | } | |
21775 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21776 | { | |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | ((wxPyWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
21779 | wxPyEndAllowThreads(__tstate); | |
21780 | if (PyErr_Occurred()) SWIG_fail; | |
21781 | } | |
21782 | resultobj = SWIG_Py_Void(); | |
21783 | if (SWIG_IsTmpObj(res2)) { | |
21784 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21785 | } else { | |
21786 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21787 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21788 | } | |
21789 | if (SWIG_IsTmpObj(res3)) { | |
21790 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21791 | } else { | |
21792 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21793 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21794 | } | |
21795 | return resultobj; | |
21796 | fail: | |
21797 | return NULL; | |
21798 | } | |
d55e5bfc | 21799 | |
554f62e9 RD |
21800 | |
21801 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21802 | PyObject *resultobj = 0; | |
21803 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21804 | wxSize result; | |
21805 | void *argp1 = 0 ; | |
21806 | int res1 = 0 ; | |
21807 | PyObject *swig_obj[1] ; | |
21808 | ||
21809 | if (!args) SWIG_fail; | |
21810 | swig_obj[0] = args; | |
21811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21812 | if (!SWIG_IsOK(res1)) { | |
21813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21814 | } | |
21815 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21816 | { | |
21817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21818 | result = ((wxPyWindow const *)arg1)->DoGetVirtualSize(); | |
21819 | wxPyEndAllowThreads(__tstate); | |
21820 | if (PyErr_Occurred()) SWIG_fail; | |
21821 | } | |
21822 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21823 | return resultobj; | |
21824 | fail: | |
21825 | return NULL; | |
d55e5bfc RD |
21826 | } |
21827 | ||
21828 | ||
554f62e9 RD |
21829 | SWIGINTERN PyObject *_wrap_PyWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21830 | PyObject *resultobj = 0; | |
21831 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21832 | wxSize result; | |
21833 | void *argp1 = 0 ; | |
21834 | int res1 = 0 ; | |
21835 | PyObject *swig_obj[1] ; | |
21836 | ||
21837 | if (!args) SWIG_fail; | |
21838 | swig_obj[0] = args; | |
21839 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21840 | if (!SWIG_IsOK(res1)) { | |
21841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyWindow const *""'"); | |
21842 | } | |
21843 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21844 | { | |
21845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21846 | result = ((wxPyWindow const *)arg1)->DoGetBestSize(); | |
21847 | wxPyEndAllowThreads(__tstate); | |
21848 | if (PyErr_Occurred()) SWIG_fail; | |
21849 | } | |
21850 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21851 | return resultobj; | |
21852 | fail: | |
21853 | return NULL; | |
d55e5bfc RD |
21854 | } |
21855 | ||
21856 | ||
554f62e9 RD |
21857 | SWIGINTERN PyObject *_wrap_PyWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21858 | PyObject *resultobj = 0; | |
21859 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21860 | SwigValueWrapper<wxVisualAttributes > result; | |
21861 | void *argp1 = 0 ; | |
21862 | int res1 = 0 ; | |
21863 | PyObject *swig_obj[1] ; | |
21864 | ||
21865 | if (!args) SWIG_fail; | |
21866 | swig_obj[0] = args; | |
21867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21868 | if (!SWIG_IsOK(res1)) { | |
21869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21870 | } | |
21871 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | result = (arg1)->GetDefaultAttributes(); | |
21875 | wxPyEndAllowThreads(__tstate); | |
21876 | if (PyErr_Occurred()) SWIG_fail; | |
21877 | } | |
21878 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
21879 | return resultobj; | |
21880 | fail: | |
21881 | return NULL; | |
d55e5bfc RD |
21882 | } |
21883 | ||
21884 | ||
554f62e9 RD |
21885 | SWIGINTERN PyObject *_wrap_PyWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
21886 | PyObject *resultobj = 0; | |
21887 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
21888 | void *argp1 = 0 ; | |
21889 | int res1 = 0 ; | |
21890 | PyObject *swig_obj[1] ; | |
21891 | ||
21892 | if (!args) SWIG_fail; | |
21893 | swig_obj[0] = args; | |
21894 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyWindow, 0 | 0 ); | |
21895 | if (!SWIG_IsOK(res1)) { | |
21896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyWindow *""'"); | |
21897 | } | |
21898 | arg1 = reinterpret_cast< wxPyWindow * >(argp1); | |
21899 | { | |
21900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21901 | (arg1)->OnInternalIdle(); | |
21902 | wxPyEndAllowThreads(__tstate); | |
21903 | if (PyErr_Occurred()) SWIG_fail; | |
21904 | } | |
21905 | resultobj = SWIG_Py_Void(); | |
21906 | return resultobj; | |
21907 | fail: | |
21908 | return NULL; | |
21909 | } | |
21910 | ||
21911 | ||
21912 | SWIGINTERN PyObject *PyWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21913 | PyObject *obj; | |
21914 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
21915 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyWindow, SWIG_NewClientData(obj)); | |
21916 | return SWIG_Py_Void(); | |
21917 | } | |
21918 | ||
21919 | SWIGINTERN PyObject *PyWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21920 | return SWIG_Python_InitShadowInstance(args); | |
21921 | } | |
21922 | ||
21923 | SWIGINTERN PyObject *_wrap_new_PyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21924 | PyObject *resultobj = 0; | |
21925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21926 | int arg2 = (int) (int)-1 ; | |
21927 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21928 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21929 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21930 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21931 | long arg5 = (long) 0 ; | |
21932 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21933 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21934 | wxPyPanel *result = 0 ; | |
21935 | void *argp1 = 0 ; | |
21936 | int res1 = 0 ; | |
21937 | int val2 ; | |
21938 | int ecode2 = 0 ; | |
21939 | wxPoint temp3 ; | |
21940 | wxSize temp4 ; | |
21941 | long val5 ; | |
21942 | int ecode5 = 0 ; | |
21943 | bool temp6 = false ; | |
21944 | PyObject * obj0 = 0 ; | |
21945 | PyObject * obj1 = 0 ; | |
21946 | PyObject * obj2 = 0 ; | |
21947 | PyObject * obj3 = 0 ; | |
21948 | PyObject * obj4 = 0 ; | |
21949 | PyObject * obj5 = 0 ; | |
21950 | char * kwnames[] = { | |
21951 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21952 | }; | |
21953 | ||
21954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
21955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
21956 | if (!SWIG_IsOK(res1)) { | |
21957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPanel" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
21958 | } | |
21959 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
21960 | if (obj1) { | |
21961 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21962 | if (!SWIG_IsOK(ecode2)) { | |
21963 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPanel" "', expected argument " "2"" of type '" "int""'"); | |
21964 | } | |
21965 | arg2 = static_cast< int >(val2); | |
21966 | } | |
21967 | if (obj2) { | |
093d3ff1 | 21968 | { |
554f62e9 RD |
21969 | arg3 = &temp3; |
21970 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 21971 | } |
554f62e9 RD |
21972 | } |
21973 | if (obj3) { | |
d55e5bfc | 21974 | { |
554f62e9 RD |
21975 | arg4 = &temp4; |
21976 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 21977 | } |
554f62e9 RD |
21978 | } |
21979 | if (obj4) { | |
21980 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
21981 | if (!SWIG_IsOK(ecode5)) { | |
21982 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyPanel" "', expected argument " "5"" of type '" "long""'"); | |
21983 | } | |
21984 | arg5 = static_cast< long >(val5); | |
21985 | } | |
21986 | if (obj5) { | |
d55e5bfc | 21987 | { |
554f62e9 RD |
21988 | arg6 = wxString_in_helper(obj5); |
21989 | if (arg6 == NULL) SWIG_fail; | |
21990 | temp6 = true; | |
d55e5bfc | 21991 | } |
554f62e9 RD |
21992 | } |
21993 | { | |
21994 | if (!wxPyCheckForApp()) SWIG_fail; | |
21995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21996 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21997 | wxPyEndAllowThreads(__tstate); | |
21998 | if (PyErr_Occurred()) SWIG_fail; | |
21999 | } | |
22000 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_NEW | 0 ); | |
22001 | { | |
22002 | if (temp6) | |
22003 | delete arg6; | |
22004 | } | |
22005 | return resultobj; | |
22006 | fail: | |
22007 | { | |
22008 | if (temp6) | |
22009 | delete arg6; | |
22010 | } | |
22011 | return NULL; | |
d55e5bfc RD |
22012 | } |
22013 | ||
22014 | ||
554f62e9 RD |
22015 | SWIGINTERN PyObject *_wrap_new_PrePyPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22016 | PyObject *resultobj = 0; | |
22017 | wxPyPanel *result = 0 ; | |
22018 | ||
22019 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyPanel",0,0,0)) SWIG_fail; | |
22020 | { | |
22021 | if (!wxPyCheckForApp()) SWIG_fail; | |
22022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22023 | result = (wxPyPanel *)new wxPyPanel(); | |
22024 | wxPyEndAllowThreads(__tstate); | |
22025 | if (PyErr_Occurred()) SWIG_fail; | |
22026 | } | |
22027 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPanel, SWIG_POINTER_OWN | 0 ); | |
22028 | return resultobj; | |
22029 | fail: | |
22030 | return NULL; | |
22031 | } | |
22032 | ||
22033 | ||
22034 | SWIGINTERN PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22035 | PyObject *resultobj = 0; | |
22036 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22037 | PyObject *arg2 = (PyObject *) 0 ; | |
22038 | PyObject *arg3 = (PyObject *) 0 ; | |
22039 | void *argp1 = 0 ; | |
22040 | int res1 = 0 ; | |
22041 | PyObject * obj0 = 0 ; | |
22042 | PyObject * obj1 = 0 ; | |
22043 | PyObject * obj2 = 0 ; | |
22044 | char * kwnames[] = { | |
22045 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22046 | }; | |
22047 | ||
22048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22050 | if (!SWIG_IsOK(res1)) { | |
22051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22052 | } | |
22053 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22054 | arg2 = obj1; | |
22055 | arg3 = obj2; | |
22056 | { | |
22057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22058 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22059 | wxPyEndAllowThreads(__tstate); | |
22060 | if (PyErr_Occurred()) SWIG_fail; | |
22061 | } | |
22062 | resultobj = SWIG_Py_Void(); | |
22063 | return resultobj; | |
22064 | fail: | |
22065 | return NULL; | |
22066 | } | |
22067 | ||
22068 | ||
22069 | SWIGINTERN PyObject *_wrap_PyPanel_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22070 | PyObject *resultobj = 0; | |
22071 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22072 | wxSize *arg2 = 0 ; | |
22073 | void *argp1 = 0 ; | |
22074 | int res1 = 0 ; | |
22075 | wxSize temp2 ; | |
22076 | PyObject * obj0 = 0 ; | |
22077 | PyObject * obj1 = 0 ; | |
22078 | char * kwnames[] = { | |
22079 | (char *) "self",(char *) "size", NULL | |
22080 | }; | |
22081 | ||
22082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22084 | if (!SWIG_IsOK(res1)) { | |
22085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_SetBestSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22086 | } | |
22087 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22088 | { | |
22089 | arg2 = &temp2; | |
22090 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22091 | } | |
22092 | { | |
22093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22094 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | resultobj = SWIG_Py_Void(); | |
22099 | return resultobj; | |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | SWIGINTERN PyObject *_wrap_PyPanel_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj = 0; | |
22107 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22108 | wxDC *arg2 = (wxDC *) 0 ; | |
22109 | bool result; | |
22110 | void *argp1 = 0 ; | |
22111 | int res1 = 0 ; | |
22112 | void *argp2 = 0 ; | |
22113 | int res2 = 0 ; | |
22114 | PyObject * obj0 = 0 ; | |
22115 | PyObject * obj1 = 0 ; | |
22116 | char * kwnames[] = { | |
22117 | (char *) "self",(char *) "dc", NULL | |
22118 | }; | |
22119 | ||
22120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22122 | if (!SWIG_IsOK(res1)) { | |
22123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22124 | } | |
22125 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22126 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22127 | if (!SWIG_IsOK(res2)) { | |
22128 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPanel_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22129 | } | |
22130 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22131 | { | |
22132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22133 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22134 | wxPyEndAllowThreads(__tstate); | |
22135 | if (PyErr_Occurred()) SWIG_fail; | |
22136 | } | |
22137 | { | |
22138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22139 | } | |
22140 | return resultobj; | |
22141 | fail: | |
22142 | return NULL; | |
22143 | } | |
22144 | ||
22145 | ||
22146 | SWIGINTERN PyObject *_wrap_PyPanel_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22147 | PyObject *resultobj = 0; | |
22148 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22149 | int arg2 ; | |
22150 | int arg3 ; | |
22151 | int arg4 ; | |
22152 | int arg5 ; | |
22153 | void *argp1 = 0 ; | |
22154 | int res1 = 0 ; | |
22155 | int val2 ; | |
22156 | int ecode2 = 0 ; | |
22157 | int val3 ; | |
22158 | int ecode3 = 0 ; | |
22159 | int val4 ; | |
22160 | int ecode4 = 0 ; | |
22161 | int val5 ; | |
22162 | int ecode5 = 0 ; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | PyObject * obj1 = 0 ; | |
22165 | PyObject * obj2 = 0 ; | |
22166 | PyObject * obj3 = 0 ; | |
22167 | PyObject * obj4 = 0 ; | |
22168 | char * kwnames[] = { | |
22169 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22170 | }; | |
22171 | ||
22172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22174 | if (!SWIG_IsOK(res1)) { | |
22175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22176 | } | |
22177 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22178 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22179 | if (!SWIG_IsOK(ecode2)) { | |
22180 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22181 | } | |
22182 | arg2 = static_cast< int >(val2); | |
22183 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22184 | if (!SWIG_IsOK(ecode3)) { | |
22185 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22186 | } | |
22187 | arg3 = static_cast< int >(val3); | |
22188 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22189 | if (!SWIG_IsOK(ecode4)) { | |
22190 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22191 | } | |
22192 | arg4 = static_cast< int >(val4); | |
22193 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22194 | if (!SWIG_IsOK(ecode5)) { | |
22195 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22196 | } | |
22197 | arg5 = static_cast< int >(val5); | |
22198 | { | |
22199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22200 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22201 | wxPyEndAllowThreads(__tstate); | |
22202 | if (PyErr_Occurred()) SWIG_fail; | |
22203 | } | |
22204 | resultobj = SWIG_Py_Void(); | |
22205 | return resultobj; | |
22206 | fail: | |
22207 | return NULL; | |
22208 | } | |
22209 | ||
22210 | ||
22211 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22212 | PyObject *resultobj = 0; | |
22213 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22214 | int arg2 ; | |
22215 | int arg3 ; | |
22216 | int arg4 ; | |
22217 | int arg5 ; | |
22218 | int arg6 = (int) wxSIZE_AUTO ; | |
22219 | void *argp1 = 0 ; | |
22220 | int res1 = 0 ; | |
22221 | int val2 ; | |
22222 | int ecode2 = 0 ; | |
22223 | int val3 ; | |
22224 | int ecode3 = 0 ; | |
22225 | int val4 ; | |
22226 | int ecode4 = 0 ; | |
22227 | int val5 ; | |
22228 | int ecode5 = 0 ; | |
22229 | int val6 ; | |
22230 | int ecode6 = 0 ; | |
22231 | PyObject * obj0 = 0 ; | |
22232 | PyObject * obj1 = 0 ; | |
22233 | PyObject * obj2 = 0 ; | |
22234 | PyObject * obj3 = 0 ; | |
22235 | PyObject * obj4 = 0 ; | |
22236 | PyObject * obj5 = 0 ; | |
22237 | char * kwnames[] = { | |
22238 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22239 | }; | |
22240 | ||
22241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22243 | if (!SWIG_IsOK(res1)) { | |
22244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22245 | } | |
22246 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22247 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22248 | if (!SWIG_IsOK(ecode2)) { | |
22249 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22250 | } | |
22251 | arg2 = static_cast< int >(val2); | |
22252 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22253 | if (!SWIG_IsOK(ecode3)) { | |
22254 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22255 | } | |
22256 | arg3 = static_cast< int >(val3); | |
22257 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22258 | if (!SWIG_IsOK(ecode4)) { | |
22259 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyPanel_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22260 | } | |
22261 | arg4 = static_cast< int >(val4); | |
22262 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22263 | if (!SWIG_IsOK(ecode5)) { | |
22264 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyPanel_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22265 | } | |
22266 | arg5 = static_cast< int >(val5); | |
22267 | if (obj5) { | |
22268 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22269 | if (!SWIG_IsOK(ecode6)) { | |
22270 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyPanel_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22271 | } | |
22272 | arg6 = static_cast< int >(val6); | |
22273 | } | |
22274 | { | |
22275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22276 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22277 | wxPyEndAllowThreads(__tstate); | |
22278 | if (PyErr_Occurred()) SWIG_fail; | |
22279 | } | |
22280 | resultobj = SWIG_Py_Void(); | |
22281 | return resultobj; | |
22282 | fail: | |
22283 | return NULL; | |
22284 | } | |
22285 | ||
22286 | ||
22287 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22288 | PyObject *resultobj = 0; | |
22289 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22290 | int arg2 ; | |
22291 | int arg3 ; | |
22292 | void *argp1 = 0 ; | |
22293 | int res1 = 0 ; | |
22294 | int val2 ; | |
22295 | int ecode2 = 0 ; | |
22296 | int val3 ; | |
22297 | int ecode3 = 0 ; | |
22298 | PyObject * obj0 = 0 ; | |
22299 | PyObject * obj1 = 0 ; | |
22300 | PyObject * obj2 = 0 ; | |
22301 | char * kwnames[] = { | |
22302 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22303 | }; | |
22304 | ||
22305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22307 | if (!SWIG_IsOK(res1)) { | |
22308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22309 | } | |
22310 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22311 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22312 | if (!SWIG_IsOK(ecode2)) { | |
22313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
22314 | } | |
22315 | arg2 = static_cast< int >(val2); | |
22316 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22317 | if (!SWIG_IsOK(ecode3)) { | |
22318 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
22319 | } | |
22320 | arg3 = static_cast< int >(val3); | |
22321 | { | |
22322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22323 | (arg1)->DoSetClientSize(arg2,arg3); | |
22324 | wxPyEndAllowThreads(__tstate); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | } | |
22327 | resultobj = SWIG_Py_Void(); | |
22328 | return resultobj; | |
22329 | fail: | |
22330 | return NULL; | |
22331 | } | |
22332 | ||
22333 | ||
22334 | SWIGINTERN PyObject *_wrap_PyPanel_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22335 | PyObject *resultobj = 0; | |
22336 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22337 | int arg2 ; | |
22338 | int arg3 ; | |
22339 | void *argp1 = 0 ; | |
22340 | int res1 = 0 ; | |
22341 | int val2 ; | |
22342 | int ecode2 = 0 ; | |
22343 | int val3 ; | |
22344 | int ecode3 = 0 ; | |
22345 | PyObject * obj0 = 0 ; | |
22346 | PyObject * obj1 = 0 ; | |
22347 | PyObject * obj2 = 0 ; | |
22348 | char * kwnames[] = { | |
22349 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22350 | }; | |
22351 | ||
22352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22354 | if (!SWIG_IsOK(res1)) { | |
22355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22356 | } | |
22357 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22358 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22359 | if (!SWIG_IsOK(ecode2)) { | |
22360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
22361 | } | |
22362 | arg2 = static_cast< int >(val2); | |
22363 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22364 | if (!SWIG_IsOK(ecode3)) { | |
22365 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyPanel_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
22366 | } | |
22367 | arg3 = static_cast< int >(val3); | |
22368 | { | |
22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22370 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
22371 | wxPyEndAllowThreads(__tstate); | |
22372 | if (PyErr_Occurred()) SWIG_fail; | |
22373 | } | |
22374 | resultobj = SWIG_Py_Void(); | |
22375 | return resultobj; | |
22376 | fail: | |
22377 | return NULL; | |
22378 | } | |
22379 | ||
22380 | ||
22381 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22382 | PyObject *resultobj = 0; | |
22383 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22384 | int *arg2 = (int *) 0 ; | |
22385 | int *arg3 = (int *) 0 ; | |
22386 | void *argp1 = 0 ; | |
22387 | int res1 = 0 ; | |
22388 | int temp2 ; | |
22389 | int res2 = SWIG_TMPOBJ ; | |
22390 | int temp3 ; | |
22391 | int res3 = SWIG_TMPOBJ ; | |
22392 | PyObject *swig_obj[1] ; | |
22393 | ||
22394 | arg2 = &temp2; | |
22395 | arg3 = &temp3; | |
22396 | if (!args) SWIG_fail; | |
22397 | swig_obj[0] = args; | |
22398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22399 | if (!SWIG_IsOK(res1)) { | |
22400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22401 | } | |
22402 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22403 | { | |
22404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22405 | ((wxPyPanel const *)arg1)->DoGetSize(arg2,arg3); | |
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | resultobj = SWIG_Py_Void(); | |
22410 | if (SWIG_IsTmpObj(res2)) { | |
22411 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22412 | } else { | |
22413 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22414 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22415 | } | |
22416 | if (SWIG_IsTmpObj(res3)) { | |
22417 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22418 | } else { | |
22419 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22420 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22421 | } | |
22422 | return resultobj; | |
22423 | fail: | |
22424 | return NULL; | |
22425 | } | |
22426 | ||
22427 | ||
22428 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22429 | PyObject *resultobj = 0; | |
22430 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22431 | int *arg2 = (int *) 0 ; | |
22432 | int *arg3 = (int *) 0 ; | |
22433 | void *argp1 = 0 ; | |
22434 | int res1 = 0 ; | |
22435 | int temp2 ; | |
22436 | int res2 = SWIG_TMPOBJ ; | |
22437 | int temp3 ; | |
22438 | int res3 = SWIG_TMPOBJ ; | |
22439 | PyObject *swig_obj[1] ; | |
22440 | ||
22441 | arg2 = &temp2; | |
22442 | arg3 = &temp3; | |
22443 | if (!args) SWIG_fail; | |
22444 | swig_obj[0] = args; | |
22445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22446 | if (!SWIG_IsOK(res1)) { | |
22447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22448 | } | |
22449 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22450 | { | |
22451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22452 | ((wxPyPanel const *)arg1)->DoGetClientSize(arg2,arg3); | |
22453 | wxPyEndAllowThreads(__tstate); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | } | |
22456 | resultobj = SWIG_Py_Void(); | |
22457 | if (SWIG_IsTmpObj(res2)) { | |
22458 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22459 | } else { | |
22460 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22461 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22462 | } | |
22463 | if (SWIG_IsTmpObj(res3)) { | |
22464 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22465 | } else { | |
22466 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22467 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22468 | } | |
22469 | return resultobj; | |
22470 | fail: | |
22471 | return NULL; | |
22472 | } | |
22473 | ||
22474 | ||
22475 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22476 | PyObject *resultobj = 0; | |
22477 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22478 | int *arg2 = (int *) 0 ; | |
22479 | int *arg3 = (int *) 0 ; | |
22480 | void *argp1 = 0 ; | |
22481 | int res1 = 0 ; | |
22482 | int temp2 ; | |
22483 | int res2 = SWIG_TMPOBJ ; | |
22484 | int temp3 ; | |
22485 | int res3 = SWIG_TMPOBJ ; | |
22486 | PyObject *swig_obj[1] ; | |
22487 | ||
22488 | arg2 = &temp2; | |
22489 | arg3 = &temp3; | |
22490 | if (!args) SWIG_fail; | |
22491 | swig_obj[0] = args; | |
22492 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22493 | if (!SWIG_IsOK(res1)) { | |
22494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetPosition" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22495 | } | |
22496 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | ((wxPyPanel const *)arg1)->DoGetPosition(arg2,arg3); | |
22500 | wxPyEndAllowThreads(__tstate); | |
22501 | if (PyErr_Occurred()) SWIG_fail; | |
22502 | } | |
22503 | resultobj = SWIG_Py_Void(); | |
22504 | if (SWIG_IsTmpObj(res2)) { | |
22505 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22506 | } else { | |
22507 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22508 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22509 | } | |
22510 | if (SWIG_IsTmpObj(res3)) { | |
22511 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22512 | } else { | |
22513 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22514 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22515 | } | |
22516 | return resultobj; | |
22517 | fail: | |
22518 | return NULL; | |
d55e5bfc RD |
22519 | } |
22520 | ||
22521 | ||
554f62e9 RD |
22522 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22523 | PyObject *resultobj = 0; | |
22524 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22525 | wxSize result; | |
22526 | void *argp1 = 0 ; | |
22527 | int res1 = 0 ; | |
22528 | PyObject *swig_obj[1] ; | |
22529 | ||
22530 | if (!args) SWIG_fail; | |
22531 | swig_obj[0] = args; | |
22532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22533 | if (!SWIG_IsOK(res1)) { | |
22534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22535 | } | |
22536 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | result = ((wxPyPanel const *)arg1)->DoGetVirtualSize(); | |
22540 | wxPyEndAllowThreads(__tstate); | |
22541 | if (PyErr_Occurred()) SWIG_fail; | |
22542 | } | |
22543 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22544 | return resultobj; | |
22545 | fail: | |
22546 | return NULL; | |
d55e5bfc RD |
22547 | } |
22548 | ||
22549 | ||
554f62e9 RD |
22550 | SWIGINTERN PyObject *_wrap_PyPanel_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22551 | PyObject *resultobj = 0; | |
22552 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22553 | wxSize result; | |
22554 | void *argp1 = 0 ; | |
22555 | int res1 = 0 ; | |
22556 | PyObject *swig_obj[1] ; | |
22557 | ||
22558 | if (!args) SWIG_fail; | |
22559 | swig_obj[0] = args; | |
22560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22561 | if (!SWIG_IsOK(res1)) { | |
22562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyPanel const *""'"); | |
22563 | } | |
22564 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22565 | { | |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22567 | result = ((wxPyPanel const *)arg1)->DoGetBestSize(); | |
22568 | wxPyEndAllowThreads(__tstate); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | } | |
22571 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22572 | return resultobj; | |
22573 | fail: | |
22574 | return NULL; | |
d55e5bfc RD |
22575 | } |
22576 | ||
22577 | ||
554f62e9 RD |
22578 | SWIGINTERN PyObject *_wrap_PyPanel_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22579 | PyObject *resultobj = 0; | |
22580 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22581 | SwigValueWrapper<wxVisualAttributes > result; | |
22582 | void *argp1 = 0 ; | |
22583 | int res1 = 0 ; | |
22584 | PyObject *swig_obj[1] ; | |
22585 | ||
22586 | if (!args) SWIG_fail; | |
22587 | swig_obj[0] = args; | |
22588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22589 | if (!SWIG_IsOK(res1)) { | |
22590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22591 | } | |
22592 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22593 | { | |
22594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22595 | result = (arg1)->GetDefaultAttributes(); | |
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
22600 | return resultobj; | |
22601 | fail: | |
22602 | return NULL; | |
d55e5bfc RD |
22603 | } |
22604 | ||
22605 | ||
554f62e9 RD |
22606 | SWIGINTERN PyObject *_wrap_PyPanel_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22607 | PyObject *resultobj = 0; | |
22608 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
22609 | void *argp1 = 0 ; | |
22610 | int res1 = 0 ; | |
22611 | PyObject *swig_obj[1] ; | |
22612 | ||
22613 | if (!args) SWIG_fail; | |
22614 | swig_obj[0] = args; | |
22615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPanel, 0 | 0 ); | |
22616 | if (!SWIG_IsOK(res1)) { | |
22617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPanel_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyPanel *""'"); | |
22618 | } | |
22619 | arg1 = reinterpret_cast< wxPyPanel * >(argp1); | |
22620 | { | |
22621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22622 | (arg1)->OnInternalIdle(); | |
22623 | wxPyEndAllowThreads(__tstate); | |
22624 | if (PyErr_Occurred()) SWIG_fail; | |
22625 | } | |
22626 | resultobj = SWIG_Py_Void(); | |
22627 | return resultobj; | |
22628 | fail: | |
22629 | return NULL; | |
22630 | } | |
22631 | ||
22632 | ||
22633 | SWIGINTERN PyObject *PyPanel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22634 | PyObject *obj; | |
22635 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22636 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPanel, SWIG_NewClientData(obj)); | |
22637 | return SWIG_Py_Void(); | |
22638 | } | |
22639 | ||
22640 | SWIGINTERN PyObject *PyPanel_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22641 | return SWIG_Python_InitShadowInstance(args); | |
22642 | } | |
22643 | ||
22644 | SWIGINTERN PyObject *_wrap_new_PyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22645 | PyObject *resultobj = 0; | |
22646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22647 | int arg2 = (int) (int)-1 ; | |
22648 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22649 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22650 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22651 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22652 | long arg5 = (long) 0 ; | |
22653 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22654 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22655 | wxPyScrolledWindow *result = 0 ; | |
22656 | void *argp1 = 0 ; | |
22657 | int res1 = 0 ; | |
22658 | int val2 ; | |
22659 | int ecode2 = 0 ; | |
22660 | wxPoint temp3 ; | |
22661 | wxSize temp4 ; | |
22662 | long val5 ; | |
22663 | int ecode5 = 0 ; | |
22664 | bool temp6 = false ; | |
22665 | PyObject * obj0 = 0 ; | |
22666 | PyObject * obj1 = 0 ; | |
22667 | PyObject * obj2 = 0 ; | |
22668 | PyObject * obj3 = 0 ; | |
22669 | PyObject * obj4 = 0 ; | |
22670 | PyObject * obj5 = 0 ; | |
22671 | char * kwnames[] = { | |
22672 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22673 | }; | |
22674 | ||
22675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
22677 | if (!SWIG_IsOK(res1)) { | |
22678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyScrolledWindow" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
22679 | } | |
22680 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
22681 | if (obj1) { | |
22682 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22683 | if (!SWIG_IsOK(ecode2)) { | |
22684 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyScrolledWindow" "', expected argument " "2"" of type '" "int""'"); | |
22685 | } | |
22686 | arg2 = static_cast< int >(val2); | |
22687 | } | |
22688 | if (obj2) { | |
d55e5bfc | 22689 | { |
554f62e9 RD |
22690 | arg3 = &temp3; |
22691 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7449af73 | 22692 | } |
554f62e9 RD |
22693 | } |
22694 | if (obj3) { | |
7449af73 | 22695 | { |
554f62e9 RD |
22696 | arg4 = &temp4; |
22697 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7449af73 | 22698 | } |
554f62e9 RD |
22699 | } |
22700 | if (obj4) { | |
22701 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
22702 | if (!SWIG_IsOK(ecode5)) { | |
22703 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyScrolledWindow" "', expected argument " "5"" of type '" "long""'"); | |
22704 | } | |
22705 | arg5 = static_cast< long >(val5); | |
22706 | } | |
22707 | if (obj5) { | |
7449af73 | 22708 | { |
554f62e9 RD |
22709 | arg6 = wxString_in_helper(obj5); |
22710 | if (arg6 == NULL) SWIG_fail; | |
22711 | temp6 = true; | |
7449af73 | 22712 | } |
554f62e9 RD |
22713 | } |
22714 | { | |
22715 | if (!wxPyCheckForApp()) SWIG_fail; | |
22716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22717 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22718 | wxPyEndAllowThreads(__tstate); | |
22719 | if (PyErr_Occurred()) SWIG_fail; | |
22720 | } | |
22721 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_NEW | 0 ); | |
22722 | { | |
22723 | if (temp6) | |
22724 | delete arg6; | |
22725 | } | |
22726 | return resultobj; | |
22727 | fail: | |
22728 | { | |
22729 | if (temp6) | |
22730 | delete arg6; | |
22731 | } | |
22732 | return NULL; | |
7449af73 RD |
22733 | } |
22734 | ||
22735 | ||
554f62e9 RD |
22736 | SWIGINTERN PyObject *_wrap_new_PrePyScrolledWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22737 | PyObject *resultobj = 0; | |
22738 | wxPyScrolledWindow *result = 0 ; | |
22739 | ||
22740 | if (!SWIG_Python_UnpackTuple(args,"new_PrePyScrolledWindow",0,0,0)) SWIG_fail; | |
22741 | { | |
22742 | if (!wxPyCheckForApp()) SWIG_fail; | |
22743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22744 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
22745 | wxPyEndAllowThreads(__tstate); | |
22746 | if (PyErr_Occurred()) SWIG_fail; | |
22747 | } | |
22748 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyScrolledWindow, SWIG_POINTER_OWN | 0 ); | |
22749 | return resultobj; | |
22750 | fail: | |
22751 | return NULL; | |
22752 | } | |
22753 | ||
22754 | ||
22755 | SWIGINTERN PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22756 | PyObject *resultobj = 0; | |
22757 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22758 | PyObject *arg2 = (PyObject *) 0 ; | |
22759 | PyObject *arg3 = (PyObject *) 0 ; | |
22760 | void *argp1 = 0 ; | |
22761 | int res1 = 0 ; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | PyObject * obj1 = 0 ; | |
22764 | PyObject * obj2 = 0 ; | |
22765 | char * kwnames[] = { | |
22766 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22767 | }; | |
22768 | ||
22769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22771 | if (!SWIG_IsOK(res1)) { | |
22772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22773 | } | |
22774 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22775 | arg2 = obj1; | |
22776 | arg3 = obj2; | |
22777 | { | |
22778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22779 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22780 | wxPyEndAllowThreads(__tstate); | |
22781 | if (PyErr_Occurred()) SWIG_fail; | |
22782 | } | |
22783 | resultobj = SWIG_Py_Void(); | |
22784 | return resultobj; | |
22785 | fail: | |
22786 | return NULL; | |
22787 | } | |
22788 | ||
22789 | ||
22790 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22791 | PyObject *resultobj = 0; | |
22792 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22793 | wxSize *arg2 = 0 ; | |
22794 | void *argp1 = 0 ; | |
22795 | int res1 = 0 ; | |
22796 | wxSize temp2 ; | |
22797 | PyObject * obj0 = 0 ; | |
22798 | PyObject * obj1 = 0 ; | |
22799 | char * kwnames[] = { | |
22800 | (char *) "self",(char *) "size", NULL | |
22801 | }; | |
22802 | ||
22803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
22804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22805 | if (!SWIG_IsOK(res1)) { | |
22806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_SetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22807 | } | |
22808 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22809 | { | |
22810 | arg2 = &temp2; | |
22811 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22812 | } | |
22813 | { | |
22814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22815 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
22816 | wxPyEndAllowThreads(__tstate); | |
22817 | if (PyErr_Occurred()) SWIG_fail; | |
22818 | } | |
22819 | resultobj = SWIG_Py_Void(); | |
22820 | return resultobj; | |
22821 | fail: | |
22822 | return NULL; | |
22823 | } | |
22824 | ||
22825 | ||
22826 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22827 | PyObject *resultobj = 0; | |
22828 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22829 | wxDC *arg2 = (wxDC *) 0 ; | |
22830 | bool result; | |
22831 | void *argp1 = 0 ; | |
22832 | int res1 = 0 ; | |
22833 | void *argp2 = 0 ; | |
22834 | int res2 = 0 ; | |
22835 | PyObject * obj0 = 0 ; | |
22836 | PyObject * obj1 = 0 ; | |
22837 | char * kwnames[] = { | |
22838 | (char *) "self",(char *) "dc", NULL | |
22839 | }; | |
22840 | ||
22841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22843 | if (!SWIG_IsOK(res1)) { | |
22844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22845 | } | |
22846 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22847 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22848 | if (!SWIG_IsOK(res2)) { | |
22849 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyScrolledWindow_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'"); | |
22850 | } | |
22851 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
22852 | { | |
22853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22854 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
22855 | wxPyEndAllowThreads(__tstate); | |
22856 | if (PyErr_Occurred()) SWIG_fail; | |
22857 | } | |
22858 | { | |
22859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22860 | } | |
22861 | return resultobj; | |
22862 | fail: | |
22863 | return NULL; | |
22864 | } | |
22865 | ||
22866 | ||
22867 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22868 | PyObject *resultobj = 0; | |
22869 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22870 | int arg2 ; | |
22871 | int arg3 ; | |
22872 | int arg4 ; | |
22873 | int arg5 ; | |
22874 | void *argp1 = 0 ; | |
22875 | int res1 = 0 ; | |
22876 | int val2 ; | |
22877 | int ecode2 = 0 ; | |
22878 | int val3 ; | |
22879 | int ecode3 = 0 ; | |
22880 | int val4 ; | |
22881 | int ecode4 = 0 ; | |
22882 | int val5 ; | |
22883 | int ecode5 = 0 ; | |
22884 | PyObject * obj0 = 0 ; | |
22885 | PyObject * obj1 = 0 ; | |
22886 | PyObject * obj2 = 0 ; | |
22887 | PyObject * obj3 = 0 ; | |
22888 | PyObject * obj4 = 0 ; | |
22889 | char * kwnames[] = { | |
22890 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
22891 | }; | |
22892 | ||
22893 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22895 | if (!SWIG_IsOK(res1)) { | |
22896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22897 | } | |
22898 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22899 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22900 | if (!SWIG_IsOK(ecode2)) { | |
22901 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "2"" of type '" "int""'"); | |
22902 | } | |
22903 | arg2 = static_cast< int >(val2); | |
22904 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22905 | if (!SWIG_IsOK(ecode3)) { | |
22906 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "3"" of type '" "int""'"); | |
22907 | } | |
22908 | arg3 = static_cast< int >(val3); | |
22909 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22910 | if (!SWIG_IsOK(ecode4)) { | |
22911 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "4"" of type '" "int""'"); | |
22912 | } | |
22913 | arg4 = static_cast< int >(val4); | |
22914 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22915 | if (!SWIG_IsOK(ecode5)) { | |
22916 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoMoveWindow" "', expected argument " "5"" of type '" "int""'"); | |
22917 | } | |
22918 | arg5 = static_cast< int >(val5); | |
22919 | { | |
22920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22921 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); | |
22922 | wxPyEndAllowThreads(__tstate); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | } | |
22925 | resultobj = SWIG_Py_Void(); | |
22926 | return resultobj; | |
22927 | fail: | |
22928 | return NULL; | |
22929 | } | |
22930 | ||
22931 | ||
22932 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22933 | PyObject *resultobj = 0; | |
22934 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
22935 | int arg2 ; | |
22936 | int arg3 ; | |
22937 | int arg4 ; | |
22938 | int arg5 ; | |
22939 | int arg6 = (int) wxSIZE_AUTO ; | |
22940 | void *argp1 = 0 ; | |
22941 | int res1 = 0 ; | |
22942 | int val2 ; | |
22943 | int ecode2 = 0 ; | |
22944 | int val3 ; | |
22945 | int ecode3 = 0 ; | |
22946 | int val4 ; | |
22947 | int ecode4 = 0 ; | |
22948 | int val5 ; | |
22949 | int ecode5 = 0 ; | |
22950 | int val6 ; | |
22951 | int ecode6 = 0 ; | |
22952 | PyObject * obj0 = 0 ; | |
22953 | PyObject * obj1 = 0 ; | |
22954 | PyObject * obj2 = 0 ; | |
22955 | PyObject * obj3 = 0 ; | |
22956 | PyObject * obj4 = 0 ; | |
22957 | PyObject * obj5 = 0 ; | |
22958 | char * kwnames[] = { | |
22959 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22960 | }; | |
22961 | ||
22962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
22963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
22964 | if (!SWIG_IsOK(res1)) { | |
22965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
22966 | } | |
22967 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
22968 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22969 | if (!SWIG_IsOK(ecode2)) { | |
22970 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "2"" of type '" "int""'"); | |
22971 | } | |
22972 | arg2 = static_cast< int >(val2); | |
22973 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22974 | if (!SWIG_IsOK(ecode3)) { | |
22975 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "3"" of type '" "int""'"); | |
22976 | } | |
22977 | arg3 = static_cast< int >(val3); | |
22978 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
22979 | if (!SWIG_IsOK(ecode4)) { | |
22980 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "4"" of type '" "int""'"); | |
22981 | } | |
22982 | arg4 = static_cast< int >(val4); | |
22983 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
22984 | if (!SWIG_IsOK(ecode5)) { | |
22985 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "5"" of type '" "int""'"); | |
22986 | } | |
22987 | arg5 = static_cast< int >(val5); | |
22988 | if (obj5) { | |
22989 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
22990 | if (!SWIG_IsOK(ecode6)) { | |
22991 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyScrolledWindow_DoSetSize" "', expected argument " "6"" of type '" "int""'"); | |
22992 | } | |
22993 | arg6 = static_cast< int >(val6); | |
22994 | } | |
22995 | { | |
22996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22997 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
22998 | wxPyEndAllowThreads(__tstate); | |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
23000 | } | |
23001 | resultobj = SWIG_Py_Void(); | |
23002 | return resultobj; | |
23003 | fail: | |
23004 | return NULL; | |
23005 | } | |
23006 | ||
23007 | ||
23008 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23009 | PyObject *resultobj = 0; | |
23010 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23011 | int arg2 ; | |
23012 | int arg3 ; | |
23013 | void *argp1 = 0 ; | |
23014 | int res1 = 0 ; | |
23015 | int val2 ; | |
23016 | int ecode2 = 0 ; | |
23017 | int val3 ; | |
23018 | int ecode3 = 0 ; | |
23019 | PyObject * obj0 = 0 ; | |
23020 | PyObject * obj1 = 0 ; | |
23021 | PyObject * obj2 = 0 ; | |
23022 | char * kwnames[] = { | |
23023 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23024 | }; | |
23025 | ||
23026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23028 | if (!SWIG_IsOK(res1)) { | |
23029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23030 | } | |
23031 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23032 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23033 | if (!SWIG_IsOK(ecode2)) { | |
23034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "2"" of type '" "int""'"); | |
23035 | } | |
23036 | arg2 = static_cast< int >(val2); | |
23037 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23038 | if (!SWIG_IsOK(ecode3)) { | |
23039 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetClientSize" "', expected argument " "3"" of type '" "int""'"); | |
23040 | } | |
23041 | arg3 = static_cast< int >(val3); | |
23042 | { | |
23043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23044 | (arg1)->DoSetClientSize(arg2,arg3); | |
23045 | wxPyEndAllowThreads(__tstate); | |
23046 | if (PyErr_Occurred()) SWIG_fail; | |
23047 | } | |
23048 | resultobj = SWIG_Py_Void(); | |
23049 | return resultobj; | |
23050 | fail: | |
23051 | return NULL; | |
23052 | } | |
23053 | ||
23054 | ||
23055 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23056 | PyObject *resultobj = 0; | |
23057 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23058 | int arg2 ; | |
23059 | int arg3 ; | |
23060 | void *argp1 = 0 ; | |
23061 | int res1 = 0 ; | |
23062 | int val2 ; | |
23063 | int ecode2 = 0 ; | |
23064 | int val3 ; | |
23065 | int ecode3 = 0 ; | |
23066 | PyObject * obj0 = 0 ; | |
23067 | PyObject * obj1 = 0 ; | |
23068 | PyObject * obj2 = 0 ; | |
23069 | char * kwnames[] = { | |
23070 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23071 | }; | |
23072 | ||
23073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23075 | if (!SWIG_IsOK(res1)) { | |
23076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23077 | } | |
23078 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23079 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23080 | if (!SWIG_IsOK(ecode2)) { | |
23081 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'"); | |
23082 | } | |
23083 | arg2 = static_cast< int >(val2); | |
23084 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23085 | if (!SWIG_IsOK(ecode3)) { | |
23086 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyScrolledWindow_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'"); | |
23087 | } | |
23088 | arg3 = static_cast< int >(val3); | |
23089 | { | |
23090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23091 | (arg1)->DoSetVirtualSize(arg2,arg3); | |
23092 | wxPyEndAllowThreads(__tstate); | |
23093 | if (PyErr_Occurred()) SWIG_fail; | |
23094 | } | |
23095 | resultobj = SWIG_Py_Void(); | |
23096 | return resultobj; | |
23097 | fail: | |
23098 | return NULL; | |
23099 | } | |
23100 | ||
23101 | ||
23102 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23103 | PyObject *resultobj = 0; | |
23104 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23105 | int *arg2 = (int *) 0 ; | |
23106 | int *arg3 = (int *) 0 ; | |
23107 | void *argp1 = 0 ; | |
23108 | int res1 = 0 ; | |
23109 | int temp2 ; | |
23110 | int res2 = SWIG_TMPOBJ ; | |
23111 | int temp3 ; | |
23112 | int res3 = SWIG_TMPOBJ ; | |
23113 | PyObject *swig_obj[1] ; | |
23114 | ||
23115 | arg2 = &temp2; | |
23116 | arg3 = &temp3; | |
23117 | if (!args) SWIG_fail; | |
23118 | swig_obj[0] = args; | |
23119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23120 | if (!SWIG_IsOK(res1)) { | |
23121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23122 | } | |
23123 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23124 | { | |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | ((wxPyScrolledWindow const *)arg1)->DoGetSize(arg2,arg3); | |
23127 | wxPyEndAllowThreads(__tstate); | |
23128 | if (PyErr_Occurred()) SWIG_fail; | |
23129 | } | |
23130 | resultobj = SWIG_Py_Void(); | |
23131 | if (SWIG_IsTmpObj(res2)) { | |
23132 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23133 | } else { | |
23134 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23135 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23136 | } | |
23137 | if (SWIG_IsTmpObj(res3)) { | |
23138 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23139 | } else { | |
23140 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23141 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23142 | } | |
23143 | return resultobj; | |
23144 | fail: | |
23145 | return NULL; | |
23146 | } | |
23147 | ||
23148 | ||
23149 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23150 | PyObject *resultobj = 0; | |
23151 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23152 | int *arg2 = (int *) 0 ; | |
23153 | int *arg3 = (int *) 0 ; | |
23154 | void *argp1 = 0 ; | |
23155 | int res1 = 0 ; | |
23156 | int temp2 ; | |
23157 | int res2 = SWIG_TMPOBJ ; | |
23158 | int temp3 ; | |
23159 | int res3 = SWIG_TMPOBJ ; | |
23160 | PyObject *swig_obj[1] ; | |
23161 | ||
23162 | arg2 = &temp2; | |
23163 | arg3 = &temp3; | |
23164 | if (!args) SWIG_fail; | |
23165 | swig_obj[0] = args; | |
23166 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23167 | if (!SWIG_IsOK(res1)) { | |
23168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23169 | } | |
23170 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23171 | { | |
23172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23173 | ((wxPyScrolledWindow const *)arg1)->DoGetClientSize(arg2,arg3); | |
23174 | wxPyEndAllowThreads(__tstate); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
23177 | resultobj = SWIG_Py_Void(); | |
23178 | if (SWIG_IsTmpObj(res2)) { | |
23179 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23180 | } else { | |
23181 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23182 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23183 | } | |
23184 | if (SWIG_IsTmpObj(res3)) { | |
23185 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23186 | } else { | |
23187 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23188 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23189 | } | |
23190 | return resultobj; | |
23191 | fail: | |
23192 | return NULL; | |
23193 | } | |
23194 | ||
23195 | ||
23196 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23197 | PyObject *resultobj = 0; | |
23198 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23199 | int *arg2 = (int *) 0 ; | |
23200 | int *arg3 = (int *) 0 ; | |
23201 | void *argp1 = 0 ; | |
23202 | int res1 = 0 ; | |
23203 | int temp2 ; | |
23204 | int res2 = SWIG_TMPOBJ ; | |
23205 | int temp3 ; | |
23206 | int res3 = SWIG_TMPOBJ ; | |
23207 | PyObject *swig_obj[1] ; | |
23208 | ||
23209 | arg2 = &temp2; | |
23210 | arg3 = &temp3; | |
23211 | if (!args) SWIG_fail; | |
23212 | swig_obj[0] = args; | |
23213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23214 | if (!SWIG_IsOK(res1)) { | |
23215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetPosition" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23216 | } | |
23217 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23218 | { | |
23219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23220 | ((wxPyScrolledWindow const *)arg1)->DoGetPosition(arg2,arg3); | |
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
23224 | resultobj = SWIG_Py_Void(); | |
23225 | if (SWIG_IsTmpObj(res2)) { | |
23226 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23227 | } else { | |
23228 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23229 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23230 | } | |
23231 | if (SWIG_IsTmpObj(res3)) { | |
23232 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23233 | } else { | |
23234 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23235 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23236 | } | |
23237 | return resultobj; | |
23238 | fail: | |
23239 | return NULL; | |
d55e5bfc RD |
23240 | } |
23241 | ||
23242 | ||
554f62e9 RD |
23243 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23244 | PyObject *resultobj = 0; | |
23245 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23246 | wxSize result; | |
23247 | void *argp1 = 0 ; | |
23248 | int res1 = 0 ; | |
23249 | PyObject *swig_obj[1] ; | |
23250 | ||
23251 | if (!args) SWIG_fail; | |
23252 | swig_obj[0] = args; | |
23253 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23254 | if (!SWIG_IsOK(res1)) { | |
23255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23256 | } | |
23257 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23258 | { | |
23259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23260 | result = ((wxPyScrolledWindow const *)arg1)->DoGetVirtualSize(); | |
23261 | wxPyEndAllowThreads(__tstate); | |
23262 | if (PyErr_Occurred()) SWIG_fail; | |
23263 | } | |
23264 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23265 | return resultobj; | |
23266 | fail: | |
23267 | return NULL; | |
d55e5bfc RD |
23268 | } |
23269 | ||
23270 | ||
554f62e9 RD |
23271 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23272 | PyObject *resultobj = 0; | |
23273 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23274 | wxSize result; | |
23275 | void *argp1 = 0 ; | |
23276 | int res1 = 0 ; | |
23277 | PyObject *swig_obj[1] ; | |
23278 | ||
23279 | if (!args) SWIG_fail; | |
23280 | swig_obj[0] = args; | |
23281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23282 | if (!SWIG_IsOK(res1)) { | |
23283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyScrolledWindow const *""'"); | |
23284 | } | |
23285 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23286 | { | |
23287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23288 | result = ((wxPyScrolledWindow const *)arg1)->DoGetBestSize(); | |
23289 | wxPyEndAllowThreads(__tstate); | |
23290 | if (PyErr_Occurred()) SWIG_fail; | |
23291 | } | |
23292 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
23293 | return resultobj; | |
23294 | fail: | |
23295 | return NULL; | |
d55e5bfc RD |
23296 | } |
23297 | ||
23298 | ||
554f62e9 RD |
23299 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23300 | PyObject *resultobj = 0; | |
23301 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23302 | SwigValueWrapper<wxVisualAttributes > result; | |
23303 | void *argp1 = 0 ; | |
23304 | int res1 = 0 ; | |
23305 | PyObject *swig_obj[1] ; | |
23306 | ||
23307 | if (!args) SWIG_fail; | |
23308 | swig_obj[0] = args; | |
23309 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23310 | if (!SWIG_IsOK(res1)) { | |
23311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23312 | } | |
23313 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23314 | { | |
23315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23316 | result = (arg1)->GetDefaultAttributes(); | |
23317 | wxPyEndAllowThreads(__tstate); | |
23318 | if (PyErr_Occurred()) SWIG_fail; | |
23319 | } | |
23320 | resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 ); | |
23321 | return resultobj; | |
23322 | fail: | |
23323 | return NULL; | |
d55e5bfc RD |
23324 | } |
23325 | ||
23326 | ||
554f62e9 RD |
23327 | SWIGINTERN PyObject *_wrap_PyScrolledWindow_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23328 | PyObject *resultobj = 0; | |
23329 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
23330 | void *argp1 = 0 ; | |
23331 | int res1 = 0 ; | |
23332 | PyObject *swig_obj[1] ; | |
23333 | ||
23334 | if (!args) SWIG_fail; | |
23335 | swig_obj[0] = args; | |
23336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyScrolledWindow, 0 | 0 ); | |
23337 | if (!SWIG_IsOK(res1)) { | |
23338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyScrolledWindow_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyScrolledWindow *""'"); | |
23339 | } | |
23340 | arg1 = reinterpret_cast< wxPyScrolledWindow * >(argp1); | |
23341 | { | |
23342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23343 | (arg1)->OnInternalIdle(); | |
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | resultobj = SWIG_Py_Void(); | |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
d55e5bfc RD |
23351 | } |
23352 | ||
23353 | ||
554f62e9 RD |
23354 | SWIGINTERN PyObject *PyScrolledWindow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23355 | PyObject *obj; | |
23356 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23357 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyScrolledWindow, SWIG_NewClientData(obj)); | |
23358 | return SWIG_Py_Void(); | |
d55e5bfc RD |
23359 | } |
23360 | ||
554f62e9 RD |
23361 | SWIGINTERN PyObject *PyScrolledWindow_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23362 | return SWIG_Python_InitShadowInstance(args); | |
23363 | } | |
d55e5bfc | 23364 | |
554f62e9 RD |
23365 | SWIGINTERN int PrintoutTitleStr_set(PyObject *) { |
23366 | SWIG_Error(SWIG_AttributeError,"Variable PrintoutTitleStr is read-only."); | |
23367 | return 1; | |
d55e5bfc RD |
23368 | } |
23369 | ||
23370 | ||
554f62e9 RD |
23371 | SWIGINTERN PyObject *PrintoutTitleStr_get(void) { |
23372 | PyObject *pyobj = 0; | |
23373 | ||
23374 | { | |
23375 | #if wxUSE_UNICODE | |
23376 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23377 | #else | |
23378 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
23379 | #endif | |
23380 | } | |
23381 | return pyobj; | |
d55e5bfc RD |
23382 | } |
23383 | ||
23384 | ||
554f62e9 RD |
23385 | SWIGINTERN int PreviewCanvasNameStr_set(PyObject *) { |
23386 | SWIG_Error(SWIG_AttributeError,"Variable PreviewCanvasNameStr is read-only."); | |
23387 | return 1; | |
d55e5bfc RD |
23388 | } |
23389 | ||
23390 | ||
554f62e9 RD |
23391 | SWIGINTERN PyObject *PreviewCanvasNameStr_get(void) { |
23392 | PyObject *pyobj = 0; | |
23393 | ||
23394 | { | |
23395 | #if wxUSE_UNICODE | |
23396 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23397 | #else | |
23398 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
23399 | #endif | |
23400 | } | |
23401 | return pyobj; | |
d55e5bfc RD |
23402 | } |
23403 | ||
23404 | ||
554f62e9 RD |
23405 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
23406 | PyObject *resultobj = 0; | |
23407 | wxPrintData *result = 0 ; | |
23408 | ||
23409 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
23410 | { | |
23411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23412 | result = (wxPrintData *)new wxPrintData(); | |
23413 | wxPyEndAllowThreads(__tstate); | |
23414 | if (PyErr_Occurred()) SWIG_fail; | |
23415 | } | |
23416 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23417 | return resultobj; | |
23418 | fail: | |
23419 | return NULL; | |
d55e5bfc RD |
23420 | } |
23421 | ||
23422 | ||
554f62e9 RD |
23423 | SWIGINTERN PyObject *_wrap_new_PrintData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
23424 | PyObject *resultobj = 0; | |
23425 | wxPrintData *arg1 = 0 ; | |
23426 | wxPrintData *result = 0 ; | |
23427 | void *argp1 = 0 ; | |
23428 | int res1 = 0 ; | |
23429 | ||
23430 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
23431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23432 | if (!SWIG_IsOK(res1)) { | |
23433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23434 | } | |
23435 | if (!argp1) { | |
23436 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23437 | } | |
23438 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23439 | { | |
23440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23441 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
23442 | wxPyEndAllowThreads(__tstate); | |
23443 | if (PyErr_Occurred()) SWIG_fail; | |
23444 | } | |
23445 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, SWIG_POINTER_NEW | 0 ); | |
23446 | return resultobj; | |
23447 | fail: | |
23448 | return NULL; | |
d55e5bfc RD |
23449 | } |
23450 | ||
23451 | ||
554f62e9 RD |
23452 | SWIGINTERN PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { |
23453 | int argc; | |
23454 | PyObject *argv[2]; | |
23455 | ||
23456 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintData",0,1,argv))) SWIG_fail; | |
23457 | --argc; | |
23458 | if (argc == 0) { | |
23459 | return _wrap_new_PrintData__SWIG_0(self, argc, argv); | |
23460 | } | |
23461 | if (argc == 1) { | |
23462 | return _wrap_new_PrintData__SWIG_1(self, argc, argv); | |
23463 | } | |
23464 | ||
23465 | fail: | |
23466 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintData'"); | |
23467 | return NULL; | |
d55e5bfc RD |
23468 | } |
23469 | ||
23470 | ||
554f62e9 RD |
23471 | SWIGINTERN PyObject *_wrap_delete_PrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23472 | PyObject *resultobj = 0; | |
23473 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23474 | void *argp1 = 0 ; | |
23475 | int res1 = 0 ; | |
23476 | PyObject *swig_obj[1] ; | |
23477 | ||
23478 | if (!args) SWIG_fail; | |
23479 | swig_obj[0] = args; | |
23480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, SWIG_POINTER_DISOWN | 0 ); | |
23481 | if (!SWIG_IsOK(res1)) { | |
23482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23483 | } | |
23484 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23485 | { | |
23486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23487 | delete arg1; | |
d55e5bfc | 23488 | |
554f62e9 RD |
23489 | wxPyEndAllowThreads(__tstate); |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
23492 | resultobj = SWIG_Py_Void(); | |
23493 | return resultobj; | |
23494 | fail: | |
23495 | return NULL; | |
d55e5bfc RD |
23496 | } |
23497 | ||
23498 | ||
554f62e9 RD |
23499 | SWIGINTERN PyObject *_wrap_PrintData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23500 | PyObject *resultobj = 0; | |
23501 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23502 | int result; | |
23503 | void *argp1 = 0 ; | |
23504 | int res1 = 0 ; | |
23505 | PyObject *swig_obj[1] ; | |
23506 | ||
23507 | if (!args) SWIG_fail; | |
23508 | swig_obj[0] = args; | |
23509 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23510 | if (!SWIG_IsOK(res1)) { | |
23511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23512 | } | |
23513 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23514 | { | |
23515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23516 | result = (int)(arg1)->GetNoCopies(); | |
23517 | wxPyEndAllowThreads(__tstate); | |
23518 | if (PyErr_Occurred()) SWIG_fail; | |
23519 | } | |
23520 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23521 | return resultobj; | |
23522 | fail: | |
23523 | return NULL; | |
d55e5bfc RD |
23524 | } |
23525 | ||
23526 | ||
554f62e9 RD |
23527 | SWIGINTERN PyObject *_wrap_PrintData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23528 | PyObject *resultobj = 0; | |
23529 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23530 | bool result; | |
23531 | void *argp1 = 0 ; | |
23532 | int res1 = 0 ; | |
23533 | PyObject *swig_obj[1] ; | |
23534 | ||
23535 | if (!args) SWIG_fail; | |
23536 | swig_obj[0] = args; | |
23537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23538 | if (!SWIG_IsOK(res1)) { | |
23539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23540 | } | |
23541 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23542 | { | |
23543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23544 | result = (bool)(arg1)->GetCollate(); | |
23545 | wxPyEndAllowThreads(__tstate); | |
23546 | if (PyErr_Occurred()) SWIG_fail; | |
23547 | } | |
23548 | { | |
23549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23550 | } | |
23551 | return resultobj; | |
23552 | fail: | |
23553 | return NULL; | |
d55e5bfc RD |
23554 | } |
23555 | ||
23556 | ||
554f62e9 RD |
23557 | SWIGINTERN PyObject *_wrap_PrintData_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23558 | PyObject *resultobj = 0; | |
23559 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23560 | int result; | |
23561 | void *argp1 = 0 ; | |
23562 | int res1 = 0 ; | |
23563 | PyObject *swig_obj[1] ; | |
23564 | ||
23565 | if (!args) SWIG_fail; | |
23566 | swig_obj[0] = args; | |
23567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23568 | if (!SWIG_IsOK(res1)) { | |
23569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23570 | } | |
23571 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23572 | { | |
23573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23574 | result = (int)(arg1)->GetOrientation(); | |
23575 | wxPyEndAllowThreads(__tstate); | |
23576 | if (PyErr_Occurred()) SWIG_fail; | |
23577 | } | |
23578 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23579 | return resultobj; | |
23580 | fail: | |
23581 | return NULL; | |
d55e5bfc RD |
23582 | } |
23583 | ||
23584 | ||
554f62e9 RD |
23585 | SWIGINTERN PyObject *_wrap_PrintData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23586 | PyObject *resultobj = 0; | |
23587 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23588 | bool result; | |
23589 | void *argp1 = 0 ; | |
23590 | int res1 = 0 ; | |
23591 | PyObject *swig_obj[1] ; | |
23592 | ||
23593 | if (!args) SWIG_fail; | |
23594 | swig_obj[0] = args; | |
23595 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23596 | if (!SWIG_IsOK(res1)) { | |
23597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_Ok" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23598 | } | |
23599 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23600 | { | |
23601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23602 | result = (bool)(arg1)->Ok(); | |
23603 | wxPyEndAllowThreads(__tstate); | |
23604 | if (PyErr_Occurred()) SWIG_fail; | |
23605 | } | |
23606 | { | |
23607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23608 | } | |
23609 | return resultobj; | |
23610 | fail: | |
23611 | return NULL; | |
d55e5bfc RD |
23612 | } |
23613 | ||
23614 | ||
554f62e9 RD |
23615 | SWIGINTERN PyObject *_wrap_PrintData_GetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23616 | PyObject *resultobj = 0; | |
23617 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23618 | wxString *result = 0 ; | |
23619 | void *argp1 = 0 ; | |
23620 | int res1 = 0 ; | |
23621 | PyObject *swig_obj[1] ; | |
23622 | ||
23623 | if (!args) SWIG_fail; | |
23624 | swig_obj[0] = args; | |
23625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23626 | if (!SWIG_IsOK(res1)) { | |
23627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23628 | } | |
23629 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23630 | { | |
23631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23632 | { |
554f62e9 RD |
23633 | wxString const &_result_ref = (arg1)->GetPrinterName(); |
23634 | result = (wxString *) &_result_ref; | |
d55e5bfc | 23635 | } |
554f62e9 RD |
23636 | wxPyEndAllowThreads(__tstate); |
23637 | if (PyErr_Occurred()) SWIG_fail; | |
23638 | } | |
23639 | { | |
d55e5bfc | 23640 | #if wxUSE_UNICODE |
554f62e9 | 23641 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d55e5bfc | 23642 | #else |
554f62e9 | 23643 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d55e5bfc | 23644 | #endif |
554f62e9 RD |
23645 | } |
23646 | return resultobj; | |
23647 | fail: | |
23648 | return NULL; | |
d55e5bfc RD |
23649 | } |
23650 | ||
23651 | ||
554f62e9 RD |
23652 | SWIGINTERN PyObject *_wrap_PrintData_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23653 | PyObject *resultobj = 0; | |
23654 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23655 | bool result; | |
23656 | void *argp1 = 0 ; | |
23657 | int res1 = 0 ; | |
23658 | PyObject *swig_obj[1] ; | |
23659 | ||
23660 | if (!args) SWIG_fail; | |
23661 | swig_obj[0] = args; | |
23662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23663 | if (!SWIG_IsOK(res1)) { | |
23664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23665 | } | |
23666 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23667 | { | |
23668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23669 | result = (bool)(arg1)->GetColour(); | |
23670 | wxPyEndAllowThreads(__tstate); | |
23671 | if (PyErr_Occurred()) SWIG_fail; | |
23672 | } | |
23673 | { | |
23674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23675 | } | |
23676 | return resultobj; | |
23677 | fail: | |
23678 | return NULL; | |
d55e5bfc RD |
23679 | } |
23680 | ||
23681 | ||
554f62e9 RD |
23682 | SWIGINTERN PyObject *_wrap_PrintData_GetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23683 | PyObject *resultobj = 0; | |
23684 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23685 | wxDuplexMode result; | |
23686 | void *argp1 = 0 ; | |
23687 | int res1 = 0 ; | |
23688 | PyObject *swig_obj[1] ; | |
23689 | ||
23690 | if (!args) SWIG_fail; | |
23691 | swig_obj[0] = args; | |
23692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23693 | if (!SWIG_IsOK(res1)) { | |
23694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23695 | } | |
23696 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23697 | { | |
23698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23699 | result = (wxDuplexMode)(arg1)->GetDuplex(); | |
23700 | wxPyEndAllowThreads(__tstate); | |
23701 | if (PyErr_Occurred()) SWIG_fail; | |
23702 | } | |
23703 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23704 | return resultobj; | |
23705 | fail: | |
23706 | return NULL; | |
d55e5bfc RD |
23707 | } |
23708 | ||
23709 | ||
554f62e9 RD |
23710 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23711 | PyObject *resultobj = 0; | |
23712 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23713 | wxPaperSize result; | |
23714 | void *argp1 = 0 ; | |
23715 | int res1 = 0 ; | |
23716 | PyObject *swig_obj[1] ; | |
23717 | ||
23718 | if (!args) SWIG_fail; | |
23719 | swig_obj[0] = args; | |
23720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23721 | if (!SWIG_IsOK(res1)) { | |
23722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23723 | } | |
23724 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23725 | { | |
23726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23727 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
23728 | wxPyEndAllowThreads(__tstate); | |
23729 | if (PyErr_Occurred()) SWIG_fail; | |
23730 | } | |
23731 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23732 | return resultobj; | |
23733 | fail: | |
23734 | return NULL; | |
d55e5bfc RD |
23735 | } |
23736 | ||
23737 | ||
554f62e9 RD |
23738 | SWIGINTERN PyObject *_wrap_PrintData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23739 | PyObject *resultobj = 0; | |
23740 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23741 | wxSize *result = 0 ; | |
23742 | void *argp1 = 0 ; | |
23743 | int res1 = 0 ; | |
23744 | PyObject *swig_obj[1] ; | |
23745 | ||
23746 | if (!args) SWIG_fail; | |
23747 | swig_obj[0] = args; | |
23748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23749 | if (!SWIG_IsOK(res1)) { | |
23750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23751 | } | |
23752 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23753 | { | |
23754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 23755 | { |
554f62e9 RD |
23756 | wxSize const &_result_ref = (arg1)->GetPaperSize(); |
23757 | result = (wxSize *) &_result_ref; | |
d55e5bfc | 23758 | } |
554f62e9 RD |
23759 | wxPyEndAllowThreads(__tstate); |
23760 | if (PyErr_Occurred()) SWIG_fail; | |
23761 | } | |
23762 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 ); | |
23763 | return resultobj; | |
23764 | fail: | |
23765 | return NULL; | |
d55e5bfc RD |
23766 | } |
23767 | ||
23768 | ||
554f62e9 RD |
23769 | SWIGINTERN PyObject *_wrap_PrintData_GetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23770 | PyObject *resultobj = 0; | |
23771 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23772 | int result; | |
23773 | void *argp1 = 0 ; | |
23774 | int res1 = 0 ; | |
23775 | PyObject *swig_obj[1] ; | |
23776 | ||
23777 | if (!args) SWIG_fail; | |
23778 | swig_obj[0] = args; | |
23779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23780 | if (!SWIG_IsOK(res1)) { | |
23781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23782 | } | |
23783 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23784 | { | |
23785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23786 | result = (int)(arg1)->GetQuality(); | |
23787 | wxPyEndAllowThreads(__tstate); | |
23788 | if (PyErr_Occurred()) SWIG_fail; | |
23789 | } | |
23790 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23791 | return resultobj; | |
23792 | fail: | |
23793 | return NULL; | |
d55e5bfc RD |
23794 | } |
23795 | ||
23796 | ||
554f62e9 RD |
23797 | SWIGINTERN PyObject *_wrap_PrintData_GetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23798 | PyObject *resultobj = 0; | |
23799 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23800 | wxPrintBin result; | |
23801 | void *argp1 = 0 ; | |
23802 | int res1 = 0 ; | |
23803 | PyObject *swig_obj[1] ; | |
23804 | ||
23805 | if (!args) SWIG_fail; | |
23806 | swig_obj[0] = args; | |
23807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23808 | if (!SWIG_IsOK(res1)) { | |
23809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23810 | } | |
23811 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23812 | { | |
23813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23814 | result = (wxPrintBin)(arg1)->GetBin(); | |
23815 | wxPyEndAllowThreads(__tstate); | |
23816 | if (PyErr_Occurred()) SWIG_fail; | |
23817 | } | |
23818 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23819 | return resultobj; | |
23820 | fail: | |
23821 | return NULL; | |
d55e5bfc RD |
23822 | } |
23823 | ||
23824 | ||
554f62e9 RD |
23825 | SWIGINTERN PyObject *_wrap_PrintData_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23826 | PyObject *resultobj = 0; | |
23827 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23828 | wxPrintMode result; | |
23829 | void *argp1 = 0 ; | |
23830 | int res1 = 0 ; | |
23831 | PyObject *swig_obj[1] ; | |
23832 | ||
23833 | if (!args) SWIG_fail; | |
23834 | swig_obj[0] = args; | |
23835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23836 | if (!SWIG_IsOK(res1)) { | |
23837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrintMode" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
23838 | } | |
23839 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23840 | { | |
23841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23842 | result = (wxPrintMode)((wxPrintData const *)arg1)->GetPrintMode(); | |
23843 | wxPyEndAllowThreads(__tstate); | |
23844 | if (PyErr_Occurred()) SWIG_fail; | |
23845 | } | |
23846 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23847 | return resultobj; | |
23848 | fail: | |
23849 | return NULL; | |
23850 | } | |
23851 | ||
23852 | ||
23853 | SWIGINTERN PyObject *_wrap_PrintData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23854 | PyObject *resultobj = 0; | |
23855 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23856 | int arg2 ; | |
23857 | void *argp1 = 0 ; | |
23858 | int res1 = 0 ; | |
23859 | int val2 ; | |
23860 | int ecode2 = 0 ; | |
23861 | PyObject * obj0 = 0 ; | |
23862 | PyObject * obj1 = 0 ; | |
23863 | char * kwnames[] = { | |
23864 | (char *) "self",(char *) "v", NULL | |
23865 | }; | |
23866 | ||
23867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
23868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23869 | if (!SWIG_IsOK(res1)) { | |
23870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23871 | } | |
23872 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23873 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23874 | if (!SWIG_IsOK(ecode2)) { | |
23875 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
23876 | } | |
23877 | arg2 = static_cast< int >(val2); | |
23878 | { | |
23879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23880 | (arg1)->SetNoCopies(arg2); | |
23881 | wxPyEndAllowThreads(__tstate); | |
23882 | if (PyErr_Occurred()) SWIG_fail; | |
23883 | } | |
23884 | resultobj = SWIG_Py_Void(); | |
23885 | return resultobj; | |
23886 | fail: | |
23887 | return NULL; | |
23888 | } | |
23889 | ||
23890 | ||
23891 | SWIGINTERN PyObject *_wrap_PrintData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23892 | PyObject *resultobj = 0; | |
23893 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23894 | bool arg2 ; | |
23895 | void *argp1 = 0 ; | |
23896 | int res1 = 0 ; | |
23897 | bool val2 ; | |
23898 | int ecode2 = 0 ; | |
23899 | PyObject * obj0 = 0 ; | |
23900 | PyObject * obj1 = 0 ; | |
23901 | char * kwnames[] = { | |
23902 | (char *) "self",(char *) "flag", NULL | |
23903 | }; | |
23904 | ||
23905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
23906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23907 | if (!SWIG_IsOK(res1)) { | |
23908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetCollate" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23909 | } | |
23910 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23911 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23912 | if (!SWIG_IsOK(ecode2)) { | |
23913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
23914 | } | |
23915 | arg2 = static_cast< bool >(val2); | |
23916 | { | |
23917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23918 | (arg1)->SetCollate(arg2); | |
23919 | wxPyEndAllowThreads(__tstate); | |
23920 | if (PyErr_Occurred()) SWIG_fail; | |
23921 | } | |
23922 | resultobj = SWIG_Py_Void(); | |
23923 | return resultobj; | |
23924 | fail: | |
23925 | return NULL; | |
23926 | } | |
23927 | ||
23928 | ||
23929 | SWIGINTERN PyObject *_wrap_PrintData_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23930 | PyObject *resultobj = 0; | |
23931 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23932 | int arg2 ; | |
23933 | void *argp1 = 0 ; | |
23934 | int res1 = 0 ; | |
23935 | int val2 ; | |
23936 | int ecode2 = 0 ; | |
23937 | PyObject * obj0 = 0 ; | |
23938 | PyObject * obj1 = 0 ; | |
23939 | char * kwnames[] = { | |
23940 | (char *) "self",(char *) "orient", NULL | |
23941 | }; | |
23942 | ||
23943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
23944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23945 | if (!SWIG_IsOK(res1)) { | |
23946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetOrientation" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23947 | } | |
23948 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23949 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23950 | if (!SWIG_IsOK(ecode2)) { | |
23951 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetOrientation" "', expected argument " "2"" of type '" "int""'"); | |
23952 | } | |
23953 | arg2 = static_cast< int >(val2); | |
23954 | { | |
23955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23956 | (arg1)->SetOrientation(arg2); | |
23957 | wxPyEndAllowThreads(__tstate); | |
23958 | if (PyErr_Occurred()) SWIG_fail; | |
23959 | } | |
23960 | resultobj = SWIG_Py_Void(); | |
23961 | return resultobj; | |
23962 | fail: | |
23963 | return NULL; | |
23964 | } | |
23965 | ||
23966 | ||
23967 | SWIGINTERN PyObject *_wrap_PrintData_SetPrinterName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23968 | PyObject *resultobj = 0; | |
23969 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
23970 | wxString *arg2 = 0 ; | |
23971 | void *argp1 = 0 ; | |
23972 | int res1 = 0 ; | |
23973 | bool temp2 = false ; | |
23974 | PyObject * obj0 = 0 ; | |
23975 | PyObject * obj1 = 0 ; | |
23976 | char * kwnames[] = { | |
23977 | (char *) "self",(char *) "name", NULL | |
23978 | }; | |
23979 | ||
23980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) SWIG_fail; | |
23981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23982 | if (!SWIG_IsOK(res1)) { | |
23983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrinterName" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
23984 | } | |
23985 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23986 | { | |
23987 | arg2 = wxString_in_helper(obj1); | |
23988 | if (arg2 == NULL) SWIG_fail; | |
23989 | temp2 = true; | |
23990 | } | |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
23997 | resultobj = SWIG_Py_Void(); | |
23998 | { | |
23999 | if (temp2) | |
24000 | delete arg2; | |
24001 | } | |
24002 | return resultobj; | |
24003 | fail: | |
24004 | { | |
24005 | if (temp2) | |
24006 | delete arg2; | |
24007 | } | |
24008 | return NULL; | |
24009 | } | |
24010 | ||
24011 | ||
24012 | SWIGINTERN PyObject *_wrap_PrintData_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24013 | PyObject *resultobj = 0; | |
24014 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24015 | bool arg2 ; | |
24016 | void *argp1 = 0 ; | |
24017 | int res1 = 0 ; | |
24018 | bool val2 ; | |
24019 | int ecode2 = 0 ; | |
24020 | PyObject * obj0 = 0 ; | |
24021 | PyObject * obj1 = 0 ; | |
24022 | char * kwnames[] = { | |
24023 | (char *) "self",(char *) "colour", NULL | |
24024 | }; | |
24025 | ||
24026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
24027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24028 | if (!SWIG_IsOK(res1)) { | |
24029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetColour" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24030 | } | |
24031 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24032 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24033 | if (!SWIG_IsOK(ecode2)) { | |
24034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetColour" "', expected argument " "2"" of type '" "bool""'"); | |
24035 | } | |
24036 | arg2 = static_cast< bool >(val2); | |
24037 | { | |
24038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24039 | (arg1)->SetColour(arg2); | |
24040 | wxPyEndAllowThreads(__tstate); | |
24041 | if (PyErr_Occurred()) SWIG_fail; | |
24042 | } | |
24043 | resultobj = SWIG_Py_Void(); | |
24044 | return resultobj; | |
24045 | fail: | |
24046 | return NULL; | |
24047 | } | |
24048 | ||
24049 | ||
24050 | SWIGINTERN PyObject *_wrap_PrintData_SetDuplex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24051 | PyObject *resultobj = 0; | |
24052 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24053 | wxDuplexMode arg2 ; | |
24054 | void *argp1 = 0 ; | |
24055 | int res1 = 0 ; | |
24056 | int val2 ; | |
24057 | int ecode2 = 0 ; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | PyObject * obj1 = 0 ; | |
24060 | char * kwnames[] = { | |
24061 | (char *) "self",(char *) "duplex", NULL | |
24062 | }; | |
24063 | ||
24064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) SWIG_fail; | |
24065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24066 | if (!SWIG_IsOK(res1)) { | |
24067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetDuplex" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24068 | } | |
24069 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24070 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24071 | if (!SWIG_IsOK(ecode2)) { | |
24072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetDuplex" "', expected argument " "2"" of type '" "wxDuplexMode""'"); | |
24073 | } | |
24074 | arg2 = static_cast< wxDuplexMode >(val2); | |
24075 | { | |
24076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24077 | (arg1)->SetDuplex(arg2); | |
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
24081 | resultobj = SWIG_Py_Void(); | |
24082 | return resultobj; | |
24083 | fail: | |
24084 | return NULL; | |
24085 | } | |
24086 | ||
24087 | ||
24088 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24089 | PyObject *resultobj = 0; | |
24090 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24091 | wxPaperSize arg2 ; | |
24092 | void *argp1 = 0 ; | |
24093 | int res1 = 0 ; | |
24094 | int val2 ; | |
24095 | int ecode2 = 0 ; | |
24096 | PyObject * obj0 = 0 ; | |
24097 | PyObject * obj1 = 0 ; | |
24098 | char * kwnames[] = { | |
24099 | (char *) "self",(char *) "sizeId", NULL | |
24100 | }; | |
24101 | ||
24102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
24103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24104 | if (!SWIG_IsOK(res1)) { | |
24105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperId" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24106 | } | |
24107 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24108 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24109 | if (!SWIG_IsOK(ecode2)) { | |
24110 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
24111 | } | |
24112 | arg2 = static_cast< wxPaperSize >(val2); | |
24113 | { | |
24114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24115 | (arg1)->SetPaperId(arg2); | |
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
24119 | resultobj = SWIG_Py_Void(); | |
24120 | return resultobj; | |
24121 | fail: | |
24122 | return NULL; | |
24123 | } | |
24124 | ||
24125 | ||
24126 | SWIGINTERN PyObject *_wrap_PrintData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24127 | PyObject *resultobj = 0; | |
24128 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24129 | wxSize *arg2 = 0 ; | |
24130 | void *argp1 = 0 ; | |
24131 | int res1 = 0 ; | |
24132 | wxSize temp2 ; | |
24133 | PyObject * obj0 = 0 ; | |
24134 | PyObject * obj1 = 0 ; | |
24135 | char * kwnames[] = { | |
24136 | (char *) "self",(char *) "sz", NULL | |
24137 | }; | |
24138 | ||
24139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24141 | if (!SWIG_IsOK(res1)) { | |
24142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPaperSize" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24143 | } | |
24144 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24145 | { | |
24146 | arg2 = &temp2; | |
24147 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24148 | } | |
24149 | { | |
24150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24151 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
24152 | wxPyEndAllowThreads(__tstate); | |
24153 | if (PyErr_Occurred()) SWIG_fail; | |
24154 | } | |
24155 | resultobj = SWIG_Py_Void(); | |
24156 | return resultobj; | |
24157 | fail: | |
24158 | return NULL; | |
24159 | } | |
24160 | ||
24161 | ||
24162 | SWIGINTERN PyObject *_wrap_PrintData_SetQuality(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24163 | PyObject *resultobj = 0; | |
24164 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24165 | int arg2 ; | |
24166 | void *argp1 = 0 ; | |
24167 | int res1 = 0 ; | |
24168 | int val2 ; | |
24169 | int ecode2 = 0 ; | |
24170 | PyObject * obj0 = 0 ; | |
24171 | PyObject * obj1 = 0 ; | |
24172 | char * kwnames[] = { | |
24173 | (char *) "self",(char *) "quality", NULL | |
24174 | }; | |
24175 | ||
24176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) SWIG_fail; | |
24177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24178 | if (!SWIG_IsOK(res1)) { | |
24179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetQuality" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24180 | } | |
24181 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24182 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24183 | if (!SWIG_IsOK(ecode2)) { | |
24184 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetQuality" "', expected argument " "2"" of type '" "int""'"); | |
24185 | } | |
24186 | arg2 = static_cast< int >(val2); | |
24187 | { | |
24188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24189 | (arg1)->SetQuality(arg2); | |
24190 | wxPyEndAllowThreads(__tstate); | |
24191 | if (PyErr_Occurred()) SWIG_fail; | |
24192 | } | |
24193 | resultobj = SWIG_Py_Void(); | |
24194 | return resultobj; | |
24195 | fail: | |
24196 | return NULL; | |
24197 | } | |
24198 | ||
24199 | ||
24200 | SWIGINTERN PyObject *_wrap_PrintData_SetBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24201 | PyObject *resultobj = 0; | |
24202 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24203 | wxPrintBin arg2 ; | |
24204 | void *argp1 = 0 ; | |
24205 | int res1 = 0 ; | |
24206 | int val2 ; | |
24207 | int ecode2 = 0 ; | |
24208 | PyObject * obj0 = 0 ; | |
24209 | PyObject * obj1 = 0 ; | |
24210 | char * kwnames[] = { | |
24211 | (char *) "self",(char *) "bin", NULL | |
24212 | }; | |
24213 | ||
24214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetBin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24216 | if (!SWIG_IsOK(res1)) { | |
24217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetBin" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24218 | } | |
24219 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24220 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24221 | if (!SWIG_IsOK(ecode2)) { | |
24222 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetBin" "', expected argument " "2"" of type '" "wxPrintBin""'"); | |
24223 | } | |
24224 | arg2 = static_cast< wxPrintBin >(val2); | |
24225 | { | |
24226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24227 | (arg1)->SetBin(arg2); | |
24228 | wxPyEndAllowThreads(__tstate); | |
24229 | if (PyErr_Occurred()) SWIG_fail; | |
24230 | } | |
24231 | resultobj = SWIG_Py_Void(); | |
24232 | return resultobj; | |
24233 | fail: | |
24234 | return NULL; | |
24235 | } | |
24236 | ||
24237 | ||
24238 | SWIGINTERN PyObject *_wrap_PrintData_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24239 | PyObject *resultobj = 0; | |
24240 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24241 | wxPrintMode arg2 ; | |
24242 | void *argp1 = 0 ; | |
24243 | int res1 = 0 ; | |
24244 | int val2 ; | |
24245 | int ecode2 = 0 ; | |
24246 | PyObject * obj0 = 0 ; | |
24247 | PyObject * obj1 = 0 ; | |
24248 | char * kwnames[] = { | |
24249 | (char *) "self",(char *) "printMode", NULL | |
24250 | }; | |
24251 | ||
24252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
24253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24254 | if (!SWIG_IsOK(res1)) { | |
24255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrintMode" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24256 | } | |
24257 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24258 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24259 | if (!SWIG_IsOK(ecode2)) { | |
24260 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintData_SetPrintMode" "', expected argument " "2"" of type '" "wxPrintMode""'"); | |
24261 | } | |
24262 | arg2 = static_cast< wxPrintMode >(val2); | |
24263 | { | |
24264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24265 | (arg1)->SetPrintMode(arg2); | |
24266 | wxPyEndAllowThreads(__tstate); | |
24267 | if (PyErr_Occurred()) SWIG_fail; | |
24268 | } | |
24269 | resultobj = SWIG_Py_Void(); | |
24270 | return resultobj; | |
24271 | fail: | |
24272 | return NULL; | |
d55e5bfc RD |
24273 | } |
24274 | ||
24275 | ||
554f62e9 RD |
24276 | SWIGINTERN PyObject *_wrap_PrintData_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24277 | PyObject *resultobj = 0; | |
24278 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24279 | wxString result; | |
24280 | void *argp1 = 0 ; | |
24281 | int res1 = 0 ; | |
24282 | PyObject *swig_obj[1] ; | |
24283 | ||
24284 | if (!args) SWIG_fail; | |
24285 | swig_obj[0] = args; | |
24286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24287 | if (!SWIG_IsOK(res1)) { | |
24288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetFilename" "', expected argument " "1"" of type '" "wxPrintData const *""'"); | |
24289 | } | |
24290 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24291 | { | |
24292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24293 | result = ((wxPrintData const *)arg1)->GetFilename(); | |
24294 | wxPyEndAllowThreads(__tstate); | |
24295 | if (PyErr_Occurred()) SWIG_fail; | |
24296 | } | |
24297 | { | |
d55e5bfc | 24298 | #if wxUSE_UNICODE |
554f62e9 | 24299 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 24300 | #else |
554f62e9 | 24301 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 24302 | #endif |
554f62e9 RD |
24303 | } |
24304 | return resultobj; | |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
24310 | SWIGINTERN PyObject *_wrap_PrintData_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24311 | PyObject *resultobj = 0; | |
24312 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24313 | wxString *arg2 = 0 ; | |
24314 | void *argp1 = 0 ; | |
24315 | int res1 = 0 ; | |
24316 | bool temp2 = false ; | |
24317 | PyObject * obj0 = 0 ; | |
24318 | PyObject * obj1 = 0 ; | |
24319 | char * kwnames[] = { | |
24320 | (char *) "self",(char *) "filename", NULL | |
24321 | }; | |
24322 | ||
24323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
24324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24325 | if (!SWIG_IsOK(res1)) { | |
24326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetFilename" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24327 | } | |
24328 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24329 | { | |
24330 | arg2 = wxString_in_helper(obj1); | |
24331 | if (arg2 == NULL) SWIG_fail; | |
24332 | temp2 = true; | |
24333 | } | |
24334 | { | |
24335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24336 | (arg1)->SetFilename((wxString const &)*arg2); | |
24337 | wxPyEndAllowThreads(__tstate); | |
24338 | if (PyErr_Occurred()) SWIG_fail; | |
24339 | } | |
24340 | resultobj = SWIG_Py_Void(); | |
24341 | { | |
24342 | if (temp2) | |
24343 | delete arg2; | |
24344 | } | |
24345 | return resultobj; | |
24346 | fail: | |
24347 | { | |
24348 | if (temp2) | |
24349 | delete arg2; | |
24350 | } | |
24351 | return NULL; | |
d55e5bfc RD |
24352 | } |
24353 | ||
24354 | ||
554f62e9 RD |
24355 | SWIGINTERN PyObject *_wrap_PrintData_GetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24356 | PyObject *resultobj = 0; | |
24357 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24358 | PyObject *result = 0 ; | |
24359 | void *argp1 = 0 ; | |
24360 | int res1 = 0 ; | |
24361 | PyObject *swig_obj[1] ; | |
24362 | ||
24363 | if (!args) SWIG_fail; | |
24364 | swig_obj[0] = args; | |
24365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24366 | if (!SWIG_IsOK(res1)) { | |
24367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_GetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24368 | } | |
24369 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24370 | { | |
24371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24372 | result = (PyObject *)wxPrintData_GetPrivData(arg1); | |
24373 | wxPyEndAllowThreads(__tstate); | |
24374 | if (PyErr_Occurred()) SWIG_fail; | |
24375 | } | |
24376 | resultobj = result; | |
24377 | return resultobj; | |
24378 | fail: | |
24379 | return NULL; | |
24380 | } | |
24381 | ||
24382 | ||
24383 | SWIGINTERN PyObject *_wrap_PrintData_SetPrivData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24384 | PyObject *resultobj = 0; | |
24385 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
24386 | PyObject *arg2 = (PyObject *) 0 ; | |
24387 | void *argp1 = 0 ; | |
24388 | int res1 = 0 ; | |
24389 | PyObject * obj0 = 0 ; | |
24390 | PyObject * obj1 = 0 ; | |
24391 | char * kwnames[] = { | |
24392 | (char *) "self",(char *) "data", NULL | |
24393 | }; | |
24394 | ||
24395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrivData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24397 | if (!SWIG_IsOK(res1)) { | |
24398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintData_SetPrivData" "', expected argument " "1"" of type '" "wxPrintData *""'"); | |
24399 | } | |
24400 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24401 | arg2 = obj1; | |
24402 | { | |
24403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24404 | wxPrintData_SetPrivData(arg1,arg2); | |
24405 | wxPyEndAllowThreads(__tstate); | |
24406 | if (PyErr_Occurred()) SWIG_fail; | |
24407 | } | |
24408 | resultobj = SWIG_Py_Void(); | |
24409 | return resultobj; | |
24410 | fail: | |
24411 | return NULL; | |
d55e5bfc RD |
24412 | } |
24413 | ||
24414 | ||
554f62e9 RD |
24415 | SWIGINTERN PyObject *PrintData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24416 | PyObject *obj; | |
24417 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24418 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintData, SWIG_NewClientData(obj)); | |
24419 | return SWIG_Py_Void(); | |
c1cb24a4 RD |
24420 | } |
24421 | ||
554f62e9 RD |
24422 | SWIGINTERN PyObject *PrintData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24423 | return SWIG_Python_InitShadowInstance(args); | |
c1cb24a4 RD |
24424 | } |
24425 | ||
554f62e9 RD |
24426 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { |
24427 | PyObject *resultobj = 0; | |
24428 | wxPageSetupDialogData *result = 0 ; | |
24429 | ||
24430 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
24431 | { | |
24432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24433 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
24434 | wxPyEndAllowThreads(__tstate); | |
24435 | if (PyErr_Occurred()) SWIG_fail; | |
24436 | } | |
24437 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24438 | return resultobj; | |
24439 | fail: | |
24440 | return NULL; | |
d55e5bfc RD |
24441 | } |
24442 | ||
24443 | ||
554f62e9 RD |
24444 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24445 | PyObject *resultobj = 0; | |
24446 | wxPageSetupDialogData *arg1 = 0 ; | |
24447 | wxPageSetupDialogData *result = 0 ; | |
24448 | void *argp1 = 0 ; | |
24449 | int res1 = 0 ; | |
24450 | ||
24451 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPageSetupDialogData, 0 | 0); | |
24453 | if (!SWIG_IsOK(res1)) { | |
24454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24455 | } | |
24456 | if (!argp1) { | |
24457 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData const &""'"); | |
24458 | } | |
24459 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24460 | { | |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
24463 | wxPyEndAllowThreads(__tstate); | |
24464 | if (PyErr_Occurred()) SWIG_fail; | |
24465 | } | |
24466 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24467 | return resultobj; | |
24468 | fail: | |
24469 | return NULL; | |
d55e5bfc RD |
24470 | } |
24471 | ||
24472 | ||
554f62e9 RD |
24473 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24474 | PyObject *resultobj = 0; | |
24475 | wxPrintData *arg1 = 0 ; | |
24476 | wxPageSetupDialogData *result = 0 ; | |
24477 | void *argp1 = 0 ; | |
24478 | int res1 = 0 ; | |
24479 | ||
24480 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
24481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24482 | if (!SWIG_IsOK(res1)) { | |
24483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24484 | } | |
24485 | if (!argp1) { | |
24486 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24487 | } | |
24488 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24489 | { | |
24490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24491 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPrintData const &)*arg1); | |
24492 | wxPyEndAllowThreads(__tstate); | |
24493 | if (PyErr_Occurred()) SWIG_fail; | |
24494 | } | |
24495 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_NEW | 0 ); | |
24496 | return resultobj; | |
24497 | fail: | |
24498 | return NULL; | |
d55e5bfc RD |
24499 | } |
24500 | ||
24501 | ||
554f62e9 RD |
24502 | SWIGINTERN PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { |
24503 | int argc; | |
24504 | PyObject *argv[2]; | |
24505 | ||
24506 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PageSetupDialogData",0,1,argv))) SWIG_fail; | |
24507 | --argc; | |
24508 | if (argc == 0) { | |
24509 | return _wrap_new_PageSetupDialogData__SWIG_0(self, argc, argv); | |
24510 | } | |
24511 | if (argc == 1) { | |
24512 | int _v = 0; | |
d55e5bfc | 24513 | { |
554f62e9 RD |
24514 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPageSetupDialogData, 0); |
24515 | _v = SWIG_CheckState(res); | |
d55e5bfc | 24516 | } |
554f62e9 RD |
24517 | if (!_v) goto check_2; |
24518 | return _wrap_new_PageSetupDialogData__SWIG_1(self, argc, argv); | |
24519 | } | |
24520 | check_2: | |
24521 | ||
24522 | if (argc == 1) { | |
24523 | return _wrap_new_PageSetupDialogData__SWIG_2(self, argc, argv); | |
24524 | } | |
24525 | ||
24526 | fail: | |
24527 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
24528 | return NULL; | |
d55e5bfc RD |
24529 | } |
24530 | ||
24531 | ||
554f62e9 RD |
24532 | SWIGINTERN PyObject *_wrap_delete_PageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24533 | PyObject *resultobj = 0; | |
24534 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24535 | void *argp1 = 0 ; | |
24536 | int res1 = 0 ; | |
24537 | PyObject *swig_obj[1] ; | |
24538 | ||
24539 | if (!args) SWIG_fail; | |
24540 | swig_obj[0] = args; | |
24541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, SWIG_POINTER_DISOWN | 0 ); | |
24542 | if (!SWIG_IsOK(res1)) { | |
24543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24544 | } | |
24545 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24546 | { | |
24547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24548 | delete arg1; | |
d55e5bfc | 24549 | |
554f62e9 RD |
24550 | wxPyEndAllowThreads(__tstate); |
24551 | if (PyErr_Occurred()) SWIG_fail; | |
24552 | } | |
24553 | resultobj = SWIG_Py_Void(); | |
24554 | return resultobj; | |
24555 | fail: | |
24556 | return NULL; | |
24557 | } | |
24558 | ||
24559 | ||
24560 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24561 | PyObject *resultobj = 0; | |
24562 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24563 | bool arg2 ; | |
24564 | void *argp1 = 0 ; | |
24565 | int res1 = 0 ; | |
24566 | bool val2 ; | |
24567 | int ecode2 = 0 ; | |
24568 | PyObject * obj0 = 0 ; | |
24569 | PyObject * obj1 = 0 ; | |
24570 | char * kwnames[] = { | |
24571 | (char *) "self",(char *) "flag", NULL | |
24572 | }; | |
24573 | ||
24574 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
24575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24576 | if (!SWIG_IsOK(res1)) { | |
24577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24578 | } | |
24579 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24580 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24581 | if (!SWIG_IsOK(ecode2)) { | |
24582 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
24583 | } | |
24584 | arg2 = static_cast< bool >(val2); | |
24585 | { | |
24586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24587 | (arg1)->EnableHelp(arg2); | |
24588 | wxPyEndAllowThreads(__tstate); | |
24589 | if (PyErr_Occurred()) SWIG_fail; | |
24590 | } | |
24591 | resultobj = SWIG_Py_Void(); | |
24592 | return resultobj; | |
24593 | fail: | |
24594 | return NULL; | |
24595 | } | |
24596 | ||
24597 | ||
24598 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24599 | PyObject *resultobj = 0; | |
24600 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24601 | bool arg2 ; | |
24602 | void *argp1 = 0 ; | |
24603 | int res1 = 0 ; | |
24604 | bool val2 ; | |
24605 | int ecode2 = 0 ; | |
24606 | PyObject * obj0 = 0 ; | |
24607 | PyObject * obj1 = 0 ; | |
24608 | char * kwnames[] = { | |
24609 | (char *) "self",(char *) "flag", NULL | |
24610 | }; | |
24611 | ||
24612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
24613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24614 | if (!SWIG_IsOK(res1)) { | |
24615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24616 | } | |
24617 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24618 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24619 | if (!SWIG_IsOK(ecode2)) { | |
24620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableMargins" "', expected argument " "2"" of type '" "bool""'"); | |
24621 | } | |
24622 | arg2 = static_cast< bool >(val2); | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | (arg1)->EnableMargins(arg2); | |
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | resultobj = SWIG_Py_Void(); | |
24630 | return resultobj; | |
24631 | fail: | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
24636 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24637 | PyObject *resultobj = 0; | |
24638 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24639 | bool arg2 ; | |
24640 | void *argp1 = 0 ; | |
24641 | int res1 = 0 ; | |
24642 | bool val2 ; | |
24643 | int ecode2 = 0 ; | |
24644 | PyObject * obj0 = 0 ; | |
24645 | PyObject * obj1 = 0 ; | |
24646 | char * kwnames[] = { | |
24647 | (char *) "self",(char *) "flag", NULL | |
24648 | }; | |
24649 | ||
24650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) SWIG_fail; | |
24651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24652 | if (!SWIG_IsOK(res1)) { | |
24653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24654 | } | |
24655 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24656 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24657 | if (!SWIG_IsOK(ecode2)) { | |
24658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnableOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
24659 | } | |
24660 | arg2 = static_cast< bool >(val2); | |
24661 | { | |
24662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24663 | (arg1)->EnableOrientation(arg2); | |
24664 | wxPyEndAllowThreads(__tstate); | |
24665 | if (PyErr_Occurred()) SWIG_fail; | |
24666 | } | |
24667 | resultobj = SWIG_Py_Void(); | |
24668 | return resultobj; | |
24669 | fail: | |
24670 | return NULL; | |
24671 | } | |
24672 | ||
24673 | ||
24674 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24675 | PyObject *resultobj = 0; | |
24676 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24677 | bool arg2 ; | |
24678 | void *argp1 = 0 ; | |
24679 | int res1 = 0 ; | |
24680 | bool val2 ; | |
24681 | int ecode2 = 0 ; | |
24682 | PyObject * obj0 = 0 ; | |
24683 | PyObject * obj1 = 0 ; | |
24684 | char * kwnames[] = { | |
24685 | (char *) "self",(char *) "flag", NULL | |
24686 | }; | |
24687 | ||
24688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) SWIG_fail; | |
24689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24690 | if (!SWIG_IsOK(res1)) { | |
24691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24692 | } | |
24693 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24694 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24695 | if (!SWIG_IsOK(ecode2)) { | |
24696 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePaper" "', expected argument " "2"" of type '" "bool""'"); | |
24697 | } | |
24698 | arg2 = static_cast< bool >(val2); | |
24699 | { | |
24700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24701 | (arg1)->EnablePaper(arg2); | |
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | resultobj = SWIG_Py_Void(); | |
24706 | return resultobj; | |
24707 | fail: | |
24708 | return NULL; | |
24709 | } | |
24710 | ||
24711 | ||
24712 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24713 | PyObject *resultobj = 0; | |
24714 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24715 | bool arg2 ; | |
24716 | void *argp1 = 0 ; | |
24717 | int res1 = 0 ; | |
24718 | bool val2 ; | |
24719 | int ecode2 = 0 ; | |
24720 | PyObject * obj0 = 0 ; | |
24721 | PyObject * obj1 = 0 ; | |
24722 | char * kwnames[] = { | |
24723 | (char *) "self",(char *) "flag", NULL | |
24724 | }; | |
24725 | ||
24726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) SWIG_fail; | |
24727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24728 | if (!SWIG_IsOK(res1)) { | |
24729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24730 | } | |
24731 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24732 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24733 | if (!SWIG_IsOK(ecode2)) { | |
24734 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_EnablePrinter" "', expected argument " "2"" of type '" "bool""'"); | |
24735 | } | |
24736 | arg2 = static_cast< bool >(val2); | |
24737 | { | |
24738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24739 | (arg1)->EnablePrinter(arg2); | |
24740 | wxPyEndAllowThreads(__tstate); | |
24741 | if (PyErr_Occurred()) SWIG_fail; | |
24742 | } | |
24743 | resultobj = SWIG_Py_Void(); | |
24744 | return resultobj; | |
24745 | fail: | |
24746 | return NULL; | |
d55e5bfc RD |
24747 | } |
24748 | ||
24749 | ||
554f62e9 RD |
24750 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24751 | PyObject *resultobj = 0; | |
24752 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24753 | bool result; | |
24754 | void *argp1 = 0 ; | |
24755 | int res1 = 0 ; | |
24756 | PyObject *swig_obj[1] ; | |
24757 | ||
24758 | if (!args) SWIG_fail; | |
24759 | swig_obj[0] = args; | |
24760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24761 | if (!SWIG_IsOK(res1)) { | |
24762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24763 | } | |
24764 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24765 | { | |
24766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24767 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
24768 | wxPyEndAllowThreads(__tstate); | |
24769 | if (PyErr_Occurred()) SWIG_fail; | |
24770 | } | |
24771 | { | |
24772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24773 | } | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
d55e5bfc RD |
24777 | } |
24778 | ||
24779 | ||
554f62e9 RD |
24780 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24781 | PyObject *resultobj = 0; | |
24782 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24783 | bool result; | |
24784 | void *argp1 = 0 ; | |
24785 | int res1 = 0 ; | |
24786 | PyObject *swig_obj[1] ; | |
24787 | ||
24788 | if (!args) SWIG_fail; | |
24789 | swig_obj[0] = args; | |
24790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24791 | if (!SWIG_IsOK(res1)) { | |
24792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24793 | } | |
24794 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24795 | { | |
24796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24797 | result = (bool)(arg1)->GetEnableMargins(); | |
24798 | wxPyEndAllowThreads(__tstate); | |
24799 | if (PyErr_Occurred()) SWIG_fail; | |
24800 | } | |
24801 | { | |
24802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24803 | } | |
24804 | return resultobj; | |
24805 | fail: | |
24806 | return NULL; | |
d55e5bfc RD |
24807 | } |
24808 | ||
24809 | ||
554f62e9 RD |
24810 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24811 | PyObject *resultobj = 0; | |
24812 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24813 | bool result; | |
24814 | void *argp1 = 0 ; | |
24815 | int res1 = 0 ; | |
24816 | PyObject *swig_obj[1] ; | |
24817 | ||
24818 | if (!args) SWIG_fail; | |
24819 | swig_obj[0] = args; | |
24820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24821 | if (!SWIG_IsOK(res1)) { | |
24822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableOrientation" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24823 | } | |
24824 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24825 | { | |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | result = (bool)(arg1)->GetEnableOrientation(); | |
24828 | wxPyEndAllowThreads(__tstate); | |
24829 | if (PyErr_Occurred()) SWIG_fail; | |
24830 | } | |
24831 | { | |
24832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24833 | } | |
24834 | return resultobj; | |
24835 | fail: | |
24836 | return NULL; | |
d55e5bfc RD |
24837 | } |
24838 | ||
24839 | ||
554f62e9 RD |
24840 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24841 | PyObject *resultobj = 0; | |
24842 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24843 | bool result; | |
24844 | void *argp1 = 0 ; | |
24845 | int res1 = 0 ; | |
24846 | PyObject *swig_obj[1] ; | |
24847 | ||
24848 | if (!args) SWIG_fail; | |
24849 | swig_obj[0] = args; | |
24850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24851 | if (!SWIG_IsOK(res1)) { | |
24852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePaper" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24853 | } | |
24854 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24855 | { | |
24856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24857 | result = (bool)(arg1)->GetEnablePaper(); | |
24858 | wxPyEndAllowThreads(__tstate); | |
24859 | if (PyErr_Occurred()) SWIG_fail; | |
24860 | } | |
24861 | { | |
24862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24863 | } | |
24864 | return resultobj; | |
24865 | fail: | |
24866 | return NULL; | |
d55e5bfc RD |
24867 | } |
24868 | ||
24869 | ||
554f62e9 RD |
24870 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24871 | PyObject *resultobj = 0; | |
24872 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24873 | bool result; | |
24874 | void *argp1 = 0 ; | |
24875 | int res1 = 0 ; | |
24876 | PyObject *swig_obj[1] ; | |
24877 | ||
24878 | if (!args) SWIG_fail; | |
24879 | swig_obj[0] = args; | |
24880 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24881 | if (!SWIG_IsOK(res1)) { | |
24882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnablePrinter" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24883 | } | |
24884 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24885 | { | |
24886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24887 | result = (bool)(arg1)->GetEnablePrinter(); | |
24888 | wxPyEndAllowThreads(__tstate); | |
24889 | if (PyErr_Occurred()) SWIG_fail; | |
24890 | } | |
24891 | { | |
24892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24893 | } | |
24894 | return resultobj; | |
24895 | fail: | |
24896 | return NULL; | |
d55e5bfc RD |
24897 | } |
24898 | ||
24899 | ||
554f62e9 RD |
24900 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24901 | PyObject *resultobj = 0; | |
24902 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24903 | bool result; | |
24904 | void *argp1 = 0 ; | |
24905 | int res1 = 0 ; | |
24906 | PyObject *swig_obj[1] ; | |
24907 | ||
24908 | if (!args) SWIG_fail; | |
24909 | swig_obj[0] = args; | |
24910 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24911 | if (!SWIG_IsOK(res1)) { | |
24912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24913 | } | |
24914 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24915 | { | |
24916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24917 | result = (bool)(arg1)->GetEnableHelp(); | |
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
24921 | { | |
24922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24923 | } | |
24924 | return resultobj; | |
24925 | fail: | |
24926 | return NULL; | |
d55e5bfc RD |
24927 | } |
24928 | ||
24929 | ||
554f62e9 RD |
24930 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24931 | PyObject *resultobj = 0; | |
24932 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24933 | bool result; | |
24934 | void *argp1 = 0 ; | |
24935 | int res1 = 0 ; | |
24936 | PyObject *swig_obj[1] ; | |
24937 | ||
24938 | if (!args) SWIG_fail; | |
24939 | swig_obj[0] = args; | |
24940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24941 | if (!SWIG_IsOK(res1)) { | |
24942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24943 | } | |
24944 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24945 | { | |
24946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24947 | result = (bool)(arg1)->GetDefaultInfo(); | |
24948 | wxPyEndAllowThreads(__tstate); | |
24949 | if (PyErr_Occurred()) SWIG_fail; | |
24950 | } | |
24951 | { | |
24952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24953 | } | |
24954 | return resultobj; | |
24955 | fail: | |
24956 | return NULL; | |
d55e5bfc RD |
24957 | } |
24958 | ||
24959 | ||
554f62e9 RD |
24960 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24961 | PyObject *resultobj = 0; | |
24962 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24963 | wxPoint result; | |
24964 | void *argp1 = 0 ; | |
24965 | int res1 = 0 ; | |
24966 | PyObject *swig_obj[1] ; | |
24967 | ||
24968 | if (!args) SWIG_fail; | |
24969 | swig_obj[0] = args; | |
24970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24971 | if (!SWIG_IsOK(res1)) { | |
24972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
24973 | } | |
24974 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
24975 | { | |
24976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24977 | result = (arg1)->GetMarginTopLeft(); | |
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
24982 | return resultobj; | |
24983 | fail: | |
24984 | return NULL; | |
d55e5bfc RD |
24985 | } |
24986 | ||
24987 | ||
554f62e9 RD |
24988 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24989 | PyObject *resultobj = 0; | |
24990 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
24991 | wxPoint result; | |
24992 | void *argp1 = 0 ; | |
24993 | int res1 = 0 ; | |
24994 | PyObject *swig_obj[1] ; | |
24995 | ||
24996 | if (!args) SWIG_fail; | |
24997 | swig_obj[0] = args; | |
24998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
24999 | if (!SWIG_IsOK(res1)) { | |
25000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25001 | } | |
25002 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25003 | { | |
25004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25005 | result = (arg1)->GetMarginBottomRight(); | |
25006 | wxPyEndAllowThreads(__tstate); | |
25007 | if (PyErr_Occurred()) SWIG_fail; | |
25008 | } | |
25009 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25010 | return resultobj; | |
25011 | fail: | |
25012 | return NULL; | |
d55e5bfc RD |
25013 | } |
25014 | ||
25015 | ||
554f62e9 RD |
25016 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25017 | PyObject *resultobj = 0; | |
25018 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25019 | wxPoint result; | |
25020 | void *argp1 = 0 ; | |
25021 | int res1 = 0 ; | |
25022 | PyObject *swig_obj[1] ; | |
25023 | ||
25024 | if (!args) SWIG_fail; | |
25025 | swig_obj[0] = args; | |
25026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25027 | if (!SWIG_IsOK(res1)) { | |
25028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25029 | } | |
25030 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25031 | { | |
25032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25033 | result = (arg1)->GetMinMarginTopLeft(); | |
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25038 | return resultobj; | |
25039 | fail: | |
25040 | return NULL; | |
d55e5bfc RD |
25041 | } |
25042 | ||
25043 | ||
554f62e9 RD |
25044 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25045 | PyObject *resultobj = 0; | |
25046 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25047 | wxPoint result; | |
25048 | void *argp1 = 0 ; | |
25049 | int res1 = 0 ; | |
25050 | PyObject *swig_obj[1] ; | |
25051 | ||
25052 | if (!args) SWIG_fail; | |
25053 | swig_obj[0] = args; | |
25054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25055 | if (!SWIG_IsOK(res1)) { | |
25056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25057 | } | |
25058 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25059 | { | |
25060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25061 | result = (arg1)->GetMinMarginBottomRight(); | |
25062 | wxPyEndAllowThreads(__tstate); | |
25063 | if (PyErr_Occurred()) SWIG_fail; | |
25064 | } | |
25065 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
25066 | return resultobj; | |
25067 | fail: | |
25068 | return NULL; | |
d55e5bfc RD |
25069 | } |
25070 | ||
25071 | ||
554f62e9 RD |
25072 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25073 | PyObject *resultobj = 0; | |
25074 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25075 | wxPaperSize result; | |
25076 | void *argp1 = 0 ; | |
25077 | int res1 = 0 ; | |
25078 | PyObject *swig_obj[1] ; | |
25079 | ||
25080 | if (!args) SWIG_fail; | |
25081 | swig_obj[0] = args; | |
25082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25083 | if (!SWIG_IsOK(res1)) { | |
25084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25085 | } | |
25086 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25087 | { | |
25088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25089 | result = (wxPaperSize)(arg1)->GetPaperId(); | |
25090 | wxPyEndAllowThreads(__tstate); | |
25091 | if (PyErr_Occurred()) SWIG_fail; | |
25092 | } | |
25093 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25094 | return resultobj; | |
25095 | fail: | |
25096 | return NULL; | |
d55e5bfc RD |
25097 | } |
25098 | ||
25099 | ||
554f62e9 RD |
25100 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25101 | PyObject *resultobj = 0; | |
25102 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25103 | wxSize result; | |
25104 | void *argp1 = 0 ; | |
25105 | int res1 = 0 ; | |
25106 | PyObject *swig_obj[1] ; | |
25107 | ||
25108 | if (!args) SWIG_fail; | |
25109 | swig_obj[0] = args; | |
25110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25111 | if (!SWIG_IsOK(res1)) { | |
25112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25113 | } | |
25114 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25115 | { | |
25116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25117 | result = (arg1)->GetPaperSize(); | |
25118 | wxPyEndAllowThreads(__tstate); | |
25119 | if (PyErr_Occurred()) SWIG_fail; | |
25120 | } | |
25121 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25122 | return resultobj; | |
25123 | fail: | |
25124 | return NULL; | |
7449af73 RD |
25125 | } |
25126 | ||
25127 | ||
554f62e9 RD |
25128 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25129 | PyObject *resultobj = 0; | |
25130 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25131 | wxPrintData *result = 0 ; | |
25132 | void *argp1 = 0 ; | |
25133 | int res1 = 0 ; | |
25134 | PyObject *swig_obj[1] ; | |
25135 | ||
25136 | if (!args) SWIG_fail; | |
25137 | swig_obj[0] = args; | |
25138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25139 | if (!SWIG_IsOK(res1)) { | |
25140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25141 | } | |
25142 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25143 | { | |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25145 | { |
554f62e9 RD |
25146 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25147 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 25148 | } |
554f62e9 RD |
25149 | wxPyEndAllowThreads(__tstate); |
25150 | if (PyErr_Occurred()) SWIG_fail; | |
25151 | } | |
25152 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25153 | return resultobj; | |
25154 | fail: | |
25155 | return NULL; | |
d55e5bfc RD |
25156 | } |
25157 | ||
25158 | ||
554f62e9 RD |
25159 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25160 | PyObject *resultobj = 0; | |
25161 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25162 | bool result; | |
25163 | void *argp1 = 0 ; | |
25164 | int res1 = 0 ; | |
25165 | PyObject *swig_obj[1] ; | |
25166 | ||
25167 | if (!args) SWIG_fail; | |
25168 | swig_obj[0] = args; | |
25169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25170 | if (!SWIG_IsOK(res1)) { | |
25171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_Ok" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25172 | } | |
25173 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25174 | { | |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25176 | result = (bool)(arg1)->Ok(); | |
25177 | wxPyEndAllowThreads(__tstate); | |
25178 | if (PyErr_Occurred()) SWIG_fail; | |
25179 | } | |
25180 | { | |
25181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25182 | } | |
25183 | return resultobj; | |
25184 | fail: | |
25185 | return NULL; | |
25186 | } | |
25187 | ||
25188 | ||
25189 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25190 | PyObject *resultobj = 0; | |
25191 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25192 | bool arg2 ; | |
25193 | void *argp1 = 0 ; | |
25194 | int res1 = 0 ; | |
25195 | bool val2 ; | |
25196 | int ecode2 = 0 ; | |
25197 | PyObject * obj0 = 0 ; | |
25198 | PyObject * obj1 = 0 ; | |
25199 | char * kwnames[] = { | |
25200 | (char *) "self",(char *) "flag", NULL | |
25201 | }; | |
25202 | ||
25203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
25204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25205 | if (!SWIG_IsOK(res1)) { | |
25206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25207 | } | |
25208 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25209 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25210 | if (!SWIG_IsOK(ecode2)) { | |
25211 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultInfo" "', expected argument " "2"" of type '" "bool""'"); | |
25212 | } | |
25213 | arg2 = static_cast< bool >(val2); | |
25214 | { | |
25215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25216 | (arg1)->SetDefaultInfo(arg2); | |
25217 | wxPyEndAllowThreads(__tstate); | |
25218 | if (PyErr_Occurred()) SWIG_fail; | |
25219 | } | |
25220 | resultobj = SWIG_Py_Void(); | |
25221 | return resultobj; | |
25222 | fail: | |
25223 | return NULL; | |
25224 | } | |
25225 | ||
25226 | ||
25227 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25228 | PyObject *resultobj = 0; | |
25229 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25230 | bool arg2 ; | |
25231 | void *argp1 = 0 ; | |
25232 | int res1 = 0 ; | |
25233 | bool val2 ; | |
25234 | int ecode2 = 0 ; | |
25235 | PyObject * obj0 = 0 ; | |
25236 | PyObject * obj1 = 0 ; | |
25237 | char * kwnames[] = { | |
25238 | (char *) "self",(char *) "flag", NULL | |
25239 | }; | |
25240 | ||
25241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) SWIG_fail; | |
25242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25243 | if (!SWIG_IsOK(res1)) { | |
25244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25245 | } | |
25246 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25247 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25248 | if (!SWIG_IsOK(ecode2)) { | |
25249 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetDefaultMinMargins" "', expected argument " "2"" of type '" "bool""'"); | |
25250 | } | |
25251 | arg2 = static_cast< bool >(val2); | |
25252 | { | |
25253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25254 | (arg1)->SetDefaultMinMargins(arg2); | |
25255 | wxPyEndAllowThreads(__tstate); | |
25256 | if (PyErr_Occurred()) SWIG_fail; | |
25257 | } | |
25258 | resultobj = SWIG_Py_Void(); | |
25259 | return resultobj; | |
25260 | fail: | |
25261 | return NULL; | |
25262 | } | |
25263 | ||
25264 | ||
25265 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25266 | PyObject *resultobj = 0; | |
25267 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25268 | wxPoint *arg2 = 0 ; | |
25269 | void *argp1 = 0 ; | |
25270 | int res1 = 0 ; | |
25271 | wxPoint temp2 ; | |
25272 | PyObject * obj0 = 0 ; | |
25273 | PyObject * obj1 = 0 ; | |
25274 | char * kwnames[] = { | |
25275 | (char *) "self",(char *) "pt", NULL | |
25276 | }; | |
25277 | ||
25278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25280 | if (!SWIG_IsOK(res1)) { | |
25281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25282 | } | |
25283 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25284 | { | |
25285 | arg2 = &temp2; | |
25286 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25287 | } | |
25288 | { | |
25289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25290 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
25291 | wxPyEndAllowThreads(__tstate); | |
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
25294 | resultobj = SWIG_Py_Void(); | |
25295 | return resultobj; | |
25296 | fail: | |
25297 | return NULL; | |
25298 | } | |
25299 | ||
25300 | ||
25301 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25302 | PyObject *resultobj = 0; | |
25303 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25304 | wxPoint *arg2 = 0 ; | |
25305 | void *argp1 = 0 ; | |
25306 | int res1 = 0 ; | |
25307 | wxPoint temp2 ; | |
25308 | PyObject * obj0 = 0 ; | |
25309 | PyObject * obj1 = 0 ; | |
25310 | char * kwnames[] = { | |
25311 | (char *) "self",(char *) "pt", NULL | |
25312 | }; | |
25313 | ||
25314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25316 | if (!SWIG_IsOK(res1)) { | |
25317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25318 | } | |
25319 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25320 | { | |
25321 | arg2 = &temp2; | |
25322 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25323 | } | |
25324 | { | |
25325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25326 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
25327 | wxPyEndAllowThreads(__tstate); | |
25328 | if (PyErr_Occurred()) SWIG_fail; | |
25329 | } | |
25330 | resultobj = SWIG_Py_Void(); | |
25331 | return resultobj; | |
25332 | fail: | |
25333 | return NULL; | |
25334 | } | |
25335 | ||
25336 | ||
25337 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25338 | PyObject *resultobj = 0; | |
25339 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25340 | wxPoint *arg2 = 0 ; | |
25341 | void *argp1 = 0 ; | |
25342 | int res1 = 0 ; | |
25343 | wxPoint temp2 ; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | PyObject * obj1 = 0 ; | |
25346 | char * kwnames[] = { | |
25347 | (char *) "self",(char *) "pt", NULL | |
25348 | }; | |
25349 | ||
25350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) SWIG_fail; | |
25351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25352 | if (!SWIG_IsOK(res1)) { | |
25353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginTopLeft" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25354 | } | |
25355 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25356 | { | |
25357 | arg2 = &temp2; | |
25358 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25359 | } | |
25360 | { | |
25361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25362 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
25363 | wxPyEndAllowThreads(__tstate); | |
25364 | if (PyErr_Occurred()) SWIG_fail; | |
25365 | } | |
25366 | resultobj = SWIG_Py_Void(); | |
25367 | return resultobj; | |
25368 | fail: | |
25369 | return NULL; | |
25370 | } | |
25371 | ||
25372 | ||
25373 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25374 | PyObject *resultobj = 0; | |
25375 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25376 | wxPoint *arg2 = 0 ; | |
25377 | void *argp1 = 0 ; | |
25378 | int res1 = 0 ; | |
25379 | wxPoint temp2 ; | |
25380 | PyObject * obj0 = 0 ; | |
25381 | PyObject * obj1 = 0 ; | |
25382 | char * kwnames[] = { | |
25383 | (char *) "self",(char *) "pt", NULL | |
25384 | }; | |
25385 | ||
25386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) SWIG_fail; | |
25387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25388 | if (!SWIG_IsOK(res1)) { | |
25389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetMinMarginBottomRight" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25390 | } | |
25391 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25392 | { | |
25393 | arg2 = &temp2; | |
25394 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25395 | } | |
25396 | { | |
25397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25398 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
25399 | wxPyEndAllowThreads(__tstate); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | resultobj = SWIG_Py_Void(); | |
25403 | return resultobj; | |
25404 | fail: | |
25405 | return NULL; | |
25406 | } | |
25407 | ||
25408 | ||
25409 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25410 | PyObject *resultobj = 0; | |
25411 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25412 | wxPaperSize arg2 ; | |
25413 | void *argp1 = 0 ; | |
25414 | int res1 = 0 ; | |
25415 | int val2 ; | |
25416 | int ecode2 = 0 ; | |
25417 | PyObject * obj0 = 0 ; | |
25418 | PyObject * obj1 = 0 ; | |
25419 | char * kwnames[] = { | |
25420 | (char *) "self",(char *) "id", NULL | |
25421 | }; | |
25422 | ||
25423 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) SWIG_fail; | |
25424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25425 | if (!SWIG_IsOK(res1)) { | |
25426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25427 | } | |
25428 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25429 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25430 | if (!SWIG_IsOK(ecode2)) { | |
25431 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PageSetupDialogData_SetPaperId" "', expected argument " "2"" of type '" "wxPaperSize""'"); | |
25432 | } | |
25433 | arg2 = static_cast< wxPaperSize >(val2); | |
25434 | { | |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | (arg1)->SetPaperId(arg2); | |
25437 | wxPyEndAllowThreads(__tstate); | |
25438 | if (PyErr_Occurred()) SWIG_fail; | |
25439 | } | |
25440 | resultobj = SWIG_Py_Void(); | |
25441 | return resultobj; | |
25442 | fail: | |
25443 | return NULL; | |
25444 | } | |
25445 | ||
25446 | ||
25447 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25448 | PyObject *resultobj = 0; | |
25449 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25450 | wxSize *arg2 = 0 ; | |
25451 | void *argp1 = 0 ; | |
25452 | int res1 = 0 ; | |
25453 | wxSize temp2 ; | |
25454 | PyObject * obj0 = 0 ; | |
25455 | PyObject * obj1 = 0 ; | |
25456 | char * kwnames[] = { | |
25457 | (char *) "self",(char *) "size", NULL | |
25458 | }; | |
25459 | ||
25460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
25461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25462 | if (!SWIG_IsOK(res1)) { | |
25463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25464 | } | |
25465 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25466 | { | |
25467 | arg2 = &temp2; | |
25468 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25469 | } | |
25470 | { | |
25471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25472 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
25473 | wxPyEndAllowThreads(__tstate); | |
25474 | if (PyErr_Occurred()) SWIG_fail; | |
25475 | } | |
25476 | resultobj = SWIG_Py_Void(); | |
25477 | return resultobj; | |
25478 | fail: | |
25479 | return NULL; | |
25480 | } | |
25481 | ||
25482 | ||
25483 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25484 | PyObject *resultobj = 0; | |
25485 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25486 | wxPrintData *arg2 = 0 ; | |
25487 | void *argp1 = 0 ; | |
25488 | int res1 = 0 ; | |
25489 | void *argp2 = 0 ; | |
25490 | int res2 = 0 ; | |
25491 | PyObject * obj0 = 0 ; | |
25492 | PyObject * obj1 = 0 ; | |
25493 | char * kwnames[] = { | |
25494 | (char *) "self",(char *) "printData", NULL | |
25495 | }; | |
25496 | ||
25497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25499 | if (!SWIG_IsOK(res1)) { | |
25500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25501 | } | |
25502 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25503 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25504 | if (!SWIG_IsOK(res2)) { | |
25505 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25506 | } | |
25507 | if (!argp2) { | |
25508 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PageSetupDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25509 | } | |
25510 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25511 | { | |
25512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25513 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25514 | wxPyEndAllowThreads(__tstate); | |
25515 | if (PyErr_Occurred()) SWIG_fail; | |
25516 | } | |
25517 | resultobj = SWIG_Py_Void(); | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | return NULL; | |
d55e5bfc RD |
25521 | } |
25522 | ||
25523 | ||
554f62e9 RD |
25524 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculateIdFromPaperSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25525 | PyObject *resultobj = 0; | |
25526 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25527 | void *argp1 = 0 ; | |
25528 | int res1 = 0 ; | |
25529 | PyObject *swig_obj[1] ; | |
25530 | ||
25531 | if (!args) SWIG_fail; | |
25532 | swig_obj[0] = args; | |
25533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25534 | if (!SWIG_IsOK(res1)) { | |
25535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculateIdFromPaperSize" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25536 | } | |
25537 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25538 | { | |
25539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25540 | (arg1)->CalculateIdFromPaperSize(); | |
25541 | wxPyEndAllowThreads(__tstate); | |
25542 | if (PyErr_Occurred()) SWIG_fail; | |
25543 | } | |
25544 | resultobj = SWIG_Py_Void(); | |
25545 | return resultobj; | |
25546 | fail: | |
25547 | return NULL; | |
d55e5bfc RD |
25548 | } |
25549 | ||
25550 | ||
554f62e9 RD |
25551 | SWIGINTERN PyObject *_wrap_PageSetupDialogData_CalculatePaperSizeFromId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25552 | PyObject *resultobj = 0; | |
25553 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
25554 | void *argp1 = 0 ; | |
25555 | int res1 = 0 ; | |
25556 | PyObject *swig_obj[1] ; | |
25557 | ||
25558 | if (!args) SWIG_fail; | |
25559 | swig_obj[0] = args; | |
25560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25561 | if (!SWIG_IsOK(res1)) { | |
25562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialogData_CalculatePaperSizeFromId" "', expected argument " "1"" of type '" "wxPageSetupDialogData *""'"); | |
25563 | } | |
25564 | arg1 = reinterpret_cast< wxPageSetupDialogData * >(argp1); | |
25565 | { | |
25566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25567 | (arg1)->CalculatePaperSizeFromId(); | |
25568 | wxPyEndAllowThreads(__tstate); | |
25569 | if (PyErr_Occurred()) SWIG_fail; | |
25570 | } | |
25571 | resultobj = SWIG_Py_Void(); | |
25572 | return resultobj; | |
25573 | fail: | |
25574 | return NULL; | |
d55e5bfc RD |
25575 | } |
25576 | ||
25577 | ||
554f62e9 RD |
25578 | SWIGINTERN PyObject *PageSetupDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25579 | PyObject *obj; | |
25580 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25581 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialogData, SWIG_NewClientData(obj)); | |
25582 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25583 | } |
25584 | ||
554f62e9 RD |
25585 | SWIGINTERN PyObject *PageSetupDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25586 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
25587 | } |
25588 | ||
554f62e9 RD |
25589 | SWIGINTERN PyObject *_wrap_new_PageSetupDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25590 | PyObject *resultobj = 0; | |
25591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25592 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
25593 | wxPageSetupDialog *result = 0 ; | |
25594 | void *argp1 = 0 ; | |
25595 | int res1 = 0 ; | |
25596 | void *argp2 = 0 ; | |
25597 | int res2 = 0 ; | |
25598 | PyObject * obj0 = 0 ; | |
25599 | PyObject * obj1 = 0 ; | |
25600 | char * kwnames[] = { | |
25601 | (char *) "parent",(char *) "data", NULL | |
25602 | }; | |
25603 | ||
25604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
25605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25606 | if (!SWIG_IsOK(res1)) { | |
25607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PageSetupDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25608 | } | |
25609 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25610 | if (obj1) { | |
25611 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25612 | if (!SWIG_IsOK(res2)) { | |
25613 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PageSetupDialog" "', expected argument " "2"" of type '" "wxPageSetupDialogData *""'"); | |
d55e5bfc | 25614 | } |
554f62e9 RD |
25615 | arg2 = reinterpret_cast< wxPageSetupDialogData * >(argp2); |
25616 | } | |
25617 | { | |
25618 | if (!wxPyCheckForApp()) SWIG_fail; | |
25619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25620 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
25621 | wxPyEndAllowThreads(__tstate); | |
25622 | if (PyErr_Occurred()) SWIG_fail; | |
25623 | } | |
25624 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialog, SWIG_POINTER_NEW | 0 ); | |
25625 | return resultobj; | |
25626 | fail: | |
25627 | return NULL; | |
d55e5bfc RD |
25628 | } |
25629 | ||
25630 | ||
554f62e9 RD |
25631 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25632 | PyObject *resultobj = 0; | |
25633 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25634 | wxPageSetupDialogData *result = 0 ; | |
25635 | void *argp1 = 0 ; | |
25636 | int res1 = 0 ; | |
25637 | PyObject *swig_obj[1] ; | |
25638 | ||
25639 | if (!args) SWIG_fail; | |
25640 | swig_obj[0] = args; | |
25641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25642 | if (!SWIG_IsOK(res1)) { | |
25643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25644 | } | |
25645 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25646 | { | |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 25648 | { |
554f62e9 RD |
25649 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); |
25650 | result = (wxPageSetupDialogData *) &_result_ref; | |
d55e5bfc | 25651 | } |
554f62e9 RD |
25652 | wxPyEndAllowThreads(__tstate); |
25653 | if (PyErr_Occurred()) SWIG_fail; | |
25654 | } | |
25655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25656 | return resultobj; | |
25657 | fail: | |
25658 | return NULL; | |
d55e5bfc RD |
25659 | } |
25660 | ||
25661 | ||
554f62e9 RD |
25662 | SWIGINTERN PyObject *_wrap_PageSetupDialog_GetPageSetupDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25663 | PyObject *resultobj = 0; | |
25664 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25665 | wxPageSetupDialogData *result = 0 ; | |
25666 | void *argp1 = 0 ; | |
25667 | int res1 = 0 ; | |
25668 | PyObject *swig_obj[1] ; | |
25669 | ||
25670 | if (!args) SWIG_fail; | |
25671 | swig_obj[0] = args; | |
25672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25673 | if (!SWIG_IsOK(res1)) { | |
25674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_GetPageSetupDialogData" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25675 | } | |
25676 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25677 | { | |
25678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25679 | { |
554f62e9 RD |
25680 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupDialogData(); |
25681 | result = (wxPageSetupDialogData *) &_result_ref; | |
093d3ff1 | 25682 | } |
554f62e9 RD |
25683 | wxPyEndAllowThreads(__tstate); |
25684 | if (PyErr_Occurred()) SWIG_fail; | |
25685 | } | |
25686 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPageSetupDialogData, 0 | 0 ); | |
25687 | return resultobj; | |
25688 | fail: | |
25689 | return NULL; | |
d55e5bfc RD |
25690 | } |
25691 | ||
25692 | ||
554f62e9 RD |
25693 | SWIGINTERN PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25694 | PyObject *resultobj = 0; | |
25695 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
25696 | int result; | |
25697 | void *argp1 = 0 ; | |
25698 | int res1 = 0 ; | |
25699 | PyObject *swig_obj[1] ; | |
25700 | ||
25701 | if (!args) SWIG_fail; | |
25702 | swig_obj[0] = args; | |
25703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPageSetupDialog, 0 | 0 ); | |
25704 | if (!SWIG_IsOK(res1)) { | |
25705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PageSetupDialog_ShowModal" "', expected argument " "1"" of type '" "wxPageSetupDialog *""'"); | |
25706 | } | |
25707 | arg1 = reinterpret_cast< wxPageSetupDialog * >(argp1); | |
25708 | { | |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | result = (int)(arg1)->ShowModal(); | |
25711 | wxPyEndAllowThreads(__tstate); | |
25712 | if (PyErr_Occurred()) SWIG_fail; | |
25713 | } | |
25714 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25715 | return resultobj; | |
25716 | fail: | |
25717 | return NULL; | |
d55e5bfc RD |
25718 | } |
25719 | ||
25720 | ||
554f62e9 RD |
25721 | SWIGINTERN PyObject *PageSetupDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25722 | PyObject *obj; | |
25723 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25724 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPageSetupDialog, SWIG_NewClientData(obj)); | |
25725 | return SWIG_Py_Void(); | |
d55e5bfc RD |
25726 | } |
25727 | ||
554f62e9 RD |
25728 | SWIGINTERN PyObject *PageSetupDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25729 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc | 25730 | } |
554f62e9 RD |
25731 | |
25732 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
25733 | PyObject *resultobj = 0; | |
25734 | wxPrintDialogData *result = 0 ; | |
25735 | ||
25736 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
25737 | { | |
25738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25739 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
25740 | wxPyEndAllowThreads(__tstate); | |
25741 | if (PyErr_Occurred()) SWIG_fail; | |
25742 | } | |
25743 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25744 | return resultobj; | |
25745 | fail: | |
25746 | return NULL; | |
d55e5bfc RD |
25747 | } |
25748 | ||
25749 | ||
554f62e9 RD |
25750 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25751 | PyObject *resultobj = 0; | |
25752 | wxPrintData *arg1 = 0 ; | |
25753 | wxPrintDialogData *result = 0 ; | |
25754 | void *argp1 = 0 ; | |
25755 | int res1 = 0 ; | |
25756 | ||
25757 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25759 | if (!SWIG_IsOK(res1)) { | |
25760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25761 | } | |
25762 | if (!argp1) { | |
25763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25764 | } | |
25765 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25766 | { | |
25767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25768 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
25769 | wxPyEndAllowThreads(__tstate); | |
25770 | if (PyErr_Occurred()) SWIG_fail; | |
25771 | } | |
25772 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25773 | return resultobj; | |
25774 | fail: | |
25775 | return NULL; | |
d55e5bfc RD |
25776 | } |
25777 | ||
25778 | ||
554f62e9 RD |
25779 | SWIGINTERN PyObject *_wrap_new_PrintDialogData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25780 | PyObject *resultobj = 0; | |
25781 | wxPrintDialogData *arg1 = 0 ; | |
25782 | wxPrintDialogData *result = 0 ; | |
25783 | void *argp1 = 0 ; | |
25784 | int res1 = 0 ; | |
25785 | ||
25786 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxPrintDialogData, 0 | 0); | |
25788 | if (!SWIG_IsOK(res1)) { | |
25789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25790 | } | |
25791 | if (!argp1) { | |
25792 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData const &""'"); | |
25793 | } | |
25794 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25795 | { | |
25796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25797 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintDialogData const &)*arg1); | |
25798 | wxPyEndAllowThreads(__tstate); | |
25799 | if (PyErr_Occurred()) SWIG_fail; | |
25800 | } | |
25801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_NEW | 0 ); | |
25802 | return resultobj; | |
25803 | fail: | |
25804 | return NULL; | |
d55e5bfc RD |
25805 | } |
25806 | ||
25807 | ||
554f62e9 RD |
25808 | SWIGINTERN PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { |
25809 | int argc; | |
25810 | PyObject *argv[2]; | |
25811 | ||
25812 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintDialogData",0,1,argv))) SWIG_fail; | |
25813 | --argc; | |
25814 | if (argc == 0) { | |
25815 | return _wrap_new_PrintDialogData__SWIG_0(self, argc, argv); | |
25816 | } | |
25817 | if (argc == 1) { | |
25818 | int _v = 0; | |
d55e5bfc | 25819 | { |
554f62e9 RD |
25820 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxPrintData, 0); |
25821 | _v = SWIG_CheckState(res); | |
d55e5bfc | 25822 | } |
554f62e9 RD |
25823 | if (!_v) goto check_2; |
25824 | return _wrap_new_PrintDialogData__SWIG_1(self, argc, argv); | |
25825 | } | |
25826 | check_2: | |
25827 | ||
25828 | if (argc == 1) { | |
25829 | return _wrap_new_PrintDialogData__SWIG_2(self, argc, argv); | |
25830 | } | |
25831 | ||
25832 | fail: | |
25833 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintDialogData'"); | |
25834 | return NULL; | |
d55e5bfc RD |
25835 | } |
25836 | ||
25837 | ||
554f62e9 RD |
25838 | SWIGINTERN PyObject *_wrap_delete_PrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25839 | PyObject *resultobj = 0; | |
25840 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25841 | void *argp1 = 0 ; | |
25842 | int res1 = 0 ; | |
25843 | PyObject *swig_obj[1] ; | |
25844 | ||
25845 | if (!args) SWIG_fail; | |
25846 | swig_obj[0] = args; | |
25847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_DISOWN | 0 ); | |
25848 | if (!SWIG_IsOK(res1)) { | |
25849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
25850 | } | |
25851 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25852 | { | |
25853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25854 | delete arg1; | |
d55e5bfc | 25855 | |
554f62e9 RD |
25856 | wxPyEndAllowThreads(__tstate); |
25857 | if (PyErr_Occurred()) SWIG_fail; | |
25858 | } | |
25859 | resultobj = SWIG_Py_Void(); | |
25860 | return resultobj; | |
25861 | fail: | |
25862 | return NULL; | |
d55e5bfc RD |
25863 | } |
25864 | ||
25865 | ||
554f62e9 RD |
25866 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25867 | PyObject *resultobj = 0; | |
25868 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25869 | int result; | |
25870 | void *argp1 = 0 ; | |
25871 | int res1 = 0 ; | |
25872 | PyObject *swig_obj[1] ; | |
25873 | ||
25874 | if (!args) SWIG_fail; | |
25875 | swig_obj[0] = args; | |
25876 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25877 | if (!SWIG_IsOK(res1)) { | |
25878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25879 | } | |
25880 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25881 | { | |
25882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25883 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
25884 | wxPyEndAllowThreads(__tstate); | |
25885 | if (PyErr_Occurred()) SWIG_fail; | |
25886 | } | |
25887 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25888 | return resultobj; | |
25889 | fail: | |
25890 | return NULL; | |
d55e5bfc RD |
25891 | } |
25892 | ||
25893 | ||
554f62e9 RD |
25894 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25895 | PyObject *resultobj = 0; | |
25896 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25897 | int result; | |
25898 | void *argp1 = 0 ; | |
25899 | int res1 = 0 ; | |
25900 | PyObject *swig_obj[1] ; | |
25901 | ||
25902 | if (!args) SWIG_fail; | |
25903 | swig_obj[0] = args; | |
25904 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25905 | if (!SWIG_IsOK(res1)) { | |
25906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25907 | } | |
25908 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25909 | { | |
25910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25911 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
25912 | wxPyEndAllowThreads(__tstate); | |
25913 | if (PyErr_Occurred()) SWIG_fail; | |
25914 | } | |
25915 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25916 | return resultobj; | |
25917 | fail: | |
25918 | return NULL; | |
d55e5bfc RD |
25919 | } |
25920 | ||
25921 | ||
554f62e9 RD |
25922 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25923 | PyObject *resultobj = 0; | |
25924 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25925 | int result; | |
25926 | void *argp1 = 0 ; | |
25927 | int res1 = 0 ; | |
25928 | PyObject *swig_obj[1] ; | |
25929 | ||
25930 | if (!args) SWIG_fail; | |
25931 | swig_obj[0] = args; | |
25932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25933 | if (!SWIG_IsOK(res1)) { | |
25934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25935 | } | |
25936 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25937 | { | |
25938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25939 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
25940 | wxPyEndAllowThreads(__tstate); | |
25941 | if (PyErr_Occurred()) SWIG_fail; | |
25942 | } | |
25943 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25944 | return resultobj; | |
25945 | fail: | |
25946 | return NULL; | |
d55e5bfc RD |
25947 | } |
25948 | ||
25949 | ||
554f62e9 RD |
25950 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25951 | PyObject *resultobj = 0; | |
25952 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25953 | int result; | |
25954 | void *argp1 = 0 ; | |
25955 | int res1 = 0 ; | |
25956 | PyObject *swig_obj[1] ; | |
25957 | ||
25958 | if (!args) SWIG_fail; | |
25959 | swig_obj[0] = args; | |
25960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25961 | if (!SWIG_IsOK(res1)) { | |
25962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25963 | } | |
25964 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25965 | { | |
25966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25967 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
25968 | wxPyEndAllowThreads(__tstate); | |
25969 | if (PyErr_Occurred()) SWIG_fail; | |
25970 | } | |
25971 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
d55e5bfc RD |
25975 | } |
25976 | ||
25977 | ||
554f62e9 RD |
25978 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25979 | PyObject *resultobj = 0; | |
25980 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
25981 | int result; | |
25982 | void *argp1 = 0 ; | |
25983 | int res1 = 0 ; | |
25984 | PyObject *swig_obj[1] ; | |
25985 | ||
25986 | if (!args) SWIG_fail; | |
25987 | swig_obj[0] = args; | |
25988 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
25989 | if (!SWIG_IsOK(res1)) { | |
25990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
25991 | } | |
25992 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
25993 | { | |
25994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25995 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
25996 | wxPyEndAllowThreads(__tstate); | |
25997 | if (PyErr_Occurred()) SWIG_fail; | |
25998 | } | |
25999 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26000 | return resultobj; | |
26001 | fail: | |
26002 | return NULL; | |
d55e5bfc RD |
26003 | } |
26004 | ||
26005 | ||
554f62e9 RD |
26006 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26007 | PyObject *resultobj = 0; | |
26008 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26009 | bool result; | |
26010 | void *argp1 = 0 ; | |
26011 | int res1 = 0 ; | |
26012 | PyObject *swig_obj[1] ; | |
26013 | ||
26014 | if (!args) SWIG_fail; | |
26015 | swig_obj[0] = args; | |
26016 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26017 | if (!SWIG_IsOK(res1)) { | |
26018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26019 | } | |
26020 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26021 | { | |
26022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26023 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
26024 | wxPyEndAllowThreads(__tstate); | |
26025 | if (PyErr_Occurred()) SWIG_fail; | |
26026 | } | |
26027 | { | |
26028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26029 | } | |
26030 | return resultobj; | |
26031 | fail: | |
26032 | return NULL; | |
d55e5bfc RD |
26033 | } |
26034 | ||
26035 | ||
554f62e9 RD |
26036 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26037 | PyObject *resultobj = 0; | |
26038 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26039 | bool result; | |
26040 | void *argp1 = 0 ; | |
26041 | int res1 = 0 ; | |
26042 | PyObject *swig_obj[1] ; | |
26043 | ||
26044 | if (!args) SWIG_fail; | |
26045 | swig_obj[0] = args; | |
26046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26047 | if (!SWIG_IsOK(res1)) { | |
26048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26049 | } | |
26050 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26051 | { | |
26052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26053 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
26054 | wxPyEndAllowThreads(__tstate); | |
26055 | if (PyErr_Occurred()) SWIG_fail; | |
26056 | } | |
26057 | { | |
26058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26059 | } | |
26060 | return resultobj; | |
26061 | fail: | |
26062 | return NULL; | |
d55e5bfc RD |
26063 | } |
26064 | ||
26065 | ||
554f62e9 RD |
26066 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26067 | PyObject *resultobj = 0; | |
26068 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26069 | bool result; | |
26070 | void *argp1 = 0 ; | |
26071 | int res1 = 0 ; | |
26072 | PyObject *swig_obj[1] ; | |
26073 | ||
26074 | if (!args) SWIG_fail; | |
26075 | swig_obj[0] = args; | |
26076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26077 | if (!SWIG_IsOK(res1)) { | |
26078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26079 | } | |
26080 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26081 | { | |
26082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26083 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
26084 | wxPyEndAllowThreads(__tstate); | |
26085 | if (PyErr_Occurred()) SWIG_fail; | |
26086 | } | |
26087 | { | |
26088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26089 | } | |
26090 | return resultobj; | |
26091 | fail: | |
26092 | return NULL; | |
d55e5bfc RD |
26093 | } |
26094 | ||
26095 | ||
554f62e9 RD |
26096 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26097 | PyObject *resultobj = 0; | |
26098 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26099 | bool result; | |
26100 | void *argp1 = 0 ; | |
26101 | int res1 = 0 ; | |
26102 | PyObject *swig_obj[1] ; | |
26103 | ||
26104 | if (!args) SWIG_fail; | |
26105 | swig_obj[0] = args; | |
26106 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26107 | if (!SWIG_IsOK(res1)) { | |
26108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26109 | } | |
26110 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26111 | { | |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
26114 | wxPyEndAllowThreads(__tstate); | |
26115 | if (PyErr_Occurred()) SWIG_fail; | |
26116 | } | |
26117 | { | |
26118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26119 | } | |
26120 | return resultobj; | |
26121 | fail: | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
26126 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26127 | PyObject *resultobj = 0; | |
26128 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26129 | int arg2 ; | |
26130 | void *argp1 = 0 ; | |
26131 | int res1 = 0 ; | |
26132 | int val2 ; | |
26133 | int ecode2 = 0 ; | |
26134 | PyObject * obj0 = 0 ; | |
26135 | PyObject * obj1 = 0 ; | |
26136 | char * kwnames[] = { | |
26137 | (char *) "self",(char *) "v", NULL | |
26138 | }; | |
26139 | ||
26140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26141 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26142 | if (!SWIG_IsOK(res1)) { | |
26143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26144 | } | |
26145 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26146 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26147 | if (!SWIG_IsOK(ecode2)) { | |
26148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetFromPage" "', expected argument " "2"" of type '" "int""'"); | |
26149 | } | |
26150 | arg2 = static_cast< int >(val2); | |
26151 | { | |
26152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26153 | (arg1)->SetFromPage(arg2); | |
26154 | wxPyEndAllowThreads(__tstate); | |
26155 | if (PyErr_Occurred()) SWIG_fail; | |
26156 | } | |
26157 | resultobj = SWIG_Py_Void(); | |
26158 | return resultobj; | |
26159 | fail: | |
26160 | return NULL; | |
26161 | } | |
26162 | ||
26163 | ||
26164 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetToPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26165 | PyObject *resultobj = 0; | |
26166 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26167 | int arg2 ; | |
26168 | void *argp1 = 0 ; | |
26169 | int res1 = 0 ; | |
26170 | int val2 ; | |
26171 | int ecode2 = 0 ; | |
26172 | PyObject * obj0 = 0 ; | |
26173 | PyObject * obj1 = 0 ; | |
26174 | char * kwnames[] = { | |
26175 | (char *) "self",(char *) "v", NULL | |
26176 | }; | |
26177 | ||
26178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26179 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26180 | if (!SWIG_IsOK(res1)) { | |
26181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetToPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26182 | } | |
26183 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26184 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26185 | if (!SWIG_IsOK(ecode2)) { | |
26186 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetToPage" "', expected argument " "2"" of type '" "int""'"); | |
26187 | } | |
26188 | arg2 = static_cast< int >(val2); | |
26189 | { | |
26190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26191 | (arg1)->SetToPage(arg2); | |
26192 | wxPyEndAllowThreads(__tstate); | |
26193 | if (PyErr_Occurred()) SWIG_fail; | |
26194 | } | |
26195 | resultobj = SWIG_Py_Void(); | |
26196 | return resultobj; | |
26197 | fail: | |
26198 | return NULL; | |
26199 | } | |
26200 | ||
26201 | ||
26202 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26203 | PyObject *resultobj = 0; | |
26204 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26205 | int arg2 ; | |
26206 | void *argp1 = 0 ; | |
26207 | int res1 = 0 ; | |
26208 | int val2 ; | |
26209 | int ecode2 = 0 ; | |
26210 | PyObject * obj0 = 0 ; | |
26211 | PyObject * obj1 = 0 ; | |
26212 | char * kwnames[] = { | |
26213 | (char *) "self",(char *) "v", NULL | |
26214 | }; | |
26215 | ||
26216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26218 | if (!SWIG_IsOK(res1)) { | |
26219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26220 | } | |
26221 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26222 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26223 | if (!SWIG_IsOK(ecode2)) { | |
26224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMinPage" "', expected argument " "2"" of type '" "int""'"); | |
26225 | } | |
26226 | arg2 = static_cast< int >(val2); | |
26227 | { | |
26228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26229 | (arg1)->SetMinPage(arg2); | |
26230 | wxPyEndAllowThreads(__tstate); | |
26231 | if (PyErr_Occurred()) SWIG_fail; | |
26232 | } | |
26233 | resultobj = SWIG_Py_Void(); | |
26234 | return resultobj; | |
26235 | fail: | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
26240 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26241 | PyObject *resultobj = 0; | |
26242 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26243 | int arg2 ; | |
26244 | void *argp1 = 0 ; | |
26245 | int res1 = 0 ; | |
26246 | int val2 ; | |
26247 | int ecode2 = 0 ; | |
26248 | PyObject * obj0 = 0 ; | |
26249 | PyObject * obj1 = 0 ; | |
26250 | char * kwnames[] = { | |
26251 | (char *) "self",(char *) "v", NULL | |
26252 | }; | |
26253 | ||
26254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
26255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26256 | if (!SWIG_IsOK(res1)) { | |
26257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26258 | } | |
26259 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26260 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26261 | if (!SWIG_IsOK(ecode2)) { | |
26262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetMaxPage" "', expected argument " "2"" of type '" "int""'"); | |
26263 | } | |
26264 | arg2 = static_cast< int >(val2); | |
26265 | { | |
26266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26267 | (arg1)->SetMaxPage(arg2); | |
26268 | wxPyEndAllowThreads(__tstate); | |
26269 | if (PyErr_Occurred()) SWIG_fail; | |
26270 | } | |
26271 | resultobj = SWIG_Py_Void(); | |
26272 | return resultobj; | |
26273 | fail: | |
26274 | return NULL; | |
26275 | } | |
26276 | ||
26277 | ||
26278 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26279 | PyObject *resultobj = 0; | |
26280 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26281 | int arg2 ; | |
26282 | void *argp1 = 0 ; | |
26283 | int res1 = 0 ; | |
26284 | int val2 ; | |
26285 | int ecode2 = 0 ; | |
26286 | PyObject * obj0 = 0 ; | |
26287 | PyObject * obj1 = 0 ; | |
26288 | char * kwnames[] = { | |
26289 | (char *) "self",(char *) "v", NULL | |
26290 | }; | |
26291 | ||
26292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) SWIG_fail; | |
26293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26294 | if (!SWIG_IsOK(res1)) { | |
26295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26296 | } | |
26297 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26298 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26299 | if (!SWIG_IsOK(ecode2)) { | |
26300 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetNoCopies" "', expected argument " "2"" of type '" "int""'"); | |
26301 | } | |
26302 | arg2 = static_cast< int >(val2); | |
26303 | { | |
26304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26305 | (arg1)->SetNoCopies(arg2); | |
26306 | wxPyEndAllowThreads(__tstate); | |
26307 | if (PyErr_Occurred()) SWIG_fail; | |
26308 | } | |
26309 | resultobj = SWIG_Py_Void(); | |
26310 | return resultobj; | |
26311 | fail: | |
26312 | return NULL; | |
26313 | } | |
26314 | ||
26315 | ||
26316 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26317 | PyObject *resultobj = 0; | |
26318 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26319 | bool arg2 ; | |
26320 | void *argp1 = 0 ; | |
26321 | int res1 = 0 ; | |
26322 | bool val2 ; | |
26323 | int ecode2 = 0 ; | |
26324 | PyObject * obj0 = 0 ; | |
26325 | PyObject * obj1 = 0 ; | |
26326 | char * kwnames[] = { | |
26327 | (char *) "self",(char *) "flag", NULL | |
26328 | }; | |
26329 | ||
26330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) SWIG_fail; | |
26331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26332 | if (!SWIG_IsOK(res1)) { | |
26333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26334 | } | |
26335 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26336 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26337 | if (!SWIG_IsOK(ecode2)) { | |
26338 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetAllPages" "', expected argument " "2"" of type '" "bool""'"); | |
26339 | } | |
26340 | arg2 = static_cast< bool >(val2); | |
26341 | { | |
26342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26343 | (arg1)->SetAllPages(arg2); | |
26344 | wxPyEndAllowThreads(__tstate); | |
26345 | if (PyErr_Occurred()) SWIG_fail; | |
26346 | } | |
26347 | resultobj = SWIG_Py_Void(); | |
26348 | return resultobj; | |
26349 | fail: | |
26350 | return NULL; | |
26351 | } | |
26352 | ||
26353 | ||
26354 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26355 | PyObject *resultobj = 0; | |
26356 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26357 | bool arg2 ; | |
26358 | void *argp1 = 0 ; | |
26359 | int res1 = 0 ; | |
26360 | bool val2 ; | |
26361 | int ecode2 = 0 ; | |
26362 | PyObject * obj0 = 0 ; | |
26363 | PyObject * obj1 = 0 ; | |
26364 | char * kwnames[] = { | |
26365 | (char *) "self",(char *) "flag", NULL | |
26366 | }; | |
26367 | ||
26368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26370 | if (!SWIG_IsOK(res1)) { | |
26371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26372 | } | |
26373 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26374 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26375 | if (!SWIG_IsOK(ecode2)) { | |
26376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26377 | } | |
26378 | arg2 = static_cast< bool >(val2); | |
26379 | { | |
26380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26381 | (arg1)->SetSelection(arg2); | |
26382 | wxPyEndAllowThreads(__tstate); | |
26383 | if (PyErr_Occurred()) SWIG_fail; | |
26384 | } | |
26385 | resultobj = SWIG_Py_Void(); | |
26386 | return resultobj; | |
26387 | fail: | |
26388 | return NULL; | |
26389 | } | |
26390 | ||
26391 | ||
26392 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetCollate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26393 | PyObject *resultobj = 0; | |
26394 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26395 | bool arg2 ; | |
26396 | void *argp1 = 0 ; | |
26397 | int res1 = 0 ; | |
26398 | bool val2 ; | |
26399 | int ecode2 = 0 ; | |
26400 | PyObject * obj0 = 0 ; | |
26401 | PyObject * obj1 = 0 ; | |
26402 | char * kwnames[] = { | |
26403 | (char *) "self",(char *) "flag", NULL | |
26404 | }; | |
26405 | ||
26406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26408 | if (!SWIG_IsOK(res1)) { | |
26409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetCollate" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26410 | } | |
26411 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26412 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26413 | if (!SWIG_IsOK(ecode2)) { | |
26414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetCollate" "', expected argument " "2"" of type '" "bool""'"); | |
26415 | } | |
26416 | arg2 = static_cast< bool >(val2); | |
26417 | { | |
26418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26419 | (arg1)->SetCollate(arg2); | |
26420 | wxPyEndAllowThreads(__tstate); | |
26421 | if (PyErr_Occurred()) SWIG_fail; | |
26422 | } | |
26423 | resultobj = SWIG_Py_Void(); | |
26424 | return resultobj; | |
26425 | fail: | |
26426 | return NULL; | |
26427 | } | |
26428 | ||
26429 | ||
26430 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26431 | PyObject *resultobj = 0; | |
26432 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26433 | bool arg2 ; | |
26434 | void *argp1 = 0 ; | |
26435 | int res1 = 0 ; | |
26436 | bool val2 ; | |
26437 | int ecode2 = 0 ; | |
26438 | PyObject * obj0 = 0 ; | |
26439 | PyObject * obj1 = 0 ; | |
26440 | char * kwnames[] = { | |
26441 | (char *) "self",(char *) "flag", NULL | |
26442 | }; | |
26443 | ||
26444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26446 | if (!SWIG_IsOK(res1)) { | |
26447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26448 | } | |
26449 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26450 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26451 | if (!SWIG_IsOK(ecode2)) { | |
26452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_SetPrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26453 | } | |
26454 | arg2 = static_cast< bool >(val2); | |
26455 | { | |
26456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26457 | (arg1)->SetPrintToFile(arg2); | |
26458 | wxPyEndAllowThreads(__tstate); | |
26459 | if (PyErr_Occurred()) SWIG_fail; | |
26460 | } | |
26461 | resultobj = SWIG_Py_Void(); | |
26462 | return resultobj; | |
26463 | fail: | |
26464 | return NULL; | |
26465 | } | |
26466 | ||
26467 | ||
26468 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26469 | PyObject *resultobj = 0; | |
26470 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26471 | bool arg2 ; | |
26472 | void *argp1 = 0 ; | |
26473 | int res1 = 0 ; | |
26474 | bool val2 ; | |
26475 | int ecode2 = 0 ; | |
26476 | PyObject * obj0 = 0 ; | |
26477 | PyObject * obj1 = 0 ; | |
26478 | char * kwnames[] = { | |
26479 | (char *) "self",(char *) "flag", NULL | |
26480 | }; | |
26481 | ||
26482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
26483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26484 | if (!SWIG_IsOK(res1)) { | |
26485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26486 | } | |
26487 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26488 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26489 | if (!SWIG_IsOK(ecode2)) { | |
26490 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePrintToFile" "', expected argument " "2"" of type '" "bool""'"); | |
26491 | } | |
26492 | arg2 = static_cast< bool >(val2); | |
26493 | { | |
26494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26495 | (arg1)->EnablePrintToFile(arg2); | |
26496 | wxPyEndAllowThreads(__tstate); | |
26497 | if (PyErr_Occurred()) SWIG_fail; | |
26498 | } | |
26499 | resultobj = SWIG_Py_Void(); | |
26500 | return resultobj; | |
26501 | fail: | |
26502 | return NULL; | |
26503 | } | |
26504 | ||
26505 | ||
26506 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26507 | PyObject *resultobj = 0; | |
26508 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26509 | bool arg2 ; | |
26510 | void *argp1 = 0 ; | |
26511 | int res1 = 0 ; | |
26512 | bool val2 ; | |
26513 | int ecode2 = 0 ; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | PyObject * obj1 = 0 ; | |
26516 | char * kwnames[] = { | |
26517 | (char *) "self",(char *) "flag", NULL | |
26518 | }; | |
26519 | ||
26520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
26521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26522 | if (!SWIG_IsOK(res1)) { | |
26523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26524 | } | |
26525 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26526 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26527 | if (!SWIG_IsOK(ecode2)) { | |
26528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableSelection" "', expected argument " "2"" of type '" "bool""'"); | |
26529 | } | |
26530 | arg2 = static_cast< bool >(val2); | |
26531 | { | |
26532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26533 | (arg1)->EnableSelection(arg2); | |
26534 | wxPyEndAllowThreads(__tstate); | |
26535 | if (PyErr_Occurred()) SWIG_fail; | |
26536 | } | |
26537 | resultobj = SWIG_Py_Void(); | |
26538 | return resultobj; | |
26539 | fail: | |
26540 | return NULL; | |
26541 | } | |
26542 | ||
26543 | ||
26544 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26545 | PyObject *resultobj = 0; | |
26546 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26547 | bool arg2 ; | |
26548 | void *argp1 = 0 ; | |
26549 | int res1 = 0 ; | |
26550 | bool val2 ; | |
26551 | int ecode2 = 0 ; | |
26552 | PyObject * obj0 = 0 ; | |
26553 | PyObject * obj1 = 0 ; | |
26554 | char * kwnames[] = { | |
26555 | (char *) "self",(char *) "flag", NULL | |
26556 | }; | |
26557 | ||
26558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) SWIG_fail; | |
26559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26560 | if (!SWIG_IsOK(res1)) { | |
26561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26562 | } | |
26563 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26564 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26565 | if (!SWIG_IsOK(ecode2)) { | |
26566 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnablePageNumbers" "', expected argument " "2"" of type '" "bool""'"); | |
26567 | } | |
26568 | arg2 = static_cast< bool >(val2); | |
26569 | { | |
26570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26571 | (arg1)->EnablePageNumbers(arg2); | |
26572 | wxPyEndAllowThreads(__tstate); | |
26573 | if (PyErr_Occurred()) SWIG_fail; | |
26574 | } | |
26575 | resultobj = SWIG_Py_Void(); | |
26576 | return resultobj; | |
26577 | fail: | |
26578 | return NULL; | |
26579 | } | |
26580 | ||
26581 | ||
26582 | SWIGINTERN PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26583 | PyObject *resultobj = 0; | |
26584 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26585 | bool arg2 ; | |
26586 | void *argp1 = 0 ; | |
26587 | int res1 = 0 ; | |
26588 | bool val2 ; | |
26589 | int ecode2 = 0 ; | |
26590 | PyObject * obj0 = 0 ; | |
26591 | PyObject * obj1 = 0 ; | |
26592 | char * kwnames[] = { | |
26593 | (char *) "self",(char *) "flag", NULL | |
26594 | }; | |
26595 | ||
26596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) SWIG_fail; | |
26597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26598 | if (!SWIG_IsOK(res1)) { | |
26599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26600 | } | |
26601 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26602 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
26603 | if (!SWIG_IsOK(ecode2)) { | |
26604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintDialogData_EnableHelp" "', expected argument " "2"" of type '" "bool""'"); | |
26605 | } | |
26606 | arg2 = static_cast< bool >(val2); | |
26607 | { | |
26608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26609 | (arg1)->EnableHelp(arg2); | |
26610 | wxPyEndAllowThreads(__tstate); | |
26611 | if (PyErr_Occurred()) SWIG_fail; | |
26612 | } | |
26613 | resultobj = SWIG_Py_Void(); | |
26614 | return resultobj; | |
26615 | fail: | |
26616 | return NULL; | |
d55e5bfc RD |
26617 | } |
26618 | ||
26619 | ||
554f62e9 RD |
26620 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26621 | PyObject *resultobj = 0; | |
26622 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26623 | bool result; | |
26624 | void *argp1 = 0 ; | |
26625 | int res1 = 0 ; | |
26626 | PyObject *swig_obj[1] ; | |
26627 | ||
26628 | if (!args) SWIG_fail; | |
26629 | swig_obj[0] = args; | |
26630 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26631 | if (!SWIG_IsOK(res1)) { | |
26632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePrintToFile" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26633 | } | |
26634 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26635 | { | |
26636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26637 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
26638 | wxPyEndAllowThreads(__tstate); | |
26639 | if (PyErr_Occurred()) SWIG_fail; | |
26640 | } | |
26641 | { | |
26642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26643 | } | |
26644 | return resultobj; | |
26645 | fail: | |
26646 | return NULL; | |
d55e5bfc RD |
26647 | } |
26648 | ||
26649 | ||
554f62e9 RD |
26650 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26651 | PyObject *resultobj = 0; | |
26652 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26653 | bool result; | |
26654 | void *argp1 = 0 ; | |
26655 | int res1 = 0 ; | |
26656 | PyObject *swig_obj[1] ; | |
26657 | ||
26658 | if (!args) SWIG_fail; | |
26659 | swig_obj[0] = args; | |
26660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26661 | if (!SWIG_IsOK(res1)) { | |
26662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableSelection" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26663 | } | |
26664 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26665 | { | |
26666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26667 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
26668 | wxPyEndAllowThreads(__tstate); | |
26669 | if (PyErr_Occurred()) SWIG_fail; | |
26670 | } | |
26671 | { | |
26672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26673 | } | |
26674 | return resultobj; | |
26675 | fail: | |
26676 | return NULL; | |
d55e5bfc RD |
26677 | } |
26678 | ||
26679 | ||
554f62e9 RD |
26680 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26681 | PyObject *resultobj = 0; | |
26682 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26683 | bool result; | |
26684 | void *argp1 = 0 ; | |
26685 | int res1 = 0 ; | |
26686 | PyObject *swig_obj[1] ; | |
26687 | ||
26688 | if (!args) SWIG_fail; | |
26689 | swig_obj[0] = args; | |
26690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26691 | if (!SWIG_IsOK(res1)) { | |
26692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnablePageNumbers" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26693 | } | |
26694 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26695 | { | |
26696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26697 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
26698 | wxPyEndAllowThreads(__tstate); | |
26699 | if (PyErr_Occurred()) SWIG_fail; | |
26700 | } | |
26701 | { | |
26702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26703 | } | |
26704 | return resultobj; | |
26705 | fail: | |
26706 | return NULL; | |
d55e5bfc RD |
26707 | } |
26708 | ||
26709 | ||
554f62e9 RD |
26710 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26711 | PyObject *resultobj = 0; | |
26712 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26713 | bool result; | |
26714 | void *argp1 = 0 ; | |
26715 | int res1 = 0 ; | |
26716 | PyObject *swig_obj[1] ; | |
26717 | ||
26718 | if (!args) SWIG_fail; | |
26719 | swig_obj[0] = args; | |
26720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26721 | if (!SWIG_IsOK(res1)) { | |
26722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetEnableHelp" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26723 | } | |
26724 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26725 | { | |
26726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26727 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
26728 | wxPyEndAllowThreads(__tstate); | |
26729 | if (PyErr_Occurred()) SWIG_fail; | |
26730 | } | |
26731 | { | |
26732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26733 | } | |
26734 | return resultobj; | |
26735 | fail: | |
26736 | return NULL; | |
d55e5bfc RD |
26737 | } |
26738 | ||
26739 | ||
554f62e9 RD |
26740 | SWIGINTERN PyObject *_wrap_PrintDialogData_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26741 | PyObject *resultobj = 0; | |
26742 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26743 | bool result; | |
26744 | void *argp1 = 0 ; | |
26745 | int res1 = 0 ; | |
26746 | PyObject *swig_obj[1] ; | |
26747 | ||
26748 | if (!args) SWIG_fail; | |
26749 | swig_obj[0] = args; | |
26750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26751 | if (!SWIG_IsOK(res1)) { | |
26752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_Ok" "', expected argument " "1"" of type '" "wxPrintDialogData const *""'"); | |
26753 | } | |
26754 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26755 | { | |
26756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26757 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
26758 | wxPyEndAllowThreads(__tstate); | |
26759 | if (PyErr_Occurred()) SWIG_fail; | |
26760 | } | |
26761 | { | |
26762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26763 | } | |
26764 | return resultobj; | |
26765 | fail: | |
26766 | return NULL; | |
d55e5bfc RD |
26767 | } |
26768 | ||
26769 | ||
554f62e9 RD |
26770 | SWIGINTERN PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26771 | PyObject *resultobj = 0; | |
26772 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26773 | wxPrintData *result = 0 ; | |
26774 | void *argp1 = 0 ; | |
26775 | int res1 = 0 ; | |
26776 | PyObject *swig_obj[1] ; | |
26777 | ||
26778 | if (!args) SWIG_fail; | |
26779 | swig_obj[0] = args; | |
26780 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26781 | if (!SWIG_IsOK(res1)) { | |
26782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26783 | } | |
26784 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26785 | { | |
26786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26787 | { |
554f62e9 RD |
26788 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26789 | result = (wxPrintData *) &_result_ref; | |
26790 | } | |
26791 | wxPyEndAllowThreads(__tstate); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | } | |
26794 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26795 | return resultobj; | |
26796 | fail: | |
26797 | return NULL; | |
26798 | } | |
26799 | ||
26800 | ||
26801 | SWIGINTERN PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26802 | PyObject *resultobj = 0; | |
26803 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
26804 | wxPrintData *arg2 = 0 ; | |
26805 | void *argp1 = 0 ; | |
26806 | int res1 = 0 ; | |
26807 | void *argp2 = 0 ; | |
26808 | int res2 = 0 ; | |
26809 | PyObject * obj0 = 0 ; | |
26810 | PyObject * obj1 = 0 ; | |
26811 | char * kwnames[] = { | |
26812 | (char *) "self",(char *) "printData", NULL | |
26813 | }; | |
26814 | ||
26815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
26816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26817 | if (!SWIG_IsOK(res1)) { | |
26818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
26819 | } | |
26820 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); | |
26821 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26822 | if (!SWIG_IsOK(res2)) { | |
26823 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26824 | } | |
26825 | if (!argp2) { | |
26826 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintDialogData_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
26827 | } | |
26828 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
26829 | { | |
26830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26831 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | resultobj = SWIG_Py_Void(); | |
26836 | return resultobj; | |
26837 | fail: | |
26838 | return NULL; | |
d55e5bfc RD |
26839 | } |
26840 | ||
26841 | ||
554f62e9 RD |
26842 | SWIGINTERN PyObject *PrintDialogData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26843 | PyObject *obj; | |
26844 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26845 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialogData, SWIG_NewClientData(obj)); | |
26846 | return SWIG_Py_Void(); | |
d55e5bfc RD |
26847 | } |
26848 | ||
554f62e9 RD |
26849 | SWIGINTERN PyObject *PrintDialogData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26850 | return SWIG_Python_InitShadowInstance(args); | |
26851 | } | |
d55e5bfc | 26852 | |
554f62e9 RD |
26853 | SWIGINTERN PyObject *_wrap_new_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26854 | PyObject *resultobj = 0; | |
26855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26856 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
26857 | wxPrintDialog *result = 0 ; | |
26858 | void *argp1 = 0 ; | |
26859 | int res1 = 0 ; | |
26860 | void *argp2 = 0 ; | |
26861 | int res2 = 0 ; | |
26862 | PyObject * obj0 = 0 ; | |
26863 | PyObject * obj1 = 0 ; | |
26864 | char * kwnames[] = { | |
26865 | (char *) "parent",(char *) "data", NULL | |
26866 | }; | |
26867 | ||
26868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
26869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
26870 | if (!SWIG_IsOK(res1)) { | |
26871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintDialog" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
26872 | } | |
26873 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
26874 | if (obj1) { | |
26875 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26876 | if (!SWIG_IsOK(res2)) { | |
26877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintDialog" "', expected argument " "2"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 26878 | } |
554f62e9 RD |
26879 | arg2 = reinterpret_cast< wxPrintDialogData * >(argp2); |
26880 | } | |
26881 | { | |
26882 | if (!wxPyCheckForApp()) SWIG_fail; | |
26883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26884 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
26885 | wxPyEndAllowThreads(__tstate); | |
26886 | if (PyErr_Occurred()) SWIG_fail; | |
26887 | } | |
26888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialog, SWIG_POINTER_NEW | 0 ); | |
26889 | return resultobj; | |
26890 | fail: | |
26891 | return NULL; | |
d55e5bfc RD |
26892 | } |
26893 | ||
26894 | ||
554f62e9 RD |
26895 | SWIGINTERN PyObject *_wrap_PrintDialog_ShowModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26896 | PyObject *resultobj = 0; | |
26897 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26898 | int result; | |
26899 | void *argp1 = 0 ; | |
26900 | int res1 = 0 ; | |
26901 | PyObject *swig_obj[1] ; | |
26902 | ||
26903 | if (!args) SWIG_fail; | |
26904 | swig_obj[0] = args; | |
26905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26906 | if (!SWIG_IsOK(res1)) { | |
26907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_ShowModal" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26908 | } | |
26909 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26910 | { | |
26911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26912 | result = (int)(arg1)->ShowModal(); | |
26913 | wxPyEndAllowThreads(__tstate); | |
26914 | if (PyErr_Occurred()) SWIG_fail; | |
26915 | } | |
26916 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26917 | return resultobj; | |
26918 | fail: | |
26919 | return NULL; | |
d55e5bfc RD |
26920 | } |
26921 | ||
26922 | ||
554f62e9 RD |
26923 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26924 | PyObject *resultobj = 0; | |
26925 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26926 | wxPrintDialogData *result = 0 ; | |
26927 | void *argp1 = 0 ; | |
26928 | int res1 = 0 ; | |
26929 | PyObject *swig_obj[1] ; | |
26930 | ||
26931 | if (!args) SWIG_fail; | |
26932 | swig_obj[0] = args; | |
26933 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26934 | if (!SWIG_IsOK(res1)) { | |
26935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26936 | } | |
26937 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26938 | { | |
26939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26940 | { |
554f62e9 RD |
26941 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
26942 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 26943 | } |
554f62e9 RD |
26944 | wxPyEndAllowThreads(__tstate); |
26945 | if (PyErr_Occurred()) SWIG_fail; | |
26946 | } | |
26947 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
26948 | return resultobj; | |
26949 | fail: | |
26950 | return NULL; | |
26951 | } | |
26952 | ||
26953 | ||
26954 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26955 | PyObject *resultobj = 0; | |
26956 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26957 | wxPrintData *result = 0 ; | |
26958 | void *argp1 = 0 ; | |
26959 | int res1 = 0 ; | |
26960 | PyObject *swig_obj[1] ; | |
26961 | ||
26962 | if (!args) SWIG_fail; | |
26963 | swig_obj[0] = args; | |
26964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26965 | if (!SWIG_IsOK(res1)) { | |
26966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintData" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26967 | } | |
26968 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
26969 | { | |
26970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 26971 | { |
554f62e9 RD |
26972 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
26973 | result = (wxPrintData *) &_result_ref; | |
d55e5bfc | 26974 | } |
554f62e9 RD |
26975 | wxPyEndAllowThreads(__tstate); |
26976 | if (PyErr_Occurred()) SWIG_fail; | |
26977 | } | |
26978 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
26979 | return resultobj; | |
26980 | fail: | |
26981 | return NULL; | |
d55e5bfc RD |
26982 | } |
26983 | ||
26984 | ||
554f62e9 RD |
26985 | SWIGINTERN PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26986 | PyObject *resultobj = 0; | |
26987 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
26988 | wxDC *result = 0 ; | |
26989 | void *argp1 = 0 ; | |
26990 | int res1 = 0 ; | |
26991 | PyObject *swig_obj[1] ; | |
26992 | ||
26993 | if (!args) SWIG_fail; | |
26994 | swig_obj[0] = args; | |
26995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintDialog, 0 | 0 ); | |
26996 | if (!SWIG_IsOK(res1)) { | |
26997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintDialog_GetPrintDC" "', expected argument " "1"" of type '" "wxPrintDialog *""'"); | |
26998 | } | |
26999 | arg1 = reinterpret_cast< wxPrintDialog * >(argp1); | |
27000 | { | |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | result = (wxDC *)(arg1)->GetPrintDC(); | |
27003 | wxPyEndAllowThreads(__tstate); | |
27004 | if (PyErr_Occurred()) SWIG_fail; | |
27005 | } | |
27006 | { | |
27007 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
27008 | } | |
27009 | return resultobj; | |
27010 | fail: | |
27011 | return NULL; | |
d55e5bfc RD |
27012 | } |
27013 | ||
27014 | ||
554f62e9 RD |
27015 | SWIGINTERN PyObject *PrintDialog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27016 | PyObject *obj; | |
27017 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27018 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintDialog, SWIG_NewClientData(obj)); | |
27019 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27020 | } |
27021 | ||
554f62e9 RD |
27022 | SWIGINTERN PyObject *PrintDialog_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27023 | return SWIG_Python_InitShadowInstance(args); | |
27024 | } | |
d55e5bfc | 27025 | |
554f62e9 RD |
27026 | SWIGINTERN PyObject *_wrap_new_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27027 | PyObject *resultobj = 0; | |
27028 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
27029 | wxPrinter *result = 0 ; | |
27030 | void *argp1 = 0 ; | |
27031 | int res1 = 0 ; | |
27032 | PyObject * obj0 = 0 ; | |
27033 | char * kwnames[] = { | |
27034 | (char *) "data", NULL | |
27035 | }; | |
27036 | ||
27037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) SWIG_fail; | |
27038 | if (obj0) { | |
27039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27040 | if (!SWIG_IsOK(res1)) { | |
27041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Printer" "', expected argument " "1"" of type '" "wxPrintDialogData *""'"); | |
396fb509 | 27042 | } |
554f62e9 RD |
27043 | arg1 = reinterpret_cast< wxPrintDialogData * >(argp1); |
27044 | } | |
27045 | { | |
27046 | if (!wxPyCheckForApp()) SWIG_fail; | |
27047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27048 | result = (wxPrinter *)new wxPrinter(arg1); | |
27049 | wxPyEndAllowThreads(__tstate); | |
27050 | if (PyErr_Occurred()) SWIG_fail; | |
27051 | } | |
27052 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinter, SWIG_POINTER_NEW | 0 ); | |
27053 | return resultobj; | |
27054 | fail: | |
27055 | return NULL; | |
d55e5bfc RD |
27056 | } |
27057 | ||
27058 | ||
554f62e9 RD |
27059 | SWIGINTERN PyObject *_wrap_delete_Printer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27060 | PyObject *resultobj = 0; | |
27061 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27062 | void *argp1 = 0 ; | |
27063 | int res1 = 0 ; | |
27064 | PyObject *swig_obj[1] ; | |
27065 | ||
27066 | if (!args) SWIG_fail; | |
27067 | swig_obj[0] = args; | |
27068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, SWIG_POINTER_DISOWN | 0 ); | |
27069 | if (!SWIG_IsOK(res1)) { | |
27070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printer" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27071 | } | |
27072 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27073 | { | |
27074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27075 | delete arg1; | |
d55e5bfc | 27076 | |
554f62e9 RD |
27077 | wxPyEndAllowThreads(__tstate); |
27078 | if (PyErr_Occurred()) SWIG_fail; | |
27079 | } | |
27080 | resultobj = SWIG_Py_Void(); | |
27081 | return resultobj; | |
27082 | fail: | |
27083 | return NULL; | |
27084 | } | |
27085 | ||
27086 | ||
27087 | SWIGINTERN PyObject *_wrap_Printer_CreateAbortWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27088 | PyObject *resultobj = 0; | |
27089 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27090 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27091 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27092 | wxWindow *result = 0 ; | |
27093 | void *argp1 = 0 ; | |
27094 | int res1 = 0 ; | |
27095 | void *argp2 = 0 ; | |
27096 | int res2 = 0 ; | |
27097 | void *argp3 = 0 ; | |
27098 | int res3 = 0 ; | |
27099 | PyObject * obj0 = 0 ; | |
27100 | PyObject * obj1 = 0 ; | |
27101 | PyObject * obj2 = 0 ; | |
27102 | char * kwnames[] = { | |
27103 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
27104 | }; | |
27105 | ||
27106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27108 | if (!SWIG_IsOK(res1)) { | |
27109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_CreateAbortWindow" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27110 | } | |
27111 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27112 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27113 | if (!SWIG_IsOK(res2)) { | |
27114 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_CreateAbortWindow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27115 | } | |
27116 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27117 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27118 | if (!SWIG_IsOK(res3)) { | |
27119 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_CreateAbortWindow" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27120 | } | |
27121 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27122 | { | |
27123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27124 | result = (wxWindow *)(arg1)->CreateAbortWindow(arg2,arg3); | |
27125 | wxPyEndAllowThreads(__tstate); | |
27126 | if (PyErr_Occurred()) SWIG_fail; | |
27127 | } | |
27128 | { | |
27129 | resultobj = wxPyMake_wxObject(result, 0); | |
27130 | } | |
27131 | return resultobj; | |
27132 | fail: | |
27133 | return NULL; | |
27134 | } | |
27135 | ||
27136 | ||
27137 | SWIGINTERN PyObject *_wrap_Printer_ReportError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27138 | PyObject *resultobj = 0; | |
27139 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27140 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27141 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27142 | wxString *arg4 = 0 ; | |
27143 | void *argp1 = 0 ; | |
27144 | int res1 = 0 ; | |
27145 | void *argp2 = 0 ; | |
27146 | int res2 = 0 ; | |
27147 | void *argp3 = 0 ; | |
27148 | int res3 = 0 ; | |
27149 | bool temp4 = false ; | |
27150 | PyObject * obj0 = 0 ; | |
27151 | PyObject * obj1 = 0 ; | |
27152 | PyObject * obj2 = 0 ; | |
27153 | PyObject * obj3 = 0 ; | |
27154 | char * kwnames[] = { | |
27155 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
27156 | }; | |
27157 | ||
27158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27160 | if (!SWIG_IsOK(res1)) { | |
27161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_ReportError" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27162 | } | |
27163 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27164 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27165 | if (!SWIG_IsOK(res2)) { | |
27166 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_ReportError" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27167 | } | |
27168 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27169 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27170 | if (!SWIG_IsOK(res3)) { | |
27171 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_ReportError" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27172 | } | |
27173 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27174 | { | |
27175 | arg4 = wxString_in_helper(obj3); | |
27176 | if (arg4 == NULL) SWIG_fail; | |
27177 | temp4 = true; | |
27178 | } | |
27179 | { | |
27180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27181 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
27182 | wxPyEndAllowThreads(__tstate); | |
27183 | if (PyErr_Occurred()) SWIG_fail; | |
27184 | } | |
27185 | resultobj = SWIG_Py_Void(); | |
27186 | { | |
27187 | if (temp4) | |
27188 | delete arg4; | |
27189 | } | |
27190 | return resultobj; | |
27191 | fail: | |
27192 | { | |
27193 | if (temp4) | |
27194 | delete arg4; | |
27195 | } | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
27200 | SWIGINTERN PyObject *_wrap_Printer_Setup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27201 | PyObject *resultobj = 0; | |
27202 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27203 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27204 | bool result; | |
27205 | void *argp1 = 0 ; | |
27206 | int res1 = 0 ; | |
27207 | void *argp2 = 0 ; | |
27208 | int res2 = 0 ; | |
27209 | PyObject * obj0 = 0 ; | |
27210 | PyObject * obj1 = 0 ; | |
27211 | char * kwnames[] = { | |
27212 | (char *) "self",(char *) "parent", NULL | |
27213 | }; | |
27214 | ||
27215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) SWIG_fail; | |
27216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27217 | if (!SWIG_IsOK(res1)) { | |
27218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Setup" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27219 | } | |
27220 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27221 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27222 | if (!SWIG_IsOK(res2)) { | |
27223 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Setup" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27224 | } | |
27225 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27226 | { | |
27227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27228 | result = (bool)(arg1)->Setup(arg2); | |
27229 | wxPyEndAllowThreads(__tstate); | |
27230 | if (PyErr_Occurred()) SWIG_fail; | |
27231 | } | |
27232 | { | |
27233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27234 | } | |
27235 | return resultobj; | |
27236 | fail: | |
27237 | return NULL; | |
27238 | } | |
27239 | ||
27240 | ||
27241 | SWIGINTERN PyObject *_wrap_Printer_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27242 | PyObject *resultobj = 0; | |
27243 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27244 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27245 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
27246 | bool arg4 = (bool) true ; | |
27247 | bool result; | |
27248 | void *argp1 = 0 ; | |
27249 | int res1 = 0 ; | |
27250 | void *argp2 = 0 ; | |
27251 | int res2 = 0 ; | |
27252 | void *argp3 = 0 ; | |
27253 | int res3 = 0 ; | |
27254 | bool val4 ; | |
27255 | int ecode4 = 0 ; | |
27256 | PyObject * obj0 = 0 ; | |
27257 | PyObject * obj1 = 0 ; | |
27258 | PyObject * obj2 = 0 ; | |
27259 | PyObject * obj3 = 0 ; | |
27260 | char * kwnames[] = { | |
27261 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
27262 | }; | |
27263 | ||
27264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
27265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27266 | if (!SWIG_IsOK(res1)) { | |
27267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_Print" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27268 | } | |
27269 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27270 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27271 | if (!SWIG_IsOK(res2)) { | |
27272 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_Print" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27273 | } | |
27274 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27275 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27276 | if (!SWIG_IsOK(res3)) { | |
27277 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Printer_Print" "', expected argument " "3"" of type '" "wxPyPrintout *""'"); | |
27278 | } | |
27279 | arg3 = reinterpret_cast< wxPyPrintout * >(argp3); | |
27280 | if (obj3) { | |
27281 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
27282 | if (!SWIG_IsOK(ecode4)) { | |
27283 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Printer_Print" "', expected argument " "4"" of type '" "bool""'"); | |
27284 | } | |
27285 | arg4 = static_cast< bool >(val4); | |
27286 | } | |
27287 | { | |
27288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27289 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
27290 | wxPyEndAllowThreads(__tstate); | |
27291 | if (PyErr_Occurred()) SWIG_fail; | |
27292 | } | |
27293 | { | |
27294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27295 | } | |
27296 | return resultobj; | |
27297 | fail: | |
27298 | return NULL; | |
27299 | } | |
27300 | ||
27301 | ||
27302 | SWIGINTERN PyObject *_wrap_Printer_PrintDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27303 | PyObject *resultobj = 0; | |
27304 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27305 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27306 | wxDC *result = 0 ; | |
27307 | void *argp1 = 0 ; | |
27308 | int res1 = 0 ; | |
27309 | void *argp2 = 0 ; | |
27310 | int res2 = 0 ; | |
27311 | PyObject * obj0 = 0 ; | |
27312 | PyObject * obj1 = 0 ; | |
27313 | char * kwnames[] = { | |
27314 | (char *) "self",(char *) "parent", NULL | |
27315 | }; | |
27316 | ||
27317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) SWIG_fail; | |
27318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27319 | if (!SWIG_IsOK(res1)) { | |
27320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_PrintDialog" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27321 | } | |
27322 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27323 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27324 | if (!SWIG_IsOK(res2)) { | |
27325 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printer_PrintDialog" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27326 | } | |
27327 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27328 | { | |
27329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27330 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
27331 | wxPyEndAllowThreads(__tstate); | |
27332 | if (PyErr_Occurred()) SWIG_fail; | |
27333 | } | |
27334 | { | |
27335 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27336 | } | |
27337 | return resultobj; | |
27338 | fail: | |
27339 | return NULL; | |
d55e5bfc RD |
27340 | } |
27341 | ||
27342 | ||
554f62e9 RD |
27343 | SWIGINTERN PyObject *_wrap_Printer_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27344 | PyObject *resultobj = 0; | |
27345 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27346 | wxPrintDialogData *result = 0 ; | |
27347 | void *argp1 = 0 ; | |
27348 | int res1 = 0 ; | |
27349 | PyObject *swig_obj[1] ; | |
27350 | ||
27351 | if (!args) SWIG_fail; | |
27352 | swig_obj[0] = args; | |
27353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27354 | if (!SWIG_IsOK(res1)) { | |
27355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrinter const *""'"); | |
27356 | } | |
27357 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27358 | { | |
27359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 27360 | { |
554f62e9 RD |
27361 | wxPrintDialogData &_result_ref = ((wxPrinter const *)arg1)->GetPrintDialogData(); |
27362 | result = (wxPrintDialogData *) &_result_ref; | |
d55e5bfc | 27363 | } |
554f62e9 RD |
27364 | wxPyEndAllowThreads(__tstate); |
27365 | if (PyErr_Occurred()) SWIG_fail; | |
27366 | } | |
27367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
27368 | return resultobj; | |
27369 | fail: | |
27370 | return NULL; | |
d55e5bfc RD |
27371 | } |
27372 | ||
27373 | ||
554f62e9 RD |
27374 | SWIGINTERN PyObject *_wrap_Printer_GetAbort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27375 | PyObject *resultobj = 0; | |
27376 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
27377 | bool result; | |
27378 | void *argp1 = 0 ; | |
27379 | int res1 = 0 ; | |
27380 | PyObject *swig_obj[1] ; | |
27381 | ||
27382 | if (!args) SWIG_fail; | |
27383 | swig_obj[0] = args; | |
27384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrinter, 0 | 0 ); | |
27385 | if (!SWIG_IsOK(res1)) { | |
27386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printer_GetAbort" "', expected argument " "1"" of type '" "wxPrinter *""'"); | |
27387 | } | |
27388 | arg1 = reinterpret_cast< wxPrinter * >(argp1); | |
27389 | { | |
27390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27391 | result = (bool)(arg1)->GetAbort(); | |
27392 | wxPyEndAllowThreads(__tstate); | |
27393 | if (PyErr_Occurred()) SWIG_fail; | |
27394 | } | |
27395 | { | |
27396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27397 | } | |
27398 | return resultobj; | |
27399 | fail: | |
27400 | return NULL; | |
d55e5bfc RD |
27401 | } |
27402 | ||
27403 | ||
554f62e9 RD |
27404 | SWIGINTERN PyObject *_wrap_Printer_GetLastError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27405 | PyObject *resultobj = 0; | |
27406 | wxPrinterError result; | |
27407 | ||
27408 | if (!SWIG_Python_UnpackTuple(args,"Printer_GetLastError",0,0,0)) SWIG_fail; | |
27409 | { | |
27410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27411 | result = (wxPrinterError)wxPrinter::GetLastError(); | |
27412 | wxPyEndAllowThreads(__tstate); | |
27413 | if (PyErr_Occurred()) SWIG_fail; | |
27414 | } | |
27415 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27416 | return resultobj; | |
27417 | fail: | |
27418 | return NULL; | |
d55e5bfc RD |
27419 | } |
27420 | ||
27421 | ||
554f62e9 RD |
27422 | SWIGINTERN PyObject *Printer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27423 | PyObject *obj; | |
27424 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27425 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinter, SWIG_NewClientData(obj)); | |
27426 | return SWIG_Py_Void(); | |
d55e5bfc RD |
27427 | } |
27428 | ||
554f62e9 RD |
27429 | SWIGINTERN PyObject *Printer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27430 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
27431 | } |
27432 | ||
554f62e9 RD |
27433 | SWIGINTERN PyObject *_wrap_new_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27434 | PyObject *resultobj = 0; | |
27435 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
27436 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27437 | wxPyPrintout *result = 0 ; | |
27438 | bool temp1 = false ; | |
27439 | PyObject * obj0 = 0 ; | |
27440 | char * kwnames[] = { | |
27441 | (char *) "title", NULL | |
27442 | }; | |
27443 | ||
27444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) SWIG_fail; | |
27445 | if (obj0) { | |
d55e5bfc | 27446 | { |
554f62e9 RD |
27447 | arg1 = wxString_in_helper(obj0); |
27448 | if (arg1 == NULL) SWIG_fail; | |
27449 | temp1 = true; | |
27450 | } | |
27451 | } | |
27452 | { | |
27453 | if (!wxPyCheckForApp()) SWIG_fail; | |
27454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27455 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
27456 | wxPyEndAllowThreads(__tstate); | |
27457 | if (PyErr_Occurred()) SWIG_fail; | |
27458 | } | |
27459 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_NEW | 0 ); | |
27460 | { | |
27461 | if (temp1) | |
27462 | delete arg1; | |
27463 | } | |
27464 | return resultobj; | |
27465 | fail: | |
27466 | { | |
27467 | if (temp1) | |
27468 | delete arg1; | |
27469 | } | |
27470 | return NULL; | |
d55e5bfc RD |
27471 | } |
27472 | ||
27473 | ||
554f62e9 RD |
27474 | SWIGINTERN PyObject *_wrap_delete_Printout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27475 | PyObject *resultobj = 0; | |
27476 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27477 | void *argp1 = 0 ; | |
27478 | int res1 = 0 ; | |
27479 | PyObject *swig_obj[1] ; | |
27480 | ||
27481 | if (!args) SWIG_fail; | |
27482 | swig_obj[0] = args; | |
27483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
27484 | if (!SWIG_IsOK(res1)) { | |
27485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Printout" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27486 | } | |
27487 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27488 | { | |
27489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27490 | delete arg1; | |
d55e5bfc | 27491 | |
554f62e9 RD |
27492 | wxPyEndAllowThreads(__tstate); |
27493 | if (PyErr_Occurred()) SWIG_fail; | |
27494 | } | |
27495 | resultobj = SWIG_Py_Void(); | |
27496 | return resultobj; | |
27497 | fail: | |
27498 | return NULL; | |
27499 | } | |
27500 | ||
27501 | ||
27502 | SWIGINTERN PyObject *_wrap_Printout__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27503 | PyObject *resultobj = 0; | |
27504 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27505 | PyObject *arg2 = (PyObject *) 0 ; | |
27506 | PyObject *arg3 = (PyObject *) 0 ; | |
27507 | void *argp1 = 0 ; | |
27508 | int res1 = 0 ; | |
27509 | PyObject * obj0 = 0 ; | |
27510 | PyObject * obj1 = 0 ; | |
27511 | PyObject * obj2 = 0 ; | |
27512 | char * kwnames[] = { | |
27513 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27514 | }; | |
27515 | ||
27516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27518 | if (!SWIG_IsOK(res1)) { | |
27519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27520 | } | |
27521 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27522 | arg2 = obj1; | |
27523 | arg3 = obj2; | |
27524 | { | |
27525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27526 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27527 | wxPyEndAllowThreads(__tstate); | |
27528 | if (PyErr_Occurred()) SWIG_fail; | |
27529 | } | |
27530 | resultobj = SWIG_Py_Void(); | |
27531 | return resultobj; | |
27532 | fail: | |
27533 | return NULL; | |
d55e5bfc RD |
27534 | } |
27535 | ||
27536 | ||
554f62e9 RD |
27537 | SWIGINTERN PyObject *_wrap_Printout_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27538 | PyObject *resultobj = 0; | |
27539 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27540 | wxString result; | |
27541 | void *argp1 = 0 ; | |
27542 | int res1 = 0 ; | |
27543 | PyObject *swig_obj[1] ; | |
27544 | ||
27545 | if (!args) SWIG_fail; | |
27546 | swig_obj[0] = args; | |
27547 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27548 | if (!SWIG_IsOK(res1)) { | |
27549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetTitle" "', expected argument " "1"" of type '" "wxPyPrintout const *""'"); | |
27550 | } | |
27551 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27552 | { | |
27553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27554 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
27555 | wxPyEndAllowThreads(__tstate); | |
27556 | if (PyErr_Occurred()) SWIG_fail; | |
27557 | } | |
27558 | { | |
27559 | #if wxUSE_UNICODE | |
27560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27561 | #else | |
27562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27563 | #endif | |
27564 | } | |
27565 | return resultobj; | |
27566 | fail: | |
27567 | return NULL; | |
d55e5bfc RD |
27568 | } |
27569 | ||
27570 | ||
554f62e9 RD |
27571 | SWIGINTERN PyObject *_wrap_Printout_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27572 | PyObject *resultobj = 0; | |
27573 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27574 | wxDC *result = 0 ; | |
27575 | void *argp1 = 0 ; | |
27576 | int res1 = 0 ; | |
27577 | PyObject *swig_obj[1] ; | |
27578 | ||
27579 | if (!args) SWIG_fail; | |
27580 | swig_obj[0] = args; | |
27581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27582 | if (!SWIG_IsOK(res1)) { | |
27583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27584 | } | |
27585 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27586 | { | |
27587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27588 | result = (wxDC *)(arg1)->GetDC(); | |
27589 | wxPyEndAllowThreads(__tstate); | |
27590 | if (PyErr_Occurred()) SWIG_fail; | |
27591 | } | |
27592 | { | |
27593 | resultobj = wxPyMake_wxObject(result, (bool)0); | |
27594 | } | |
27595 | return resultobj; | |
27596 | fail: | |
27597 | return NULL; | |
27598 | } | |
27599 | ||
27600 | ||
27601 | SWIGINTERN PyObject *_wrap_Printout_SetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27602 | PyObject *resultobj = 0; | |
27603 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27604 | wxDC *arg2 = (wxDC *) 0 ; | |
27605 | void *argp1 = 0 ; | |
27606 | int res1 = 0 ; | |
27607 | void *argp2 = 0 ; | |
27608 | int res2 = 0 ; | |
27609 | PyObject * obj0 = 0 ; | |
27610 | PyObject * obj1 = 0 ; | |
27611 | char * kwnames[] = { | |
27612 | (char *) "self",(char *) "dc", NULL | |
27613 | }; | |
27614 | ||
27615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
27616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27617 | if (!SWIG_IsOK(res1)) { | |
27618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetDC" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27619 | } | |
27620 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27621 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
27622 | if (!SWIG_IsOK(res2)) { | |
27623 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Printout_SetDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
27624 | } | |
27625 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
27626 | { | |
27627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27628 | (arg1)->SetDC(arg2); | |
27629 | wxPyEndAllowThreads(__tstate); | |
27630 | if (PyErr_Occurred()) SWIG_fail; | |
27631 | } | |
27632 | resultobj = SWIG_Py_Void(); | |
27633 | return resultobj; | |
27634 | fail: | |
27635 | return NULL; | |
27636 | } | |
27637 | ||
27638 | ||
27639 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27640 | PyObject *resultobj = 0; | |
27641 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27642 | int arg2 ; | |
27643 | int arg3 ; | |
27644 | void *argp1 = 0 ; | |
27645 | int res1 = 0 ; | |
27646 | int val2 ; | |
27647 | int ecode2 = 0 ; | |
27648 | int val3 ; | |
27649 | int ecode3 = 0 ; | |
27650 | PyObject * obj0 = 0 ; | |
27651 | PyObject * obj1 = 0 ; | |
27652 | PyObject * obj2 = 0 ; | |
27653 | char * kwnames[] = { | |
27654 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27655 | }; | |
27656 | ||
27657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27659 | if (!SWIG_IsOK(res1)) { | |
27660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27661 | } | |
27662 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27663 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27664 | if (!SWIG_IsOK(ecode2)) { | |
27665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizePixels" "', expected argument " "2"" of type '" "int""'"); | |
27666 | } | |
27667 | arg2 = static_cast< int >(val2); | |
27668 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27669 | if (!SWIG_IsOK(ecode3)) { | |
27670 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizePixels" "', expected argument " "3"" of type '" "int""'"); | |
27671 | } | |
27672 | arg3 = static_cast< int >(val3); | |
27673 | { | |
27674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27675 | (arg1)->SetPageSizePixels(arg2,arg3); | |
27676 | wxPyEndAllowThreads(__tstate); | |
27677 | if (PyErr_Occurred()) SWIG_fail; | |
27678 | } | |
27679 | resultobj = SWIG_Py_Void(); | |
27680 | return resultobj; | |
27681 | fail: | |
27682 | return NULL; | |
27683 | } | |
27684 | ||
27685 | ||
27686 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizePixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27687 | PyObject *resultobj = 0; | |
27688 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27689 | int *arg2 = (int *) 0 ; | |
27690 | int *arg3 = (int *) 0 ; | |
27691 | void *argp1 = 0 ; | |
27692 | int res1 = 0 ; | |
27693 | int temp2 ; | |
27694 | int res2 = SWIG_TMPOBJ ; | |
27695 | int temp3 ; | |
27696 | int res3 = SWIG_TMPOBJ ; | |
27697 | PyObject *swig_obj[1] ; | |
27698 | ||
27699 | arg2 = &temp2; | |
27700 | arg3 = &temp3; | |
27701 | if (!args) SWIG_fail; | |
27702 | swig_obj[0] = args; | |
27703 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27704 | if (!SWIG_IsOK(res1)) { | |
27705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizePixels" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27706 | } | |
27707 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27708 | { | |
27709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27710 | (arg1)->GetPageSizePixels(arg2,arg3); | |
27711 | wxPyEndAllowThreads(__tstate); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | } | |
27714 | resultobj = SWIG_Py_Void(); | |
27715 | if (SWIG_IsTmpObj(res2)) { | |
27716 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27717 | } else { | |
27718 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27719 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27720 | } | |
27721 | if (SWIG_IsTmpObj(res3)) { | |
27722 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27723 | } else { | |
27724 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27725 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27726 | } | |
27727 | return resultobj; | |
27728 | fail: | |
27729 | return NULL; | |
27730 | } | |
27731 | ||
27732 | ||
27733 | SWIGINTERN PyObject *_wrap_Printout_SetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27734 | PyObject *resultobj = 0; | |
27735 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27736 | int arg2 ; | |
27737 | int arg3 ; | |
27738 | void *argp1 = 0 ; | |
27739 | int res1 = 0 ; | |
27740 | int val2 ; | |
27741 | int ecode2 = 0 ; | |
27742 | int val3 ; | |
27743 | int ecode3 = 0 ; | |
27744 | PyObject * obj0 = 0 ; | |
27745 | PyObject * obj1 = 0 ; | |
27746 | PyObject * obj2 = 0 ; | |
27747 | char * kwnames[] = { | |
27748 | (char *) "self",(char *) "w",(char *) "h", NULL | |
27749 | }; | |
27750 | ||
27751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27753 | if (!SWIG_IsOK(res1)) { | |
27754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27755 | } | |
27756 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27757 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27758 | if (!SWIG_IsOK(ecode2)) { | |
27759 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPageSizeMM" "', expected argument " "2"" of type '" "int""'"); | |
27760 | } | |
27761 | arg2 = static_cast< int >(val2); | |
27762 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27763 | if (!SWIG_IsOK(ecode3)) { | |
27764 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPageSizeMM" "', expected argument " "3"" of type '" "int""'"); | |
27765 | } | |
27766 | arg3 = static_cast< int >(val3); | |
27767 | { | |
27768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27769 | (arg1)->SetPageSizeMM(arg2,arg3); | |
27770 | wxPyEndAllowThreads(__tstate); | |
27771 | if (PyErr_Occurred()) SWIG_fail; | |
27772 | } | |
27773 | resultobj = SWIG_Py_Void(); | |
27774 | return resultobj; | |
27775 | fail: | |
27776 | return NULL; | |
27777 | } | |
27778 | ||
27779 | ||
27780 | SWIGINTERN PyObject *_wrap_Printout_GetPageSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27781 | PyObject *resultobj = 0; | |
27782 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27783 | int *arg2 = (int *) 0 ; | |
27784 | int *arg3 = (int *) 0 ; | |
27785 | void *argp1 = 0 ; | |
27786 | int res1 = 0 ; | |
27787 | int temp2 ; | |
27788 | int res2 = SWIG_TMPOBJ ; | |
27789 | int temp3 ; | |
27790 | int res3 = SWIG_TMPOBJ ; | |
27791 | PyObject *swig_obj[1] ; | |
27792 | ||
27793 | arg2 = &temp2; | |
27794 | arg3 = &temp3; | |
27795 | if (!args) SWIG_fail; | |
27796 | swig_obj[0] = args; | |
27797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27798 | if (!SWIG_IsOK(res1)) { | |
27799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageSizeMM" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27800 | } | |
27801 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27802 | { | |
27803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27804 | (arg1)->GetPageSizeMM(arg2,arg3); | |
27805 | wxPyEndAllowThreads(__tstate); | |
27806 | if (PyErr_Occurred()) SWIG_fail; | |
27807 | } | |
27808 | resultobj = SWIG_Py_Void(); | |
27809 | if (SWIG_IsTmpObj(res2)) { | |
27810 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27811 | } else { | |
27812 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27813 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27814 | } | |
27815 | if (SWIG_IsTmpObj(res3)) { | |
27816 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27817 | } else { | |
27818 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27819 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27820 | } | |
27821 | return resultobj; | |
27822 | fail: | |
27823 | return NULL; | |
27824 | } | |
27825 | ||
27826 | ||
27827 | SWIGINTERN PyObject *_wrap_Printout_SetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27828 | PyObject *resultobj = 0; | |
27829 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27830 | int arg2 ; | |
27831 | int arg3 ; | |
27832 | void *argp1 = 0 ; | |
27833 | int res1 = 0 ; | |
27834 | int val2 ; | |
27835 | int ecode2 = 0 ; | |
27836 | int val3 ; | |
27837 | int ecode3 = 0 ; | |
27838 | PyObject * obj0 = 0 ; | |
27839 | PyObject * obj1 = 0 ; | |
27840 | PyObject * obj2 = 0 ; | |
27841 | char * kwnames[] = { | |
27842 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27843 | }; | |
27844 | ||
27845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27847 | if (!SWIG_IsOK(res1)) { | |
27848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27849 | } | |
27850 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27851 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27852 | if (!SWIG_IsOK(ecode2)) { | |
27853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIScreen" "', expected argument " "2"" of type '" "int""'"); | |
27854 | } | |
27855 | arg2 = static_cast< int >(val2); | |
27856 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27857 | if (!SWIG_IsOK(ecode3)) { | |
27858 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIScreen" "', expected argument " "3"" of type '" "int""'"); | |
27859 | } | |
27860 | arg3 = static_cast< int >(val3); | |
27861 | { | |
27862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27863 | (arg1)->SetPPIScreen(arg2,arg3); | |
27864 | wxPyEndAllowThreads(__tstate); | |
27865 | if (PyErr_Occurred()) SWIG_fail; | |
27866 | } | |
27867 | resultobj = SWIG_Py_Void(); | |
27868 | return resultobj; | |
27869 | fail: | |
27870 | return NULL; | |
27871 | } | |
27872 | ||
27873 | ||
27874 | SWIGINTERN PyObject *_wrap_Printout_GetPPIScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27875 | PyObject *resultobj = 0; | |
27876 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27877 | int *arg2 = (int *) 0 ; | |
27878 | int *arg3 = (int *) 0 ; | |
27879 | void *argp1 = 0 ; | |
27880 | int res1 = 0 ; | |
27881 | int temp2 ; | |
27882 | int res2 = SWIG_TMPOBJ ; | |
27883 | int temp3 ; | |
27884 | int res3 = SWIG_TMPOBJ ; | |
27885 | PyObject *swig_obj[1] ; | |
27886 | ||
27887 | arg2 = &temp2; | |
27888 | arg3 = &temp3; | |
27889 | if (!args) SWIG_fail; | |
27890 | swig_obj[0] = args; | |
27891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27892 | if (!SWIG_IsOK(res1)) { | |
27893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIScreen" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27894 | } | |
27895 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27896 | { | |
27897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27898 | (arg1)->GetPPIScreen(arg2,arg3); | |
27899 | wxPyEndAllowThreads(__tstate); | |
27900 | if (PyErr_Occurred()) SWIG_fail; | |
27901 | } | |
27902 | resultobj = SWIG_Py_Void(); | |
27903 | if (SWIG_IsTmpObj(res2)) { | |
27904 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27905 | } else { | |
27906 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27907 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
27908 | } | |
27909 | if (SWIG_IsTmpObj(res3)) { | |
27910 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
27911 | } else { | |
27912 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27913 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
27914 | } | |
27915 | return resultobj; | |
27916 | fail: | |
27917 | return NULL; | |
27918 | } | |
27919 | ||
27920 | ||
27921 | SWIGINTERN PyObject *_wrap_Printout_SetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27922 | PyObject *resultobj = 0; | |
27923 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27924 | int arg2 ; | |
27925 | int arg3 ; | |
27926 | void *argp1 = 0 ; | |
27927 | int res1 = 0 ; | |
27928 | int val2 ; | |
27929 | int ecode2 = 0 ; | |
27930 | int val3 ; | |
27931 | int ecode3 = 0 ; | |
27932 | PyObject * obj0 = 0 ; | |
27933 | PyObject * obj1 = 0 ; | |
27934 | PyObject * obj2 = 0 ; | |
27935 | char * kwnames[] = { | |
27936 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27937 | }; | |
27938 | ||
27939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27941 | if (!SWIG_IsOK(res1)) { | |
27942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27943 | } | |
27944 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27945 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
27946 | if (!SWIG_IsOK(ecode2)) { | |
27947 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetPPIPrinter" "', expected argument " "2"" of type '" "int""'"); | |
27948 | } | |
27949 | arg2 = static_cast< int >(val2); | |
27950 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
27951 | if (!SWIG_IsOK(ecode3)) { | |
27952 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_SetPPIPrinter" "', expected argument " "3"" of type '" "int""'"); | |
27953 | } | |
27954 | arg3 = static_cast< int >(val3); | |
27955 | { | |
27956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27957 | (arg1)->SetPPIPrinter(arg2,arg3); | |
27958 | wxPyEndAllowThreads(__tstate); | |
27959 | if (PyErr_Occurred()) SWIG_fail; | |
27960 | } | |
27961 | resultobj = SWIG_Py_Void(); | |
27962 | return resultobj; | |
27963 | fail: | |
27964 | return NULL; | |
27965 | } | |
27966 | ||
27967 | ||
27968 | SWIGINTERN PyObject *_wrap_Printout_GetPPIPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27969 | PyObject *resultobj = 0; | |
27970 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
27971 | int *arg2 = (int *) 0 ; | |
27972 | int *arg3 = (int *) 0 ; | |
27973 | void *argp1 = 0 ; | |
27974 | int res1 = 0 ; | |
27975 | int temp2 ; | |
27976 | int res2 = SWIG_TMPOBJ ; | |
27977 | int temp3 ; | |
27978 | int res3 = SWIG_TMPOBJ ; | |
27979 | PyObject *swig_obj[1] ; | |
27980 | ||
27981 | arg2 = &temp2; | |
27982 | arg3 = &temp3; | |
27983 | if (!args) SWIG_fail; | |
27984 | swig_obj[0] = args; | |
27985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
27986 | if (!SWIG_IsOK(res1)) { | |
27987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPPIPrinter" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
27988 | } | |
27989 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
27990 | { | |
27991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27992 | (arg1)->GetPPIPrinter(arg2,arg3); | |
27993 | wxPyEndAllowThreads(__tstate); | |
27994 | if (PyErr_Occurred()) SWIG_fail; | |
27995 | } | |
27996 | resultobj = SWIG_Py_Void(); | |
27997 | if (SWIG_IsTmpObj(res2)) { | |
27998 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
27999 | } else { | |
28000 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28001 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28002 | } | |
28003 | if (SWIG_IsTmpObj(res3)) { | |
28004 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28005 | } else { | |
28006 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28007 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28008 | } | |
28009 | return resultobj; | |
28010 | fail: | |
28011 | return NULL; | |
d55e5bfc RD |
28012 | } |
28013 | ||
28014 | ||
554f62e9 RD |
28015 | SWIGINTERN PyObject *_wrap_Printout_IsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28016 | PyObject *resultobj = 0; | |
28017 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28018 | bool result; | |
28019 | void *argp1 = 0 ; | |
28020 | int res1 = 0 ; | |
28021 | PyObject *swig_obj[1] ; | |
28022 | ||
28023 | if (!args) SWIG_fail; | |
28024 | swig_obj[0] = args; | |
28025 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28026 | if (!SWIG_IsOK(res1)) { | |
28027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_IsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28028 | } | |
28029 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28030 | { | |
28031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28032 | result = (bool)(arg1)->IsPreview(); | |
28033 | wxPyEndAllowThreads(__tstate); | |
28034 | if (PyErr_Occurred()) SWIG_fail; | |
28035 | } | |
28036 | { | |
28037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28038 | } | |
28039 | return resultobj; | |
28040 | fail: | |
28041 | return NULL; | |
28042 | } | |
28043 | ||
28044 | ||
28045 | SWIGINTERN PyObject *_wrap_Printout_SetIsPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28046 | PyObject *resultobj = 0; | |
28047 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28048 | bool arg2 ; | |
28049 | void *argp1 = 0 ; | |
28050 | int res1 = 0 ; | |
28051 | bool val2 ; | |
28052 | int ecode2 = 0 ; | |
28053 | PyObject * obj0 = 0 ; | |
28054 | PyObject * obj1 = 0 ; | |
28055 | char * kwnames[] = { | |
28056 | (char *) "self",(char *) "p", NULL | |
28057 | }; | |
28058 | ||
28059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
28060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28061 | if (!SWIG_IsOK(res1)) { | |
28062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_SetIsPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28063 | } | |
28064 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28065 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
28066 | if (!SWIG_IsOK(ecode2)) { | |
28067 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_SetIsPreview" "', expected argument " "2"" of type '" "bool""'"); | |
28068 | } | |
28069 | arg2 = static_cast< bool >(val2); | |
28070 | { | |
28071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28072 | (arg1)->SetIsPreview(arg2); | |
28073 | wxPyEndAllowThreads(__tstate); | |
28074 | if (PyErr_Occurred()) SWIG_fail; | |
28075 | } | |
28076 | resultobj = SWIG_Py_Void(); | |
28077 | return resultobj; | |
28078 | fail: | |
28079 | return NULL; | |
28080 | } | |
28081 | ||
28082 | ||
28083 | SWIGINTERN PyObject *_wrap_Printout_OnBeginDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28084 | PyObject *resultobj = 0; | |
28085 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28086 | int arg2 ; | |
28087 | int arg3 ; | |
28088 | bool result; | |
28089 | void *argp1 = 0 ; | |
28090 | int res1 = 0 ; | |
28091 | int val2 ; | |
28092 | int ecode2 = 0 ; | |
28093 | int val3 ; | |
28094 | int ecode3 = 0 ; | |
28095 | PyObject * obj0 = 0 ; | |
28096 | PyObject * obj1 = 0 ; | |
28097 | PyObject * obj2 = 0 ; | |
28098 | char * kwnames[] = { | |
28099 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
28100 | }; | |
28101 | ||
28102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28103 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28104 | if (!SWIG_IsOK(res1)) { | |
28105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28106 | } | |
28107 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28108 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28109 | if (!SWIG_IsOK(ecode2)) { | |
28110 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_OnBeginDocument" "', expected argument " "2"" of type '" "int""'"); | |
28111 | } | |
28112 | arg2 = static_cast< int >(val2); | |
28113 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28114 | if (!SWIG_IsOK(ecode3)) { | |
28115 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Printout_OnBeginDocument" "', expected argument " "3"" of type '" "int""'"); | |
28116 | } | |
28117 | arg3 = static_cast< int >(val3); | |
28118 | { | |
28119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28120 | result = (bool)(arg1)->OnBeginDocument(arg2,arg3); | |
28121 | wxPyEndAllowThreads(__tstate); | |
28122 | if (PyErr_Occurred()) SWIG_fail; | |
28123 | } | |
28124 | { | |
28125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28126 | } | |
28127 | return resultobj; | |
28128 | fail: | |
28129 | return NULL; | |
d55e5bfc RD |
28130 | } |
28131 | ||
28132 | ||
554f62e9 RD |
28133 | SWIGINTERN PyObject *_wrap_Printout_OnEndDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28134 | PyObject *resultobj = 0; | |
28135 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28136 | void *argp1 = 0 ; | |
28137 | int res1 = 0 ; | |
28138 | PyObject *swig_obj[1] ; | |
28139 | ||
28140 | if (!args) SWIG_fail; | |
28141 | swig_obj[0] = args; | |
28142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28143 | if (!SWIG_IsOK(res1)) { | |
28144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndDocument" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28145 | } | |
28146 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28147 | { | |
28148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28149 | (arg1)->OnEndDocument(); | |
28150 | wxPyEndAllowThreads(__tstate); | |
28151 | if (PyErr_Occurred()) SWIG_fail; | |
28152 | } | |
28153 | resultobj = SWIG_Py_Void(); | |
28154 | return resultobj; | |
28155 | fail: | |
28156 | return NULL; | |
caef1a4d RD |
28157 | } |
28158 | ||
28159 | ||
554f62e9 RD |
28160 | SWIGINTERN PyObject *_wrap_Printout_OnBeginPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28161 | PyObject *resultobj = 0; | |
28162 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28163 | void *argp1 = 0 ; | |
28164 | int res1 = 0 ; | |
28165 | PyObject *swig_obj[1] ; | |
28166 | ||
28167 | if (!args) SWIG_fail; | |
28168 | swig_obj[0] = args; | |
28169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28170 | if (!SWIG_IsOK(res1)) { | |
28171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnBeginPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28172 | } | |
28173 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28174 | { | |
28175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28176 | (arg1)->OnBeginPrinting(); | |
28177 | wxPyEndAllowThreads(__tstate); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
28180 | resultobj = SWIG_Py_Void(); | |
28181 | return resultobj; | |
28182 | fail: | |
28183 | return NULL; | |
60d5fcc1 RD |
28184 | } |
28185 | ||
28186 | ||
554f62e9 RD |
28187 | SWIGINTERN PyObject *_wrap_Printout_OnEndPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28188 | PyObject *resultobj = 0; | |
28189 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28190 | void *argp1 = 0 ; | |
28191 | int res1 = 0 ; | |
28192 | PyObject *swig_obj[1] ; | |
28193 | ||
28194 | if (!args) SWIG_fail; | |
28195 | swig_obj[0] = args; | |
28196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28197 | if (!SWIG_IsOK(res1)) { | |
28198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnEndPrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28199 | } | |
28200 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28201 | { | |
28202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28203 | (arg1)->OnEndPrinting(); | |
28204 | wxPyEndAllowThreads(__tstate); | |
28205 | if (PyErr_Occurred()) SWIG_fail; | |
28206 | } | |
28207 | resultobj = SWIG_Py_Void(); | |
28208 | return resultobj; | |
28209 | fail: | |
28210 | return NULL; | |
d55e5bfc RD |
28211 | } |
28212 | ||
28213 | ||
554f62e9 RD |
28214 | SWIGINTERN PyObject *_wrap_Printout_OnPreparePrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28215 | PyObject *resultobj = 0; | |
28216 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28217 | void *argp1 = 0 ; | |
28218 | int res1 = 0 ; | |
28219 | PyObject *swig_obj[1] ; | |
28220 | ||
28221 | if (!args) SWIG_fail; | |
28222 | swig_obj[0] = args; | |
28223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28224 | if (!SWIG_IsOK(res1)) { | |
28225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_OnPreparePrinting" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28226 | } | |
28227 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28228 | { | |
28229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28230 | (arg1)->OnPreparePrinting(); | |
28231 | wxPyEndAllowThreads(__tstate); | |
28232 | if (PyErr_Occurred()) SWIG_fail; | |
28233 | } | |
28234 | resultobj = SWIG_Py_Void(); | |
28235 | return resultobj; | |
28236 | fail: | |
28237 | return NULL; | |
28238 | } | |
28239 | ||
28240 | ||
28241 | SWIGINTERN PyObject *_wrap_Printout_HasPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28242 | PyObject *resultobj = 0; | |
28243 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28244 | int arg2 ; | |
28245 | bool result; | |
28246 | void *argp1 = 0 ; | |
28247 | int res1 = 0 ; | |
28248 | int val2 ; | |
28249 | int ecode2 = 0 ; | |
28250 | PyObject * obj0 = 0 ; | |
28251 | PyObject * obj1 = 0 ; | |
28252 | char * kwnames[] = { | |
28253 | (char *) "self",(char *) "page", NULL | |
28254 | }; | |
28255 | ||
28256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_HasPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
28257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28258 | if (!SWIG_IsOK(res1)) { | |
28259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_HasPage" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28260 | } | |
28261 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28262 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28263 | if (!SWIG_IsOK(ecode2)) { | |
28264 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Printout_HasPage" "', expected argument " "2"" of type '" "int""'"); | |
28265 | } | |
28266 | arg2 = static_cast< int >(val2); | |
28267 | { | |
28268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28269 | result = (bool)(arg1)->HasPage(arg2); | |
28270 | wxPyEndAllowThreads(__tstate); | |
28271 | if (PyErr_Occurred()) SWIG_fail; | |
28272 | } | |
28273 | { | |
28274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28275 | } | |
28276 | return resultobj; | |
28277 | fail: | |
28278 | return NULL; | |
28279 | } | |
28280 | ||
28281 | ||
28282 | SWIGINTERN PyObject *_wrap_Printout_GetPageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28283 | PyObject *resultobj = 0; | |
28284 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
28285 | int *arg2 = (int *) 0 ; | |
28286 | int *arg3 = (int *) 0 ; | |
28287 | int *arg4 = (int *) 0 ; | |
28288 | int *arg5 = (int *) 0 ; | |
28289 | void *argp1 = 0 ; | |
28290 | int res1 = 0 ; | |
28291 | int temp2 ; | |
28292 | int res2 = SWIG_TMPOBJ ; | |
28293 | int temp3 ; | |
28294 | int res3 = SWIG_TMPOBJ ; | |
28295 | int temp4 ; | |
28296 | int res4 = SWIG_TMPOBJ ; | |
28297 | int temp5 ; | |
28298 | int res5 = SWIG_TMPOBJ ; | |
28299 | PyObject *swig_obj[1] ; | |
28300 | ||
28301 | arg2 = &temp2; | |
28302 | arg3 = &temp3; | |
28303 | arg4 = &temp4; | |
28304 | arg5 = &temp5; | |
28305 | if (!args) SWIG_fail; | |
28306 | swig_obj[0] = args; | |
28307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPrintout, 0 | 0 ); | |
28308 | if (!SWIG_IsOK(res1)) { | |
28309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Printout_GetPageInfo" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
28310 | } | |
28311 | arg1 = reinterpret_cast< wxPyPrintout * >(argp1); | |
28312 | { | |
28313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28314 | (arg1)->GetPageInfo(arg2,arg3,arg4,arg5); | |
28315 | wxPyEndAllowThreads(__tstate); | |
28316 | if (PyErr_Occurred()) SWIG_fail; | |
28317 | } | |
28318 | resultobj = SWIG_Py_Void(); | |
28319 | if (SWIG_IsTmpObj(res2)) { | |
28320 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
28321 | } else { | |
28322 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28323 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
28324 | } | |
28325 | if (SWIG_IsTmpObj(res3)) { | |
28326 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28327 | } else { | |
28328 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28329 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28330 | } | |
28331 | if (SWIG_IsTmpObj(res4)) { | |
28332 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
28333 | } else { | |
28334 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28335 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
28336 | } | |
28337 | if (SWIG_IsTmpObj(res5)) { | |
28338 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
28339 | } else { | |
28340 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28341 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
28342 | } | |
28343 | return resultobj; | |
28344 | fail: | |
28345 | return NULL; | |
28346 | } | |
28347 | ||
28348 | ||
28349 | SWIGINTERN PyObject *Printout_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28350 | PyObject *obj; | |
28351 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28352 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintout, SWIG_NewClientData(obj)); | |
28353 | return SWIG_Py_Void(); | |
28354 | } | |
28355 | ||
28356 | SWIGINTERN PyObject *Printout_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28357 | return SWIG_Python_InitShadowInstance(args); | |
28358 | } | |
28359 | ||
28360 | SWIGINTERN PyObject *_wrap_new_PreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28361 | PyObject *resultobj = 0; | |
28362 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28363 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28364 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28365 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28366 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28367 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28368 | long arg5 = (long) 0 ; | |
28369 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
28370 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
28371 | wxPreviewCanvas *result = 0 ; | |
28372 | void *argp1 = 0 ; | |
28373 | int res1 = 0 ; | |
28374 | void *argp2 = 0 ; | |
28375 | int res2 = 0 ; | |
28376 | wxPoint temp3 ; | |
28377 | wxSize temp4 ; | |
28378 | long val5 ; | |
28379 | int ecode5 = 0 ; | |
28380 | bool temp6 = false ; | |
28381 | PyObject * obj0 = 0 ; | |
28382 | PyObject * obj1 = 0 ; | |
28383 | PyObject * obj2 = 0 ; | |
28384 | PyObject * obj3 = 0 ; | |
28385 | PyObject * obj4 = 0 ; | |
28386 | PyObject * obj5 = 0 ; | |
28387 | char * kwnames[] = { | |
28388 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28389 | }; | |
28390 | ||
28391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28393 | if (!SWIG_IsOK(res1)) { | |
28394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28395 | } | |
28396 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28397 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28398 | if (!SWIG_IsOK(res2)) { | |
28399 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewCanvas" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
28400 | } | |
28401 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
28402 | if (obj2) { | |
093d3ff1 | 28403 | { |
554f62e9 RD |
28404 | arg3 = &temp3; |
28405 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
093d3ff1 | 28406 | } |
554f62e9 RD |
28407 | } |
28408 | if (obj3) { | |
093d3ff1 | 28409 | { |
554f62e9 RD |
28410 | arg4 = &temp4; |
28411 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
093d3ff1 | 28412 | } |
554f62e9 RD |
28413 | } |
28414 | if (obj4) { | |
28415 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
28416 | if (!SWIG_IsOK(ecode5)) { | |
28417 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PreviewCanvas" "', expected argument " "5"" of type '" "long""'"); | |
28418 | } | |
28419 | arg5 = static_cast< long >(val5); | |
28420 | } | |
28421 | if (obj5) { | |
093d3ff1 | 28422 | { |
554f62e9 RD |
28423 | arg6 = wxString_in_helper(obj5); |
28424 | if (arg6 == NULL) SWIG_fail; | |
28425 | temp6 = true; | |
093d3ff1 | 28426 | } |
554f62e9 RD |
28427 | } |
28428 | { | |
28429 | if (!wxPyCheckForApp()) SWIG_fail; | |
28430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28431 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
28432 | wxPyEndAllowThreads(__tstate); | |
28433 | if (PyErr_Occurred()) SWIG_fail; | |
28434 | } | |
28435 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, SWIG_POINTER_NEW | 0 ); | |
28436 | { | |
28437 | if (temp6) | |
28438 | delete arg6; | |
28439 | } | |
28440 | return resultobj; | |
28441 | fail: | |
28442 | { | |
28443 | if (temp6) | |
28444 | delete arg6; | |
28445 | } | |
28446 | return NULL; | |
28447 | } | |
28448 | ||
28449 | ||
28450 | SWIGINTERN PyObject *PreviewCanvas_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28451 | PyObject *obj; | |
28452 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28453 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewCanvas, SWIG_NewClientData(obj)); | |
28454 | return SWIG_Py_Void(); | |
28455 | } | |
28456 | ||
28457 | SWIGINTERN PyObject *PreviewCanvas_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28458 | return SWIG_Python_InitShadowInstance(args); | |
28459 | } | |
28460 | ||
28461 | SWIGINTERN PyObject *_wrap_new_PreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28462 | PyObject *resultobj = 0; | |
28463 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28464 | wxFrame *arg2 = (wxFrame *) 0 ; | |
28465 | wxString *arg3 = 0 ; | |
28466 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28467 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28468 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28469 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28470 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
28471 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
28472 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28473 | wxPreviewFrame *result = 0 ; | |
28474 | int res1 = 0 ; | |
28475 | void *argp2 = 0 ; | |
28476 | int res2 = 0 ; | |
28477 | bool temp3 = false ; | |
28478 | wxPoint temp4 ; | |
28479 | wxSize temp5 ; | |
28480 | long val6 ; | |
28481 | int ecode6 = 0 ; | |
28482 | bool temp7 = false ; | |
28483 | PyObject * obj0 = 0 ; | |
28484 | PyObject * obj1 = 0 ; | |
28485 | PyObject * obj2 = 0 ; | |
28486 | PyObject * obj3 = 0 ; | |
28487 | PyObject * obj4 = 0 ; | |
28488 | PyObject * obj5 = 0 ; | |
28489 | PyObject * obj6 = 0 ; | |
28490 | char * kwnames[] = { | |
28491 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28492 | }; | |
28493 | ||
28494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28495 | res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
28496 | if (!SWIG_IsOK(res1)) { | |
28497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28498 | } | |
28499 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
28500 | if (!SWIG_IsOK(res2)) { | |
28501 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
28502 | } | |
28503 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
28504 | { | |
28505 | arg3 = wxString_in_helper(obj2); | |
28506 | if (arg3 == NULL) SWIG_fail; | |
28507 | temp3 = true; | |
28508 | } | |
28509 | if (obj3) { | |
093d3ff1 | 28510 | { |
554f62e9 RD |
28511 | arg4 = &temp4; |
28512 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 28513 | } |
554f62e9 RD |
28514 | } |
28515 | if (obj4) { | |
d55e5bfc | 28516 | { |
554f62e9 RD |
28517 | arg5 = &temp5; |
28518 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
093d3ff1 | 28519 | } |
554f62e9 RD |
28520 | } |
28521 | if (obj5) { | |
28522 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28523 | if (!SWIG_IsOK(ecode6)) { | |
28524 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
28525 | } | |
28526 | arg6 = static_cast< long >(val6); | |
28527 | } | |
28528 | if (obj6) { | |
093d3ff1 | 28529 | { |
554f62e9 RD |
28530 | arg7 = wxString_in_helper(obj6); |
28531 | if (arg7 == NULL) SWIG_fail; | |
28532 | temp7 = true; | |
093d3ff1 | 28533 | } |
554f62e9 RD |
28534 | } |
28535 | { | |
28536 | if (!wxPyCheckForApp()) SWIG_fail; | |
28537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28538 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28539 | wxPyEndAllowThreads(__tstate); | |
28540 | if (PyErr_Occurred()) SWIG_fail; | |
28541 | } | |
28542 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
28543 | { | |
28544 | if (temp3) | |
28545 | delete arg3; | |
28546 | } | |
28547 | { | |
28548 | if (temp7) | |
28549 | delete arg7; | |
28550 | } | |
28551 | return resultobj; | |
28552 | fail: | |
28553 | { | |
28554 | if (temp3) | |
28555 | delete arg3; | |
28556 | } | |
28557 | { | |
28558 | if (temp7) | |
28559 | delete arg7; | |
28560 | } | |
28561 | return NULL; | |
d55e5bfc RD |
28562 | } |
28563 | ||
28564 | ||
554f62e9 RD |
28565 | SWIGINTERN PyObject *_wrap_PreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28566 | PyObject *resultobj = 0; | |
28567 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28568 | void *argp1 = 0 ; | |
28569 | int res1 = 0 ; | |
28570 | PyObject *swig_obj[1] ; | |
28571 | ||
28572 | if (!args) SWIG_fail; | |
28573 | swig_obj[0] = args; | |
28574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28575 | if (!SWIG_IsOK(res1)) { | |
28576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28577 | } | |
28578 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28579 | { | |
28580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28581 | (arg1)->Initialize(); | |
28582 | wxPyEndAllowThreads(__tstate); | |
28583 | if (PyErr_Occurred()) SWIG_fail; | |
28584 | } | |
28585 | resultobj = SWIG_Py_Void(); | |
28586 | return resultobj; | |
28587 | fail: | |
28588 | return NULL; | |
d55e5bfc RD |
28589 | } |
28590 | ||
28591 | ||
554f62e9 RD |
28592 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28593 | PyObject *resultobj = 0; | |
28594 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28595 | void *argp1 = 0 ; | |
28596 | int res1 = 0 ; | |
28597 | PyObject *swig_obj[1] ; | |
28598 | ||
28599 | if (!args) SWIG_fail; | |
28600 | swig_obj[0] = args; | |
28601 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28602 | if (!SWIG_IsOK(res1)) { | |
28603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28604 | } | |
28605 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28606 | { | |
28607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28608 | (arg1)->CreateControlBar(); | |
28609 | wxPyEndAllowThreads(__tstate); | |
28610 | if (PyErr_Occurred()) SWIG_fail; | |
28611 | } | |
28612 | resultobj = SWIG_Py_Void(); | |
28613 | return resultobj; | |
28614 | fail: | |
28615 | return NULL; | |
d55e5bfc RD |
28616 | } |
28617 | ||
28618 | ||
554f62e9 RD |
28619 | SWIGINTERN PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28620 | PyObject *resultobj = 0; | |
28621 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28622 | void *argp1 = 0 ; | |
28623 | int res1 = 0 ; | |
28624 | PyObject *swig_obj[1] ; | |
28625 | ||
28626 | if (!args) SWIG_fail; | |
28627 | swig_obj[0] = args; | |
28628 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28629 | if (!SWIG_IsOK(res1)) { | |
28630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPreviewFrame *""'"); | |
28631 | } | |
28632 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28633 | { | |
28634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28635 | (arg1)->CreateCanvas(); | |
28636 | wxPyEndAllowThreads(__tstate); | |
28637 | if (PyErr_Occurred()) SWIG_fail; | |
28638 | } | |
28639 | resultobj = SWIG_Py_Void(); | |
28640 | return resultobj; | |
28641 | fail: | |
28642 | return NULL; | |
d55e5bfc RD |
28643 | } |
28644 | ||
28645 | ||
554f62e9 RD |
28646 | SWIGINTERN PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28647 | PyObject *resultobj = 0; | |
28648 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
28649 | wxPreviewControlBar *result = 0 ; | |
28650 | void *argp1 = 0 ; | |
28651 | int res1 = 0 ; | |
28652 | PyObject *swig_obj[1] ; | |
28653 | ||
28654 | if (!args) SWIG_fail; | |
28655 | swig_obj[0] = args; | |
28656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewFrame, 0 | 0 ); | |
28657 | if (!SWIG_IsOK(res1)) { | |
28658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewFrame_GetControlBar" "', expected argument " "1"" of type '" "wxPreviewFrame const *""'"); | |
28659 | } | |
28660 | arg1 = reinterpret_cast< wxPreviewFrame * >(argp1); | |
28661 | { | |
28662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28663 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
28664 | wxPyEndAllowThreads(__tstate); | |
28665 | if (PyErr_Occurred()) SWIG_fail; | |
28666 | } | |
28667 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28668 | return resultobj; | |
28669 | fail: | |
28670 | return NULL; | |
28671 | } | |
28672 | ||
28673 | ||
28674 | SWIGINTERN PyObject *PreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28675 | PyObject *obj; | |
28676 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28677 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewFrame, SWIG_NewClientData(obj)); | |
28678 | return SWIG_Py_Void(); | |
28679 | } | |
28680 | ||
28681 | SWIGINTERN PyObject *PreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28682 | return SWIG_Python_InitShadowInstance(args); | |
28683 | } | |
28684 | ||
28685 | SWIGINTERN PyObject *_wrap_new_PreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28686 | PyObject *resultobj = 0; | |
28687 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
28688 | long arg2 ; | |
28689 | wxWindow *arg3 = (wxWindow *) 0 ; | |
28690 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28691 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28692 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28693 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28694 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
28695 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
28696 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28697 | wxPreviewControlBar *result = 0 ; | |
28698 | void *argp1 = 0 ; | |
28699 | int res1 = 0 ; | |
28700 | long val2 ; | |
28701 | int ecode2 = 0 ; | |
28702 | void *argp3 = 0 ; | |
28703 | int res3 = 0 ; | |
28704 | wxPoint temp4 ; | |
28705 | wxSize temp5 ; | |
28706 | long val6 ; | |
28707 | int ecode6 = 0 ; | |
28708 | bool temp7 = false ; | |
28709 | PyObject * obj0 = 0 ; | |
28710 | PyObject * obj1 = 0 ; | |
28711 | PyObject * obj2 = 0 ; | |
28712 | PyObject * obj3 = 0 ; | |
28713 | PyObject * obj4 = 0 ; | |
28714 | PyObject * obj5 = 0 ; | |
28715 | PyObject * obj6 = 0 ; | |
28716 | char * kwnames[] = { | |
28717 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
28718 | }; | |
28719 | ||
28720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28722 | if (!SWIG_IsOK(res1)) { | |
28723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
28724 | } | |
28725 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
28726 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
28727 | if (!SWIG_IsOK(ecode2)) { | |
28728 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
28729 | } | |
28730 | arg2 = static_cast< long >(val2); | |
28731 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28732 | if (!SWIG_IsOK(res3)) { | |
28733 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
28734 | } | |
28735 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
28736 | if (obj3) { | |
d55e5bfc | 28737 | { |
554f62e9 RD |
28738 | arg4 = &temp4; |
28739 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28740 | } | |
28741 | } | |
28742 | if (obj4) { | |
d55e5bfc | 28743 | { |
554f62e9 RD |
28744 | arg5 = &temp5; |
28745 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 28746 | } |
554f62e9 RD |
28747 | } |
28748 | if (obj5) { | |
28749 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
28750 | if (!SWIG_IsOK(ecode6)) { | |
28751 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
28752 | } | |
28753 | arg6 = static_cast< long >(val6); | |
28754 | } | |
28755 | if (obj6) { | |
d55e5bfc | 28756 | { |
554f62e9 RD |
28757 | arg7 = wxString_in_helper(obj6); |
28758 | if (arg7 == NULL) SWIG_fail; | |
28759 | temp7 = true; | |
d55e5bfc | 28760 | } |
554f62e9 RD |
28761 | } |
28762 | { | |
28763 | if (!wxPyCheckForApp()) SWIG_fail; | |
28764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28765 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
28766 | wxPyEndAllowThreads(__tstate); | |
28767 | if (PyErr_Occurred()) SWIG_fail; | |
28768 | } | |
28769 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
28770 | { | |
28771 | if (temp7) | |
28772 | delete arg7; | |
28773 | } | |
28774 | return resultobj; | |
28775 | fail: | |
28776 | { | |
28777 | if (temp7) | |
28778 | delete arg7; | |
28779 | } | |
28780 | return NULL; | |
d55e5bfc RD |
28781 | } |
28782 | ||
28783 | ||
554f62e9 RD |
28784 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28785 | PyObject *resultobj = 0; | |
28786 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28787 | int result; | |
28788 | void *argp1 = 0 ; | |
28789 | int res1 = 0 ; | |
28790 | PyObject *swig_obj[1] ; | |
28791 | ||
28792 | if (!args) SWIG_fail; | |
28793 | swig_obj[0] = args; | |
28794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28795 | if (!SWIG_IsOK(res1)) { | |
28796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28797 | } | |
28798 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28799 | { | |
28800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28801 | result = (int)(arg1)->GetZoomControl(); | |
28802 | wxPyEndAllowThreads(__tstate); | |
28803 | if (PyErr_Occurred()) SWIG_fail; | |
28804 | } | |
28805 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28806 | return resultobj; | |
28807 | fail: | |
28808 | return NULL; | |
28809 | } | |
28810 | ||
28811 | ||
28812 | SWIGINTERN PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28813 | PyObject *resultobj = 0; | |
28814 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28815 | int arg2 ; | |
28816 | void *argp1 = 0 ; | |
28817 | int res1 = 0 ; | |
28818 | int val2 ; | |
28819 | int ecode2 = 0 ; | |
28820 | PyObject * obj0 = 0 ; | |
28821 | PyObject * obj1 = 0 ; | |
28822 | char * kwnames[] = { | |
28823 | (char *) "self",(char *) "zoom", NULL | |
28824 | }; | |
28825 | ||
28826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
28827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28828 | if (!SWIG_IsOK(res1)) { | |
28829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28830 | } | |
28831 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28832 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28833 | if (!SWIG_IsOK(ecode2)) { | |
28834 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
28835 | } | |
28836 | arg2 = static_cast< int >(val2); | |
28837 | { | |
28838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28839 | (arg1)->SetZoomControl(arg2); | |
28840 | wxPyEndAllowThreads(__tstate); | |
28841 | if (PyErr_Occurred()) SWIG_fail; | |
28842 | } | |
28843 | resultobj = SWIG_Py_Void(); | |
28844 | return resultobj; | |
28845 | fail: | |
28846 | return NULL; | |
d55e5bfc RD |
28847 | } |
28848 | ||
28849 | ||
554f62e9 RD |
28850 | SWIGINTERN PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28851 | PyObject *resultobj = 0; | |
28852 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28853 | wxPrintPreview *result = 0 ; | |
28854 | void *argp1 = 0 ; | |
28855 | int res1 = 0 ; | |
28856 | PyObject *swig_obj[1] ; | |
28857 | ||
28858 | if (!args) SWIG_fail; | |
28859 | swig_obj[0] = args; | |
28860 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28861 | if (!SWIG_IsOK(res1)) { | |
28862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_GetPrintPreview" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28863 | } | |
28864 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28865 | { | |
28866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28867 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
28868 | wxPyEndAllowThreads(__tstate); | |
28869 | if (PyErr_Occurred()) SWIG_fail; | |
28870 | } | |
28871 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
28872 | return resultobj; | |
28873 | fail: | |
28874 | return NULL; | |
d55e5bfc RD |
28875 | } |
28876 | ||
28877 | ||
554f62e9 RD |
28878 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28879 | PyObject *resultobj = 0; | |
28880 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28881 | void *argp1 = 0 ; | |
28882 | int res1 = 0 ; | |
28883 | PyObject *swig_obj[1] ; | |
28884 | ||
28885 | if (!args) SWIG_fail; | |
28886 | swig_obj[0] = args; | |
28887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28888 | if (!SWIG_IsOK(res1)) { | |
28889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnNext" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28890 | } | |
28891 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28892 | { | |
28893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28894 | (arg1)->OnNext(); | |
28895 | wxPyEndAllowThreads(__tstate); | |
28896 | if (PyErr_Occurred()) SWIG_fail; | |
28897 | } | |
28898 | resultobj = SWIG_Py_Void(); | |
28899 | return resultobj; | |
28900 | fail: | |
28901 | return NULL; | |
d55e5bfc RD |
28902 | } |
28903 | ||
28904 | ||
554f62e9 RD |
28905 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28906 | PyObject *resultobj = 0; | |
28907 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28908 | void *argp1 = 0 ; | |
28909 | int res1 = 0 ; | |
28910 | PyObject *swig_obj[1] ; | |
28911 | ||
28912 | if (!args) SWIG_fail; | |
28913 | swig_obj[0] = args; | |
28914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28915 | if (!SWIG_IsOK(res1)) { | |
28916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnPrevious" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28917 | } | |
28918 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28919 | { | |
28920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28921 | (arg1)->OnPrevious(); | |
28922 | wxPyEndAllowThreads(__tstate); | |
28923 | if (PyErr_Occurred()) SWIG_fail; | |
28924 | } | |
28925 | resultobj = SWIG_Py_Void(); | |
28926 | return resultobj; | |
28927 | fail: | |
28928 | return NULL; | |
d55e5bfc RD |
28929 | } |
28930 | ||
28931 | ||
554f62e9 RD |
28932 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28933 | PyObject *resultobj = 0; | |
28934 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28935 | void *argp1 = 0 ; | |
28936 | int res1 = 0 ; | |
28937 | PyObject *swig_obj[1] ; | |
28938 | ||
28939 | if (!args) SWIG_fail; | |
28940 | swig_obj[0] = args; | |
28941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28942 | if (!SWIG_IsOK(res1)) { | |
28943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnFirst" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28944 | } | |
28945 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28946 | { | |
28947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28948 | (arg1)->OnFirst(); | |
28949 | wxPyEndAllowThreads(__tstate); | |
28950 | if (PyErr_Occurred()) SWIG_fail; | |
28951 | } | |
28952 | resultobj = SWIG_Py_Void(); | |
28953 | return resultobj; | |
28954 | fail: | |
28955 | return NULL; | |
d55e5bfc RD |
28956 | } |
28957 | ||
28958 | ||
554f62e9 RD |
28959 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnLast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28960 | PyObject *resultobj = 0; | |
28961 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28962 | void *argp1 = 0 ; | |
28963 | int res1 = 0 ; | |
28964 | PyObject *swig_obj[1] ; | |
28965 | ||
28966 | if (!args) SWIG_fail; | |
28967 | swig_obj[0] = args; | |
28968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28969 | if (!SWIG_IsOK(res1)) { | |
28970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnLast" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28971 | } | |
28972 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
28973 | { | |
28974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28975 | (arg1)->OnLast(); | |
28976 | wxPyEndAllowThreads(__tstate); | |
28977 | if (PyErr_Occurred()) SWIG_fail; | |
28978 | } | |
28979 | resultobj = SWIG_Py_Void(); | |
28980 | return resultobj; | |
28981 | fail: | |
28982 | return NULL; | |
d55e5bfc RD |
28983 | } |
28984 | ||
28985 | ||
554f62e9 RD |
28986 | SWIGINTERN PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28987 | PyObject *resultobj = 0; | |
28988 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
28989 | void *argp1 = 0 ; | |
28990 | int res1 = 0 ; | |
28991 | PyObject *swig_obj[1] ; | |
28992 | ||
28993 | if (!args) SWIG_fail; | |
28994 | swig_obj[0] = args; | |
28995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
28996 | if (!SWIG_IsOK(res1)) { | |
28997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PreviewControlBar_OnGoto" "', expected argument " "1"" of type '" "wxPreviewControlBar *""'"); | |
28998 | } | |
28999 | arg1 = reinterpret_cast< wxPreviewControlBar * >(argp1); | |
29000 | { | |
29001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29002 | (arg1)->OnGoto(); | |
29003 | wxPyEndAllowThreads(__tstate); | |
29004 | if (PyErr_Occurred()) SWIG_fail; | |
29005 | } | |
29006 | resultobj = SWIG_Py_Void(); | |
29007 | return resultobj; | |
29008 | fail: | |
29009 | return NULL; | |
d55e5bfc RD |
29010 | } |
29011 | ||
29012 | ||
554f62e9 RD |
29013 | SWIGINTERN PyObject *PreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29014 | PyObject *obj; | |
29015 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29016 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPreviewControlBar, SWIG_NewClientData(obj)); | |
29017 | return SWIG_Py_Void(); | |
d55e5bfc RD |
29018 | } |
29019 | ||
554f62e9 RD |
29020 | SWIGINTERN PyObject *PreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29021 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
29022 | } |
29023 | ||
554f62e9 RD |
29024 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29025 | PyObject *resultobj = 0; | |
29026 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29027 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29028 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29029 | wxPrintPreview *result = 0 ; | |
29030 | int res1 = 0 ; | |
29031 | int res2 = 0 ; | |
29032 | void *argp3 = 0 ; | |
29033 | int res3 = 0 ; | |
29034 | ||
29035 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29036 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29037 | if (!SWIG_IsOK(res1)) { | |
29038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29039 | } | |
29040 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29041 | if (!SWIG_IsOK(res2)) { | |
29042 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29043 | } | |
29044 | if (swig_obj[2]) { | |
29045 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29046 | if (!SWIG_IsOK(res3)) { | |
29047 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
29048 | } | |
29049 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); | |
29050 | } | |
29051 | { | |
29052 | if (!wxPyCheckForApp()) SWIG_fail; | |
29053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29054 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29055 | wxPyEndAllowThreads(__tstate); | |
29056 | if (PyErr_Occurred()) SWIG_fail; | |
29057 | } | |
29058 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29059 | return resultobj; | |
29060 | fail: | |
29061 | return NULL; | |
29062 | } | |
29063 | ||
29064 | ||
29065 | SWIGINTERN PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29066 | PyObject *resultobj = 0; | |
29067 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29068 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29069 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29070 | wxPrintPreview *result = 0 ; | |
29071 | int res1 = 0 ; | |
29072 | int res2 = 0 ; | |
29073 | void *argp3 = 0 ; | |
29074 | int res3 = 0 ; | |
29075 | ||
29076 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29077 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29078 | if (!SWIG_IsOK(res1)) { | |
29079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29080 | } | |
29081 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29082 | if (!SWIG_IsOK(res2)) { | |
29083 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29084 | } | |
29085 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
29086 | if (!SWIG_IsOK(res3)) { | |
29087 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
29088 | } | |
29089 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
29090 | { | |
29091 | if (!wxPyCheckForApp()) SWIG_fail; | |
29092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29093 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
29094 | wxPyEndAllowThreads(__tstate); | |
29095 | if (PyErr_Occurred()) SWIG_fail; | |
29096 | } | |
29097 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29098 | return resultobj; | |
29099 | fail: | |
29100 | return NULL; | |
d55e5bfc RD |
29101 | } |
29102 | ||
29103 | ||
554f62e9 RD |
29104 | SWIGINTERN PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { |
29105 | int argc; | |
29106 | PyObject *argv[4]; | |
29107 | ||
29108 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PrintPreview",0,3,argv))) SWIG_fail; | |
29109 | --argc; | |
29110 | if ((argc >= 2) && (argc <= 3)) { | |
29111 | int _v = 0; | |
29112 | if (argc > 2) { | |
29113 | { | |
29114 | void *vptr = 0; | |
29115 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
29116 | _v = SWIG_CheckState(res); | |
29117 | } | |
29118 | if (!_v) goto check_1; | |
d55e5bfc | 29119 | } |
554f62e9 RD |
29120 | return _wrap_new_PrintPreview__SWIG_0(self, argc, argv); |
29121 | } | |
29122 | check_1: | |
29123 | ||
29124 | if (argc == 3) { | |
29125 | return _wrap_new_PrintPreview__SWIG_1(self, argc, argv); | |
29126 | } | |
29127 | ||
29128 | fail: | |
29129 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PrintPreview'"); | |
29130 | return NULL; | |
d55e5bfc RD |
29131 | } |
29132 | ||
29133 | ||
554f62e9 RD |
29134 | SWIGINTERN PyObject *_wrap_delete_PrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29135 | PyObject *resultobj = 0; | |
29136 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29137 | void *argp1 = 0 ; | |
29138 | int res1 = 0 ; | |
29139 | PyObject *swig_obj[1] ; | |
29140 | ||
29141 | if (!args) SWIG_fail; | |
29142 | swig_obj[0] = args; | |
29143 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, SWIG_POINTER_DISOWN | 0 ); | |
29144 | if (!SWIG_IsOK(res1)) { | |
29145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PrintPreview" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29146 | } | |
29147 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29148 | { | |
29149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29150 | delete arg1; | |
caef1a4d | 29151 | |
554f62e9 RD |
29152 | wxPyEndAllowThreads(__tstate); |
29153 | if (PyErr_Occurred()) SWIG_fail; | |
29154 | } | |
29155 | resultobj = SWIG_Py_Void(); | |
29156 | return resultobj; | |
29157 | fail: | |
29158 | return NULL; | |
29159 | } | |
29160 | ||
29161 | ||
29162 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29163 | PyObject *resultobj = 0; | |
29164 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29165 | int arg2 ; | |
29166 | bool result; | |
29167 | void *argp1 = 0 ; | |
29168 | int res1 = 0 ; | |
29169 | int val2 ; | |
29170 | int ecode2 = 0 ; | |
29171 | PyObject * obj0 = 0 ; | |
29172 | PyObject * obj1 = 0 ; | |
29173 | char * kwnames[] = { | |
29174 | (char *) "self",(char *) "pageNum", NULL | |
29175 | }; | |
29176 | ||
29177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29179 | if (!SWIG_IsOK(res1)) { | |
29180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29181 | } | |
29182 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29184 | if (!SWIG_IsOK(ecode2)) { | |
29185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetCurrentPage" "', expected argument " "2"" of type '" "int""'"); | |
29186 | } | |
29187 | arg2 = static_cast< int >(val2); | |
29188 | { | |
29189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29190 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
29191 | wxPyEndAllowThreads(__tstate); | |
29192 | if (PyErr_Occurred()) SWIG_fail; | |
29193 | } | |
29194 | { | |
29195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29196 | } | |
29197 | return resultobj; | |
29198 | fail: | |
29199 | return NULL; | |
caef1a4d RD |
29200 | } |
29201 | ||
29202 | ||
554f62e9 RD |
29203 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29204 | PyObject *resultobj = 0; | |
29205 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29206 | int result; | |
29207 | void *argp1 = 0 ; | |
29208 | int res1 = 0 ; | |
29209 | PyObject *swig_obj[1] ; | |
29210 | ||
29211 | if (!args) SWIG_fail; | |
29212 | swig_obj[0] = args; | |
29213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29214 | if (!SWIG_IsOK(res1)) { | |
29215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCurrentPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29216 | } | |
29217 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29218 | { | |
29219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29220 | result = (int)(arg1)->GetCurrentPage(); | |
29221 | wxPyEndAllowThreads(__tstate); | |
29222 | if (PyErr_Occurred()) SWIG_fail; | |
29223 | } | |
29224 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29225 | return resultobj; | |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
29231 | SWIGINTERN PyObject *_wrap_PrintPreview_SetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29232 | PyObject *resultobj = 0; | |
29233 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29234 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29235 | void *argp1 = 0 ; | |
29236 | int res1 = 0 ; | |
29237 | int res2 = 0 ; | |
29238 | PyObject * obj0 = 0 ; | |
29239 | PyObject * obj1 = 0 ; | |
29240 | char * kwnames[] = { | |
29241 | (char *) "self",(char *) "printout", NULL | |
29242 | }; | |
29243 | ||
29244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) SWIG_fail; | |
29245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29246 | if (!SWIG_IsOK(res1)) { | |
29247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29248 | } | |
29249 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29250 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29251 | if (!SWIG_IsOK(res2)) { | |
29252 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetPrintout" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29253 | } | |
29254 | { | |
29255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29256 | (arg1)->SetPrintout(arg2); | |
29257 | wxPyEndAllowThreads(__tstate); | |
29258 | if (PyErr_Occurred()) SWIG_fail; | |
29259 | } | |
29260 | resultobj = SWIG_Py_Void(); | |
29261 | return resultobj; | |
29262 | fail: | |
29263 | return NULL; | |
8d38bd1d RD |
29264 | } |
29265 | ||
29266 | ||
554f62e9 RD |
29267 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29268 | PyObject *resultobj = 0; | |
29269 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29270 | wxPyPrintout *result = 0 ; | |
29271 | void *argp1 = 0 ; | |
29272 | int res1 = 0 ; | |
29273 | PyObject *swig_obj[1] ; | |
29274 | ||
29275 | if (!args) SWIG_fail; | |
29276 | swig_obj[0] = args; | |
29277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29278 | if (!SWIG_IsOK(res1)) { | |
29279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintout" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29280 | } | |
29281 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29282 | { | |
29283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29284 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
29288 | { | |
29289 | resultobj = wxPyMake_wxObject(result, 0); | |
29290 | } | |
29291 | return resultobj; | |
29292 | fail: | |
29293 | return NULL; | |
d55e5bfc RD |
29294 | } |
29295 | ||
29296 | ||
554f62e9 RD |
29297 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29298 | PyObject *resultobj = 0; | |
29299 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29300 | wxPyPrintout *result = 0 ; | |
29301 | void *argp1 = 0 ; | |
29302 | int res1 = 0 ; | |
29303 | PyObject *swig_obj[1] ; | |
29304 | ||
29305 | if (!args) SWIG_fail; | |
29306 | swig_obj[0] = args; | |
29307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29308 | if (!SWIG_IsOK(res1)) { | |
29309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintoutForPrinting" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29310 | } | |
29311 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29312 | { | |
29313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29314 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
29315 | wxPyEndAllowThreads(__tstate); | |
29316 | if (PyErr_Occurred()) SWIG_fail; | |
29317 | } | |
29318 | { | |
29319 | resultobj = wxPyMake_wxObject(result, 0); | |
29320 | } | |
29321 | return resultobj; | |
29322 | fail: | |
29323 | return NULL; | |
29324 | } | |
29325 | ||
29326 | ||
29327 | SWIGINTERN PyObject *_wrap_PrintPreview_SetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29328 | PyObject *resultobj = 0; | |
29329 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29330 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29331 | void *argp1 = 0 ; | |
29332 | int res1 = 0 ; | |
29333 | void *argp2 = 0 ; | |
29334 | int res2 = 0 ; | |
29335 | PyObject * obj0 = 0 ; | |
29336 | PyObject * obj1 = 0 ; | |
29337 | char * kwnames[] = { | |
29338 | (char *) "self",(char *) "frame", NULL | |
29339 | }; | |
29340 | ||
29341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) SWIG_fail; | |
29342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29343 | if (!SWIG_IsOK(res1)) { | |
29344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29345 | } | |
29346 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29347 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
29348 | if (!SWIG_IsOK(res2)) { | |
29349 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
29350 | } | |
29351 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
29352 | { | |
29353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29354 | (arg1)->SetFrame(arg2); | |
29355 | wxPyEndAllowThreads(__tstate); | |
29356 | if (PyErr_Occurred()) SWIG_fail; | |
29357 | } | |
29358 | resultobj = SWIG_Py_Void(); | |
29359 | return resultobj; | |
29360 | fail: | |
29361 | return NULL; | |
29362 | } | |
29363 | ||
29364 | ||
29365 | SWIGINTERN PyObject *_wrap_PrintPreview_SetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29366 | PyObject *resultobj = 0; | |
29367 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29368 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29369 | void *argp1 = 0 ; | |
29370 | int res1 = 0 ; | |
29371 | void *argp2 = 0 ; | |
29372 | int res2 = 0 ; | |
29373 | PyObject * obj0 = 0 ; | |
29374 | PyObject * obj1 = 0 ; | |
29375 | char * kwnames[] = { | |
29376 | (char *) "self",(char *) "canvas", NULL | |
29377 | }; | |
29378 | ||
29379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
29380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29381 | if (!SWIG_IsOK(res1)) { | |
29382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29383 | } | |
29384 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29385 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29386 | if (!SWIG_IsOK(res2)) { | |
29387 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_SetCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29388 | } | |
29389 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29390 | { | |
29391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29392 | (arg1)->SetCanvas(arg2); | |
29393 | wxPyEndAllowThreads(__tstate); | |
29394 | if (PyErr_Occurred()) SWIG_fail; | |
29395 | } | |
29396 | resultobj = SWIG_Py_Void(); | |
29397 | return resultobj; | |
29398 | fail: | |
29399 | return NULL; | |
d55e5bfc RD |
29400 | } |
29401 | ||
29402 | ||
554f62e9 RD |
29403 | SWIGINTERN PyObject *_wrap_PrintPreview_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29404 | PyObject *resultobj = 0; | |
29405 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29406 | wxFrame *result = 0 ; | |
29407 | void *argp1 = 0 ; | |
29408 | int res1 = 0 ; | |
29409 | PyObject *swig_obj[1] ; | |
29410 | ||
29411 | if (!args) SWIG_fail; | |
29412 | swig_obj[0] = args; | |
29413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29414 | if (!SWIG_IsOK(res1)) { | |
29415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29416 | } | |
29417 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29418 | { | |
29419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29420 | result = (wxFrame *)(arg1)->GetFrame(); | |
29421 | wxPyEndAllowThreads(__tstate); | |
29422 | if (PyErr_Occurred()) SWIG_fail; | |
29423 | } | |
29424 | { | |
29425 | resultobj = wxPyMake_wxObject(result, 0); | |
29426 | } | |
29427 | return resultobj; | |
29428 | fail: | |
29429 | return NULL; | |
d55e5bfc RD |
29430 | } |
29431 | ||
29432 | ||
554f62e9 RD |
29433 | SWIGINTERN PyObject *_wrap_PrintPreview_GetCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29434 | PyObject *resultobj = 0; | |
29435 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29436 | wxPreviewCanvas *result = 0 ; | |
29437 | void *argp1 = 0 ; | |
29438 | int res1 = 0 ; | |
29439 | PyObject *swig_obj[1] ; | |
29440 | ||
29441 | if (!args) SWIG_fail; | |
29442 | swig_obj[0] = args; | |
29443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29444 | if (!SWIG_IsOK(res1)) { | |
29445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetCanvas" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29446 | } | |
29447 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29448 | { | |
29449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29450 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
29451 | wxPyEndAllowThreads(__tstate); | |
29452 | if (PyErr_Occurred()) SWIG_fail; | |
29453 | } | |
29454 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29455 | return resultobj; | |
29456 | fail: | |
29457 | return NULL; | |
29458 | } | |
29459 | ||
29460 | ||
29461 | SWIGINTERN PyObject *_wrap_PrintPreview_PaintPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29462 | PyObject *resultobj = 0; | |
29463 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29464 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29465 | wxDC *arg3 = 0 ; | |
29466 | bool result; | |
29467 | void *argp1 = 0 ; | |
29468 | int res1 = 0 ; | |
29469 | void *argp2 = 0 ; | |
29470 | int res2 = 0 ; | |
29471 | void *argp3 = 0 ; | |
29472 | int res3 = 0 ; | |
29473 | PyObject * obj0 = 0 ; | |
29474 | PyObject * obj1 = 0 ; | |
29475 | PyObject * obj2 = 0 ; | |
29476 | char * kwnames[] = { | |
29477 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29478 | }; | |
29479 | ||
29480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29482 | if (!SWIG_IsOK(res1)) { | |
29483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_PaintPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29484 | } | |
29485 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29486 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29487 | if (!SWIG_IsOK(res2)) { | |
29488 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_PaintPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29489 | } | |
29490 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29491 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29492 | if (!SWIG_IsOK(res3)) { | |
29493 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29494 | } | |
29495 | if (!argp3) { | |
29496 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_PaintPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29497 | } | |
29498 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29499 | { | |
29500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29501 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
29502 | wxPyEndAllowThreads(__tstate); | |
29503 | if (PyErr_Occurred()) SWIG_fail; | |
29504 | } | |
29505 | { | |
29506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29507 | } | |
29508 | return resultobj; | |
29509 | fail: | |
29510 | return NULL; | |
29511 | } | |
29512 | ||
29513 | ||
29514 | SWIGINTERN PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29515 | PyObject *resultobj = 0; | |
29516 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29517 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29518 | wxDC *arg3 = 0 ; | |
29519 | bool result; | |
29520 | void *argp1 = 0 ; | |
29521 | int res1 = 0 ; | |
29522 | void *argp2 = 0 ; | |
29523 | int res2 = 0 ; | |
29524 | void *argp3 = 0 ; | |
29525 | int res3 = 0 ; | |
29526 | PyObject * obj0 = 0 ; | |
29527 | PyObject * obj1 = 0 ; | |
29528 | PyObject * obj2 = 0 ; | |
29529 | char * kwnames[] = { | |
29530 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
29531 | }; | |
29532 | ||
29533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29535 | if (!SWIG_IsOK(res1)) { | |
29536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29537 | } | |
29538 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29539 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29540 | if (!SWIG_IsOK(res2)) { | |
29541 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29542 | } | |
29543 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29544 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
29545 | if (!SWIG_IsOK(res3)) { | |
29546 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29547 | } | |
29548 | if (!argp3) { | |
29549 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PrintPreview_DrawBlankPage" "', expected argument " "3"" of type '" "wxDC &""'"); | |
29550 | } | |
29551 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
29552 | { | |
29553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29554 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
29555 | wxPyEndAllowThreads(__tstate); | |
29556 | if (PyErr_Occurred()) SWIG_fail; | |
29557 | } | |
29558 | { | |
29559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29560 | } | |
29561 | return resultobj; | |
29562 | fail: | |
29563 | return NULL; | |
29564 | } | |
29565 | ||
29566 | ||
29567 | SWIGINTERN PyObject *_wrap_PrintPreview_RenderPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29568 | PyObject *resultobj = 0; | |
29569 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29570 | int arg2 ; | |
29571 | bool result; | |
29572 | void *argp1 = 0 ; | |
29573 | int res1 = 0 ; | |
29574 | int val2 ; | |
29575 | int ecode2 = 0 ; | |
29576 | PyObject * obj0 = 0 ; | |
29577 | PyObject * obj1 = 0 ; | |
29578 | char * kwnames[] = { | |
29579 | (char *) "self",(char *) "pageNum", NULL | |
29580 | }; | |
29581 | ||
29582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) SWIG_fail; | |
29583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29584 | if (!SWIG_IsOK(res1)) { | |
29585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_RenderPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29586 | } | |
29587 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29588 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29589 | if (!SWIG_IsOK(ecode2)) { | |
29590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_RenderPage" "', expected argument " "2"" of type '" "int""'"); | |
29591 | } | |
29592 | arg2 = static_cast< int >(val2); | |
29593 | { | |
29594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29595 | result = (bool)(arg1)->RenderPage(arg2); | |
29596 | wxPyEndAllowThreads(__tstate); | |
29597 | if (PyErr_Occurred()) SWIG_fail; | |
29598 | } | |
29599 | { | |
29600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29601 | } | |
29602 | return resultobj; | |
29603 | fail: | |
29604 | return NULL; | |
29605 | } | |
29606 | ||
29607 | ||
29608 | SWIGINTERN PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29609 | PyObject *resultobj = 0; | |
29610 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29611 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
29612 | void *argp1 = 0 ; | |
29613 | int res1 = 0 ; | |
29614 | void *argp2 = 0 ; | |
29615 | int res2 = 0 ; | |
29616 | PyObject * obj0 = 0 ; | |
29617 | PyObject * obj1 = 0 ; | |
29618 | char * kwnames[] = { | |
29619 | (char *) "self",(char *) "canvas", NULL | |
29620 | }; | |
29621 | ||
29622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) SWIG_fail; | |
29623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29624 | if (!SWIG_IsOK(res1)) { | |
29625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29626 | } | |
29627 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29628 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
29629 | if (!SWIG_IsOK(res2)) { | |
29630 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PrintPreview_AdjustScrollbars" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
29631 | } | |
29632 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
29633 | { | |
29634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29635 | (arg1)->AdjustScrollbars(arg2); | |
29636 | wxPyEndAllowThreads(__tstate); | |
29637 | if (PyErr_Occurred()) SWIG_fail; | |
29638 | } | |
29639 | resultobj = SWIG_Py_Void(); | |
29640 | return resultobj; | |
29641 | fail: | |
29642 | return NULL; | |
caef1a4d RD |
29643 | } |
29644 | ||
29645 | ||
554f62e9 RD |
29646 | SWIGINTERN PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29647 | PyObject *resultobj = 0; | |
29648 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29649 | wxPrintDialogData *result = 0 ; | |
29650 | void *argp1 = 0 ; | |
29651 | int res1 = 0 ; | |
29652 | PyObject *swig_obj[1] ; | |
29653 | ||
29654 | if (!args) SWIG_fail; | |
29655 | swig_obj[0] = args; | |
29656 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29657 | if (!SWIG_IsOK(res1)) { | |
29658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetPrintDialogData" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29659 | } | |
29660 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29661 | { | |
29662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
60d5fcc1 | 29663 | { |
554f62e9 RD |
29664 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); |
29665 | result = (wxPrintDialogData *) &_result_ref; | |
60d5fcc1 | 29666 | } |
554f62e9 RD |
29667 | wxPyEndAllowThreads(__tstate); |
29668 | if (PyErr_Occurred()) SWIG_fail; | |
29669 | } | |
29670 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29671 | return resultobj; | |
29672 | fail: | |
29673 | return NULL; | |
29674 | } | |
29675 | ||
29676 | ||
29677 | SWIGINTERN PyObject *_wrap_PrintPreview_SetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29678 | PyObject *resultobj = 0; | |
29679 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29680 | int arg2 ; | |
29681 | void *argp1 = 0 ; | |
29682 | int res1 = 0 ; | |
29683 | int val2 ; | |
29684 | int ecode2 = 0 ; | |
29685 | PyObject * obj0 = 0 ; | |
29686 | PyObject * obj1 = 0 ; | |
29687 | char * kwnames[] = { | |
29688 | (char *) "self",(char *) "percent", NULL | |
29689 | }; | |
29690 | ||
29691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) SWIG_fail; | |
29692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29693 | if (!SWIG_IsOK(res1)) { | |
29694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29695 | } | |
29696 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29697 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29698 | if (!SWIG_IsOK(ecode2)) { | |
29699 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetZoom" "', expected argument " "2"" of type '" "int""'"); | |
29700 | } | |
29701 | arg2 = static_cast< int >(val2); | |
29702 | { | |
29703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29704 | (arg1)->SetZoom(arg2); | |
29705 | wxPyEndAllowThreads(__tstate); | |
29706 | if (PyErr_Occurred()) SWIG_fail; | |
29707 | } | |
29708 | resultobj = SWIG_Py_Void(); | |
29709 | return resultobj; | |
29710 | fail: | |
29711 | return NULL; | |
60d5fcc1 RD |
29712 | } |
29713 | ||
29714 | ||
554f62e9 RD |
29715 | SWIGINTERN PyObject *_wrap_PrintPreview_GetZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29716 | PyObject *resultobj = 0; | |
29717 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29718 | int result; | |
29719 | void *argp1 = 0 ; | |
29720 | int res1 = 0 ; | |
29721 | PyObject *swig_obj[1] ; | |
29722 | ||
29723 | if (!args) SWIG_fail; | |
29724 | swig_obj[0] = args; | |
29725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29726 | if (!SWIG_IsOK(res1)) { | |
29727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetZoom" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29728 | } | |
29729 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29730 | { | |
29731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29732 | result = (int)(arg1)->GetZoom(); | |
29733 | wxPyEndAllowThreads(__tstate); | |
29734 | if (PyErr_Occurred()) SWIG_fail; | |
29735 | } | |
29736 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29737 | return resultobj; | |
29738 | fail: | |
29739 | return NULL; | |
d55e5bfc RD |
29740 | } |
29741 | ||
29742 | ||
554f62e9 RD |
29743 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29744 | PyObject *resultobj = 0; | |
29745 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29746 | int result; | |
29747 | void *argp1 = 0 ; | |
29748 | int res1 = 0 ; | |
29749 | PyObject *swig_obj[1] ; | |
29750 | ||
29751 | if (!args) SWIG_fail; | |
29752 | swig_obj[0] = args; | |
29753 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29754 | if (!SWIG_IsOK(res1)) { | |
29755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMaxPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29756 | } | |
29757 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29758 | { | |
29759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29760 | result = (int)(arg1)->GetMaxPage(); | |
29761 | wxPyEndAllowThreads(__tstate); | |
29762 | if (PyErr_Occurred()) SWIG_fail; | |
29763 | } | |
29764 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29765 | return resultobj; | |
29766 | fail: | |
29767 | return NULL; | |
d55e5bfc RD |
29768 | } |
29769 | ||
29770 | ||
554f62e9 RD |
29771 | SWIGINTERN PyObject *_wrap_PrintPreview_GetMinPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29772 | PyObject *resultobj = 0; | |
29773 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29774 | int result; | |
29775 | void *argp1 = 0 ; | |
29776 | int res1 = 0 ; | |
29777 | PyObject *swig_obj[1] ; | |
29778 | ||
29779 | if (!args) SWIG_fail; | |
29780 | swig_obj[0] = args; | |
29781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29782 | if (!SWIG_IsOK(res1)) { | |
29783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_GetMinPage" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29784 | } | |
29785 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29786 | { | |
29787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29788 | result = (int)(arg1)->GetMinPage(); | |
29789 | wxPyEndAllowThreads(__tstate); | |
29790 | if (PyErr_Occurred()) SWIG_fail; | |
29791 | } | |
29792 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29793 | return resultobj; | |
29794 | fail: | |
29795 | return NULL; | |
d55e5bfc RD |
29796 | } |
29797 | ||
29798 | ||
554f62e9 RD |
29799 | SWIGINTERN PyObject *_wrap_PrintPreview_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29800 | PyObject *resultobj = 0; | |
29801 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29802 | bool result; | |
29803 | void *argp1 = 0 ; | |
29804 | int res1 = 0 ; | |
29805 | PyObject *swig_obj[1] ; | |
29806 | ||
29807 | if (!args) SWIG_fail; | |
29808 | swig_obj[0] = args; | |
29809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29810 | if (!SWIG_IsOK(res1)) { | |
29811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Ok" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29812 | } | |
29813 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29814 | { | |
29815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29816 | result = (bool)(arg1)->Ok(); | |
29817 | wxPyEndAllowThreads(__tstate); | |
29818 | if (PyErr_Occurred()) SWIG_fail; | |
29819 | } | |
29820 | { | |
29821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29822 | } | |
29823 | return resultobj; | |
29824 | fail: | |
29825 | return NULL; | |
29826 | } | |
29827 | ||
29828 | ||
29829 | SWIGINTERN PyObject *_wrap_PrintPreview_SetOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29830 | PyObject *resultobj = 0; | |
29831 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29832 | bool arg2 ; | |
29833 | void *argp1 = 0 ; | |
29834 | int res1 = 0 ; | |
29835 | bool val2 ; | |
29836 | int ecode2 = 0 ; | |
29837 | PyObject * obj0 = 0 ; | |
29838 | PyObject * obj1 = 0 ; | |
29839 | char * kwnames[] = { | |
29840 | (char *) "self",(char *) "ok", NULL | |
29841 | }; | |
29842 | ||
29843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) SWIG_fail; | |
29844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29845 | if (!SWIG_IsOK(res1)) { | |
29846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_SetOk" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29847 | } | |
29848 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29849 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29850 | if (!SWIG_IsOK(ecode2)) { | |
29851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_SetOk" "', expected argument " "2"" of type '" "bool""'"); | |
29852 | } | |
29853 | arg2 = static_cast< bool >(val2); | |
29854 | { | |
29855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29856 | (arg1)->SetOk(arg2); | |
29857 | wxPyEndAllowThreads(__tstate); | |
29858 | if (PyErr_Occurred()) SWIG_fail; | |
29859 | } | |
29860 | resultobj = SWIG_Py_Void(); | |
29861 | return resultobj; | |
29862 | fail: | |
29863 | return NULL; | |
29864 | } | |
29865 | ||
29866 | ||
29867 | SWIGINTERN PyObject *_wrap_PrintPreview_Print(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29868 | PyObject *resultobj = 0; | |
29869 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29870 | bool arg2 ; | |
29871 | bool result; | |
29872 | void *argp1 = 0 ; | |
29873 | int res1 = 0 ; | |
29874 | bool val2 ; | |
29875 | int ecode2 = 0 ; | |
29876 | PyObject * obj0 = 0 ; | |
29877 | PyObject * obj1 = 0 ; | |
29878 | char * kwnames[] = { | |
29879 | (char *) "self",(char *) "interactive", NULL | |
29880 | }; | |
29881 | ||
29882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) SWIG_fail; | |
29883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29884 | if (!SWIG_IsOK(res1)) { | |
29885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_Print" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29886 | } | |
29887 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29888 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
29889 | if (!SWIG_IsOK(ecode2)) { | |
29890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PrintPreview_Print" "', expected argument " "2"" of type '" "bool""'"); | |
29891 | } | |
29892 | arg2 = static_cast< bool >(val2); | |
29893 | { | |
29894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29895 | result = (bool)(arg1)->Print(arg2); | |
29896 | wxPyEndAllowThreads(__tstate); | |
29897 | if (PyErr_Occurred()) SWIG_fail; | |
29898 | } | |
29899 | { | |
29900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29901 | } | |
29902 | return resultobj; | |
29903 | fail: | |
29904 | return NULL; | |
d55e5bfc RD |
29905 | } |
29906 | ||
29907 | ||
554f62e9 RD |
29908 | SWIGINTERN PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29909 | PyObject *resultobj = 0; | |
29910 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
29911 | void *argp1 = 0 ; | |
29912 | int res1 = 0 ; | |
29913 | PyObject *swig_obj[1] ; | |
29914 | ||
29915 | if (!args) SWIG_fail; | |
29916 | swig_obj[0] = args; | |
29917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
29918 | if (!SWIG_IsOK(res1)) { | |
29919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PrintPreview_DetermineScaling" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
29920 | } | |
29921 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
29922 | { | |
29923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29924 | (arg1)->DetermineScaling(); | |
29925 | wxPyEndAllowThreads(__tstate); | |
29926 | if (PyErr_Occurred()) SWIG_fail; | |
29927 | } | |
29928 | resultobj = SWIG_Py_Void(); | |
29929 | return resultobj; | |
29930 | fail: | |
29931 | return NULL; | |
d55e5bfc RD |
29932 | } |
29933 | ||
29934 | ||
554f62e9 RD |
29935 | SWIGINTERN PyObject *PrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29936 | PyObject *obj; | |
29937 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29938 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrintPreview, SWIG_NewClientData(obj)); | |
29939 | return SWIG_Py_Void(); | |
d55e5bfc RD |
29940 | } |
29941 | ||
554f62e9 RD |
29942 | SWIGINTERN PyObject *PrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29943 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
29944 | } |
29945 | ||
554f62e9 RD |
29946 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29947 | PyObject *resultobj = 0; | |
29948 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29949 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29950 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
29951 | wxPyPrintPreview *result = 0 ; | |
29952 | int res1 = 0 ; | |
29953 | int res2 = 0 ; | |
29954 | void *argp3 = 0 ; | |
29955 | int res3 = 0 ; | |
29956 | ||
29957 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
29958 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29959 | if (!SWIG_IsOK(res1)) { | |
29960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
29961 | } | |
29962 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
29963 | if (!SWIG_IsOK(res2)) { | |
29964 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
29965 | } | |
29966 | if (swig_obj[2]) { | |
29967 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintDialogData, 0 | 0 ); | |
29968 | if (!SWIG_IsOK(res3)) { | |
29969 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintDialogData *""'"); | |
d55e5bfc | 29970 | } |
554f62e9 RD |
29971 | arg3 = reinterpret_cast< wxPrintDialogData * >(argp3); |
29972 | } | |
29973 | { | |
29974 | if (!wxPyCheckForApp()) SWIG_fail; | |
29975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29976 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
29977 | wxPyEndAllowThreads(__tstate); | |
29978 | if (PyErr_Occurred()) SWIG_fail; | |
29979 | } | |
29980 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
29981 | return resultobj; | |
29982 | fail: | |
29983 | return NULL; | |
29984 | } | |
29985 | ||
29986 | ||
29987 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29988 | PyObject *resultobj = 0; | |
29989 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
29990 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
29991 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
29992 | wxPyPrintPreview *result = 0 ; | |
29993 | int res1 = 0 ; | |
29994 | int res2 = 0 ; | |
29995 | void *argp3 = 0 ; | |
29996 | int res3 = 0 ; | |
29997 | ||
29998 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
29999 | res1 = SWIG_ConvertPtr(swig_obj[0], SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30000 | if (!SWIG_IsOK(res1)) { | |
30001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPrintPreview" "', expected argument " "1"" of type '" "wxPyPrintout *""'"); | |
30002 | } | |
30003 | res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_DISOWN | 0 ); | |
30004 | if (!SWIG_IsOK(res2)) { | |
30005 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPrintPreview" "', expected argument " "2"" of type '" "wxPyPrintout *""'"); | |
30006 | } | |
30007 | res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
30008 | if (!SWIG_IsOK(res3)) { | |
30009 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPrintPreview" "', expected argument " "3"" of type '" "wxPrintData *""'"); | |
30010 | } | |
30011 | arg3 = reinterpret_cast< wxPrintData * >(argp3); | |
30012 | { | |
30013 | if (!wxPyCheckForApp()) SWIG_fail; | |
30014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30015 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
30016 | wxPyEndAllowThreads(__tstate); | |
30017 | if (PyErr_Occurred()) SWIG_fail; | |
30018 | } | |
30019 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPrintPreview, SWIG_POINTER_NEW | 0 ); | |
30020 | return resultobj; | |
30021 | fail: | |
30022 | return NULL; | |
d55e5bfc RD |
30023 | } |
30024 | ||
30025 | ||
554f62e9 RD |
30026 | SWIGINTERN PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { |
30027 | int argc; | |
30028 | PyObject *argv[4]; | |
30029 | ||
30030 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_PyPrintPreview",0,3,argv))) SWIG_fail; | |
30031 | --argc; | |
30032 | if ((argc >= 2) && (argc <= 3)) { | |
30033 | int _v = 0; | |
30034 | if (argc > 2) { | |
30035 | { | |
30036 | void *vptr = 0; | |
30037 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_wxPrintDialogData, 0); | |
30038 | _v = SWIG_CheckState(res); | |
30039 | } | |
30040 | if (!_v) goto check_1; | |
d55e5bfc | 30041 | } |
554f62e9 RD |
30042 | return _wrap_new_PyPrintPreview__SWIG_0(self, argc, argv); |
30043 | } | |
30044 | check_1: | |
30045 | ||
30046 | if (argc == 3) { | |
30047 | return _wrap_new_PyPrintPreview__SWIG_1(self, argc, argv); | |
30048 | } | |
30049 | ||
30050 | fail: | |
30051 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
30052 | return NULL; | |
30053 | } | |
30054 | ||
30055 | ||
30056 | SWIGINTERN PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30057 | PyObject *resultobj = 0; | |
30058 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
30059 | PyObject *arg2 = (PyObject *) 0 ; | |
30060 | PyObject *arg3 = (PyObject *) 0 ; | |
30061 | void *argp1 = 0 ; | |
30062 | int res1 = 0 ; | |
30063 | PyObject * obj0 = 0 ; | |
30064 | PyObject * obj1 = 0 ; | |
30065 | PyObject * obj2 = 0 ; | |
30066 | char * kwnames[] = { | |
30067 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30068 | }; | |
30069 | ||
30070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPrintPreview, 0 | 0 ); | |
30072 | if (!SWIG_IsOK(res1)) { | |
30073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPrintPreview__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPrintPreview *""'"); | |
30074 | } | |
30075 | arg1 = reinterpret_cast< wxPyPrintPreview * >(argp1); | |
30076 | arg2 = obj1; | |
30077 | arg3 = obj2; | |
30078 | { | |
30079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30080 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30081 | wxPyEndAllowThreads(__tstate); | |
30082 | if (PyErr_Occurred()) SWIG_fail; | |
30083 | } | |
30084 | resultobj = SWIG_Py_Void(); | |
30085 | return resultobj; | |
30086 | fail: | |
30087 | return NULL; | |
30088 | } | |
30089 | ||
30090 | ||
30091 | SWIGINTERN PyObject *PyPrintPreview_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30092 | PyObject *obj; | |
30093 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30094 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPrintPreview, SWIG_NewClientData(obj)); | |
30095 | return SWIG_Py_Void(); | |
30096 | } | |
30097 | ||
30098 | SWIGINTERN PyObject *PyPrintPreview_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30099 | return SWIG_Python_InitShadowInstance(args); | |
30100 | } | |
30101 | ||
30102 | SWIGINTERN PyObject *_wrap_new_PyPreviewFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30103 | PyObject *resultobj = 0; | |
30104 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30105 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30106 | wxString *arg3 = 0 ; | |
30107 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30108 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30109 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30110 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30111 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
30112 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
30113 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30114 | wxPyPreviewFrame *result = 0 ; | |
30115 | void *argp1 = 0 ; | |
30116 | int res1 = 0 ; | |
30117 | void *argp2 = 0 ; | |
30118 | int res2 = 0 ; | |
30119 | bool temp3 = false ; | |
30120 | wxPoint temp4 ; | |
30121 | wxSize temp5 ; | |
30122 | long val6 ; | |
30123 | int ecode6 = 0 ; | |
30124 | bool temp7 = false ; | |
30125 | PyObject * obj0 = 0 ; | |
30126 | PyObject * obj1 = 0 ; | |
30127 | PyObject * obj2 = 0 ; | |
30128 | PyObject * obj3 = 0 ; | |
30129 | PyObject * obj4 = 0 ; | |
30130 | PyObject * obj5 = 0 ; | |
30131 | PyObject * obj6 = 0 ; | |
30132 | char * kwnames[] = { | |
30133 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30134 | }; | |
30135 | ||
30136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30138 | if (!SWIG_IsOK(res1)) { | |
30139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewFrame" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30140 | } | |
30141 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30142 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 ); | |
30143 | if (!SWIG_IsOK(res2)) { | |
30144 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyPreviewFrame" "', expected argument " "2"" of type '" "wxFrame *""'"); | |
30145 | } | |
30146 | arg2 = reinterpret_cast< wxFrame * >(argp2); | |
30147 | { | |
30148 | arg3 = wxString_in_helper(obj2); | |
30149 | if (arg3 == NULL) SWIG_fail; | |
30150 | temp3 = true; | |
30151 | } | |
30152 | if (obj3) { | |
d55e5bfc | 30153 | { |
554f62e9 RD |
30154 | arg4 = &temp4; |
30155 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 30156 | } |
554f62e9 RD |
30157 | } |
30158 | if (obj4) { | |
d55e5bfc | 30159 | { |
554f62e9 RD |
30160 | arg5 = &temp5; |
30161 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 30162 | } |
554f62e9 RD |
30163 | } |
30164 | if (obj5) { | |
30165 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30166 | if (!SWIG_IsOK(ecode6)) { | |
30167 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewFrame" "', expected argument " "6"" of type '" "long""'"); | |
30168 | } | |
30169 | arg6 = static_cast< long >(val6); | |
30170 | } | |
30171 | if (obj6) { | |
d55e5bfc | 30172 | { |
554f62e9 RD |
30173 | arg7 = wxString_in_helper(obj6); |
30174 | if (arg7 == NULL) SWIG_fail; | |
30175 | temp7 = true; | |
d55e5bfc | 30176 | } |
554f62e9 RD |
30177 | } |
30178 | { | |
30179 | if (!wxPyCheckForApp()) SWIG_fail; | |
30180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30181 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30182 | wxPyEndAllowThreads(__tstate); | |
30183 | if (PyErr_Occurred()) SWIG_fail; | |
30184 | } | |
30185 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewFrame, SWIG_POINTER_NEW | 0 ); | |
30186 | { | |
30187 | if (temp3) | |
30188 | delete arg3; | |
30189 | } | |
30190 | { | |
30191 | if (temp7) | |
30192 | delete arg7; | |
30193 | } | |
30194 | return resultobj; | |
30195 | fail: | |
30196 | { | |
30197 | if (temp3) | |
30198 | delete arg3; | |
30199 | } | |
30200 | { | |
30201 | if (temp7) | |
30202 | delete arg7; | |
30203 | } | |
30204 | return NULL; | |
30205 | } | |
30206 | ||
30207 | ||
30208 | SWIGINTERN PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30209 | PyObject *resultobj = 0; | |
30210 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30211 | PyObject *arg2 = (PyObject *) 0 ; | |
30212 | PyObject *arg3 = (PyObject *) 0 ; | |
30213 | void *argp1 = 0 ; | |
30214 | int res1 = 0 ; | |
30215 | PyObject * obj0 = 0 ; | |
30216 | PyObject * obj1 = 0 ; | |
30217 | PyObject * obj2 = 0 ; | |
30218 | char * kwnames[] = { | |
30219 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30220 | }; | |
30221 | ||
30222 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30224 | if (!SWIG_IsOK(res1)) { | |
30225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30226 | } | |
30227 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30228 | arg2 = obj1; | |
30229 | arg3 = obj2; | |
30230 | { | |
30231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30232 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30233 | wxPyEndAllowThreads(__tstate); | |
30234 | if (PyErr_Occurred()) SWIG_fail; | |
30235 | } | |
30236 | resultobj = SWIG_Py_Void(); | |
30237 | return resultobj; | |
30238 | fail: | |
30239 | return NULL; | |
30240 | } | |
30241 | ||
30242 | ||
30243 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30244 | PyObject *resultobj = 0; | |
30245 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30246 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
30247 | void *argp1 = 0 ; | |
30248 | int res1 = 0 ; | |
30249 | void *argp2 = 0 ; | |
30250 | int res2 = 0 ; | |
30251 | PyObject * obj0 = 0 ; | |
30252 | PyObject * obj1 = 0 ; | |
30253 | char * kwnames[] = { | |
30254 | (char *) "self",(char *) "canvas", NULL | |
30255 | }; | |
30256 | ||
30257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) SWIG_fail; | |
30258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30259 | if (!SWIG_IsOK(res1)) { | |
30260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30261 | } | |
30262 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30263 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewCanvas, 0 | 0 ); | |
30264 | if (!SWIG_IsOK(res2)) { | |
30265 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetPreviewCanvas" "', expected argument " "2"" of type '" "wxPreviewCanvas *""'"); | |
30266 | } | |
30267 | arg2 = reinterpret_cast< wxPreviewCanvas * >(argp2); | |
30268 | { | |
30269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30270 | (arg1)->SetPreviewCanvas(arg2); | |
30271 | wxPyEndAllowThreads(__tstate); | |
30272 | if (PyErr_Occurred()) SWIG_fail; | |
30273 | } | |
30274 | resultobj = SWIG_Py_Void(); | |
30275 | return resultobj; | |
30276 | fail: | |
30277 | return NULL; | |
30278 | } | |
30279 | ||
30280 | ||
30281 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30282 | PyObject *resultobj = 0; | |
30283 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30284 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
30285 | void *argp1 = 0 ; | |
30286 | int res1 = 0 ; | |
30287 | void *argp2 = 0 ; | |
30288 | int res2 = 0 ; | |
30289 | PyObject * obj0 = 0 ; | |
30290 | PyObject * obj1 = 0 ; | |
30291 | char * kwnames[] = { | |
30292 | (char *) "self",(char *) "bar", NULL | |
30293 | }; | |
30294 | ||
30295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) SWIG_fail; | |
30296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30297 | if (!SWIG_IsOK(res1)) { | |
30298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30299 | } | |
30300 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30301 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPreviewControlBar, 0 | 0 ); | |
30302 | if (!SWIG_IsOK(res2)) { | |
30303 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewFrame_SetControlBar" "', expected argument " "2"" of type '" "wxPreviewControlBar *""'"); | |
30304 | } | |
30305 | arg2 = reinterpret_cast< wxPreviewControlBar * >(argp2); | |
30306 | { | |
30307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30308 | (arg1)->SetControlBar(arg2); | |
30309 | wxPyEndAllowThreads(__tstate); | |
30310 | if (PyErr_Occurred()) SWIG_fail; | |
30311 | } | |
30312 | resultobj = SWIG_Py_Void(); | |
30313 | return resultobj; | |
30314 | fail: | |
30315 | return NULL; | |
d55e5bfc RD |
30316 | } |
30317 | ||
30318 | ||
554f62e9 RD |
30319 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_Initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30320 | PyObject *resultobj = 0; | |
30321 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30322 | void *argp1 = 0 ; | |
30323 | int res1 = 0 ; | |
30324 | PyObject *swig_obj[1] ; | |
30325 | ||
30326 | if (!args) SWIG_fail; | |
30327 | swig_obj[0] = args; | |
30328 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30329 | if (!SWIG_IsOK(res1)) { | |
30330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_Initialize" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30331 | } | |
30332 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30333 | { | |
30334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30335 | (arg1)->Initialize(); | |
30336 | wxPyEndAllowThreads(__tstate); | |
30337 | if (PyErr_Occurred()) SWIG_fail; | |
30338 | } | |
30339 | resultobj = SWIG_Py_Void(); | |
30340 | return resultobj; | |
30341 | fail: | |
30342 | return NULL; | |
d55e5bfc RD |
30343 | } |
30344 | ||
30345 | ||
554f62e9 RD |
30346 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateCanvas(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30347 | PyObject *resultobj = 0; | |
30348 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30349 | void *argp1 = 0 ; | |
30350 | int res1 = 0 ; | |
30351 | PyObject *swig_obj[1] ; | |
30352 | ||
30353 | if (!args) SWIG_fail; | |
30354 | swig_obj[0] = args; | |
30355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30356 | if (!SWIG_IsOK(res1)) { | |
30357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateCanvas" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30358 | } | |
30359 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30360 | { | |
30361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30362 | (arg1)->CreateCanvas(); | |
30363 | wxPyEndAllowThreads(__tstate); | |
30364 | if (PyErr_Occurred()) SWIG_fail; | |
30365 | } | |
30366 | resultobj = SWIG_Py_Void(); | |
30367 | return resultobj; | |
30368 | fail: | |
30369 | return NULL; | |
caef1a4d RD |
30370 | } |
30371 | ||
30372 | ||
554f62e9 RD |
30373 | SWIGINTERN PyObject *_wrap_PyPreviewFrame_CreateControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30374 | PyObject *resultobj = 0; | |
30375 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
30376 | void *argp1 = 0 ; | |
30377 | int res1 = 0 ; | |
30378 | PyObject *swig_obj[1] ; | |
30379 | ||
30380 | if (!args) SWIG_fail; | |
30381 | swig_obj[0] = args; | |
30382 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewFrame, 0 | 0 ); | |
30383 | if (!SWIG_IsOK(res1)) { | |
30384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewFrame_CreateControlBar" "', expected argument " "1"" of type '" "wxPyPreviewFrame *""'"); | |
30385 | } | |
30386 | arg1 = reinterpret_cast< wxPyPreviewFrame * >(argp1); | |
30387 | { | |
30388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30389 | (arg1)->CreateControlBar(); | |
30390 | wxPyEndAllowThreads(__tstate); | |
30391 | if (PyErr_Occurred()) SWIG_fail; | |
30392 | } | |
30393 | resultobj = SWIG_Py_Void(); | |
30394 | return resultobj; | |
30395 | fail: | |
30396 | return NULL; | |
30397 | } | |
30398 | ||
30399 | ||
30400 | SWIGINTERN PyObject *PyPreviewFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30401 | PyObject *obj; | |
30402 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30403 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewFrame, SWIG_NewClientData(obj)); | |
30404 | return SWIG_Py_Void(); | |
30405 | } | |
30406 | ||
30407 | SWIGINTERN PyObject *PyPreviewFrame_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30408 | return SWIG_Python_InitShadowInstance(args); | |
30409 | } | |
30410 | ||
30411 | SWIGINTERN PyObject *_wrap_new_PyPreviewControlBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30412 | PyObject *resultobj = 0; | |
30413 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
30414 | long arg2 ; | |
30415 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30416 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30417 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30418 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30419 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30420 | long arg6 = (long) 0 ; | |
30421 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
30422 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30423 | wxPyPreviewControlBar *result = 0 ; | |
30424 | void *argp1 = 0 ; | |
30425 | int res1 = 0 ; | |
30426 | long val2 ; | |
30427 | int ecode2 = 0 ; | |
30428 | void *argp3 = 0 ; | |
30429 | int res3 = 0 ; | |
30430 | wxPoint temp4 ; | |
30431 | wxSize temp5 ; | |
30432 | long val6 ; | |
30433 | int ecode6 = 0 ; | |
30434 | bool temp7 = false ; | |
30435 | PyObject * obj0 = 0 ; | |
30436 | PyObject * obj1 = 0 ; | |
30437 | PyObject * obj2 = 0 ; | |
30438 | PyObject * obj3 = 0 ; | |
30439 | PyObject * obj4 = 0 ; | |
30440 | PyObject * obj5 = 0 ; | |
30441 | PyObject * obj6 = 0 ; | |
30442 | char * kwnames[] = { | |
30443 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
30444 | }; | |
30445 | ||
30446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30448 | if (!SWIG_IsOK(res1)) { | |
30449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyPreviewControlBar" "', expected argument " "1"" of type '" "wxPrintPreview *""'"); | |
30450 | } | |
30451 | arg1 = reinterpret_cast< wxPrintPreview * >(argp1); | |
30452 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
30453 | if (!SWIG_IsOK(ecode2)) { | |
30454 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyPreviewControlBar" "', expected argument " "2"" of type '" "long""'"); | |
30455 | } | |
30456 | arg2 = static_cast< long >(val2); | |
30457 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30458 | if (!SWIG_IsOK(res3)) { | |
30459 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_PyPreviewControlBar" "', expected argument " "3"" of type '" "wxWindow *""'"); | |
30460 | } | |
30461 | arg3 = reinterpret_cast< wxWindow * >(argp3); | |
30462 | if (obj3) { | |
8d38bd1d | 30463 | { |
554f62e9 RD |
30464 | arg4 = &temp4; |
30465 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
d55e5bfc | 30466 | } |
554f62e9 RD |
30467 | } |
30468 | if (obj4) { | |
d55e5bfc | 30469 | { |
554f62e9 RD |
30470 | arg5 = &temp5; |
30471 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
d55e5bfc | 30472 | } |
554f62e9 RD |
30473 | } |
30474 | if (obj5) { | |
30475 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
30476 | if (!SWIG_IsOK(ecode6)) { | |
30477 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_PyPreviewControlBar" "', expected argument " "6"" of type '" "long""'"); | |
30478 | } | |
30479 | arg6 = static_cast< long >(val6); | |
30480 | } | |
30481 | if (obj6) { | |
d55e5bfc | 30482 | { |
554f62e9 RD |
30483 | arg7 = wxString_in_helper(obj6); |
30484 | if (arg7 == NULL) SWIG_fail; | |
30485 | temp7 = true; | |
d55e5bfc | 30486 | } |
554f62e9 RD |
30487 | } |
30488 | { | |
30489 | if (!wxPyCheckForApp()) SWIG_fail; | |
30490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30491 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
30492 | wxPyEndAllowThreads(__tstate); | |
30493 | if (PyErr_Occurred()) SWIG_fail; | |
30494 | } | |
30495 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyPreviewControlBar, SWIG_POINTER_NEW | 0 ); | |
30496 | { | |
30497 | if (temp7) | |
30498 | delete arg7; | |
30499 | } | |
30500 | return resultobj; | |
30501 | fail: | |
30502 | { | |
30503 | if (temp7) | |
30504 | delete arg7; | |
30505 | } | |
30506 | return NULL; | |
30507 | } | |
30508 | ||
30509 | ||
30510 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30511 | PyObject *resultobj = 0; | |
30512 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30513 | PyObject *arg2 = (PyObject *) 0 ; | |
30514 | PyObject *arg3 = (PyObject *) 0 ; | |
30515 | void *argp1 = 0 ; | |
30516 | int res1 = 0 ; | |
30517 | PyObject * obj0 = 0 ; | |
30518 | PyObject * obj1 = 0 ; | |
30519 | PyObject * obj2 = 0 ; | |
30520 | char * kwnames[] = { | |
30521 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
30522 | }; | |
30523 | ||
30524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30526 | if (!SWIG_IsOK(res1)) { | |
30527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30528 | } | |
30529 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30530 | arg2 = obj1; | |
30531 | arg3 = obj2; | |
30532 | { | |
30533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30534 | (arg1)->_setCallbackInfo(arg2,arg3); | |
30535 | wxPyEndAllowThreads(__tstate); | |
30536 | if (PyErr_Occurred()) SWIG_fail; | |
30537 | } | |
30538 | resultobj = SWIG_Py_Void(); | |
30539 | return resultobj; | |
30540 | fail: | |
30541 | return NULL; | |
30542 | } | |
30543 | ||
30544 | ||
30545 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30546 | PyObject *resultobj = 0; | |
30547 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30548 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
30549 | void *argp1 = 0 ; | |
30550 | int res1 = 0 ; | |
30551 | void *argp2 = 0 ; | |
30552 | int res2 = 0 ; | |
30553 | PyObject * obj0 = 0 ; | |
30554 | PyObject * obj1 = 0 ; | |
30555 | char * kwnames[] = { | |
30556 | (char *) "self",(char *) "preview", NULL | |
30557 | }; | |
30558 | ||
30559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) SWIG_fail; | |
30560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30561 | if (!SWIG_IsOK(res1)) { | |
30562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30563 | } | |
30564 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30565 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPrintPreview, 0 | 0 ); | |
30566 | if (!SWIG_IsOK(res2)) { | |
30567 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyPreviewControlBar_SetPrintPreview" "', expected argument " "2"" of type '" "wxPrintPreview *""'"); | |
30568 | } | |
30569 | arg2 = reinterpret_cast< wxPrintPreview * >(argp2); | |
30570 | { | |
30571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30572 | (arg1)->SetPrintPreview(arg2); | |
30573 | wxPyEndAllowThreads(__tstate); | |
30574 | if (PyErr_Occurred()) SWIG_fail; | |
30575 | } | |
30576 | resultobj = SWIG_Py_Void(); | |
30577 | return resultobj; | |
30578 | fail: | |
30579 | return NULL; | |
d55e5bfc RD |
30580 | } |
30581 | ||
30582 | ||
554f62e9 RD |
30583 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_CreateButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30584 | PyObject *resultobj = 0; | |
30585 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30586 | void *argp1 = 0 ; | |
30587 | int res1 = 0 ; | |
30588 | PyObject *swig_obj[1] ; | |
30589 | ||
30590 | if (!args) SWIG_fail; | |
30591 | swig_obj[0] = args; | |
30592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30593 | if (!SWIG_IsOK(res1)) { | |
30594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_CreateButtons" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30595 | } | |
30596 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30597 | { | |
30598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30599 | (arg1)->CreateButtons(); | |
30600 | wxPyEndAllowThreads(__tstate); | |
30601 | if (PyErr_Occurred()) SWIG_fail; | |
30602 | } | |
30603 | resultobj = SWIG_Py_Void(); | |
30604 | return resultobj; | |
30605 | fail: | |
30606 | return NULL; | |
30607 | } | |
30608 | ||
30609 | ||
30610 | SWIGINTERN PyObject *_wrap_PyPreviewControlBar_SetZoomControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30611 | PyObject *resultobj = 0; | |
30612 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
30613 | int arg2 ; | |
30614 | void *argp1 = 0 ; | |
30615 | int res1 = 0 ; | |
30616 | int val2 ; | |
30617 | int ecode2 = 0 ; | |
30618 | PyObject * obj0 = 0 ; | |
30619 | PyObject * obj1 = 0 ; | |
30620 | char * kwnames[] = { | |
30621 | (char *) "self",(char *) "zoom", NULL | |
30622 | }; | |
30623 | ||
30624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) SWIG_fail; | |
30625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyPreviewControlBar, 0 | 0 ); | |
30626 | if (!SWIG_IsOK(res1)) { | |
30627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "1"" of type '" "wxPyPreviewControlBar *""'"); | |
30628 | } | |
30629 | arg1 = reinterpret_cast< wxPyPreviewControlBar * >(argp1); | |
30630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30631 | if (!SWIG_IsOK(ecode2)) { | |
30632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyPreviewControlBar_SetZoomControl" "', expected argument " "2"" of type '" "int""'"); | |
30633 | } | |
30634 | arg2 = static_cast< int >(val2); | |
30635 | { | |
30636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30637 | (arg1)->SetZoomControl(arg2); | |
30638 | wxPyEndAllowThreads(__tstate); | |
30639 | if (PyErr_Occurred()) SWIG_fail; | |
30640 | } | |
30641 | resultobj = SWIG_Py_Void(); | |
30642 | return resultobj; | |
30643 | fail: | |
30644 | return NULL; | |
caef1a4d RD |
30645 | } |
30646 | ||
30647 | ||
554f62e9 RD |
30648 | SWIGINTERN PyObject *PyPreviewControlBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30649 | PyObject *obj; | |
30650 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30651 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyPreviewControlBar, SWIG_NewClientData(obj)); | |
30652 | return SWIG_Py_Void(); | |
60d5fcc1 RD |
30653 | } |
30654 | ||
554f62e9 RD |
30655 | SWIGINTERN PyObject *PyPreviewControlBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30656 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
30657 | } |
30658 | ||
d55e5bfc | 30659 | static PyMethodDef SwigMethods[] = { |
093d3ff1 | 30660 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30661 | { (char *)"new_PrePanel", (PyCFunction)_wrap_new_PrePanel, METH_NOARGS, NULL}, |
093d3ff1 | 30662 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30663 | { (char *)"Panel_SetFocusIgnoringChildren", (PyCFunction)_wrap_Panel_SetFocusIgnoringChildren, METH_O, NULL}, |
093d3ff1 RD |
30664 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30665 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30666 | { (char *)"Panel_swiginit", Panel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30667 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30668 | { (char *)"new_PreScrolledWindow", (PyCFunction)_wrap_new_PreScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30669 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30670 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30671 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30672 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30673 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30674 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30675 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction)_wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_O, NULL}, |
093d3ff1 | 30676 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30677 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction)_wrap_ScrolledWindow_GetViewStart, METH_O, NULL}, |
093d3ff1 | 30678 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30679 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction)_wrap_ScrolledWindow_GetScaleX, METH_O, NULL}, |
30680 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction)_wrap_ScrolledWindow_GetScaleY, METH_O, NULL}, | |
093d3ff1 RD |
30681 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL}, |
30682 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL}, | |
554f62e9 | 30683 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction)_wrap_ScrolledWindow_AdjustScrollbars, METH_O, NULL}, |
093d3ff1 RD |
30684 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL}, |
30685 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30686 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction)_wrap_ScrolledWindow_GetTargetWindow, METH_O, NULL}, |
093d3ff1 | 30687 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30688 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction)_wrap_ScrolledWindow_GetTargetRect, METH_O, NULL}, |
093d3ff1 RD |
30689 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
30690 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30691 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30692 | { (char *)"ScrolledWindow_swiginit", ScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30693 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30694 | { (char *)"TopLevelWindow_Restore", (PyCFunction)_wrap_TopLevelWindow_Restore, METH_O, NULL}, |
093d3ff1 | 30695 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30696 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction)_wrap_TopLevelWindow_IsMaximized, METH_O, NULL}, |
30697 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction)_wrap_TopLevelWindow_IsIconized, METH_O, NULL}, | |
30698 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction)_wrap_TopLevelWindow_GetIcon, METH_O, NULL}, | |
093d3ff1 RD |
30699 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
30700 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30701 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30702 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction)_wrap_TopLevelWindow_IsFullScreen, METH_O, NULL}, |
093d3ff1 | 30703 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30704 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction)_wrap_TopLevelWindow_GetTitle, METH_O, NULL}, |
093d3ff1 RD |
30705 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL}, |
30706 | { (char *)"TopLevelWindow_RequestUserAttention", (PyCFunction) _wrap_TopLevelWindow_RequestUserAttention, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30707 | { (char *)"TopLevelWindow_IsActive", (PyCFunction)_wrap_TopLevelWindow_IsActive, METH_O, NULL}, |
093d3ff1 | 30708 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30709 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction)_wrap_TopLevelWindow_MacGetMetalAppearance, METH_O, NULL}, |
b1fcee84 | 30710 | { (char *)"TopLevelWindow_CenterOnScreen", (PyCFunction) _wrap_TopLevelWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
30711 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL}, |
30712 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30713 | { (char *)"new_PreFrame", (PyCFunction)_wrap_new_PreFrame, METH_NOARGS, NULL}, |
093d3ff1 | 30714 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30715 | { (char *)"Frame_SendSizeEvent", (PyCFunction)_wrap_Frame_SendSizeEvent, METH_O, NULL}, |
093d3ff1 | 30716 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30717 | { (char *)"Frame_GetMenuBar", (PyCFunction)_wrap_Frame_GetMenuBar, METH_O, NULL}, |
093d3ff1 RD |
30718 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL}, |
30719 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30720 | { (char *)"Frame_GetStatusBar", (PyCFunction)_wrap_Frame_GetStatusBar, METH_O, NULL}, |
093d3ff1 RD |
30721 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30722 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30723 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30724 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30725 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30726 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30727 | { (char *)"Frame_GetStatusBarPane", (PyCFunction)_wrap_Frame_GetStatusBarPane, METH_O, NULL}, |
093d3ff1 | 30728 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30729 | { (char *)"Frame_GetToolBar", (PyCFunction)_wrap_Frame_GetToolBar, METH_O, NULL}, |
093d3ff1 RD |
30730 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
30731 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30732 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30733 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30734 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30735 | { (char *)"Frame_swiginit", Frame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30736 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30737 | { (char *)"new_PreDialog", (PyCFunction)_wrap_new_PreDialog, METH_NOARGS, NULL}, |
093d3ff1 RD |
30738 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30739 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30740 | { (char *)"Dialog_GetReturnCode", (PyCFunction)_wrap_Dialog_GetReturnCode, METH_O, NULL}, |
b1fcee84 | 30741 | { (char *)"Dialog_SetAffirmativeId", (PyCFunction) _wrap_Dialog_SetAffirmativeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30742 | { (char *)"Dialog_GetAffirmativeId", (PyCFunction)_wrap_Dialog_GetAffirmativeId, METH_O, NULL}, |
b1fcee84 | 30743 | { (char *)"Dialog_SetEscapeId", (PyCFunction) _wrap_Dialog_SetEscapeId, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30744 | { (char *)"Dialog_GetEscapeId", (PyCFunction)_wrap_Dialog_GetEscapeId, METH_O, NULL}, |
093d3ff1 RD |
30745 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
30746 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
62d32a5f | 30747 | { (char *)"Dialog_CreateStdDialogButtonSizer", (PyCFunction) _wrap_Dialog_CreateStdDialogButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30748 | { (char *)"Dialog_IsModal", (PyCFunction)_wrap_Dialog_IsModal, METH_O, NULL}, |
30749 | { (char *)"Dialog_ShowModal", (PyCFunction)_wrap_Dialog_ShowModal, METH_O, NULL}, | |
093d3ff1 RD |
30750 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL}, |
30751 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30752 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30753 | { (char *)"Dialog_swiginit", Dialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30754 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30755 | { (char *)"new_PreMiniFrame", (PyCFunction)_wrap_new_PreMiniFrame, METH_NOARGS, NULL}, |
093d3ff1 RD |
30756 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30757 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30758 | { (char *)"MiniFrame_swiginit", MiniFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30759 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30760 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30761 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction)_wrap_SplashScreenWindow_GetBitmap, METH_O, NULL}, |
093d3ff1 | 30762 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30763 | { (char *)"SplashScreenWindow_swiginit", SplashScreenWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30764 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30765 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction)_wrap_SplashScreen_GetSplashStyle, METH_O, NULL}, |
30766 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction)_wrap_SplashScreen_GetSplashWindow, METH_O, NULL}, | |
30767 | { (char *)"SplashScreen_GetTimeout", (PyCFunction)_wrap_SplashScreen_GetTimeout, METH_O, NULL}, | |
093d3ff1 | 30768 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30769 | { (char *)"SplashScreen_swiginit", SplashScreen_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30770 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30771 | { (char *)"new_PreStatusBar", (PyCFunction)_wrap_new_PreStatusBar, METH_NOARGS, NULL}, |
093d3ff1 RD |
30772 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30773 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30774 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction)_wrap_StatusBar_GetFieldsCount, METH_O, NULL}, |
093d3ff1 RD |
30775 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, |
30776 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30777 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30778 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30779 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30780 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30781 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30782 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30783 | { (char *)"StatusBar_GetBorderX", (PyCFunction)_wrap_StatusBar_GetBorderX, METH_O, NULL}, |
30784 | { (char *)"StatusBar_GetBorderY", (PyCFunction)_wrap_StatusBar_GetBorderY, METH_O, NULL}, | |
093d3ff1 RD |
30785 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30786 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30787 | { (char *)"StatusBar_swiginit", StatusBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30788 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30789 | { (char *)"new_PreSplitterWindow", (PyCFunction)_wrap_new_PreSplitterWindow, METH_NOARGS, NULL}, |
093d3ff1 | 30790 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30791 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction)_wrap_SplitterWindow_GetWindow1, METH_O, NULL}, |
30792 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction)_wrap_SplitterWindow_GetWindow2, METH_O, NULL}, | |
093d3ff1 | 30793 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30794 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction)_wrap_SplitterWindow_GetSplitMode, METH_O, NULL}, |
093d3ff1 RD |
30795 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30796 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30797 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30798 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30799 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30800 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction)_wrap_SplitterWindow_UpdateSize, METH_O, NULL}, |
30801 | { (char *)"SplitterWindow_IsSplit", (PyCFunction)_wrap_SplitterWindow_IsSplit, METH_O, NULL}, | |
093d3ff1 RD |
30802 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
30803 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30804 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction)_wrap_SplitterWindow_GetSashSize, METH_O, NULL}, |
30805 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction)_wrap_SplitterWindow_GetBorderSize, METH_O, NULL}, | |
093d3ff1 | 30806 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30807 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction)_wrap_SplitterWindow_GetSashPosition, METH_O, NULL}, |
093d3ff1 | 30808 | { (char *)"SplitterWindow_SetSashGravity", (PyCFunction) _wrap_SplitterWindow_SetSashGravity, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30809 | { (char *)"SplitterWindow_GetSashGravity", (PyCFunction)_wrap_SplitterWindow_GetSashGravity, METH_O, NULL}, |
093d3ff1 | 30810 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30811 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction)_wrap_SplitterWindow_GetMinimumPaneSize, METH_O, NULL}, |
093d3ff1 | 30812 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30813 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction)_wrap_SplitterWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 30814 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30815 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction)_wrap_SplitterWindow_GetNeedUpdating, METH_O, NULL}, |
093d3ff1 RD |
30816 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
30817 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30818 | { (char *)"SplitterWindow_swiginit", SplitterWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30819 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30820 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30821 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction)_wrap_SplitterEvent_GetSashPosition, METH_O, NULL}, |
30822 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction)_wrap_SplitterEvent_GetWindowBeingRemoved, METH_O, NULL}, | |
30823 | { (char *)"SplitterEvent_GetX", (PyCFunction)_wrap_SplitterEvent_GetX, METH_O, NULL}, | |
30824 | { (char *)"SplitterEvent_GetY", (PyCFunction)_wrap_SplitterEvent_GetY, METH_O, NULL}, | |
093d3ff1 | 30825 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30826 | { (char *)"SplitterEvent_swiginit", SplitterEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30827 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30828 | { (char *)"new_PreSashWindow", (PyCFunction)_wrap_new_PreSashWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30829 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30830 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30831 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30832 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30833 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30834 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30835 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30836 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction)_wrap_SashWindow_GetDefaultBorderSize, METH_O, NULL}, |
093d3ff1 | 30837 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30838 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction)_wrap_SashWindow_GetExtraBorderSize, METH_O, NULL}, |
093d3ff1 RD |
30839 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30840 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30841 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction)_wrap_SashWindow_GetMinimumSizeX, METH_O, NULL}, |
30842 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction)_wrap_SashWindow_GetMinimumSizeY, METH_O, NULL}, | |
093d3ff1 RD |
30843 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL}, |
30844 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30845 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction)_wrap_SashWindow_GetMaximumSizeX, METH_O, NULL}, |
30846 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction)_wrap_SashWindow_GetMaximumSizeY, METH_O, NULL}, | |
093d3ff1 | 30847 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30848 | { (char *)"SashWindow_SizeWindows", (PyCFunction)_wrap_SashWindow_SizeWindows, METH_O, NULL}, |
093d3ff1 | 30849 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30850 | { (char *)"SashWindow_swiginit", SashWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30851 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30852 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30853 | { (char *)"SashEvent_GetEdge", (PyCFunction)_wrap_SashEvent_GetEdge, METH_O, NULL}, |
093d3ff1 | 30854 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30855 | { (char *)"SashEvent_GetDragRect", (PyCFunction)_wrap_SashEvent_GetDragRect, METH_O, NULL}, |
093d3ff1 | 30856 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30857 | { (char *)"SashEvent_GetDragStatus", (PyCFunction)_wrap_SashEvent_GetDragStatus, METH_O, NULL}, |
093d3ff1 | 30858 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30859 | { (char *)"SashEvent_swiginit", SashEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30860 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30861 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30862 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_O, NULL}, |
093d3ff1 | 30863 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30864 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 30865 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30866 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetSize, METH_O, NULL}, |
093d3ff1 | 30867 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30868 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetOrientation, METH_O, NULL}, |
093d3ff1 | 30869 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30870 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction)_wrap_QueryLayoutInfoEvent_GetAlignment, METH_O, NULL}, |
093d3ff1 | 30871 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30872 | { (char *)"QueryLayoutInfoEvent_swiginit", QueryLayoutInfoEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30873 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30874 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30875 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction)_wrap_CalculateLayoutEvent_GetFlags, METH_O, NULL}, |
093d3ff1 | 30876 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30877 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction)_wrap_CalculateLayoutEvent_GetRect, METH_O, NULL}, |
093d3ff1 | 30878 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30879 | { (char *)"CalculateLayoutEvent_swiginit", CalculateLayoutEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30880 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30881 | { (char *)"new_PreSashLayoutWindow", (PyCFunction)_wrap_new_PreSashLayoutWindow, METH_NOARGS, NULL}, |
093d3ff1 | 30882 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30883 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction)_wrap_SashLayoutWindow_GetAlignment, METH_O, NULL}, |
30884 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction)_wrap_SashLayoutWindow_GetOrientation, METH_O, NULL}, | |
093d3ff1 RD |
30885 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, |
30886 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30887 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30888 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
30889 | { (char *)"SashLayoutWindow_swiginit", SashLayoutWindow_swiginit, METH_VARARGS, NULL}, |
30890 | { (char *)"new_LayoutAlgorithm", (PyCFunction)_wrap_new_LayoutAlgorithm, METH_NOARGS, NULL}, | |
30891 | { (char *)"delete_LayoutAlgorithm", (PyCFunction)_wrap_delete_LayoutAlgorithm, METH_O, NULL}, | |
093d3ff1 RD |
30892 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
30893 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30894 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30895 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30896 | { (char *)"LayoutAlgorithm_swiginit", LayoutAlgorithm_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30897 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30898 | { (char *)"new_PrePopupWindow", (PyCFunction)_wrap_new_PrePopupWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30899 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
30900 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30901 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30902 | { (char *)"PopupWindow_swiginit", PopupWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30903 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30904 | { (char *)"new_PrePopupTransientWindow", (PyCFunction)_wrap_new_PrePopupTransientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30905 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30906 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30907 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction)_wrap_PopupTransientWindow_Dismiss, METH_O, NULL}, |
093d3ff1 | 30908 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30909 | { (char *)"PopupTransientWindow_swiginit", PopupTransientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30910 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
30911 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 30912 | { (char *)"TipWindow_Close", (PyCFunction)_wrap_TipWindow_Close, METH_O, NULL}, |
093d3ff1 | 30913 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30914 | { (char *)"TipWindow_swiginit", TipWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30915 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30916 | { (char *)"new_PreVScrolledWindow", (PyCFunction)_wrap_new_PreVScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
30917 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30918 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30919 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30920 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
30921 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL}, |
30922 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30923 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30924 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30925 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction)_wrap_VScrolledWindow_RefreshAll, METH_O, NULL}, |
30926 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction)_wrap_VScrolledWindow_GetLineCount, METH_O, NULL}, | |
30927 | { (char *)"VScrolledWindow_GetVisibleBegin", (PyCFunction)_wrap_VScrolledWindow_GetVisibleBegin, METH_O, NULL}, | |
30928 | { (char *)"VScrolledWindow_GetVisibleEnd", (PyCFunction)_wrap_VScrolledWindow_GetVisibleEnd, METH_O, NULL}, | |
70b7a5fe | 30929 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30930 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetFirstVisibleLine, METH_O, NULL}, |
30931 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction)_wrap_VScrolledWindow_GetLastVisibleLine, METH_O, NULL}, | |
30932 | { (char *)"VScrolledWindow_FindFirstFromBottom", (PyCFunction) _wrap_VScrolledWindow_FindFirstFromBottom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30933 | { (char *)"VScrolledWindow_GetLinesHeight", (PyCFunction) _wrap_VScrolledWindow_GetLinesHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 30934 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30935 | { (char *)"VScrolledWindow_swiginit", VScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30936 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30937 | { (char *)"new_PreVListBox", (PyCFunction)_wrap_new_PreVListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
30938 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30939 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30940 | { (char *)"VListBox_GetItemCount", (PyCFunction)_wrap_VListBox_GetItemCount, METH_O, NULL}, |
30941 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction)_wrap_VListBox_HasMultipleSelection, METH_O, NULL}, | |
30942 | { (char *)"VListBox_GetSelection", (PyCFunction)_wrap_VListBox_GetSelection, METH_O, NULL}, | |
093d3ff1 RD |
30943 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30944 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30945 | { (char *)"VListBox_GetSelectedCount", (PyCFunction)_wrap_VListBox_GetSelectedCount, METH_O, NULL}, |
30946 | { (char *)"VListBox_GetFirstSelected", (PyCFunction)_wrap_VListBox_GetFirstSelected, METH_O, NULL}, | |
093d3ff1 | 30947 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30948 | { (char *)"VListBox_GetMargins", (PyCFunction)_wrap_VListBox_GetMargins, METH_O, NULL}, |
30949 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction)_wrap_VListBox_GetSelectionBackground, METH_O, NULL}, | |
093d3ff1 | 30950 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30951 | { (char *)"VListBox_Clear", (PyCFunction)_wrap_VListBox_Clear, METH_O, NULL}, |
093d3ff1 RD |
30952 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
30953 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30954 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30955 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
30956 | { (char *)"VListBox_SelectAll", (PyCFunction)_wrap_VListBox_SelectAll, METH_O, NULL}, |
30957 | { (char *)"VListBox_DeselectAll", (PyCFunction)_wrap_VListBox_DeselectAll, METH_O, NULL}, | |
093d3ff1 RD |
30958 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, |
30959 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30960 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
1c71765a RD |
30961 | { (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, |
30962 | { (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 30963 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 30964 | { (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30965 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30966 | { (char *)"new_PreHtmlListBox", (PyCFunction)_wrap_new_PreHtmlListBox, METH_NOARGS, NULL}, |
093d3ff1 RD |
30967 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
30968 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 30969 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30970 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction)_wrap_HtmlListBox_GetFileSystem, METH_O, NULL}, |
e9d6f3a4 | 30971 | { (char *)"HtmlListBox_OnLinkClicked", (PyCFunction) _wrap_HtmlListBox_OnLinkClicked, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 30972 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL}, |
554f62e9 RD |
30973 | { (char *)"HtmlListBox_swiginit", HtmlListBox_swiginit, METH_VARARGS, NULL}, |
30974 | { (char *)"new_TaskBarIcon", (PyCFunction)_wrap_new_TaskBarIcon, METH_NOARGS, NULL}, | |
30975 | { (char *)"delete_TaskBarIcon", (PyCFunction)_wrap_delete_TaskBarIcon, METH_O, NULL}, | |
093d3ff1 | 30976 | { (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
30977 | { (char *)"TaskBarIcon_Destroy", (PyCFunction)_wrap_TaskBarIcon_Destroy, METH_O, NULL}, |
30978 | { (char *)"TaskBarIcon_IsOk", (PyCFunction)_wrap_TaskBarIcon_IsOk, METH_O, NULL}, | |
30979 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction)_wrap_TaskBarIcon_IsIconInstalled, METH_O, NULL}, | |
093d3ff1 | 30980 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30981 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction)_wrap_TaskBarIcon_RemoveIcon, METH_O, NULL}, |
093d3ff1 RD |
30982 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
30983 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30984 | { (char *)"TaskBarIcon_swiginit", TaskBarIcon_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
30985 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
30986 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
30987 | { (char *)"TaskBarIconEvent_swiginit", TaskBarIconEvent_swiginit, METH_VARARGS, NULL}, |
30988 | { (char *)"new_ColourData", (PyCFunction)_wrap_new_ColourData, METH_NOARGS, NULL}, | |
30989 | { (char *)"delete_ColourData", (PyCFunction)_wrap_delete_ColourData, METH_O, NULL}, | |
30990 | { (char *)"ColourData_GetChooseFull", (PyCFunction)_wrap_ColourData_GetChooseFull, METH_O, NULL}, | |
30991 | { (char *)"ColourData_GetColour", (PyCFunction)_wrap_ColourData_GetColour, METH_O, NULL}, | |
093d3ff1 RD |
30992 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
30993 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30994 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30995 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
30996 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 30997 | { (char *)"ColourData_swiginit", ColourData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 30998 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 30999 | { (char *)"ColourDialog_GetColourData", (PyCFunction)_wrap_ColourDialog_GetColourData, METH_O, NULL}, |
093d3ff1 | 31000 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31001 | { (char *)"ColourDialog_swiginit", ColourDialog_swiginit, METH_VARARGS, NULL}, |
7449af73 | 31002 | { (char *)"GetColourFromUser", (PyCFunction) _wrap_GetColourFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31003 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31004 | { (char *)"DirDialog_GetPath", (PyCFunction)_wrap_DirDialog_GetPath, METH_O, NULL}, |
31005 | { (char *)"DirDialog_GetMessage", (PyCFunction)_wrap_DirDialog_GetMessage, METH_O, NULL}, | |
31006 | { (char *)"DirDialog_GetStyle", (PyCFunction)_wrap_DirDialog_GetStyle, METH_O, NULL}, | |
093d3ff1 RD |
31007 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31008 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31009 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31010 | { (char *)"DirDialog_swiginit", DirDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31011 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31012 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31013 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31014 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31015 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31016 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31017 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31018 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31019 | { (char *)"FileDialog_GetMessage", (PyCFunction)_wrap_FileDialog_GetMessage, METH_O, NULL}, |
31020 | { (char *)"FileDialog_GetPath", (PyCFunction)_wrap_FileDialog_GetPath, METH_O, NULL}, | |
31021 | { (char *)"FileDialog_GetDirectory", (PyCFunction)_wrap_FileDialog_GetDirectory, METH_O, NULL}, | |
31022 | { (char *)"FileDialog_GetFilename", (PyCFunction)_wrap_FileDialog_GetFilename, METH_O, NULL}, | |
31023 | { (char *)"FileDialog_GetWildcard", (PyCFunction)_wrap_FileDialog_GetWildcard, METH_O, NULL}, | |
31024 | { (char *)"FileDialog_GetStyle", (PyCFunction)_wrap_FileDialog_GetStyle, METH_O, NULL}, | |
31025 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction)_wrap_FileDialog_GetFilterIndex, METH_O, NULL}, | |
31026 | { (char *)"FileDialog_GetFilenames", (PyCFunction)_wrap_FileDialog_GetFilenames, METH_O, NULL}, | |
31027 | { (char *)"FileDialog_GetPaths", (PyCFunction)_wrap_FileDialog_GetPaths, METH_O, NULL}, | |
093d3ff1 | 31028 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31029 | { (char *)"FileDialog_swiginit", FileDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31030 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31031 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31032 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction)_wrap_MultiChoiceDialog_GetSelections, METH_O, NULL}, |
093d3ff1 | 31033 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31034 | { (char *)"MultiChoiceDialog_swiginit", MultiChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31035 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31036 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetSelection, METH_O, NULL}, |
31037 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction)_wrap_SingleChoiceDialog_GetStringSelection, METH_O, NULL}, | |
093d3ff1 RD |
31038 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
31039 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31040 | { (char *)"SingleChoiceDialog_swiginit", SingleChoiceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31041 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31042 | { (char *)"TextEntryDialog_GetValue", (PyCFunction)_wrap_TextEntryDialog_GetValue, METH_O, NULL}, |
093d3ff1 RD |
31043 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, |
31044 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31045 | { (char *)"TextEntryDialog_swiginit", TextEntryDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31046 | { (char *)"new_PasswordEntryDialog", (PyCFunction) _wrap_new_PasswordEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31047 | { (char *)"PasswordEntryDialog_swigregister", PasswordEntryDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
31048 | { (char *)"PasswordEntryDialog_swiginit", PasswordEntryDialog_swiginit, METH_VARARGS, NULL}, |
31049 | { (char *)"new_FontData", (PyCFunction)_wrap_new_FontData, METH_NOARGS, NULL}, | |
31050 | { (char *)"delete_FontData", (PyCFunction)_wrap_delete_FontData, METH_O, NULL}, | |
093d3ff1 | 31051 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31052 | { (char *)"FontData_GetAllowSymbols", (PyCFunction)_wrap_FontData_GetAllowSymbols, METH_O, NULL}, |
31053 | { (char *)"FontData_GetColour", (PyCFunction)_wrap_FontData_GetColour, METH_O, NULL}, | |
31054 | { (char *)"FontData_GetChosenFont", (PyCFunction)_wrap_FontData_GetChosenFont, METH_O, NULL}, | |
31055 | { (char *)"FontData_GetEnableEffects", (PyCFunction)_wrap_FontData_GetEnableEffects, METH_O, NULL}, | |
31056 | { (char *)"FontData_GetInitialFont", (PyCFunction)_wrap_FontData_GetInitialFont, METH_O, NULL}, | |
31057 | { (char *)"FontData_GetShowHelp", (PyCFunction)_wrap_FontData_GetShowHelp, METH_O, NULL}, | |
093d3ff1 RD |
31058 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL}, |
31059 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31060 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31061 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31062 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31063 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31064 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31065 | { (char *)"FontData_swiginit", FontData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31066 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31067 | { (char *)"FontDialog_GetFontData", (PyCFunction)_wrap_FontDialog_GetFontData, METH_O, NULL}, |
093d3ff1 | 31068 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31069 | { (char *)"FontDialog_swiginit", FontDialog_swiginit, METH_VARARGS, NULL}, |
7449af73 | 31070 | { (char *)"GetFontFromUser", (PyCFunction) _wrap_GetFontFromUser, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31071 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31072 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31073 | { (char *)"MessageDialog_swiginit", MessageDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31074 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
31075 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31076 | { (char *)"ProgressDialog_Resume", (PyCFunction)_wrap_ProgressDialog_Resume, METH_O, NULL}, |
093d3ff1 | 31077 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31078 | { (char *)"ProgressDialog_swiginit", ProgressDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31079 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31080 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction)_wrap_FindDialogEvent_GetFlags, METH_O, NULL}, |
31081 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction)_wrap_FindDialogEvent_GetFindString, METH_O, NULL}, | |
31082 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction)_wrap_FindDialogEvent_GetReplaceString, METH_O, NULL}, | |
31083 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction)_wrap_FindDialogEvent_GetDialog, METH_O, NULL}, | |
093d3ff1 RD |
31084 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31085 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31086 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31087 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31088 | { (char *)"FindDialogEvent_swiginit", FindDialogEvent_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31089 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31090 | { (char *)"delete_FindReplaceData", (PyCFunction)_wrap_delete_FindReplaceData, METH_O, NULL}, |
31091 | { (char *)"FindReplaceData_GetFindString", (PyCFunction)_wrap_FindReplaceData_GetFindString, METH_O, NULL}, | |
31092 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction)_wrap_FindReplaceData_GetReplaceString, METH_O, NULL}, | |
31093 | { (char *)"FindReplaceData_GetFlags", (PyCFunction)_wrap_FindReplaceData_GetFlags, METH_O, NULL}, | |
093d3ff1 RD |
31094 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
31095 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31096 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31097 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31098 | { (char *)"FindReplaceData_swiginit", FindReplaceData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31099 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31100 | { (char *)"new_PreFindReplaceDialog", (PyCFunction)_wrap_new_PreFindReplaceDialog, METH_NOARGS, NULL}, |
093d3ff1 | 31101 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31102 | { (char *)"FindReplaceDialog_GetData", (PyCFunction)_wrap_FindReplaceDialog_GetData, METH_O, NULL}, |
093d3ff1 RD |
31103 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31104 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31105 | { (char *)"FindReplaceDialog_swiginit", FindReplaceDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31106 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31107 | { (char *)"new_PreMDIParentFrame", (PyCFunction)_wrap_new_PreMDIParentFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31108 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31109 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction)_wrap_MDIParentFrame_ActivateNext, METH_O, NULL}, |
31110 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction)_wrap_MDIParentFrame_ActivatePrevious, METH_O, NULL}, | |
31111 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction)_wrap_MDIParentFrame_ArrangeIcons, METH_O, NULL}, | |
31112 | { (char *)"MDIParentFrame_Cascade", (PyCFunction)_wrap_MDIParentFrame_Cascade, METH_O, NULL}, | |
31113 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction)_wrap_MDIParentFrame_GetActiveChild, METH_O, NULL}, | |
31114 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction)_wrap_MDIParentFrame_GetClientWindow, METH_O, NULL}, | |
31115 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction)_wrap_MDIParentFrame_GetToolBar, METH_O, NULL}, | |
31116 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction)_wrap_MDIParentFrame_GetWindowMenu, METH_O, NULL}, | |
093d3ff1 | 31117 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
31118 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL}, |
31119 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31120 | { (char *)"MDIParentFrame_swiginit", MDIParentFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31121 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31122 | { (char *)"new_PreMDIChildFrame", (PyCFunction)_wrap_new_PreMDIChildFrame, METH_NOARGS, NULL}, |
093d3ff1 | 31123 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31124 | { (char *)"MDIChildFrame_Activate", (PyCFunction)_wrap_MDIChildFrame_Activate, METH_O, NULL}, |
093d3ff1 | 31125 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31126 | { (char *)"MDIChildFrame_swiginit", MDIChildFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31127 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31128 | { (char *)"new_PreMDIClientWindow", (PyCFunction)_wrap_new_PreMDIClientWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31129 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL}, |
31130 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31131 | { (char *)"MDIClientWindow_swiginit", MDIClientWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31132 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31133 | { (char *)"new_PrePyWindow", (PyCFunction)_wrap_new_PrePyWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31134 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31135 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 31136 | { (char *)"PyWindow_DoEraseBackground", (PyCFunction) _wrap_PyWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 RD |
31137 | { (char *)"PyWindow_DoMoveWindow", (PyCFunction) _wrap_PyWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31138 | { (char *)"PyWindow_DoSetSize", (PyCFunction) _wrap_PyWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31139 | { (char *)"PyWindow_DoSetClientSize", (PyCFunction) _wrap_PyWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31140 | { (char *)"PyWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31141 | { (char *)"PyWindow_DoGetSize", (PyCFunction)_wrap_PyWindow_DoGetSize, METH_O, NULL}, |
31142 | { (char *)"PyWindow_DoGetClientSize", (PyCFunction)_wrap_PyWindow_DoGetClientSize, METH_O, NULL}, | |
31143 | { (char *)"PyWindow_DoGetPosition", (PyCFunction)_wrap_PyWindow_DoGetPosition, METH_O, NULL}, | |
31144 | { (char *)"PyWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyWindow_DoGetVirtualSize, METH_O, NULL}, | |
31145 | { (char *)"PyWindow_DoGetBestSize", (PyCFunction)_wrap_PyWindow_DoGetBestSize, METH_O, NULL}, | |
31146 | { (char *)"PyWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyWindow_GetDefaultAttributes, METH_O, NULL}, | |
31147 | { (char *)"PyWindow_OnInternalIdle", (PyCFunction)_wrap_PyWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31148 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31149 | { (char *)"PyWindow_swiginit", PyWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31150 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31151 | { (char *)"new_PrePyPanel", (PyCFunction)_wrap_new_PrePyPanel, METH_NOARGS, NULL}, |
093d3ff1 RD |
31152 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31153 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 31154 | { (char *)"PyPanel_DoEraseBackground", (PyCFunction) _wrap_PyPanel_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 RD |
31155 | { (char *)"PyPanel_DoMoveWindow", (PyCFunction) _wrap_PyPanel_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31156 | { (char *)"PyPanel_DoSetSize", (PyCFunction) _wrap_PyPanel_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31157 | { (char *)"PyPanel_DoSetClientSize", (PyCFunction) _wrap_PyPanel_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31158 | { (char *)"PyPanel_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31159 | { (char *)"PyPanel_DoGetSize", (PyCFunction)_wrap_PyPanel_DoGetSize, METH_O, NULL}, |
31160 | { (char *)"PyPanel_DoGetClientSize", (PyCFunction)_wrap_PyPanel_DoGetClientSize, METH_O, NULL}, | |
31161 | { (char *)"PyPanel_DoGetPosition", (PyCFunction)_wrap_PyPanel_DoGetPosition, METH_O, NULL}, | |
31162 | { (char *)"PyPanel_DoGetVirtualSize", (PyCFunction)_wrap_PyPanel_DoGetVirtualSize, METH_O, NULL}, | |
31163 | { (char *)"PyPanel_DoGetBestSize", (PyCFunction)_wrap_PyPanel_DoGetBestSize, METH_O, NULL}, | |
31164 | { (char *)"PyPanel_GetDefaultAttributes", (PyCFunction)_wrap_PyPanel_GetDefaultAttributes, METH_O, NULL}, | |
31165 | { (char *)"PyPanel_OnInternalIdle", (PyCFunction)_wrap_PyPanel_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31166 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31167 | { (char *)"PyPanel_swiginit", PyPanel_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31168 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31169 | { (char *)"new_PrePyScrolledWindow", (PyCFunction)_wrap_new_PrePyScrolledWindow, METH_NOARGS, NULL}, |
093d3ff1 RD |
31170 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31171 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 31172 | { (char *)"PyScrolledWindow_DoEraseBackground", (PyCFunction) _wrap_PyScrolledWindow_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 RD |
31173 | { (char *)"PyScrolledWindow_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31174 | { (char *)"PyScrolledWindow_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31175 | { (char *)"PyScrolledWindow_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31176 | { (char *)"PyScrolledWindow_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31177 | { (char *)"PyScrolledWindow_DoGetSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetSize, METH_O, NULL}, |
31178 | { (char *)"PyScrolledWindow_DoGetClientSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetClientSize, METH_O, NULL}, | |
31179 | { (char *)"PyScrolledWindow_DoGetPosition", (PyCFunction)_wrap_PyScrolledWindow_DoGetPosition, METH_O, NULL}, | |
31180 | { (char *)"PyScrolledWindow_DoGetVirtualSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetVirtualSize, METH_O, NULL}, | |
31181 | { (char *)"PyScrolledWindow_DoGetBestSize", (PyCFunction)_wrap_PyScrolledWindow_DoGetBestSize, METH_O, NULL}, | |
31182 | { (char *)"PyScrolledWindow_GetDefaultAttributes", (PyCFunction)_wrap_PyScrolledWindow_GetDefaultAttributes, METH_O, NULL}, | |
31183 | { (char *)"PyScrolledWindow_OnInternalIdle", (PyCFunction)_wrap_PyScrolledWindow_OnInternalIdle, METH_O, NULL}, | |
093d3ff1 | 31184 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31185 | { (char *)"PyScrolledWindow_swiginit", PyScrolledWindow_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31186 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS, NULL}, |
554f62e9 RD |
31187 | { (char *)"delete_PrintData", (PyCFunction)_wrap_delete_PrintData, METH_O, NULL}, |
31188 | { (char *)"PrintData_GetNoCopies", (PyCFunction)_wrap_PrintData_GetNoCopies, METH_O, NULL}, | |
31189 | { (char *)"PrintData_GetCollate", (PyCFunction)_wrap_PrintData_GetCollate, METH_O, NULL}, | |
31190 | { (char *)"PrintData_GetOrientation", (PyCFunction)_wrap_PrintData_GetOrientation, METH_O, NULL}, | |
31191 | { (char *)"PrintData_Ok", (PyCFunction)_wrap_PrintData_Ok, METH_O, NULL}, | |
31192 | { (char *)"PrintData_GetPrinterName", (PyCFunction)_wrap_PrintData_GetPrinterName, METH_O, NULL}, | |
31193 | { (char *)"PrintData_GetColour", (PyCFunction)_wrap_PrintData_GetColour, METH_O, NULL}, | |
31194 | { (char *)"PrintData_GetDuplex", (PyCFunction)_wrap_PrintData_GetDuplex, METH_O, NULL}, | |
31195 | { (char *)"PrintData_GetPaperId", (PyCFunction)_wrap_PrintData_GetPaperId, METH_O, NULL}, | |
31196 | { (char *)"PrintData_GetPaperSize", (PyCFunction)_wrap_PrintData_GetPaperSize, METH_O, NULL}, | |
31197 | { (char *)"PrintData_GetQuality", (PyCFunction)_wrap_PrintData_GetQuality, METH_O, NULL}, | |
31198 | { (char *)"PrintData_GetBin", (PyCFunction)_wrap_PrintData_GetBin, METH_O, NULL}, | |
31199 | { (char *)"PrintData_GetPrintMode", (PyCFunction)_wrap_PrintData_GetPrintMode, METH_O, NULL}, | |
093d3ff1 RD |
31200 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, |
31201 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31202 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31203 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31204 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31205 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31206 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31207 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31208 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31209 | { (char *)"PrintData_SetBin", (PyCFunction) _wrap_PrintData_SetBin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31210 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31211 | { (char *)"PrintData_GetFilename", (PyCFunction)_wrap_PrintData_GetFilename, METH_O, NULL}, |
093d3ff1 | 31212 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31213 | { (char *)"PrintData_GetPrivData", (PyCFunction)_wrap_PrintData_GetPrivData, METH_O, NULL}, |
b9d6a5f3 | 31214 | { (char *)"PrintData_SetPrivData", (PyCFunction) _wrap_PrintData_SetPrivData, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31215 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31216 | { (char *)"PrintData_swiginit", PrintData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31217 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS, NULL}, |
554f62e9 | 31218 | { (char *)"delete_PageSetupDialogData", (PyCFunction)_wrap_delete_PageSetupDialogData, METH_O, NULL}, |
093d3ff1 RD |
31219 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, |
31220 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31221 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31222 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31223 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31224 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultMinMargins, METH_O, NULL}, |
31225 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction)_wrap_PageSetupDialogData_GetEnableMargins, METH_O, NULL}, | |
31226 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction)_wrap_PageSetupDialogData_GetEnableOrientation, METH_O, NULL}, | |
31227 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePaper, METH_O, NULL}, | |
31228 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction)_wrap_PageSetupDialogData_GetEnablePrinter, METH_O, NULL}, | |
31229 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction)_wrap_PageSetupDialogData_GetEnableHelp, METH_O, NULL}, | |
31230 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction)_wrap_PageSetupDialogData_GetDefaultInfo, METH_O, NULL}, | |
31231 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMarginTopLeft, METH_O, NULL}, | |
31232 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMarginBottomRight, METH_O, NULL}, | |
31233 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_O, NULL}, | |
31234 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction)_wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_O, NULL}, | |
31235 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction)_wrap_PageSetupDialogData_GetPaperId, METH_O, NULL}, | |
31236 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction)_wrap_PageSetupDialogData_GetPaperSize, METH_O, NULL}, | |
31237 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction)_wrap_PageSetupDialogData_GetPrintData, METH_O, NULL}, | |
31238 | { (char *)"PageSetupDialogData_Ok", (PyCFunction)_wrap_PageSetupDialogData_Ok, METH_O, NULL}, | |
093d3ff1 RD |
31239 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
31240 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31241 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31242 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31243 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31244 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31245 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31246 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31247 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31248 | { (char *)"PageSetupDialogData_CalculateIdFromPaperSize", (PyCFunction)_wrap_PageSetupDialogData_CalculateIdFromPaperSize, METH_O, NULL}, |
31249 | { (char *)"PageSetupDialogData_CalculatePaperSizeFromId", (PyCFunction)_wrap_PageSetupDialogData_CalculatePaperSizeFromId, METH_O, NULL}, | |
093d3ff1 | 31250 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31251 | { (char *)"PageSetupDialogData_swiginit", PageSetupDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31252 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31253 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupData, METH_O, NULL}, |
31254 | { (char *)"PageSetupDialog_GetPageSetupDialogData", (PyCFunction)_wrap_PageSetupDialog_GetPageSetupDialogData, METH_O, NULL}, | |
31255 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction)_wrap_PageSetupDialog_ShowModal, METH_O, NULL}, | |
093d3ff1 | 31256 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31257 | { (char *)"PageSetupDialog_swiginit", PageSetupDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31258 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL}, |
554f62e9 RD |
31259 | { (char *)"delete_PrintDialogData", (PyCFunction)_wrap_delete_PrintDialogData, METH_O, NULL}, |
31260 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction)_wrap_PrintDialogData_GetFromPage, METH_O, NULL}, | |
31261 | { (char *)"PrintDialogData_GetToPage", (PyCFunction)_wrap_PrintDialogData_GetToPage, METH_O, NULL}, | |
31262 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction)_wrap_PrintDialogData_GetMinPage, METH_O, NULL}, | |
31263 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction)_wrap_PrintDialogData_GetMaxPage, METH_O, NULL}, | |
31264 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction)_wrap_PrintDialogData_GetNoCopies, METH_O, NULL}, | |
31265 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction)_wrap_PrintDialogData_GetAllPages, METH_O, NULL}, | |
31266 | { (char *)"PrintDialogData_GetSelection", (PyCFunction)_wrap_PrintDialogData_GetSelection, METH_O, NULL}, | |
31267 | { (char *)"PrintDialogData_GetCollate", (PyCFunction)_wrap_PrintDialogData_GetCollate, METH_O, NULL}, | |
31268 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction)_wrap_PrintDialogData_GetPrintToFile, METH_O, NULL}, | |
093d3ff1 RD |
31269 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31270 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31271 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31272 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31273 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31274 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31275 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31276 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31277 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31278 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31279 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31280 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31281 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31282 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction)_wrap_PrintDialogData_GetEnablePrintToFile, METH_O, NULL}, |
31283 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction)_wrap_PrintDialogData_GetEnableSelection, METH_O, NULL}, | |
31284 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction)_wrap_PrintDialogData_GetEnablePageNumbers, METH_O, NULL}, | |
31285 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction)_wrap_PrintDialogData_GetEnableHelp, METH_O, NULL}, | |
31286 | { (char *)"PrintDialogData_Ok", (PyCFunction)_wrap_PrintDialogData_Ok, METH_O, NULL}, | |
31287 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction)_wrap_PrintDialogData_GetPrintData, METH_O, NULL}, | |
093d3ff1 RD |
31288 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, |
31289 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31290 | { (char *)"PrintDialogData_swiginit", PrintDialogData_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31291 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31292 | { (char *)"PrintDialog_ShowModal", (PyCFunction)_wrap_PrintDialog_ShowModal, METH_O, NULL}, |
31293 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction)_wrap_PrintDialog_GetPrintDialogData, METH_O, NULL}, | |
31294 | { (char *)"PrintDialog_GetPrintData", (PyCFunction)_wrap_PrintDialog_GetPrintData, METH_O, NULL}, | |
31295 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction)_wrap_PrintDialog_GetPrintDC, METH_O, NULL}, | |
093d3ff1 | 31296 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31297 | { (char *)"PrintDialog_swiginit", PrintDialog_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31298 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31299 | { (char *)"delete_Printer", (PyCFunction)_wrap_delete_Printer, METH_O, NULL}, |
093d3ff1 RD |
31300 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
31301 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31302 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31303 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31304 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31305 | { (char *)"Printer_GetPrintDialogData", (PyCFunction)_wrap_Printer_GetPrintDialogData, METH_O, NULL}, |
31306 | { (char *)"Printer_GetAbort", (PyCFunction)_wrap_Printer_GetAbort, METH_O, NULL}, | |
31307 | { (char *)"Printer_GetLastError", (PyCFunction)_wrap_Printer_GetLastError, METH_NOARGS, NULL}, | |
093d3ff1 | 31308 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31309 | { (char *)"Printer_swiginit", Printer_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31310 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31311 | { (char *)"delete_Printout", (PyCFunction)_wrap_delete_Printout, METH_O, NULL}, |
093d3ff1 | 31312 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31313 | { (char *)"Printout_GetTitle", (PyCFunction)_wrap_Printout_GetTitle, METH_O, NULL}, |
31314 | { (char *)"Printout_GetDC", (PyCFunction)_wrap_Printout_GetDC, METH_O, NULL}, | |
093d3ff1 RD |
31315 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
31316 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31317 | { (char *)"Printout_GetPageSizePixels", (PyCFunction)_wrap_Printout_GetPageSizePixels, METH_O, NULL}, |
093d3ff1 | 31318 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31319 | { (char *)"Printout_GetPageSizeMM", (PyCFunction)_wrap_Printout_GetPageSizeMM, METH_O, NULL}, |
093d3ff1 | 31320 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31321 | { (char *)"Printout_GetPPIScreen", (PyCFunction)_wrap_Printout_GetPPIScreen, METH_O, NULL}, |
093d3ff1 | 31322 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31323 | { (char *)"Printout_GetPPIPrinter", (PyCFunction)_wrap_Printout_GetPPIPrinter, METH_O, NULL}, |
31324 | { (char *)"Printout_IsPreview", (PyCFunction)_wrap_Printout_IsPreview, METH_O, NULL}, | |
093d3ff1 | 31325 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL}, |
b06b3e70 | 31326 | { (char *)"Printout_OnBeginDocument", (PyCFunction) _wrap_Printout_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31327 | { (char *)"Printout_OnEndDocument", (PyCFunction)_wrap_Printout_OnEndDocument, METH_O, NULL}, |
31328 | { (char *)"Printout_OnBeginPrinting", (PyCFunction)_wrap_Printout_OnBeginPrinting, METH_O, NULL}, | |
31329 | { (char *)"Printout_OnEndPrinting", (PyCFunction)_wrap_Printout_OnEndPrinting, METH_O, NULL}, | |
31330 | { (char *)"Printout_OnPreparePrinting", (PyCFunction)_wrap_Printout_OnPreparePrinting, METH_O, NULL}, | |
b06b3e70 | 31331 | { (char *)"Printout_HasPage", (PyCFunction) _wrap_Printout_HasPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31332 | { (char *)"Printout_GetPageInfo", (PyCFunction)_wrap_Printout_GetPageInfo, METH_O, NULL}, |
093d3ff1 | 31333 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31334 | { (char *)"Printout_swiginit", Printout_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31335 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, |
31336 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL}, | |
554f62e9 | 31337 | { (char *)"PreviewCanvas_swiginit", PreviewCanvas_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31338 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31339 | { (char *)"PreviewFrame_Initialize", (PyCFunction)_wrap_PreviewFrame_Initialize, METH_O, NULL}, |
31340 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction)_wrap_PreviewFrame_CreateControlBar, METH_O, NULL}, | |
31341 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction)_wrap_PreviewFrame_CreateCanvas, METH_O, NULL}, | |
31342 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction)_wrap_PreviewFrame_GetControlBar, METH_O, NULL}, | |
093d3ff1 | 31343 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31344 | { (char *)"PreviewFrame_swiginit", PreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31345 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31346 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction)_wrap_PreviewControlBar_GetZoomControl, METH_O, NULL}, |
093d3ff1 | 31347 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31348 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction)_wrap_PreviewControlBar_GetPrintPreview, METH_O, NULL}, |
31349 | { (char *)"PreviewControlBar_OnNext", (PyCFunction)_wrap_PreviewControlBar_OnNext, METH_O, NULL}, | |
31350 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction)_wrap_PreviewControlBar_OnPrevious, METH_O, NULL}, | |
31351 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction)_wrap_PreviewControlBar_OnFirst, METH_O, NULL}, | |
31352 | { (char *)"PreviewControlBar_OnLast", (PyCFunction)_wrap_PreviewControlBar_OnLast, METH_O, NULL}, | |
31353 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction)_wrap_PreviewControlBar_OnGoto, METH_O, NULL}, | |
093d3ff1 | 31354 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31355 | { (char *)"PreviewControlBar_swiginit", PreviewControlBar_swiginit, METH_VARARGS, NULL}, |
093d3ff1 | 31356 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL}, |
554f62e9 | 31357 | { (char *)"delete_PrintPreview", (PyCFunction)_wrap_delete_PrintPreview, METH_O, NULL}, |
093d3ff1 | 31358 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 31359 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction)_wrap_PrintPreview_GetCurrentPage, METH_O, NULL}, |
093d3ff1 | 31360 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31361 | { (char *)"PrintPreview_GetPrintout", (PyCFunction)_wrap_PrintPreview_GetPrintout, METH_O, NULL}, |
31362 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction)_wrap_PrintPreview_GetPrintoutForPrinting, METH_O, NULL}, | |
093d3ff1 RD |
31363 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31364 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31365 | { (char *)"PrintPreview_GetFrame", (PyCFunction)_wrap_PrintPreview_GetFrame, METH_O, NULL}, |
31366 | { (char *)"PrintPreview_GetCanvas", (PyCFunction)_wrap_PrintPreview_GetCanvas, METH_O, NULL}, | |
093d3ff1 RD |
31367 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
31368 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31369 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31370 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31371 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction)_wrap_PrintPreview_GetPrintDialogData, METH_O, NULL}, |
093d3ff1 | 31372 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
31373 | { (char *)"PrintPreview_GetZoom", (PyCFunction)_wrap_PrintPreview_GetZoom, METH_O, NULL}, |
31374 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction)_wrap_PrintPreview_GetMaxPage, METH_O, NULL}, | |
31375 | { (char *)"PrintPreview_GetMinPage", (PyCFunction)_wrap_PrintPreview_GetMinPage, METH_O, NULL}, | |
31376 | { (char *)"PrintPreview_Ok", (PyCFunction)_wrap_PrintPreview_Ok, METH_O, NULL}, | |
093d3ff1 RD |
31377 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL}, |
31378 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31379 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction)_wrap_PrintPreview_DetermineScaling, METH_O, NULL}, |
093d3ff1 | 31380 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31381 | { (char *)"PrintPreview_swiginit", PrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31382 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL}, |
31383 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 31384 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31385 | { (char *)"PyPrintPreview_swiginit", PyPrintPreview_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31386 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL}, |
31387 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31388 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31389 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
31390 | { (char *)"PyPreviewFrame_Initialize", (PyCFunction)_wrap_PyPreviewFrame_Initialize, METH_O, NULL}, |
31391 | { (char *)"PyPreviewFrame_CreateCanvas", (PyCFunction)_wrap_PyPreviewFrame_CreateCanvas, METH_O, NULL}, | |
31392 | { (char *)"PyPreviewFrame_CreateControlBar", (PyCFunction)_wrap_PyPreviewFrame_CreateControlBar, METH_O, NULL}, | |
093d3ff1 | 31393 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31394 | { (char *)"PyPreviewFrame_swiginit", PyPreviewFrame_swiginit, METH_VARARGS, NULL}, |
093d3ff1 RD |
31395 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL}, |
31396 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31397 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 | 31398 | { (char *)"PyPreviewControlBar_CreateButtons", (PyCFunction)_wrap_PyPreviewControlBar_CreateButtons, METH_O, NULL}, |
b06b3e70 | 31399 | { (char *)"PyPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 | 31400 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 31401 | { (char *)"PyPreviewControlBar_swiginit", PyPreviewControlBar_swiginit, METH_VARARGS, NULL}, |
c32bde28 | 31402 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
31403 | }; |
31404 | ||
31405 | ||
31406 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31407 | ||
31408 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
31409 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31410 | } | |
31411 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31412 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31413 | } | |
31414 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31415 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31416 | } | |
31417 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31418 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31419 | } | |
31420 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31421 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31422 | } | |
31423 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31424 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31425 | } | |
31426 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31427 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31428 | } | |
31429 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
31430 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31431 | } | |
31432 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31433 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31434 | } | |
31435 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31436 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31437 | } | |
31438 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
31439 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31440 | } | |
31441 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31442 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31443 | } | |
31444 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31445 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31446 | } | |
31447 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
31448 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31449 | } | |
31450 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31451 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31452 | } | |
31453 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31454 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31455 | } | |
31456 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31457 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31458 | } | |
31459 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31460 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31461 | } | |
31462 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31463 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31464 | } | |
31465 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31466 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31467 | } | |
31468 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31469 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31470 | } | |
31471 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31472 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31473 | } | |
53aa7709 RD |
31474 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
31475 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
31476 | } | |
d55e5bfc RD |
31477 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
31478 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31479 | } | |
31480 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31481 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31482 | } | |
31483 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31484 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31485 | } | |
31486 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31487 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31488 | } | |
31489 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31490 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31491 | } | |
31492 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31493 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31494 | } | |
31495 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31496 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31497 | } | |
31498 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31499 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31500 | } | |
31501 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31502 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31503 | } | |
31504 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31505 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31506 | } | |
31507 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
31508 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
31509 | } | |
31510 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
31511 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31512 | } | |
31513 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31514 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31515 | } | |
31516 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31517 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31518 | } | |
31519 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31520 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31521 | } | |
31522 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31523 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31524 | } | |
31525 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31526 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31527 | } | |
31528 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31529 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31530 | } | |
31531 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31532 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31533 | } | |
31534 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
31535 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31536 | } | |
31537 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
31538 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31539 | } | |
c1cb24a4 RD |
31540 | static void *_p_wxPasswordEntryDialogTo_p_wxTextEntryDialog(void *x) { |
31541 | return (void *)((wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31542 | } | |
d55e5bfc RD |
31543 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { |
31544 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31545 | } | |
31546 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
31547 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31548 | } | |
31549 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
31550 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31551 | } | |
31552 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31553 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31554 | } | |
31555 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31556 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31557 | } | |
31558 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31559 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31560 | } | |
31561 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31562 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31563 | } | |
c1cb24a4 RD |
31564 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { |
31565 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31566 | } | |
d55e5bfc RD |
31567 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { |
31568 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31569 | } | |
31570 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31571 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31572 | } | |
31573 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
31574 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31575 | } | |
31576 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
31577 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31578 | } | |
31579 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
31580 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31581 | } | |
31582 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
31583 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31584 | } | |
31585 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
31586 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31587 | } | |
31588 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
31589 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
31590 | } | |
31591 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
31592 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
31593 | } | |
31594 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31595 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
31596 | } | |
31597 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
31598 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
31599 | } | |
31600 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
31601 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
31602 | } | |
31603 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
31604 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
31605 | } | |
31606 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
31607 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
31608 | } | |
31609 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
31610 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
31611 | } | |
31612 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
31613 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
31614 | } | |
31615 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
31616 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
31617 | } | |
31618 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31619 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31620 | } | |
31621 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31622 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
31623 | } | |
31624 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
31625 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
31626 | } | |
31627 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
31628 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
31629 | } | |
31630 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
31631 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
31632 | } | |
31633 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31634 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31635 | } | |
31636 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31637 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31638 | } | |
31639 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
31640 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31641 | } | |
31642 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
31643 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31644 | } | |
31645 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31646 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31647 | } | |
31648 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31649 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31650 | } | |
31651 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
31652 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
31653 | } | |
31654 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
31655 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31656 | } | |
31657 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
31658 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31659 | } | |
31660 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
31661 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31662 | } | |
31663 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31664 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
31665 | } | |
31666 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
31667 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
31668 | } | |
5e483524 RD |
31669 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { |
31670 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
31671 | } |
31672 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
31673 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31674 | } | |
d55e5bfc RD |
31675 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { |
31676 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
31677 | } | |
31678 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
31679 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
31680 | } | |
31681 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
31682 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
31683 | } | |
c1cb24a4 RD |
31684 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { |
31685 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
31686 | } | |
d55e5bfc RD |
31687 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { |
31688 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31689 | } | |
31690 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
31691 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31692 | } | |
31693 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
31694 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
31695 | } | |
31696 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
31697 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
31698 | } | |
31699 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
31700 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
31701 | } | |
31702 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
31703 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31704 | } | |
31705 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
31706 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
31707 | } | |
31708 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
31709 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
31710 | } | |
31711 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
31712 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
31713 | } | |
31714 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31715 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31716 | } | |
31717 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
31718 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
31719 | } | |
31720 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
31721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
31722 | } | |
31723 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
31724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
31725 | } | |
31726 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31727 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31728 | } | |
31729 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31730 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31731 | } | |
31732 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31733 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31734 | } | |
31735 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31736 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31737 | } | |
31738 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31739 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31740 | } | |
31741 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31742 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31743 | } | |
31744 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31745 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31746 | } | |
31747 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31748 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31749 | } | |
31750 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31751 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31752 | } | |
31753 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
31754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
31755 | } | |
31756 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31757 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31758 | } | |
31759 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
31760 | return (void *)((wxObject *) ((wxFontData *) x)); | |
31761 | } | |
31762 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
31763 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
31764 | } | |
31765 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31766 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31767 | } | |
31768 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31769 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31770 | } | |
31771 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31772 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31773 | } | |
31774 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
31775 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
31776 | } | |
5e483524 RD |
31777 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
31778 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
d55e5bfc RD |
31779 | } |
31780 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
31781 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
31782 | } | |
31783 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31784 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31785 | } | |
31786 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31787 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31788 | } | |
31789 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31790 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31791 | } | |
31792 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31793 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31794 | } | |
31795 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31796 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31797 | } | |
31798 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31799 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31800 | } | |
31801 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
31802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
31803 | } | |
31804 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31805 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31806 | } | |
31807 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31808 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31809 | } | |
31810 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
31811 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
31812 | } | |
31813 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31814 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31815 | } | |
31816 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
31817 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
31818 | } | |
31819 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31820 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31821 | } | |
31822 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
31823 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
31824 | } | |
31825 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
31826 | return (void *)((wxObject *) ((wxColourData *) x)); | |
31827 | } | |
31828 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31829 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31830 | } | |
31831 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31832 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31833 | } | |
31834 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
31835 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
31836 | } | |
31837 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
31838 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
31839 | } | |
31840 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
31841 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
31842 | } | |
31843 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
31844 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
31845 | } | |
31846 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
31847 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
31848 | } | |
31849 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
31850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
31851 | } | |
c1cb24a4 RD |
31852 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
31853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
31854 | } | |
d55e5bfc RD |
31855 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
31856 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
31857 | } | |
31858 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
31859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
31860 | } | |
31861 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
31862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
31863 | } | |
31864 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31865 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31866 | } | |
31867 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
31868 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
31869 | } | |
31870 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31871 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31872 | } | |
53aa7709 RD |
31873 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
31874 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
31875 | } | |
d55e5bfc RD |
31876 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
31877 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31878 | } | |
31879 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31880 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31881 | } | |
31882 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31883 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31884 | } | |
31885 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31886 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31887 | } | |
31888 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31889 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31890 | } | |
31891 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31892 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31893 | } | |
31894 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31895 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31896 | } | |
31897 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31898 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31899 | } | |
d55e5bfc RD |
31900 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
31901 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31902 | } | |
31903 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31904 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31905 | } | |
31906 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31907 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31908 | } | |
31909 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31910 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31911 | } | |
31912 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31913 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31914 | } | |
31915 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31916 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31917 | } | |
31918 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31919 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31920 | } | |
31921 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31922 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31923 | } | |
31924 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31925 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31926 | } | |
9d7dfdff RD |
31927 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
31928 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
31929 | } | |
d55e5bfc RD |
31930 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
31931 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31932 | } | |
9d7dfdff RD |
31933 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
31934 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31935 | } | |
d55e5bfc RD |
31936 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
31937 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31938 | } | |
31939 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31940 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31941 | } | |
31942 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
31943 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
31944 | } | |
31945 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
31946 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
31947 | } | |
31948 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
31949 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
31950 | } | |
62d32a5f RD |
31951 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
31952 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
31953 | } | |
d55e5bfc RD |
31954 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31955 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31956 | } | |
31957 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
31958 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
31959 | } | |
31960 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31961 | return (void *)((wxObject *) ((wxImage *) x)); | |
31962 | } | |
31963 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
31964 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
31965 | } | |
31966 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
31967 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
31968 | } | |
31969 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31970 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31971 | } | |
31972 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
31973 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
31974 | } | |
31975 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
31976 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
31977 | } | |
31978 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
31979 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
31980 | } | |
31981 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31982 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31983 | } | |
31984 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31985 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31986 | } | |
31987 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31988 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31989 | } | |
31990 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31991 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31992 | } | |
31993 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31994 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31995 | } | |
31996 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31997 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31998 | } | |
31999 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
32000 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
32001 | } | |
32002 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
32003 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
32004 | } | |
32005 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
32006 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
32007 | } | |
32008 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
32009 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
32010 | } | |
32011 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
32012 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
32013 | } | |
32014 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
32015 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32016 | } | |
32017 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
32018 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
32019 | } | |
32020 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
32021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32022 | } | |
32023 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
32024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32025 | } | |
32026 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
32027 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32028 | } | |
32029 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
32030 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
32031 | } | |
32032 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
32033 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32034 | } | |
32035 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
32036 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
32037 | } | |
32038 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
32039 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
32040 | } | |
32041 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
32042 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32043 | } | |
32044 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
32045 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
32046 | } | |
32047 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
32048 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
32049 | } | |
32050 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
32051 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32052 | } | |
32053 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
32054 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32055 | } | |
32056 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
32057 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32058 | } | |
32059 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
8ac8dba0 | 32060 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); |
d55e5bfc RD |
32061 | } |
32062 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
c1cb24a4 | 32063 | return (void *)((wxObject *) ((wxPrintDialog *) x)); |
d55e5bfc RD |
32064 | } |
32065 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32066 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32067 | } | |
32068 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32069 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32070 | } | |
32071 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32072 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32073 | } | |
32074 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32075 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32076 | } | |
32077 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32078 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32079 | } | |
32080 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32081 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32082 | } | |
32083 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32084 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32085 | } | |
32086 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32087 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32088 | } | |
32089 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32090 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32091 | } | |
32092 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
32093 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
32094 | } | |
32095 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
32096 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32097 | } | |
32098 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32099 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32100 | } | |
32101 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32102 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32103 | } | |
32104 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32105 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32106 | } | |
32107 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32108 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32109 | } | |
32110 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
32111 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
32112 | } | |
32113 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
32114 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
32115 | } | |
32116 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32117 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32118 | } | |
32119 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32120 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32121 | } | |
32122 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
32123 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32124 | } | |
32125 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
32126 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32127 | } | |
32128 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
32129 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32130 | } | |
32131 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
32132 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32133 | } | |
32134 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
32135 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32136 | } | |
32137 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
32138 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32139 | } | |
32140 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
32141 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
32142 | } | |
32143 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
32144 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
32145 | } | |
32146 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
32147 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
32148 | } | |
32149 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
32150 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
32151 | } | |
32152 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
32153 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
32154 | } | |
32155 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
32156 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
32157 | } | |
d55e5bfc RD |
32158 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { |
32159 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
32160 | } | |
32161 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
32162 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
32163 | } | |
32164 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
32165 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
32166 | } | |
d55e5bfc RD |
32167 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { |
32168 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
32169 | } | |
32170 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
32171 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
32172 | } | |
c1cb24a4 RD |
32173 | static void *_p_wxPasswordEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32174 | return (void *)((wxTopLevelWindow *) (wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32175 | } | |
d55e5bfc RD |
32176 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { |
32177 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
32178 | } | |
32179 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
32180 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32181 | } | |
32182 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
32183 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32184 | } | |
32185 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
32186 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
32187 | } | |
c1cb24a4 RD |
32188 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { |
32189 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
32190 | } | |
d55e5bfc RD |
32191 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { |
32192 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
32193 | } | |
32194 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
32195 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32196 | } | |
32197 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
32198 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
32199 | } | |
32200 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
32201 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
32202 | } | |
32203 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
32204 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
32205 | } | |
32206 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32207 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32208 | } | |
32209 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
32210 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
32211 | } | |
32212 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
32213 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
32214 | } | |
32215 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
32216 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
32217 | } | |
c1cb24a4 RD |
32218 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
32219 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32220 | } | |
d55e5bfc RD |
32221 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { |
32222 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
32223 | } | |
32224 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
32225 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32226 | } | |
32227 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
32228 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32229 | } | |
32230 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
32231 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
32232 | } | |
32233 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
32234 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
32235 | } | |
32236 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
32237 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
32238 | } | |
d55e5bfc RD |
32239 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { |
32240 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32241 | } | |
32242 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
32243 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
32244 | } | |
32245 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
32246 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
32247 | } | |
32248 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
32249 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
32250 | } | |
32251 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
32252 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
32253 | } | |
32254 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
32255 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
32256 | } | |
32257 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
32258 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
32259 | } | |
32260 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
32261 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
32262 | } | |
32263 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
32264 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
32265 | } | |
32266 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
32267 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
32268 | } | |
c1cb24a4 RD |
32269 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { |
32270 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
32271 | } | |
d55e5bfc RD |
32272 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { |
32273 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32274 | } | |
32275 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32276 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32277 | } | |
32278 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
32279 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
32280 | } | |
32281 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
32282 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
32283 | } | |
32284 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
32285 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
32286 | } | |
32287 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32288 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32289 | } | |
32290 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
32291 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
32292 | } | |
32293 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
32294 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32295 | } | |
32296 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
32297 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32298 | } | |
32299 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
32300 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32301 | } | |
32302 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
32303 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
32304 | } | |
32305 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
32306 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32307 | } | |
32308 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
32309 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
32310 | } | |
32311 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
32312 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
32313 | } | |
32314 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
32315 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
32316 | } | |
32317 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
32318 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
32319 | } | |
32320 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
32321 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
32322 | } | |
d55e5bfc RD |
32323 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { |
32324 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
32325 | } | |
32326 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
32327 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32328 | } | |
32329 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
32330 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32331 | } | |
32332 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
32333 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
32334 | } | |
32335 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
32336 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
32337 | } | |
32338 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
32339 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
32340 | } | |
32341 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
32342 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
32343 | } | |
d55e5bfc RD |
32344 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { |
32345 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
32346 | } | |
32347 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
32348 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
32349 | } | |
32350 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
32351 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
32352 | } | |
32353 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
32354 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
32355 | } | |
c1cb24a4 RD |
32356 | static void *_p_wxPasswordEntryDialogTo_p_wxDialog(void *x) { |
32357 | return (void *)((wxDialog *) (wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
32358 | } | |
d55e5bfc RD |
32359 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { |
32360 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
32361 | } | |
32362 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
32363 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
32364 | } | |
32365 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
32366 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
32367 | } | |
32368 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
32369 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
32370 | } | |
32371 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
32372 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
32373 | } | |
32374 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
32375 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
32376 | } | |
32377 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
32378 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
32379 | } | |
32380 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
32381 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
32382 | } | |
32383 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
32384 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
32385 | } | |
32386 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
32387 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
32388 | } | |
32389 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
32390 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32391 | } | |
32392 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32393 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32394 | } | |
32395 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32396 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32397 | } | |
32398 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32399 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32400 | } | |
53aa7709 RD |
32401 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
32402 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
32403 | } | |
d55e5bfc RD |
32404 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { |
32405 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32406 | } | |
32407 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
32408 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
32409 | } | |
32410 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32411 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32412 | } | |
32413 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32414 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32415 | } | |
32416 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
32417 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
32418 | } | |
32419 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32420 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32421 | } | |
32422 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32423 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32424 | } | |
32425 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
32426 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
32427 | } | |
32428 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
32429 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
32430 | } | |
554f62e9 RD |
32431 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
32432 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0}; | |
32433 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
32434 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
32435 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
32436 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
32437 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
32438 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
32439 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", "wxCalculateLayoutEvent *", 0, 0, (void*)0, 0}; | |
32440 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
32441 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", "wxColourData *", 0, 0, (void*)0, 0}; | |
32442 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", "wxColourDialog *", 0, 0, (void*)0, 0}; | |
32443 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
32444 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
32445 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
32446 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
32447 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
32448 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
32449 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
32450 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
32451 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
32452 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
32453 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0}; | |
32454 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", "wxDirDialog *", 0, 0, (void*)0, 0}; | |
32455 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
32456 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
32457 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
32458 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
32459 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
32460 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
32461 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
32462 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
32463 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
32464 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
32465 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
32466 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
32467 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
32468 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
32469 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
32470 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
32471 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
32472 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
32473 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
32474 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
32475 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
32476 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
32477 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
32478 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
32479 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
32480 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
32481 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
32482 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
32483 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
32484 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
32485 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
32486 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
32487 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
32488 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", "wxFileDialog *", 0, 0, (void*)0, 0}; | |
32489 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0}; | |
32490 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", "wxFindDialogEvent *", 0, 0, (void*)0, 0}; | |
32491 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", "wxFindReplaceData *", 0, 0, (void*)0, 0}; | |
32492 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", "wxFindReplaceDialog *", 0, 0, (void*)0, 0}; | |
32493 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
32494 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", "wxFontData *", 0, 0, (void*)0, 0}; | |
32495 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", "wxFontDialog *", 0, 0, (void*)0, 0}; | |
32496 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0}; | |
e9d6f3a4 | 32497 | static swig_type_info _swigt__p_wxHtmlLinkInfo = {"_p_wxHtmlLinkInfo", "wxHtmlLinkInfo *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
32498 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
32499 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
32500 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", "wxLayoutAlgorithm *", 0, 0, (void*)0, 0}; | |
32501 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", "wxMDIChildFrame *", 0, 0, (void*)0, 0}; | |
32502 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", "wxMDIClientWindow *", 0, 0, (void*)0, 0}; | |
32503 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", "wxMDIParentFrame *", 0, 0, (void*)0, 0}; | |
32504 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0}; | |
32505 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0}; | |
32506 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", "wxMessageDialog *", 0, 0, (void*)0, 0}; | |
32507 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", "wxMiniFrame *", 0, 0, (void*)0, 0}; | |
32508 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", "wxMultiChoiceDialog *", 0, 0, (void*)0, 0}; | |
32509 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
32510 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
32511 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
32512 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
32513 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
32514 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
32515 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
32516 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
32517 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
32518 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
32519 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
32520 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
32521 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
32522 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
32523 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
32524 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
32525 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
32526 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
32527 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
32528 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
32529 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
32530 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
32531 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
32532 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
32533 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
32534 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
32535 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
32536 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
32537 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
32538 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0}; | |
32539 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", "wxPageSetupDialog *", 0, 0, (void*)0, 0}; | |
32540 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", "wxPageSetupDialogData *", 0, 0, (void*)0, 0}; | |
32541 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
32542 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
32543 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", "wxPasswordEntryDialog *", 0, 0, (void*)0, 0}; | |
32544 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; | |
32545 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", "wxPopupWindow *", 0, 0, (void*)0, 0}; | |
32546 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", "wxPreviewCanvas *", 0, 0, (void*)0, 0}; | |
32547 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", "wxPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32548 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", "wxPreviewFrame *", 0, 0, (void*)0, 0}; | |
32549 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
32550 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", "wxPrintDialog *", 0, 0, (void*)0, 0}; | |
32551 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", "wxPrintDialogData *", 0, 0, (void*)0, 0}; | |
32552 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", "wxPrintPreview *", 0, 0, (void*)0, 0}; | |
32553 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", "wxPrinter *", 0, 0, (void*)0, 0}; | |
32554 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", "wxProgressDialog *", 0, 0, (void*)0, 0}; | |
32555 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", "wxPyHtmlListBox *", 0, 0, (void*)0, 0}; | |
32556 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", "wxPyPanel *", 0, 0, (void*)0, 0}; | |
32557 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", "wxPyPopupTransientWindow *", 0, 0, (void*)0, 0}; | |
32558 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", "wxPyPreviewControlBar *", 0, 0, (void*)0, 0}; | |
32559 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", "wxPyPreviewFrame *", 0, 0, (void*)0, 0}; | |
32560 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", "wxPyPrintPreview *", 0, 0, (void*)0, 0}; | |
32561 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", "wxPyPrintout *", 0, 0, (void*)0, 0}; | |
32562 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", "wxPyScrolledWindow *", 0, 0, (void*)0, 0}; | |
32563 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", "wxPyTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32564 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", "wxPyVListBox *", 0, 0, (void*)0, 0}; | |
32565 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", "wxPyVScrolledWindow *", 0, 0, (void*)0, 0}; | |
32566 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", "wxPyWindow *", 0, 0, (void*)0, 0}; | |
32567 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", "wxQueryLayoutInfoEvent *", 0, 0, (void*)0, 0}; | |
32568 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; | |
32569 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
32570 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", "wxSashEvent *", 0, 0, (void*)0, 0}; | |
32571 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", "wxSashLayoutWindow *", 0, 0, (void*)0, 0}; | |
32572 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", "wxSashWindow *", 0, 0, (void*)0, 0}; | |
32573 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0}; | |
32574 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
32575 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", "wxSingleChoiceDialog *", 0, 0, (void*)0, 0}; | |
32576 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
32577 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", "wxSplashScreen *", 0, 0, (void*)0, 0}; | |
32578 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", "wxSplashScreenWindow *", 0, 0, (void*)0, 0}; | |
32579 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", "wxSplitterEvent *", 0, 0, (void*)0, 0}; | |
32580 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", "wxSplitterWindow *", 0, 0, (void*)0, 0}; | |
32581 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", "wxStatusBar *", 0, 0, (void*)0, 0}; | |
32582 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0}; | |
32583 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; | |
32584 | static swig_type_info _swigt__p_wxTaskBarIcon = {"_p_wxTaskBarIcon", "wxTaskBarIcon *", 0, 0, (void*)0, 0}; | |
32585 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", "wxTaskBarIconEvent *", 0, 0, (void*)0, 0}; | |
32586 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", "wxTextEntryDialog *", 0, 0, (void*)0, 0}; | |
32587 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", "wxTipWindow *", 0, 0, (void*)0, 0}; | |
32588 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0}; | |
32589 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", "wxTopLevelWindow *", 0, 0, (void*)0, 0}; | |
32590 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0}; | |
32591 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
7449af73 RD |
32592 | |
32593 | static swig_type_info *swig_type_initial[] = { | |
32594 | &_swigt__p_char, | |
32595 | &_swigt__p_form_ops_t, | |
32596 | &_swigt__p_int, | |
32597 | &_swigt__p_unsigned_char, | |
32598 | &_swigt__p_unsigned_int, | |
32599 | &_swigt__p_unsigned_long, | |
32600 | &_swigt__p_wxANIHandler, | |
32601 | &_swigt__p_wxAcceleratorTable, | |
32602 | &_swigt__p_wxActivateEvent, | |
32603 | &_swigt__p_wxArrayInt, | |
32604 | &_swigt__p_wxBMPHandler, | |
32605 | &_swigt__p_wxBitmap, | |
32606 | &_swigt__p_wxBoxSizer, | |
32607 | &_swigt__p_wxCURHandler, | |
32608 | &_swigt__p_wxCalculateLayoutEvent, | |
32609 | &_swigt__p_wxChildFocusEvent, | |
32610 | &_swigt__p_wxCloseEvent, | |
32611 | &_swigt__p_wxColour, | |
32612 | &_swigt__p_wxColourData, | |
32613 | &_swigt__p_wxColourDialog, | |
32614 | &_swigt__p_wxCommandEvent, | |
32615 | &_swigt__p_wxContextMenuEvent, | |
32616 | &_swigt__p_wxControl, | |
32617 | &_swigt__p_wxControlWithItems, | |
32618 | &_swigt__p_wxDC, | |
32619 | &_swigt__p_wxDateEvent, | |
32620 | &_swigt__p_wxDialog, | |
32621 | &_swigt__p_wxDirDialog, | |
32622 | &_swigt__p_wxDisplayChangedEvent, | |
32623 | &_swigt__p_wxDropFilesEvent, | |
32624 | &_swigt__p_wxDuplexMode, | |
32625 | &_swigt__p_wxEraseEvent, | |
32626 | &_swigt__p_wxEvent, | |
32627 | &_swigt__p_wxEvtHandler, | |
32628 | &_swigt__p_wxFSFile, | |
32629 | &_swigt__p_wxFileDialog, | |
32630 | &_swigt__p_wxFileSystem, | |
32631 | &_swigt__p_wxFindDialogEvent, | |
32632 | &_swigt__p_wxFindReplaceData, | |
32633 | &_swigt__p_wxFindReplaceDialog, | |
32634 | &_swigt__p_wxFlexGridSizer, | |
32635 | &_swigt__p_wxFocusEvent, | |
32636 | &_swigt__p_wxFont, | |
32637 | &_swigt__p_wxFontData, | |
32638 | &_swigt__p_wxFontDialog, | |
32639 | &_swigt__p_wxFrame, | |
32640 | &_swigt__p_wxGBSizerItem, | |
32641 | &_swigt__p_wxGIFHandler, | |
32642 | &_swigt__p_wxGridBagSizer, | |
32643 | &_swigt__p_wxGridSizer, | |
e9d6f3a4 | 32644 | &_swigt__p_wxHtmlLinkInfo, |
7449af73 RD |
32645 | &_swigt__p_wxICOHandler, |
32646 | &_swigt__p_wxIcon, | |
32647 | &_swigt__p_wxIconBundle, | |
32648 | &_swigt__p_wxIconizeEvent, | |
32649 | &_swigt__p_wxIdleEvent, | |
32650 | &_swigt__p_wxImage, | |
32651 | &_swigt__p_wxImageHandler, | |
32652 | &_swigt__p_wxIndividualLayoutConstraint, | |
32653 | &_swigt__p_wxInitDialogEvent, | |
32654 | &_swigt__p_wxJPEGHandler, | |
32655 | &_swigt__p_wxKeyEvent, | |
32656 | &_swigt__p_wxLayoutAlgorithm, | |
32657 | &_swigt__p_wxLayoutConstraints, | |
32658 | &_swigt__p_wxMDIChildFrame, | |
32659 | &_swigt__p_wxMDIClientWindow, | |
32660 | &_swigt__p_wxMDIParentFrame, | |
32661 | &_swigt__p_wxMaximizeEvent, | |
32662 | &_swigt__p_wxMenu, | |
32663 | &_swigt__p_wxMenuBar, | |
32664 | &_swigt__p_wxMenuEvent, | |
32665 | &_swigt__p_wxMenuItem, | |
32666 | &_swigt__p_wxMessageDialog, | |
32667 | &_swigt__p_wxMiniFrame, | |
32668 | &_swigt__p_wxMouseCaptureChangedEvent, | |
32669 | &_swigt__p_wxMouseEvent, | |
32670 | &_swigt__p_wxMoveEvent, | |
32671 | &_swigt__p_wxMultiChoiceDialog, | |
32672 | &_swigt__p_wxNavigationKeyEvent, | |
32673 | &_swigt__p_wxNcPaintEvent, | |
32674 | &_swigt__p_wxNotifyEvent, | |
32675 | &_swigt__p_wxObject, | |
32676 | &_swigt__p_wxPCXHandler, | |
32677 | &_swigt__p_wxPNGHandler, | |
32678 | &_swigt__p_wxPNMHandler, | |
32679 | &_swigt__p_wxPageSetupDialog, | |
32680 | &_swigt__p_wxPageSetupDialogData, | |
32681 | &_swigt__p_wxPaintEvent, | |
32682 | &_swigt__p_wxPaletteChangedEvent, | |
32683 | &_swigt__p_wxPanel, | |
32684 | &_swigt__p_wxPaperSize, | |
32685 | &_swigt__p_wxPasswordEntryDialog, | |
32686 | &_swigt__p_wxPoint, | |
32687 | &_swigt__p_wxPopupWindow, | |
32688 | &_swigt__p_wxPreviewCanvas, | |
32689 | &_swigt__p_wxPreviewControlBar, | |
32690 | &_swigt__p_wxPreviewFrame, | |
32691 | &_swigt__p_wxPrintData, | |
32692 | &_swigt__p_wxPrintDialog, | |
32693 | &_swigt__p_wxPrintDialogData, | |
32694 | &_swigt__p_wxPrintPreview, | |
32695 | &_swigt__p_wxPrinter, | |
32696 | &_swigt__p_wxProgressDialog, | |
32697 | &_swigt__p_wxPyApp, | |
32698 | &_swigt__p_wxPyCommandEvent, | |
32699 | &_swigt__p_wxPyEvent, | |
32700 | &_swigt__p_wxPyHtmlListBox, | |
32701 | &_swigt__p_wxPyImageHandler, | |
32702 | &_swigt__p_wxPyPanel, | |
32703 | &_swigt__p_wxPyPopupTransientWindow, | |
32704 | &_swigt__p_wxPyPreviewControlBar, | |
32705 | &_swigt__p_wxPyPreviewFrame, | |
32706 | &_swigt__p_wxPyPrintPreview, | |
32707 | &_swigt__p_wxPyPrintout, | |
32708 | &_swigt__p_wxPyScrolledWindow, | |
32709 | &_swigt__p_wxPySizer, | |
32710 | &_swigt__p_wxPyTaskBarIcon, | |
32711 | &_swigt__p_wxPyVListBox, | |
32712 | &_swigt__p_wxPyVScrolledWindow, | |
32713 | &_swigt__p_wxPyValidator, | |
32714 | &_swigt__p_wxPyWindow, | |
32715 | &_swigt__p_wxQueryLayoutInfoEvent, | |
32716 | &_swigt__p_wxQueryNewPaletteEvent, | |
32717 | &_swigt__p_wxRect, | |
32718 | &_swigt__p_wxRegion, | |
32719 | &_swigt__p_wxSashEvent, | |
32720 | &_swigt__p_wxSashLayoutWindow, | |
32721 | &_swigt__p_wxSashWindow, | |
32722 | &_swigt__p_wxScrollEvent, | |
32723 | &_swigt__p_wxScrollWinEvent, | |
32724 | &_swigt__p_wxScrolledWindow, | |
32725 | &_swigt__p_wxSetCursorEvent, | |
32726 | &_swigt__p_wxShowEvent, | |
32727 | &_swigt__p_wxSingleChoiceDialog, | |
32728 | &_swigt__p_wxSize, | |
32729 | &_swigt__p_wxSizeEvent, | |
32730 | &_swigt__p_wxSizer, | |
32731 | &_swigt__p_wxSizerItem, | |
32732 | &_swigt__p_wxSplashScreen, | |
32733 | &_swigt__p_wxSplashScreenWindow, | |
32734 | &_swigt__p_wxSplitterEvent, | |
32735 | &_swigt__p_wxSplitterWindow, | |
32736 | &_swigt__p_wxStaticBoxSizer, | |
32737 | &_swigt__p_wxStatusBar, | |
32738 | &_swigt__p_wxStdDialogButtonSizer, | |
32739 | &_swigt__p_wxString, | |
32740 | &_swigt__p_wxSysColourChangedEvent, | |
32741 | &_swigt__p_wxTIFFHandler, | |
32742 | &_swigt__p_wxTaskBarIcon, | |
32743 | &_swigt__p_wxTaskBarIconEvent, | |
32744 | &_swigt__p_wxTextEntryDialog, | |
32745 | &_swigt__p_wxTipWindow, | |
32746 | &_swigt__p_wxToolBar, | |
32747 | &_swigt__p_wxTopLevelWindow, | |
32748 | &_swigt__p_wxUpdateUIEvent, | |
32749 | &_swigt__p_wxValidator, | |
32750 | &_swigt__p_wxVisualAttributes, | |
32751 | &_swigt__p_wxWindow, | |
32752 | &_swigt__p_wxWindowCreateEvent, | |
32753 | &_swigt__p_wxWindowDestroyEvent, | |
32754 | &_swigt__p_wxXPMHandler, | |
7449af73 RD |
32755 | }; |
32756 | ||
32757 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32758 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
32759 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32760 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32761 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32762 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
32763 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
32764 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
32765 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = { {&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32766 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
32767 | static swig_cast_info _swigc__p_wxColourData[] = { {&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
32768 | static swig_cast_info _swigc__p_wxColourDialog[] = { {&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32769 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32770 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32771 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32772 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32773 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32774 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32775 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32776 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32777 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; | |
32778 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32779 | static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxDialog, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0},{0, 0, 0, 0}}; | |
32780 | static swig_cast_info _swigc__p_wxDirDialog[] = { {&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32781 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
32782 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32783 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32784 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32785 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32786 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32787 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32788 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32789 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32790 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32791 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32792 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32793 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32794 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32795 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32796 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32797 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32798 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32799 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32800 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32801 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32802 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32803 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32804 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32805 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32806 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32807 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; | |
32808 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
32809 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
32810 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
32811 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
32812 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
32813 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; | |
32814 | static swig_cast_info _swigc__p_wxFileDialog[] = { {&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32815 | static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
32816 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = { {&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32817 | static swig_cast_info _swigc__p_wxFindReplaceData[] = { {&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
32818 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = { {&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32819 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
32820 | static swig_cast_info _swigc__p_wxFontData[] = { {&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
32821 | static swig_cast_info _swigc__p_wxFontDialog[] = { {&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32822 | static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxFrame, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxFrame, 0, 0}, {&_swigt__p_wxFrame, 0, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxFrame, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxFrame, 0, 0},{0, 0, 0, 0}}; | |
e9d6f3a4 | 32823 | static swig_cast_info _swigc__p_wxHtmlLinkInfo[] = { {&_swigt__p_wxHtmlLinkInfo, 0, 0, 0},{0, 0, 0, 0}}; |
7449af73 RD |
32824 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
32825 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
32826 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = { {&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
32827 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = { {&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32828 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = { {&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32829 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = { {&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32830 | static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
32831 | static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32832 | static swig_cast_info _swigc__p_wxMessageDialog[] = { {&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32833 | static swig_cast_info _swigc__p_wxMiniFrame[] = { {&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32834 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = { {&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32835 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32836 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
32837 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32838 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32839 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
32840 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32841 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32842 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32843 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32844 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32845 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32846 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
32847 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32848 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32849 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32850 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32851 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32852 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32853 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32854 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32855 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32856 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32857 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32858 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32859 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32860 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32861 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32862 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
32863 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
32864 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
32865 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = { {&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32866 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = { {&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
32867 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0},{0, 0, 0, 0}}; | |
32868 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32869 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = { {&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32870 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
32871 | static swig_cast_info _swigc__p_wxPopupWindow[] = { {&_swigt__p_wxPopupWindow, 0, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxPopupWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxPopupWindow, 0, 0},{0, 0, 0, 0}}; | |
32872 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = { {&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
32873 | static swig_cast_info _swigc__p_wxPreviewControlBar[] = { {&_swigt__p_wxPreviewControlBar, 0, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar, 0, 0},{0, 0, 0, 0}}; | |
32874 | static swig_cast_info _swigc__p_wxPreviewFrame[] = { {&_swigt__p_wxPreviewFrame, 0, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxPreviewFrame, 0, 0},{0, 0, 0, 0}}; | |
32875 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
32876 | static swig_cast_info _swigc__p_wxPrintDialog[] = { {&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32877 | static swig_cast_info _swigc__p_wxPrintDialogData[] = { {&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
32878 | static swig_cast_info _swigc__p_wxPrintPreview[] = { {&_swigt__p_wxPrintPreview, 0, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxPrintPreview, 0, 0},{0, 0, 0, 0}}; | |
32879 | static swig_cast_info _swigc__p_wxPrinter[] = { {&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
32880 | static swig_cast_info _swigc__p_wxProgressDialog[] = { {&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32881 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = { {&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
32882 | static swig_cast_info _swigc__p_wxPyPanel[] = { {&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
32883 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = { {&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxPyPopupTransientWindow, 0, 0},{0, 0, 0, 0}}; | |
32884 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = { {&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32885 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = { {&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
32886 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = { {&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
32887 | static swig_cast_info _swigc__p_wxPyPrintout[] = { {&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
32888 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = { {&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32889 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = { {&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32890 | static swig_cast_info _swigc__p_wxPyVListBox[] = { {&_swigt__p_wxPyVListBox, 0, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0},{0, 0, 0, 0}}; | |
32891 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = { {&_swigt__p_wxPyVScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPyVScrolledWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
32892 | static swig_cast_info _swigc__p_wxPyWindow[] = { {&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32893 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = { {&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32894 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
32895 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
32896 | static swig_cast_info _swigc__p_wxSashEvent[] = { {&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32897 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = { {&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32898 | static swig_cast_info _swigc__p_wxSashWindow[] = { {&_swigt__p_wxSashWindow, 0, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxSashWindow, 0, 0},{0, 0, 0, 0}}; | |
32899 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32900 | static swig_cast_info _swigc__p_wxScrolledWindow[] = { {&_swigt__p_wxScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
32901 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = { {&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
32902 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32903 | static swig_cast_info _swigc__p_wxSplashScreen[] = { {&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
32904 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = { {&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32905 | static swig_cast_info _swigc__p_wxSplitterEvent[] = { {&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32906 | static swig_cast_info _swigc__p_wxSplitterWindow[] = { {&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32907 | static swig_cast_info _swigc__p_wxStatusBar[] = { {&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32908 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32909 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
32910 | static swig_cast_info _swigc__p_wxTaskBarIcon[] = { {&_swigt__p_wxTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
32911 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = { {&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32912 | static swig_cast_info _swigc__p_wxTextEntryDialog[] = { {&_swigt__p_wxTextEntryDialog, 0, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxTextEntryDialog, 0, 0},{0, 0, 0, 0}}; | |
32913 | static swig_cast_info _swigc__p_wxTipWindow[] = { {&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
32914 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32915 | static swig_cast_info _swigc__p_wxTopLevelWindow[] = { {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, 0, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxTopLevelWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxTopLevelWindow, 0, 0},{0, 0, 0, 0}}; | |
32916 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
32917 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
7449af73 RD |
32918 | |
32919 | static swig_cast_info *swig_cast_initial[] = { | |
32920 | _swigc__p_char, | |
32921 | _swigc__p_form_ops_t, | |
32922 | _swigc__p_int, | |
32923 | _swigc__p_unsigned_char, | |
32924 | _swigc__p_unsigned_int, | |
32925 | _swigc__p_unsigned_long, | |
32926 | _swigc__p_wxANIHandler, | |
32927 | _swigc__p_wxAcceleratorTable, | |
32928 | _swigc__p_wxActivateEvent, | |
32929 | _swigc__p_wxArrayInt, | |
32930 | _swigc__p_wxBMPHandler, | |
32931 | _swigc__p_wxBitmap, | |
32932 | _swigc__p_wxBoxSizer, | |
32933 | _swigc__p_wxCURHandler, | |
32934 | _swigc__p_wxCalculateLayoutEvent, | |
32935 | _swigc__p_wxChildFocusEvent, | |
32936 | _swigc__p_wxCloseEvent, | |
32937 | _swigc__p_wxColour, | |
32938 | _swigc__p_wxColourData, | |
32939 | _swigc__p_wxColourDialog, | |
32940 | _swigc__p_wxCommandEvent, | |
32941 | _swigc__p_wxContextMenuEvent, | |
32942 | _swigc__p_wxControl, | |
32943 | _swigc__p_wxControlWithItems, | |
32944 | _swigc__p_wxDC, | |
32945 | _swigc__p_wxDateEvent, | |
32946 | _swigc__p_wxDialog, | |
32947 | _swigc__p_wxDirDialog, | |
32948 | _swigc__p_wxDisplayChangedEvent, | |
32949 | _swigc__p_wxDropFilesEvent, | |
32950 | _swigc__p_wxDuplexMode, | |
32951 | _swigc__p_wxEraseEvent, | |
32952 | _swigc__p_wxEvent, | |
32953 | _swigc__p_wxEvtHandler, | |
32954 | _swigc__p_wxFSFile, | |
32955 | _swigc__p_wxFileDialog, | |
32956 | _swigc__p_wxFileSystem, | |
32957 | _swigc__p_wxFindDialogEvent, | |
32958 | _swigc__p_wxFindReplaceData, | |
32959 | _swigc__p_wxFindReplaceDialog, | |
32960 | _swigc__p_wxFlexGridSizer, | |
32961 | _swigc__p_wxFocusEvent, | |
32962 | _swigc__p_wxFont, | |
32963 | _swigc__p_wxFontData, | |
32964 | _swigc__p_wxFontDialog, | |
32965 | _swigc__p_wxFrame, | |
32966 | _swigc__p_wxGBSizerItem, | |
32967 | _swigc__p_wxGIFHandler, | |
32968 | _swigc__p_wxGridBagSizer, | |
32969 | _swigc__p_wxGridSizer, | |
e9d6f3a4 | 32970 | _swigc__p_wxHtmlLinkInfo, |
7449af73 RD |
32971 | _swigc__p_wxICOHandler, |
32972 | _swigc__p_wxIcon, | |
32973 | _swigc__p_wxIconBundle, | |
32974 | _swigc__p_wxIconizeEvent, | |
32975 | _swigc__p_wxIdleEvent, | |
32976 | _swigc__p_wxImage, | |
32977 | _swigc__p_wxImageHandler, | |
32978 | _swigc__p_wxIndividualLayoutConstraint, | |
32979 | _swigc__p_wxInitDialogEvent, | |
32980 | _swigc__p_wxJPEGHandler, | |
32981 | _swigc__p_wxKeyEvent, | |
32982 | _swigc__p_wxLayoutAlgorithm, | |
32983 | _swigc__p_wxLayoutConstraints, | |
32984 | _swigc__p_wxMDIChildFrame, | |
32985 | _swigc__p_wxMDIClientWindow, | |
32986 | _swigc__p_wxMDIParentFrame, | |
32987 | _swigc__p_wxMaximizeEvent, | |
32988 | _swigc__p_wxMenu, | |
32989 | _swigc__p_wxMenuBar, | |
32990 | _swigc__p_wxMenuEvent, | |
32991 | _swigc__p_wxMenuItem, | |
32992 | _swigc__p_wxMessageDialog, | |
32993 | _swigc__p_wxMiniFrame, | |
32994 | _swigc__p_wxMouseCaptureChangedEvent, | |
32995 | _swigc__p_wxMouseEvent, | |
32996 | _swigc__p_wxMoveEvent, | |
32997 | _swigc__p_wxMultiChoiceDialog, | |
32998 | _swigc__p_wxNavigationKeyEvent, | |
32999 | _swigc__p_wxNcPaintEvent, | |
33000 | _swigc__p_wxNotifyEvent, | |
33001 | _swigc__p_wxObject, | |
33002 | _swigc__p_wxPCXHandler, | |
33003 | _swigc__p_wxPNGHandler, | |
33004 | _swigc__p_wxPNMHandler, | |
33005 | _swigc__p_wxPageSetupDialog, | |
33006 | _swigc__p_wxPageSetupDialogData, | |
33007 | _swigc__p_wxPaintEvent, | |
33008 | _swigc__p_wxPaletteChangedEvent, | |
33009 | _swigc__p_wxPanel, | |
33010 | _swigc__p_wxPaperSize, | |
33011 | _swigc__p_wxPasswordEntryDialog, | |
33012 | _swigc__p_wxPoint, | |
33013 | _swigc__p_wxPopupWindow, | |
33014 | _swigc__p_wxPreviewCanvas, | |
33015 | _swigc__p_wxPreviewControlBar, | |
33016 | _swigc__p_wxPreviewFrame, | |
33017 | _swigc__p_wxPrintData, | |
33018 | _swigc__p_wxPrintDialog, | |
33019 | _swigc__p_wxPrintDialogData, | |
33020 | _swigc__p_wxPrintPreview, | |
33021 | _swigc__p_wxPrinter, | |
33022 | _swigc__p_wxProgressDialog, | |
33023 | _swigc__p_wxPyApp, | |
33024 | _swigc__p_wxPyCommandEvent, | |
33025 | _swigc__p_wxPyEvent, | |
33026 | _swigc__p_wxPyHtmlListBox, | |
33027 | _swigc__p_wxPyImageHandler, | |
33028 | _swigc__p_wxPyPanel, | |
33029 | _swigc__p_wxPyPopupTransientWindow, | |
33030 | _swigc__p_wxPyPreviewControlBar, | |
33031 | _swigc__p_wxPyPreviewFrame, | |
33032 | _swigc__p_wxPyPrintPreview, | |
33033 | _swigc__p_wxPyPrintout, | |
33034 | _swigc__p_wxPyScrolledWindow, | |
33035 | _swigc__p_wxPySizer, | |
33036 | _swigc__p_wxPyTaskBarIcon, | |
33037 | _swigc__p_wxPyVListBox, | |
33038 | _swigc__p_wxPyVScrolledWindow, | |
33039 | _swigc__p_wxPyValidator, | |
33040 | _swigc__p_wxPyWindow, | |
33041 | _swigc__p_wxQueryLayoutInfoEvent, | |
33042 | _swigc__p_wxQueryNewPaletteEvent, | |
33043 | _swigc__p_wxRect, | |
33044 | _swigc__p_wxRegion, | |
33045 | _swigc__p_wxSashEvent, | |
33046 | _swigc__p_wxSashLayoutWindow, | |
33047 | _swigc__p_wxSashWindow, | |
33048 | _swigc__p_wxScrollEvent, | |
33049 | _swigc__p_wxScrollWinEvent, | |
33050 | _swigc__p_wxScrolledWindow, | |
33051 | _swigc__p_wxSetCursorEvent, | |
33052 | _swigc__p_wxShowEvent, | |
33053 | _swigc__p_wxSingleChoiceDialog, | |
33054 | _swigc__p_wxSize, | |
554f62e9 RD |
33055 | _swigc__p_wxSizeEvent, |
33056 | _swigc__p_wxSizer, | |
33057 | _swigc__p_wxSizerItem, | |
33058 | _swigc__p_wxSplashScreen, | |
33059 | _swigc__p_wxSplashScreenWindow, | |
33060 | _swigc__p_wxSplitterEvent, | |
33061 | _swigc__p_wxSplitterWindow, | |
33062 | _swigc__p_wxStaticBoxSizer, | |
33063 | _swigc__p_wxStatusBar, | |
33064 | _swigc__p_wxStdDialogButtonSizer, | |
33065 | _swigc__p_wxString, | |
33066 | _swigc__p_wxSysColourChangedEvent, | |
33067 | _swigc__p_wxTIFFHandler, | |
33068 | _swigc__p_wxTaskBarIcon, | |
33069 | _swigc__p_wxTaskBarIconEvent, | |
33070 | _swigc__p_wxTextEntryDialog, | |
33071 | _swigc__p_wxTipWindow, | |
33072 | _swigc__p_wxToolBar, | |
33073 | _swigc__p_wxTopLevelWindow, | |
33074 | _swigc__p_wxUpdateUIEvent, | |
33075 | _swigc__p_wxValidator, | |
33076 | _swigc__p_wxVisualAttributes, | |
33077 | _swigc__p_wxWindow, | |
33078 | _swigc__p_wxWindowCreateEvent, | |
33079 | _swigc__p_wxWindowDestroyEvent, | |
33080 | _swigc__p_wxXPMHandler, | |
33081 | }; | |
33082 | ||
33083 | ||
33084 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33085 | ||
33086 | static swig_const_info swig_const_table[] = { | |
33087 | {0, 0, 0, 0.0, 0, 0}}; | |
33088 | ||
093d3ff1 RD |
33089 | #ifdef __cplusplus |
33090 | } | |
33091 | #endif | |
554f62e9 RD |
33092 | /* ----------------------------------------------------------------------------- |
33093 | * Type initialization: | |
33094 | * This problem is tough by the requirement that no dynamic | |
33095 | * memory is used. Also, since swig_type_info structures store pointers to | |
33096 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
33097 | * to swig_type_info structures, we need some lookup code at initialization. | |
33098 | * The idea is that swig generates all the structures that are needed. | |
33099 | * The runtime then collects these partially filled structures. | |
33100 | * The SWIG_InitializeModule function takes these initial arrays out of | |
33101 | * swig_module, and does all the lookup, filling in the swig_module.types | |
33102 | * array with the correct data and linking the correct swig_cast_info | |
33103 | * structures together. | |
33104 | * | |
33105 | * The generated swig_type_info structures are assigned staticly to an initial | |
33106 | * array. We just loop though that array, and handle each type individually. | |
33107 | * First we lookup if this type has been already loaded, and if so, use the | |
33108 | * loaded structure instead of the generated one. Then we have to fill in the | |
33109 | * cast linked list. The cast data is initially stored in something like a | |
33110 | * two-dimensional array. Each row corresponds to a type (there are the same | |
33111 | * number of rows as there are in the swig_type_initial array). Each entry in | |
33112 | * a column is one of the swig_cast_info structures for that type. | |
33113 | * The cast_initial array is actually an array of arrays, because each row has | |
33114 | * a variable number of columns. So to actually build the cast linked list, | |
33115 | * we find the array of casts associated with the type, and loop through it | |
33116 | * adding the casts to the list. The one last trick we need to do is making | |
33117 | * sure the type pointer in the swig_cast_info struct is correct. | |
33118 | * | |
33119 | * First off, we lookup the cast->type name to see if it is already loaded. | |
33120 | * There are three cases to handle: | |
33121 | * 1) If the cast->type has already been loaded AND the type we are adding | |
33122 | * casting info to has not been loaded (it is in this module), THEN we | |
33123 | * replace the cast->type pointer with the type pointer that has already | |
33124 | * been loaded. | |
33125 | * 2) If BOTH types (the one we are adding casting info to, and the | |
33126 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
33127 | * the previous module so we just ignore it. | |
33128 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
33129 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
33130 | * be correct. | |
33131 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 33132 | |
093d3ff1 | 33133 | #ifdef __cplusplus |
554f62e9 RD |
33134 | extern "C" { |
33135 | #if 0 | |
33136 | } /* c-mode */ | |
33137 | #endif | |
33138 | #endif | |
33139 | ||
33140 | #if 0 | |
33141 | #define SWIGRUNTIME_DEBUG | |
33142 | #endif | |
33143 | ||
33144 | SWIGRUNTIME void | |
33145 | SWIG_InitializeModule(void *clientdata) { | |
33146 | size_t i; | |
33147 | swig_module_info *module_head; | |
33148 | static int init_run = 0; | |
33149 | ||
33150 | clientdata = clientdata; | |
33151 | ||
33152 | if (init_run) return; | |
33153 | init_run = 1; | |
33154 | ||
33155 | /* Initialize the swig_module */ | |
33156 | swig_module.type_initial = swig_type_initial; | |
33157 | swig_module.cast_initial = swig_cast_initial; | |
33158 | ||
33159 | /* Try and load any already created modules */ | |
33160 | module_head = SWIG_GetModule(clientdata); | |
33161 | if (module_head) { | |
33162 | swig_module.next = module_head->next; | |
33163 | module_head->next = &swig_module; | |
33164 | } else { | |
33165 | /* This is the first module loaded */ | |
33166 | swig_module.next = &swig_module; | |
33167 | SWIG_SetModule(clientdata, &swig_module); | |
33168 | } | |
33169 | ||
33170 | /* Now work on filling in swig_module.types */ | |
33171 | #ifdef SWIGRUNTIME_DEBUG | |
33172 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
33173 | #endif | |
33174 | for (i = 0; i < swig_module.size; ++i) { | |
33175 | swig_type_info *type = 0; | |
33176 | swig_type_info *ret; | |
33177 | swig_cast_info *cast; | |
d55e5bfc | 33178 | |
554f62e9 RD |
33179 | #ifdef SWIGRUNTIME_DEBUG |
33180 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33181 | #endif | |
d55e5bfc | 33182 | |
554f62e9 RD |
33183 | /* if there is another module already loaded */ |
33184 | if (swig_module.next != &swig_module) { | |
33185 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
093d3ff1 | 33186 | } |
554f62e9 RD |
33187 | if (type) { |
33188 | /* Overwrite clientdata field */ | |
33189 | #ifdef SWIGRUNTIME_DEBUG | |
33190 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
33191 | #endif | |
33192 | if (swig_module.type_initial[i]->clientdata) { | |
33193 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
33194 | #ifdef SWIGRUNTIME_DEBUG | |
33195 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
33196 | #endif | |
33197 | } | |
33198 | } else { | |
33199 | type = swig_module.type_initial[i]; | |
093d3ff1 | 33200 | } |
554f62e9 RD |
33201 | |
33202 | /* Insert casting types */ | |
33203 | cast = swig_module.cast_initial[i]; | |
33204 | while (cast->type) { | |
33205 | /* Don't need to add information already in the list */ | |
33206 | ret = 0; | |
33207 | #ifdef SWIGRUNTIME_DEBUG | |
33208 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
33209 | #endif | |
33210 | if (swig_module.next != &swig_module) { | |
33211 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
33212 | #ifdef SWIGRUNTIME_DEBUG | |
33213 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
33214 | #endif | |
33215 | } | |
33216 | if (ret) { | |
33217 | if (type == swig_module.type_initial[i]) { | |
33218 | #ifdef SWIGRUNTIME_DEBUG | |
33219 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
33220 | #endif | |
33221 | cast->type = ret; | |
33222 | ret = 0; | |
33223 | } else { | |
33224 | /* Check for casting already in the list */ | |
33225 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
33226 | #ifdef SWIGRUNTIME_DEBUG | |
33227 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
33228 | #endif | |
33229 | if (!ocast) ret = 0; | |
33230 | } | |
33231 | } | |
33232 | ||
33233 | if (!ret) { | |
33234 | #ifdef SWIGRUNTIME_DEBUG | |
33235 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
33236 | #endif | |
33237 | if (type->cast) { | |
33238 | type->cast->prev = cast; | |
33239 | cast->next = type->cast; | |
33240 | } | |
33241 | type->cast = cast; | |
33242 | } | |
33243 | cast++; | |
093d3ff1 | 33244 | } |
554f62e9 RD |
33245 | /* Set entry in modules->types array equal to the type */ |
33246 | swig_module.types[i] = type; | |
33247 | } | |
33248 | swig_module.types[i] = 0; | |
33249 | ||
33250 | #ifdef SWIGRUNTIME_DEBUG | |
33251 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33252 | for (i = 0; i < swig_module.size; ++i) { | |
33253 | int j = 0; | |
33254 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
33255 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33256 | while (cast->type) { | |
33257 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
33258 | cast++; | |
33259 | ++j; | |
33260 | } | |
33261 | printf("---- Total casts: %d\n",j); | |
33262 | } | |
33263 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33264 | #endif | |
33265 | } | |
33266 | ||
33267 | /* This function will propagate the clientdata field of type to | |
33268 | * any new swig_type_info structures that have been added into the list | |
33269 | * of equivalent types. It is like calling | |
33270 | * SWIG_TypeClientData(type, clientdata) a second time. | |
33271 | */ | |
33272 | SWIGRUNTIME void | |
33273 | SWIG_PropagateClientData(void) { | |
33274 | size_t i; | |
33275 | swig_cast_info *equiv; | |
33276 | static int init_run = 0; | |
33277 | ||
33278 | if (init_run) return; | |
33279 | init_run = 1; | |
33280 | ||
33281 | for (i = 0; i < swig_module.size; i++) { | |
33282 | if (swig_module.types[i]->clientdata) { | |
33283 | equiv = swig_module.types[i]->cast; | |
33284 | while (equiv) { | |
33285 | if (!equiv->converter) { | |
33286 | if (equiv->type && !equiv->type->clientdata) | |
33287 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
33288 | } | |
33289 | equiv = equiv->next; | |
33290 | } | |
093d3ff1 | 33291 | } |
554f62e9 RD |
33292 | } |
33293 | } | |
33294 | ||
33295 | #ifdef __cplusplus | |
33296 | #if 0 | |
33297 | { | |
33298 | /* c-mode */ | |
33299 | #endif | |
33300 | } | |
33301 | #endif | |
33302 | ||
33303 | ||
33304 | ||
33305 | #ifdef __cplusplus | |
33306 | extern "C" { | |
33307 | #endif | |
33308 | ||
33309 | /* Python-specific SWIG API */ | |
33310 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
33311 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
33312 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
33313 | ||
33314 | /* ----------------------------------------------------------------------------- | |
33315 | * global variable support code. | |
33316 | * ----------------------------------------------------------------------------- */ | |
33317 | ||
33318 | typedef struct swig_globalvar { | |
33319 | char *name; /* Name of global variable */ | |
33320 | PyObject *(*get_attr)(void); /* Return the current value */ | |
33321 | int (*set_attr)(PyObject *); /* Set the value */ | |
33322 | struct swig_globalvar *next; | |
33323 | } swig_globalvar; | |
33324 | ||
33325 | typedef struct swig_varlinkobject { | |
33326 | PyObject_HEAD | |
33327 | swig_globalvar *vars; | |
33328 | } swig_varlinkobject; | |
33329 | ||
33330 | SWIGINTERN PyObject * | |
33331 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
33332 | return PyString_FromString("<Swig global variables>"); | |
33333 | } | |
33334 | ||
33335 | SWIGINTERN PyObject * | |
33336 | swig_varlink_str(swig_varlinkobject *v) { | |
33337 | PyObject *str = PyString_FromString("("); | |
33338 | swig_globalvar *var; | |
33339 | for (var = v->vars; var; var=var->next) { | |
33340 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
33341 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
33342 | } | |
33343 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
33344 | return str; | |
33345 | } | |
33346 | ||
33347 | SWIGINTERN int | |
33348 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
33349 | PyObject *str = swig_varlink_str(v); | |
33350 | fprintf(fp,"Swig global variables "); | |
33351 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
33352 | Py_DECREF(str); | |
33353 | return 0; | |
33354 | } | |
33355 | ||
33356 | SWIGINTERN void | |
33357 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
33358 | swig_globalvar *var = v->vars; | |
33359 | while (var) { | |
33360 | swig_globalvar *n = var->next; | |
33361 | free(var->name); | |
33362 | free(var); | |
33363 | var = n; | |
093d3ff1 | 33364 | } |
554f62e9 RD |
33365 | } |
33366 | ||
33367 | SWIGINTERN PyObject * | |
33368 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
33369 | PyObject *res = NULL; | |
33370 | swig_globalvar *var = v->vars; | |
33371 | while (var) { | |
33372 | if (strcmp(var->name,n) == 0) { | |
33373 | res = (*var->get_attr)(); | |
33374 | break; | |
33375 | } | |
33376 | var = var->next; | |
093d3ff1 | 33377 | } |
554f62e9 RD |
33378 | if (res == NULL && !PyErr_Occurred()) { |
33379 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 33380 | } |
554f62e9 RD |
33381 | return res; |
33382 | } | |
33383 | ||
33384 | SWIGINTERN int | |
33385 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
33386 | int res = 1; | |
33387 | swig_globalvar *var = v->vars; | |
33388 | while (var) { | |
33389 | if (strcmp(var->name,n) == 0) { | |
33390 | res = (*var->set_attr)(p); | |
33391 | break; | |
33392 | } | |
33393 | var = var->next; | |
093d3ff1 | 33394 | } |
554f62e9 RD |
33395 | if (res == 1 && !PyErr_Occurred()) { |
33396 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
093d3ff1 | 33397 | } |
554f62e9 RD |
33398 | return res; |
33399 | } | |
33400 | ||
33401 | SWIGINTERN PyTypeObject* | |
33402 | swig_varlink_type(void) { | |
33403 | static char varlink__doc__[] = "Swig var link object"; | |
33404 | static PyTypeObject varlink_type; | |
33405 | static int type_init = 0; | |
33406 | if (!type_init) { | |
33407 | const PyTypeObject tmp | |
33408 | = { | |
33409 | PyObject_HEAD_INIT(NULL) | |
33410 | 0, /* Number of items in variable part (ob_size) */ | |
33411 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
33412 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
33413 | 0, /* Itemsize (tp_itemsize) */ | |
33414 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
33415 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33416 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33417 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33418 | 0, /* tp_compare */ | |
33419 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33420 | 0, /* tp_as_number */ | |
33421 | 0, /* tp_as_sequence */ | |
33422 | 0, /* tp_as_mapping */ | |
33423 | 0, /* tp_hash */ | |
33424 | 0, /* tp_call */ | |
33425 | (reprfunc)swig_varlink_str, /* tp_str */ | |
33426 | 0, /* tp_getattro */ | |
33427 | 0, /* tp_setattro */ | |
33428 | 0, /* tp_as_buffer */ | |
33429 | 0, /* tp_flags */ | |
33430 | varlink__doc__, /* tp_doc */ | |
33431 | 0, /* tp_traverse */ | |
33432 | 0, /* tp_clear */ | |
33433 | 0, /* tp_richcompare */ | |
33434 | 0, /* tp_weaklistoffset */ | |
33435 | #if PY_VERSION_HEX >= 0x02020000 | |
33436 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33437 | #endif | |
33438 | #if PY_VERSION_HEX >= 0x02030000 | |
33439 | 0, /* tp_del */ | |
33440 | #endif | |
33441 | #ifdef COUNT_ALLOCS | |
33442 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33443 | #endif | |
33444 | }; | |
33445 | varlink_type = tmp; | |
33446 | varlink_type.ob_type = &PyType_Type; | |
33447 | type_init = 1; | |
093d3ff1 | 33448 | } |
554f62e9 RD |
33449 | return &varlink_type; |
33450 | } | |
33451 | ||
33452 | /* Create a variable linking object for use later */ | |
33453 | SWIGINTERN PyObject * | |
33454 | SWIG_Python_newvarlink(void) { | |
33455 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
33456 | if (result) { | |
33457 | result->vars = 0; | |
33458 | } | |
33459 | return ((PyObject*) result); | |
33460 | } | |
33461 | ||
33462 | SWIGINTERN void | |
33463 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33464 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
33465 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33466 | if (gv) { | |
33467 | size_t size = strlen(name)+1; | |
33468 | gv->name = (char *)malloc(size); | |
33469 | if (gv->name) { | |
33470 | strncpy(gv->name,name,size); | |
33471 | gv->get_attr = get_attr; | |
33472 | gv->set_attr = set_attr; | |
33473 | gv->next = v->vars; | |
33474 | } | |
093d3ff1 | 33475 | } |
554f62e9 RD |
33476 | v->vars = gv; |
33477 | } | |
33478 | ||
33479 | SWIGINTERN PyObject * | |
33480 | SWIG_globals() { | |
33481 | static PyObject *_SWIG_globals = 0; | |
33482 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
33483 | return _SWIG_globals; | |
33484 | } | |
33485 | ||
33486 | /* ----------------------------------------------------------------------------- | |
33487 | * constants/methods manipulation | |
33488 | * ----------------------------------------------------------------------------- */ | |
33489 | ||
33490 | /* Install Constants */ | |
33491 | SWIGINTERN void | |
33492 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33493 | PyObject *obj = 0; | |
33494 | size_t i; | |
33495 | for (i = 0; constants[i].type; ++i) { | |
33496 | switch(constants[i].type) { | |
33497 | case SWIG_PY_POINTER: | |
33498 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33499 | break; | |
33500 | case SWIG_PY_BINARY: | |
33501 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33502 | break; | |
33503 | default: | |
33504 | obj = 0; | |
33505 | break; | |
33506 | } | |
33507 | if (obj) { | |
33508 | PyDict_SetItemString(d, constants[i].name, obj); | |
33509 | Py_DECREF(obj); | |
33510 | } | |
093d3ff1 | 33511 | } |
554f62e9 RD |
33512 | } |
33513 | ||
33514 | /* -----------------------------------------------------------------------------*/ | |
33515 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33516 | /* -----------------------------------------------------------------------------*/ | |
33517 | ||
33518 | SWIGINTERN void | |
33519 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33520 | swig_const_info *const_table, | |
33521 | swig_type_info **types, | |
33522 | swig_type_info **types_initial) { | |
33523 | size_t i; | |
33524 | for (i = 0; methods[i].ml_name; ++i) { | |
33525 | char *c = methods[i].ml_doc; | |
33526 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
33527 | int j; | |
33528 | swig_const_info *ci = 0; | |
33529 | char *name = c + 10; | |
33530 | for (j = 0; const_table[j].type; ++j) { | |
33531 | if (strncmp(const_table[j].name, name, | |
33532 | strlen(const_table[j].name)) == 0) { | |
33533 | ci = &(const_table[j]); | |
33534 | break; | |
33535 | } | |
33536 | } | |
33537 | if (ci) { | |
33538 | size_t shift = (ci->ptype) - types; | |
33539 | swig_type_info *ty = types_initial[shift]; | |
33540 | size_t ldoc = (c - methods[i].ml_doc); | |
33541 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33542 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33543 | if (ndoc) { | |
33544 | char *buff = ndoc; | |
33545 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
33546 | if (ptr) { | |
33547 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33548 | buff += ldoc; | |
33549 | strncpy(buff, "swig_ptr: ", 10); | |
33550 | buff += 10; | |
33551 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33552 | methods[i].ml_doc = ndoc; | |
33553 | } | |
33554 | } | |
33555 | } | |
33556 | } | |
093d3ff1 | 33557 | } |
554f62e9 RD |
33558 | } |
33559 | ||
33560 | #ifdef __cplusplus | |
33561 | } | |
33562 | #endif | |
33563 | ||
33564 | /* -----------------------------------------------------------------------------* | |
33565 | * Partial Init method | |
33566 | * -----------------------------------------------------------------------------*/ | |
33567 | ||
33568 | #ifdef __cplusplus | |
33569 | extern "C" | |
33570 | #endif | |
33571 | SWIGEXPORT void SWIG_init(void) { | |
33572 | PyObject *m, *d; | |
33573 | ||
33574 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33575 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
33576 | ||
33577 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33578 | d = PyModule_GetDict(m); | |
33579 | ||
33580 | SWIG_InitializeModule(0); | |
33581 | SWIG_InstallConstants(d,swig_const_table); | |
33582 | ||
33583 | ||
33584 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
33585 | SWIG_addvarlink(SWIG_globals(),(char*)"FrameNameStr",FrameNameStr_get, FrameNameStr_set); | |
33586 | SWIG_addvarlink(SWIG_globals(),(char*)"DialogNameStr",DialogNameStr_get, DialogNameStr_set); | |
33587 | SWIG_addvarlink(SWIG_globals(),(char*)"StatusLineNameStr",StatusLineNameStr_get, StatusLineNameStr_set); | |
33588 | SWIG_addvarlink(SWIG_globals(),(char*)"ToolBarNameStr",ToolBarNameStr_get, ToolBarNameStr_set); | |
33589 | SWIG_Python_SetConstant(d, "STAY_ON_TOP",SWIG_From_int(static_cast< int >(wxSTAY_ON_TOP))); | |
33590 | SWIG_Python_SetConstant(d, "ICONIZE",SWIG_From_int(static_cast< int >(wxICONIZE))); | |
33591 | SWIG_Python_SetConstant(d, "MINIMIZE",SWIG_From_int(static_cast< int >(wxMINIMIZE))); | |
33592 | SWIG_Python_SetConstant(d, "MAXIMIZE",SWIG_From_int(static_cast< int >(wxMAXIMIZE))); | |
33593 | SWIG_Python_SetConstant(d, "CLOSE_BOX",SWIG_From_int(static_cast< int >(wxCLOSE_BOX))); | |
33594 | SWIG_Python_SetConstant(d, "THICK_FRAME",SWIG_From_int(static_cast< int >(wxTHICK_FRAME))); | |
33595 | SWIG_Python_SetConstant(d, "SYSTEM_MENU",SWIG_From_int(static_cast< int >(wxSYSTEM_MENU))); | |
33596 | SWIG_Python_SetConstant(d, "MINIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMINIMIZE_BOX))); | |
33597 | SWIG_Python_SetConstant(d, "MAXIMIZE_BOX",SWIG_From_int(static_cast< int >(wxMAXIMIZE_BOX))); | |
33598 | SWIG_Python_SetConstant(d, "TINY_CAPTION_HORIZ",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_HORIZ))); | |
33599 | SWIG_Python_SetConstant(d, "TINY_CAPTION_VERT",SWIG_From_int(static_cast< int >(wxTINY_CAPTION_VERT))); | |
33600 | SWIG_Python_SetConstant(d, "RESIZE_BOX",SWIG_From_int(static_cast< int >(wxRESIZE_BOX))); | |
33601 | SWIG_Python_SetConstant(d, "RESIZE_BORDER",SWIG_From_int(static_cast< int >(wxRESIZE_BORDER))); | |
33602 | SWIG_Python_SetConstant(d, "DIALOG_NO_PARENT",SWIG_From_int(static_cast< int >(wxDIALOG_NO_PARENT))); | |
33603 | SWIG_Python_SetConstant(d, "DEFAULT_FRAME_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_FRAME_STYLE))); | |
33604 | SWIG_Python_SetConstant(d, "DEFAULT_DIALOG_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_DIALOG_STYLE))); | |
33605 | SWIG_Python_SetConstant(d, "FRAME_TOOL_WINDOW",SWIG_From_int(static_cast< int >(wxFRAME_TOOL_WINDOW))); | |
33606 | SWIG_Python_SetConstant(d, "FRAME_FLOAT_ON_PARENT",SWIG_From_int(static_cast< int >(wxFRAME_FLOAT_ON_PARENT))); | |
33607 | SWIG_Python_SetConstant(d, "FRAME_NO_WINDOW_MENU",SWIG_From_int(static_cast< int >(wxFRAME_NO_WINDOW_MENU))); | |
33608 | SWIG_Python_SetConstant(d, "FRAME_NO_TASKBAR",SWIG_From_int(static_cast< int >(wxFRAME_NO_TASKBAR))); | |
33609 | SWIG_Python_SetConstant(d, "FRAME_SHAPED",SWIG_From_int(static_cast< int >(wxFRAME_SHAPED))); | |
33610 | SWIG_Python_SetConstant(d, "FRAME_DRAWER",SWIG_From_int(static_cast< int >(wxFRAME_DRAWER))); | |
33611 | SWIG_Python_SetConstant(d, "FRAME_EX_METAL",SWIG_From_int(static_cast< int >(wxFRAME_EX_METAL))); | |
33612 | SWIG_Python_SetConstant(d, "DIALOG_EX_METAL",SWIG_From_int(static_cast< int >(wxDIALOG_EX_METAL))); | |
33613 | SWIG_Python_SetConstant(d, "DIALOG_MODAL",SWIG_From_int(static_cast< int >(wxDIALOG_MODAL))); | |
33614 | SWIG_Python_SetConstant(d, "DIALOG_MODELESS",SWIG_From_int(static_cast< int >(wxDIALOG_MODELESS))); | |
33615 | SWIG_Python_SetConstant(d, "USER_COLOURS",SWIG_From_int(static_cast< int >(wxUSER_COLOURS))); | |
33616 | SWIG_Python_SetConstant(d, "NO_3D",SWIG_From_int(static_cast< int >(wxNO_3D))); | |
33617 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOMENUBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOMENUBAR))); | |
33618 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOTOOLBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOTOOLBAR))); | |
33619 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOSTATUSBAR",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOSTATUSBAR))); | |
33620 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOBORDER",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOBORDER))); | |
33621 | SWIG_Python_SetConstant(d, "FULLSCREEN_NOCAPTION",SWIG_From_int(static_cast< int >(wxFULLSCREEN_NOCAPTION))); | |
33622 | SWIG_Python_SetConstant(d, "FULLSCREEN_ALL",SWIG_From_int(static_cast< int >(wxFULLSCREEN_ALL))); | |
33623 | SWIG_Python_SetConstant(d, "TOPLEVEL_EX_DIALOG",SWIG_From_int(static_cast< int >(wxTOPLEVEL_EX_DIALOG))); | |
33624 | SWIG_Python_SetConstant(d, "USER_ATTENTION_INFO",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_INFO))); | |
33625 | SWIG_Python_SetConstant(d, "USER_ATTENTION_ERROR",SWIG_From_int(static_cast< int >(wxUSER_ATTENTION_ERROR))); | |
33626 | SWIG_Python_SetConstant(d, "Dialog_ButtonSizerFlags",SWIG_From_int(static_cast< int >(wxDialog::ButtonSizerFlags))); | |
33627 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_PARENT",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_PARENT))); | |
33628 | SWIG_Python_SetConstant(d, "SPLASH_CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxSPLASH_CENTRE_ON_SCREEN))); | |
33629 | SWIG_Python_SetConstant(d, "SPLASH_NO_CENTRE",SWIG_From_int(static_cast< int >(wxSPLASH_NO_CENTRE))); | |
33630 | SWIG_Python_SetConstant(d, "SPLASH_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_TIMEOUT))); | |
33631 | SWIG_Python_SetConstant(d, "SPLASH_NO_TIMEOUT",SWIG_From_int(static_cast< int >(wxSPLASH_NO_TIMEOUT))); | |
33632 | SWIG_Python_SetConstant(d, "SB_NORMAL",SWIG_From_int(static_cast< int >(wxSB_NORMAL))); | |
33633 | SWIG_Python_SetConstant(d, "SB_FLAT",SWIG_From_int(static_cast< int >(wxSB_FLAT))); | |
33634 | SWIG_Python_SetConstant(d, "SB_RAISED",SWIG_From_int(static_cast< int >(wxSB_RAISED))); | |
33635 | SWIG_addvarlink(SWIG_globals(),(char*)"SplitterNameStr",SplitterNameStr_get, SplitterNameStr_set); | |
33636 | SWIG_Python_SetConstant(d, "SP_NOBORDER",SWIG_From_int(static_cast< int >(wxSP_NOBORDER))); | |
33637 | SWIG_Python_SetConstant(d, "SP_NOSASH",SWIG_From_int(static_cast< int >(wxSP_NOSASH))); | |
33638 | SWIG_Python_SetConstant(d, "SP_PERMIT_UNSPLIT",SWIG_From_int(static_cast< int >(wxSP_PERMIT_UNSPLIT))); | |
33639 | SWIG_Python_SetConstant(d, "SP_LIVE_UPDATE",SWIG_From_int(static_cast< int >(wxSP_LIVE_UPDATE))); | |
33640 | SWIG_Python_SetConstant(d, "SP_3DSASH",SWIG_From_int(static_cast< int >(wxSP_3DSASH))); | |
33641 | SWIG_Python_SetConstant(d, "SP_3DBORDER",SWIG_From_int(static_cast< int >(wxSP_3DBORDER))); | |
33642 | SWIG_Python_SetConstant(d, "SP_NO_XP_THEME",SWIG_From_int(static_cast< int >(wxSP_NO_XP_THEME))); | |
33643 | SWIG_Python_SetConstant(d, "SP_BORDER",SWIG_From_int(static_cast< int >(wxSP_BORDER))); | |
33644 | SWIG_Python_SetConstant(d, "SP_3D",SWIG_From_int(static_cast< int >(wxSP_3D))); | |
33645 | SWIG_Python_SetConstant(d, "SPLIT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSPLIT_HORIZONTAL))); | |
33646 | SWIG_Python_SetConstant(d, "SPLIT_VERTICAL",SWIG_From_int(static_cast< int >(wxSPLIT_VERTICAL))); | |
33647 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_NONE))); | |
33648 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_DRAGGING))); | |
33649 | SWIG_Python_SetConstant(d, "SPLIT_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSPLIT_DRAG_LEFT_DOWN))); | |
33650 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
33651 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
33652 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
33653 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
33654 | SWIG_addvarlink(SWIG_globals(),(char*)"SashNameStr",SashNameStr_get, SashNameStr_set); | |
33655 | SWIG_addvarlink(SWIG_globals(),(char*)"SashLayoutNameStr",SashLayoutNameStr_get, SashLayoutNameStr_set); | |
33656 | SWIG_Python_SetConstant(d, "SASH_DRAG_NONE",SWIG_From_int(static_cast< int >(wxSASH_DRAG_NONE))); | |
33657 | SWIG_Python_SetConstant(d, "SASH_DRAG_DRAGGING",SWIG_From_int(static_cast< int >(wxSASH_DRAG_DRAGGING))); | |
33658 | SWIG_Python_SetConstant(d, "SASH_DRAG_LEFT_DOWN",SWIG_From_int(static_cast< int >(wxSASH_DRAG_LEFT_DOWN))); | |
33659 | SWIG_Python_SetConstant(d, "SW_NOBORDER",SWIG_From_int(static_cast< int >(wxSW_NOBORDER))); | |
33660 | SWIG_Python_SetConstant(d, "SW_BORDER",SWIG_From_int(static_cast< int >(wxSW_BORDER))); | |
33661 | SWIG_Python_SetConstant(d, "SW_3DSASH",SWIG_From_int(static_cast< int >(wxSW_3DSASH))); | |
33662 | SWIG_Python_SetConstant(d, "SW_3DBORDER",SWIG_From_int(static_cast< int >(wxSW_3DBORDER))); | |
33663 | SWIG_Python_SetConstant(d, "SW_3D",SWIG_From_int(static_cast< int >(wxSW_3D))); | |
33664 | SWIG_Python_SetConstant(d, "SASH_TOP",SWIG_From_int(static_cast< int >(wxSASH_TOP))); | |
33665 | SWIG_Python_SetConstant(d, "SASH_RIGHT",SWIG_From_int(static_cast< int >(wxSASH_RIGHT))); | |
33666 | SWIG_Python_SetConstant(d, "SASH_BOTTOM",SWIG_From_int(static_cast< int >(wxSASH_BOTTOM))); | |
33667 | SWIG_Python_SetConstant(d, "SASH_LEFT",SWIG_From_int(static_cast< int >(wxSASH_LEFT))); | |
33668 | SWIG_Python_SetConstant(d, "SASH_NONE",SWIG_From_int(static_cast< int >(wxSASH_NONE))); | |
33669 | SWIG_Python_SetConstant(d, "SASH_STATUS_OK",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OK))); | |
33670 | SWIG_Python_SetConstant(d, "SASH_STATUS_OUT_OF_RANGE",SWIG_From_int(static_cast< int >(wxSASH_STATUS_OUT_OF_RANGE))); | |
33671 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
33672 | SWIG_Python_SetConstant(d, "LAYOUT_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLAYOUT_HORIZONTAL))); | |
33673 | SWIG_Python_SetConstant(d, "LAYOUT_VERTICAL",SWIG_From_int(static_cast< int >(wxLAYOUT_VERTICAL))); | |
33674 | SWIG_Python_SetConstant(d, "LAYOUT_NONE",SWIG_From_int(static_cast< int >(wxLAYOUT_NONE))); | |
33675 | SWIG_Python_SetConstant(d, "LAYOUT_TOP",SWIG_From_int(static_cast< int >(wxLAYOUT_TOP))); | |
33676 | SWIG_Python_SetConstant(d, "LAYOUT_LEFT",SWIG_From_int(static_cast< int >(wxLAYOUT_LEFT))); | |
33677 | SWIG_Python_SetConstant(d, "LAYOUT_RIGHT",SWIG_From_int(static_cast< int >(wxLAYOUT_RIGHT))); | |
33678 | SWIG_Python_SetConstant(d, "LAYOUT_BOTTOM",SWIG_From_int(static_cast< int >(wxLAYOUT_BOTTOM))); | |
33679 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_Y",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_Y))); | |
33680 | SWIG_Python_SetConstant(d, "LAYOUT_LENGTH_X",SWIG_From_int(static_cast< int >(wxLAYOUT_LENGTH_X))); | |
33681 | SWIG_Python_SetConstant(d, "LAYOUT_MRU_LENGTH",SWIG_From_int(static_cast< int >(wxLAYOUT_MRU_LENGTH))); | |
33682 | SWIG_Python_SetConstant(d, "LAYOUT_QUERY",SWIG_From_int(static_cast< int >(wxLAYOUT_QUERY))); | |
33683 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
33684 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
33685 | SWIG_addvarlink(SWIG_globals(),(char*)"VListBoxNameStr",VListBoxNameStr_get, VListBoxNameStr_set); | |
33686 | ||
33687 | // Map renamed classes back to their common name for OOR | |
33688 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
33689 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
33690 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
33691 | ||
33692 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
33693 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
33694 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
33695 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
33696 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
33697 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
33698 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
33699 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set); | |
33700 | SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set); | |
33701 | SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogNameStr",DirDialogNameStr_get, DirDialogNameStr_set); | |
33702 | SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set); | |
33703 | SWIG_addvarlink(SWIG_globals(),(char*)"GetTextFromUserPromptStr",GetTextFromUserPromptStr_get, GetTextFromUserPromptStr_set); | |
33704 | SWIG_addvarlink(SWIG_globals(),(char*)"MessageBoxCaptionStr",MessageBoxCaptionStr_get, MessageBoxCaptionStr_set); | |
33705 | SWIG_Python_SetConstant(d, "CHOICEDLG_STYLE",SWIG_From_int(static_cast< int >(wxCHOICEDLG_STYLE))); | |
33706 | SWIG_Python_SetConstant(d, "TextEntryDialogStyle",SWIG_From_int(static_cast< int >(wxTextEntryDialogStyle))); | |
33707 | SWIG_addvarlink(SWIG_globals(),(char*)"GetPasswordFromUserPromptStr",GetPasswordFromUserPromptStr_get, GetPasswordFromUserPromptStr_set); | |
33708 | SWIG_Python_SetConstant(d, "FR_DOWN",SWIG_From_int(static_cast< int >(wxFR_DOWN))); | |
33709 | SWIG_Python_SetConstant(d, "FR_WHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_WHOLEWORD))); | |
33710 | SWIG_Python_SetConstant(d, "FR_MATCHCASE",SWIG_From_int(static_cast< int >(wxFR_MATCHCASE))); | |
33711 | SWIG_Python_SetConstant(d, "FR_REPLACEDIALOG",SWIG_From_int(static_cast< int >(wxFR_REPLACEDIALOG))); | |
33712 | SWIG_Python_SetConstant(d, "FR_NOUPDOWN",SWIG_From_int(static_cast< int >(wxFR_NOUPDOWN))); | |
33713 | SWIG_Python_SetConstant(d, "FR_NOMATCHCASE",SWIG_From_int(static_cast< int >(wxFR_NOMATCHCASE))); | |
33714 | SWIG_Python_SetConstant(d, "FR_NOWHOLEWORD",SWIG_From_int(static_cast< int >(wxFR_NOWHOLEWORD))); | |
33715 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
33716 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
33717 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
33718 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
33719 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
33720 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILE",SWIG_From_int(static_cast< int >(4001))); | |
33721 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEHOR",SWIG_From_int(static_cast< int >(4001))); | |
33722 | SWIG_Python_SetConstant(d, "IDM_WINDOWCASCADE",SWIG_From_int(static_cast< int >(4002))); | |
33723 | SWIG_Python_SetConstant(d, "IDM_WINDOWICONS",SWIG_From_int(static_cast< int >(4003))); | |
33724 | SWIG_Python_SetConstant(d, "IDM_WINDOWNEXT",SWIG_From_int(static_cast< int >(4004))); | |
33725 | SWIG_Python_SetConstant(d, "IDM_WINDOWTILEVERT",SWIG_From_int(static_cast< int >(4005))); | |
33726 | SWIG_Python_SetConstant(d, "IDM_WINDOWPREV",SWIG_From_int(static_cast< int >(4006))); | |
33727 | SWIG_Python_SetConstant(d, "FIRST_MDI_CHILD",SWIG_From_int(static_cast< int >(4100))); | |
33728 | SWIG_Python_SetConstant(d, "LAST_MDI_CHILD",SWIG_From_int(static_cast< int >(4600))); | |
33729 | SWIG_addvarlink(SWIG_globals(),(char*)"PrintoutTitleStr",PrintoutTitleStr_get, PrintoutTitleStr_set); | |
33730 | SWIG_addvarlink(SWIG_globals(),(char*)"PreviewCanvasNameStr",PreviewCanvasNameStr_get, PreviewCanvasNameStr_set); | |
33731 | SWIG_Python_SetConstant(d, "PRINT_MODE_NONE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_NONE))); | |
33732 | SWIG_Python_SetConstant(d, "PRINT_MODE_PREVIEW",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PREVIEW))); | |
33733 | SWIG_Python_SetConstant(d, "PRINT_MODE_FILE",SWIG_From_int(static_cast< int >(wxPRINT_MODE_FILE))); | |
33734 | SWIG_Python_SetConstant(d, "PRINT_MODE_PRINTER",SWIG_From_int(static_cast< int >(wxPRINT_MODE_PRINTER))); | |
33735 | SWIG_Python_SetConstant(d, "PRINT_MODE_STREAM",SWIG_From_int(static_cast< int >(wxPRINT_MODE_STREAM))); | |
33736 | SWIG_Python_SetConstant(d, "PRINTBIN_DEFAULT",SWIG_From_int(static_cast< int >(wxPRINTBIN_DEFAULT))); | |
33737 | SWIG_Python_SetConstant(d, "PRINTBIN_ONLYONE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ONLYONE))); | |
33738 | SWIG_Python_SetConstant(d, "PRINTBIN_LOWER",SWIG_From_int(static_cast< int >(wxPRINTBIN_LOWER))); | |
33739 | SWIG_Python_SetConstant(d, "PRINTBIN_MIDDLE",SWIG_From_int(static_cast< int >(wxPRINTBIN_MIDDLE))); | |
33740 | SWIG_Python_SetConstant(d, "PRINTBIN_MANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_MANUAL))); | |
33741 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVELOPE",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVELOPE))); | |
33742 | SWIG_Python_SetConstant(d, "PRINTBIN_ENVMANUAL",SWIG_From_int(static_cast< int >(wxPRINTBIN_ENVMANUAL))); | |
33743 | SWIG_Python_SetConstant(d, "PRINTBIN_AUTO",SWIG_From_int(static_cast< int >(wxPRINTBIN_AUTO))); | |
33744 | SWIG_Python_SetConstant(d, "PRINTBIN_TRACTOR",SWIG_From_int(static_cast< int >(wxPRINTBIN_TRACTOR))); | |
33745 | SWIG_Python_SetConstant(d, "PRINTBIN_SMALLFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_SMALLFMT))); | |
33746 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGEFMT",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGEFMT))); | |
33747 | SWIG_Python_SetConstant(d, "PRINTBIN_LARGECAPACITY",SWIG_From_int(static_cast< int >(wxPRINTBIN_LARGECAPACITY))); | |
33748 | SWIG_Python_SetConstant(d, "PRINTBIN_CASSETTE",SWIG_From_int(static_cast< int >(wxPRINTBIN_CASSETTE))); | |
33749 | SWIG_Python_SetConstant(d, "PRINTBIN_FORMSOURCE",SWIG_From_int(static_cast< int >(wxPRINTBIN_FORMSOURCE))); | |
33750 | SWIG_Python_SetConstant(d, "PRINTBIN_USER",SWIG_From_int(static_cast< int >(wxPRINTBIN_USER))); | |
33751 | SWIG_Python_SetConstant(d, "PRINTER_NO_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_NO_ERROR))); | |
33752 | SWIG_Python_SetConstant(d, "PRINTER_CANCELLED",SWIG_From_int(static_cast< int >(wxPRINTER_CANCELLED))); | |
33753 | SWIG_Python_SetConstant(d, "PRINTER_ERROR",SWIG_From_int(static_cast< int >(wxPRINTER_ERROR))); | |
33754 | SWIG_Python_SetConstant(d, "PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxPREVIEW_PRINT))); | |
33755 | SWIG_Python_SetConstant(d, "PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxPREVIEW_PREVIOUS))); | |
33756 | SWIG_Python_SetConstant(d, "PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxPREVIEW_NEXT))); | |
33757 | SWIG_Python_SetConstant(d, "PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxPREVIEW_ZOOM))); | |
33758 | SWIG_Python_SetConstant(d, "PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxPREVIEW_FIRST))); | |
33759 | SWIG_Python_SetConstant(d, "PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxPREVIEW_LAST))); | |
33760 | SWIG_Python_SetConstant(d, "PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxPREVIEW_GOTO))); | |
33761 | SWIG_Python_SetConstant(d, "PREVIEW_DEFAULT",SWIG_From_int(static_cast< int >(wxPREVIEW_DEFAULT))); | |
33762 | SWIG_Python_SetConstant(d, "ID_PREVIEW_CLOSE",SWIG_From_int(static_cast< int >(wxID_PREVIEW_CLOSE))); | |
33763 | SWIG_Python_SetConstant(d, "ID_PREVIEW_NEXT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_NEXT))); | |
33764 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PREVIOUS",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PREVIOUS))); | |
33765 | SWIG_Python_SetConstant(d, "ID_PREVIEW_PRINT",SWIG_From_int(static_cast< int >(wxID_PREVIEW_PRINT))); | |
33766 | SWIG_Python_SetConstant(d, "ID_PREVIEW_ZOOM",SWIG_From_int(static_cast< int >(wxID_PREVIEW_ZOOM))); | |
33767 | SWIG_Python_SetConstant(d, "ID_PREVIEW_FIRST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_FIRST))); | |
33768 | SWIG_Python_SetConstant(d, "ID_PREVIEW_LAST",SWIG_From_int(static_cast< int >(wxID_PREVIEW_LAST))); | |
33769 | SWIG_Python_SetConstant(d, "ID_PREVIEW_GOTO",SWIG_From_int(static_cast< int >(wxID_PREVIEW_GOTO))); | |
33770 | ||
33771 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
33772 | ||
d55e5bfc RD |
33773 | } |
33774 |