]>
Commit | Line | Data |
---|---|---|
06810ecf RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.29 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | /* ----------------------------------------------------------------------------- | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * ----------------------------------------------------------------------------- */ | |
34 | ||
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ | |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
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 | |
46 | #endif | |
47 | ||
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 | |
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__)) | |
67 | # else | |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
72 | #ifndef SWIGUNUSEDPARM | |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
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 | ||
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 | ||
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 | |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) | |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
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 | ||
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 | |
126 | ||
127 | ||
128 | /* Python.h has to appear first */ | |
129 | #include <Python.h> | |
130 | ||
131 | /* ----------------------------------------------------------------------------- | |
132 | * swigrun.swg | |
133 | * | |
134 | * This file contains generic CAPI SWIG runtime support for pointer | |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
137 | ||
138 | /* This should only be incremented when either the layout of swig_type_info changes, | |
139 | or for whatever reason, the runtime changes incompatibly */ | |
140 | #define SWIG_RUNTIME_VERSION "2" | |
141 | ||
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
143 | #ifdef SWIG_TYPE_TABLE | |
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) | |
147 | #else | |
148 | # define SWIG_TYPE_TABLE_NAME | |
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 | */ | |
159 | ||
160 | #ifndef SWIGRUNTIME | |
161 | # define SWIGRUNTIME SWIGINTERN | |
162 | #endif | |
163 | ||
164 | #ifndef SWIGRUNTIMEINLINE | |
165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
166 | #endif | |
167 | ||
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 | ||
309 | #include <string.h> | |
310 | ||
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 | ||
318 | /* Structure to store inforomation on one type */ | |
319 | typedef struct swig_type_info { | |
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 */ | |
325 | int owndata; /* flag if the structure owns the clientdata */ | |
326 | } swig_type_info; | |
327 | ||
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 | ||
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; | |
361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; | |
362 | } | |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
368 | Return 0 if not equal, 1 if equal | |
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 | } | |
379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
380 | if (*ne) ++ne; | |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
386 | Check type equivalence in a name list like <name1>|<name2>|... | |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
388 | */ | |
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; | |
397 | } | |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
399 | if (*ne) ++ne; | |
400 | } | |
401 | return equiv; | |
402 | } | |
403 | ||
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 | ||
427 | /* | |
428 | Check the typename | |
429 | */ | |
430 | SWIGRUNTIME swig_cast_info * | |
431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
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); | |
439 | } | |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { | |
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. */ | |
481 | if (!type) return NULL; | |
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 | ||
493 | /* | |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
498 | swig_cast_info *cast = ti->cast; | |
499 | /* if (ti->clientdata == clientdata) return; */ | |
500 | ti->clientdata = clientdata; | |
501 | ||
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
507 | } | |
508 | } | |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
512 | SWIGRUNTIME void | |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
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); | |
556 | } | |
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); | |
591 | } | |
592 | ||
593 | /* neither found a match */ | |
594 | return 0; | |
595 | } | |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
602 | static const char hex[17] = "0123456789abcdef"; | |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
605 | for (; u != eu; ++u) { | |
606 | register unsigned char uu = *u; | |
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; | |
619 | register const unsigned char *eu = u + sz; | |
620 | for (; u != eu; ++u) { | |
621 | register char d = *(c++); | |
622 | register unsigned char uu; | |
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 | ||
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 | } | |
682 | ||
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 | } | |
695 | ||
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
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 | |
714 | ||
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 | |
764 | #endif | |
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 | ||
799 | ||
800 | /* ----------------------------------------------------------------------------- | |
801 | * error manipulation | |
802 | * ----------------------------------------------------------------------------- */ | |
803 | ||
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 | } | |
846 | ||
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 | |
935 | #endif | |
936 | ||
937 | /* ----------------------------------------------------------------------------- | |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
940 | ||
941 | #ifdef __cplusplus | |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
947 | ||
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
951 | ||
952 | /* Constant Types */ | |
953 | #define SWIG_PY_POINTER 4 | |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
958 | int type; | |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
964 | } swig_const_info; | |
965 | ||
966 | #ifdef __cplusplus | |
967 | #if 0 | |
968 | { /* cc-mode */ | |
969 | #endif | |
970 | } | |
971 | #endif | |
972 | ||
973 | ||
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 | * | |
978 | * pyrun.swg | |
979 | * | |
980 | * This file contains the runtime support for Python modules | |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
983 | * | |
984 | * ----------------------------------------------------------------------------- */ | |
985 | ||
986 | /* Common SWIG API */ | |
987 | ||
4f89b6b7 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
06810ecf RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
1000 | ||
1001 | /* for raw packed data */ | |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
1004 | ||
1005 | /* for class or struct pointers */ | |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
1008 | ||
1009 | /* for C or C++ function pointers */ | |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
1012 | ||
1013 | /* for C++ member pointers, ie, member methods */ | |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
1016 | ||
1017 | ||
1018 | /* Runtime API */ | |
1019 | ||
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
1023 | ||
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj | |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
1029 | ||
1030 | ||
1031 | /* Runtime API implementation */ | |
1032 | ||
1033 | /* Error manipulation */ | |
1034 | ||
1035 | SWIGINTERN void | |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
1041 | } | |
1042 | ||
1043 | SWIGINTERN void | |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
1048 | } | |
1049 | ||
1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) | |
1051 | ||
1052 | /* Set a constant value */ | |
1053 | ||
1054 | SWIGINTERN void | |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
1058 | } | |
1059 | ||
1060 | /* Append a value to the result obj */ | |
1061 | ||
1062 | SWIGINTERN PyObject* | |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
1088 | } else { | |
1089 | if (!PyTuple_Check(result)) { | |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
1100 | } | |
1101 | return result; | |
1102 | #endif | |
1103 | } | |
1104 | ||
1105 | /* Unpack the argument tuple */ | |
1106 | ||
1107 | SWIGINTERN int | |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
1591 | (binaryfunc)0, /*nb_divmod*/ | |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
1609 | #if PY_VERSION_HEX >= 0x02020000 | |
1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
1611 | #elif PY_VERSION_HEX >= 0x02000000 | |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
1613 | #endif | |
1614 | }; | |
1615 | ||
1616 | static PyTypeObject pyswigobject_type; | |
1617 | static int type_init = 0; | |
1618 | if (!type_init) { | |
1619 | const PyTypeObject tmp | |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
1632 | #endif | |
1633 | (setattrfunc)0, /* tp_setattr */ | |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
1651 | #if PY_VERSION_HEX >= 0x02020000 | |
1652 | 0, /* tp_iter */ | |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
1672 | #endif | |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
1674 | 0, /* tp_del */ | |
1675 | #endif | |
1676 | #ifdef COUNT_ALLOCS | |
1677 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1678 | #endif | |
1679 | }; | |
1680 | pyswigobject_type = tmp; | |
1681 | pyswigobject_type.ob_type = &PyType_Type; | |
1682 | type_init = 1; | |
1683 | } | |
1684 | return &pyswigobject_type; | |
1685 | } | |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) | |
1689 | { | |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); | |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
1696 | } | |
1697 | return (PyObject *)sobj; | |
1698 | } | |
1699 | ||
1700 | /* ----------------------------------------------------------------------------- | |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
1707 | swig_type_info *ty; | |
1708 | size_t size; | |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1713 | { | |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
1720 | fputs(v->ty->name,fp); | |
1721 | fputs(">", fp); | |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); | |
1731 | } else { | |
1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); | |
1733 | } | |
1734 | } | |
1735 | ||
1736 | SWIGRUNTIME PyObject * | |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1741 | return PyString_FromFormat("%s%s", result, v->ty->name); | |
1742 | } else { | |
1743 | return PyString_FromString(v->ty->name); | |
1744 | } | |
1745 | } | |
1746 | ||
1747 | SWIGRUNTIME int | |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1749 | { | |
1750 | size_t i = v->size; | |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
1754 | } | |
1755 | ||
1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); | |
1757 | ||
1758 | SWIGRUNTIME PyTypeObject* | |
1759 | PySwigPacked_type(void) { | |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); | |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
1835 | #endif | |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
1837 | 0, /* tp_del */ | |
1838 | #endif | |
1839 | #ifdef COUNT_ALLOCS | |
1840 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1841 | #endif | |
1842 | }; | |
1843 | pyswigpacked_type = tmp; | |
1844 | pyswigpacked_type.ob_type = &PyType_Type; | |
1845 | type_init = 1; | |
1846 | } | |
1847 | return &pyswigpacked_type; | |
1848 | } | |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) | |
1852 | { | |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); | |
1854 | if (sobj) { | |
1855 | void *pack = malloc(size); | |
1856 | if (pack) { | |
1857 | memcpy(pack, ptr, size); | |
1858 | sobj->pack = pack; | |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
1864 | } | |
1865 | } | |
1866 | return (PyObject *) sobj; | |
1867 | } | |
1868 | ||
1869 | SWIGRUNTIME swig_type_info * | |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1871 | { | |
1872 | if (PySwigPacked_Check(obj)) { | |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
1880 | } | |
1881 | ||
1882 | /* ----------------------------------------------------------------------------- | |
1883 | * pointers/data manipulation | |
1884 | * ----------------------------------------------------------------------------- */ | |
1885 | ||
1886 | SWIGRUNTIMEINLINE PyObject * | |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
1891 | ||
1892 | SWIGRUNTIME PyObject * | |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
1898 | ||
1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ | |
1900 | ||
1901 | SWIGRUNTIME PySwigObject * | |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
1903 | { | |
1904 | if (PySwigObject_Check(pyobj)) { | |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
1926 | } else { | |
1927 | if (PyErr_Occurred()) PyErr_Clear(); | |
1928 | return 0; | |
1929 | } | |
1930 | } | |
1931 | } | |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
1947 | } | |
1948 | } | |
1949 | ||
1950 | /* Acquire a pointer value */ | |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
1961 | } | |
1962 | return 0; | |
1963 | } | |
1964 | ||
1965 | /* Convert a pointer value */ | |
1966 | ||
1967 | SWIGRUNTIME int | |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { | |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
1992 | } else { | |
1993 | if (ptr) *ptr = vptr; | |
1994 | break; | |
1995 | } | |
1996 | } | |
1997 | if (sobj) { | |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
2042 | } | |
2043 | } | |
2044 | ||
2045 | /* Convert a function ptr value */ | |
2046 | ||
2047 | SWIGRUNTIME int | |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { | |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
2051 | } else { | |
2052 | void *vptr = 0; | |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
4f89b6b7 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
06810ecf RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
2069 | } | |
2070 | } | |
2071 | ||
2072 | /* Convert a packed value value */ | |
2073 | ||
2074 | SWIGRUNTIME int | |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { | |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
2084 | } | |
2085 | return SWIG_OK; | |
2086 | } | |
2087 | ||
2088 | /* ----------------------------------------------------------------------------- | |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
2091 | ||
2092 | /* | |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
2096 | ||
2097 | SWIGRUNTIME PyObject* | |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
2115 | } | |
2116 | #else | |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
2120 | } | |
2121 | } else { | |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
2126 | } | |
2127 | return inst; | |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
2140 | } | |
2141 | inst->in_class = (PyClassObject *)data->newargs; | |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
2147 | } | |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS | |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
2158 | } | |
2159 | ||
2160 | SWIGRUNTIME void | |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
2175 | #endif | |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); | |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
2180 | ||
2181 | ||
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
2191 | } else { | |
2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); | |
2193 | } | |
2194 | return SWIG_Py_Void(); | |
2195 | } | |
2196 | } | |
2197 | ||
2198 | /* Create a new pointer object */ | |
2199 | ||
2200 | SWIGRUNTIME PyObject * | |
2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { | |
2202 | if (!ptr) { | |
2203 | return SWIG_Py_Void(); | |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
2213 | } | |
2214 | } | |
2215 | return robj; | |
2216 | } | |
2217 | } | |
2218 | ||
2219 | /* Create a new packed object */ | |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); | |
2224 | } | |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
2234 | SWIGRUNTIME swig_module_info * | |
2235 | SWIG_Python_GetModule(void) { | |
2236 | static void *type_pointer = (void *)0; | |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
2248 | #endif | |
2249 | } | |
2250 | return (swig_module_info *) type_pointer; | |
2251 | } | |
2252 | ||
2253 | #if PY_MAJOR_VERSION < 2 | |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
2256 | SWIGINTERN int | |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
2263 | return SWIG_ERROR; | |
2264 | } | |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
2268 | return SWIG_ERROR; | |
2269 | } | |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
2276 | return SWIG_ERROR; | |
2277 | } | |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
2279 | return SWIG_ERROR; | |
2280 | Py_DECREF(o); | |
2281 | return SWIG_OK; | |
2282 | } | |
2283 | #endif | |
2284 | ||
2285 | SWIGRUNTIME void | |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
2301 | SWIGRUNTIME void | |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); | |
2308 | if (pointer && module) { | |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
2310 | } else { | |
2311 | Py_XDECREF(pointer); | |
2312 | } | |
2313 | } | |
2314 | ||
2315 | /* The python cached type query */ | |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
2320 | } | |
2321 | ||
2322 | SWIGRUNTIME swig_type_info * | |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
2466 | #define SWIGTYPE_p_char swig_types[0] | |
2467 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
2468 | #define SWIGTYPE_p_int swig_types[2] | |
2469 | #define SWIGTYPE_p_long swig_types[3] | |
2470 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2473 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2474 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2475 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2476 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
2477 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
2478 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
92515dfc RD |
2480 | #define SWIGTYPE_p_wxCURHandler swig_types[14] |
2481 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15] | |
2482 | #define SWIGTYPE_p_wxChar swig_types[16] | |
2483 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[17] | |
2484 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxCloseEvent swig_types[19] | |
2486 | #define SWIGTYPE_p_wxColour swig_types[20] | |
2487 | #define SWIGTYPE_p_wxColourData swig_types[21] | |
2488 | #define SWIGTYPE_p_wxColourDialog swig_types[22] | |
2489 | #define SWIGTYPE_p_wxCommandEvent swig_types[23] | |
2490 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxControl swig_types[25] | |
2492 | #define SWIGTYPE_p_wxControlWithItems swig_types[26] | |
2493 | #define SWIGTYPE_p_wxDateEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxDialog swig_types[28] | |
2495 | #define SWIGTYPE_p_wxDirDialog swig_types[29] | |
2496 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30] | |
2497 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxDuplexMode swig_types[32] | |
2499 | #define SWIGTYPE_p_wxEraseEvent swig_types[33] | |
2500 | #define SWIGTYPE_p_wxEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
2502 | #define SWIGTYPE_p_wxFSFile swig_types[36] | |
2503 | #define SWIGTYPE_p_wxFileDialog swig_types[37] | |
2504 | #define SWIGTYPE_p_wxFileSystem swig_types[38] | |
2505 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxFindReplaceData swig_types[40] | |
2507 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[41] | |
2508 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[42] | |
2509 | #define SWIGTYPE_p_wxFocusEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxFont swig_types[44] | |
2511 | #define SWIGTYPE_p_wxFontData swig_types[45] | |
2512 | #define SWIGTYPE_p_wxFontDialog swig_types[46] | |
2513 | #define SWIGTYPE_p_wxFrame swig_types[47] | |
2514 | #define SWIGTYPE_p_wxGBSizerItem swig_types[48] | |
2515 | #define SWIGTYPE_p_wxGIFHandler swig_types[49] | |
2516 | #define SWIGTYPE_p_wxGridBagSizer swig_types[50] | |
2517 | #define SWIGTYPE_p_wxGridSizer swig_types[51] | |
2518 | #define SWIGTYPE_p_wxICOHandler swig_types[52] | |
2519 | #define SWIGTYPE_p_wxIconizeEvent swig_types[53] | |
2520 | #define SWIGTYPE_p_wxIdleEvent swig_types[54] | |
2521 | #define SWIGTYPE_p_wxImage swig_types[55] | |
2522 | #define SWIGTYPE_p_wxImageHandler swig_types[56] | |
2523 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[57] | |
2524 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[58] | |
2525 | #define SWIGTYPE_p_wxJPEGHandler swig_types[59] | |
2526 | #define SWIGTYPE_p_wxKeyEvent swig_types[60] | |
2527 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[61] | |
2528 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[62] | |
2529 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[63] | |
2530 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[64] | |
2531 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[65] | |
2532 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[66] | |
2533 | #define SWIGTYPE_p_wxMenu swig_types[67] | |
2534 | #define SWIGTYPE_p_wxMenuBar swig_types[68] | |
2535 | #define SWIGTYPE_p_wxMenuEvent swig_types[69] | |
2536 | #define SWIGTYPE_p_wxMenuItem swig_types[70] | |
2537 | #define SWIGTYPE_p_wxMessageDialog swig_types[71] | |
2538 | #define SWIGTYPE_p_wxMiniFrame swig_types[72] | |
2539 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[73] | |
2540 | #define SWIGTYPE_p_wxMouseEvent swig_types[74] | |
2541 | #define SWIGTYPE_p_wxMoveEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[76] | |
2543 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[77] | |
2544 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxNotifyEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxObject swig_types[80] | |
2547 | #define SWIGTYPE_p_wxPCXHandler swig_types[81] | |
2548 | #define SWIGTYPE_p_wxPNGHandler swig_types[82] | |
2549 | #define SWIGTYPE_p_wxPNMHandler swig_types[83] | |
2550 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[84] | |
2551 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[85] | |
2552 | #define SWIGTYPE_p_wxPaintEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPanel swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPaperSize swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPopupWindow swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPreviewFrame swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPrintData swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPrintDialog swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPrintDialogData swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPrintPreview swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPrinter swig_types[99] | |
2566 | #define SWIGTYPE_p_wxProgressDialog swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPyApp swig_types[101] | |
2568 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPyEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPyImageHandler swig_types[105] | |
2572 | #define SWIGTYPE_p_wxPyPanel swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyPrintout swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPySizer swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPyVListBox swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyValidator swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyWindow swig_types[118] | |
2585 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[119] | |
2586 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxRichTextAttr swig_types[121] | |
2588 | #define SWIGTYPE_p_wxRichTextBuffer swig_types[122] | |
2589 | #define SWIGTYPE_p_wxRichTextCtrl swig_types[123] | |
2590 | #define SWIGTYPE_p_wxRichTextEvent swig_types[124] | |
2591 | #define SWIGTYPE_p_wxRichTextImageBlock swig_types[125] | |
2592 | #define SWIGTYPE_p_wxRichTextRange swig_types[126] | |
2593 | #define SWIGTYPE_p_wxRichTextStyleSheet swig_types[127] | |
2594 | #define SWIGTYPE_p_wxSashEvent swig_types[128] | |
2595 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[129] | |
2596 | #define SWIGTYPE_p_wxSashWindow swig_types[130] | |
2597 | #define SWIGTYPE_p_wxScrollEvent swig_types[131] | |
2598 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrolledWindow swig_types[133] | |
2600 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxShowEvent swig_types[135] | |
2602 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[136] | |
2603 | #define SWIGTYPE_p_wxSizeEvent swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSizer swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizerItem swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSplashScreen swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSplitterEvent swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplitterWindow swig_types[143] | |
2610 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[144] | |
2611 | #define SWIGTYPE_p_wxStatusBar swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147] | |
2614 | #define SWIGTYPE_p_wxTIFFHandler swig_types[148] | |
2615 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxTextCoord swig_types[150] | |
2617 | #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTipWindow swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[154] | |
2621 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[155] | |
2622 | #define SWIGTYPE_p_wxValidator swig_types[156] | |
2623 | #define SWIGTYPE_p_wxWindow swig_types[157] | |
2624 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[158] | |
2625 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[159] | |
2626 | #define SWIGTYPE_p_wxXPMHandler swig_types[160] | |
2627 | static swig_type_info *swig_types[162]; | |
2628 | static swig_module_info swig_module = {swig_types, 161, 0, 0, 0, 0}; | |
06810ecf RD |
2629 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2630 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
2631 | ||
2632 | /* -------- TYPES TABLE (END) -------- */ | |
2633 | ||
2634 | #if (PY_VERSION_HEX <= 0x02000000) | |
2635 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2636 | # error "This python version requires to use swig with the '-classic' option" | |
2637 | # endif | |
2638 | #endif | |
2639 | #if (PY_VERSION_HEX <= 0x02020000) | |
2640 | # error "This python version requires to use swig with the '-nomodern' option" | |
2641 | #endif | |
2642 | #if (PY_VERSION_HEX <= 0x02020000) | |
2643 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2644 | #endif | |
2645 | #ifndef METH_O | |
2646 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2647 | #endif | |
2648 | ||
2649 | /*----------------------------------------------- | |
2650 | @(target):= _richtext.so | |
2651 | ------------------------------------------------*/ | |
2652 | #define SWIG_init init_richtext | |
2653 | ||
2654 | #define SWIG_name "_richtext" | |
2655 | ||
2656 | #define SWIGVERSION 0x010329 | |
2657 | ||
2658 | ||
2659 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2660 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2661 | ||
2662 | ||
2663 | #include <stdexcept> | |
2664 | ||
2665 | ||
2666 | namespace swig { | |
2667 | class PyObject_ptr { | |
2668 | protected: | |
2669 | PyObject *_obj; | |
2670 | ||
2671 | public: | |
2672 | PyObject_ptr() :_obj(0) | |
2673 | { | |
2674 | } | |
2675 | ||
2676 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2677 | { | |
2678 | Py_XINCREF(_obj); | |
2679 | } | |
2680 | ||
2681 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2682 | { | |
2683 | if (initial_ref) Py_XINCREF(_obj); | |
2684 | } | |
2685 | ||
2686 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2687 | { | |
2688 | Py_XINCREF(item._obj); | |
2689 | Py_XDECREF(_obj); | |
2690 | _obj = item._obj; | |
2691 | return *this; | |
2692 | } | |
2693 | ||
2694 | ~PyObject_ptr() | |
2695 | { | |
2696 | Py_XDECREF(_obj); | |
2697 | } | |
2698 | ||
2699 | operator PyObject *() const | |
2700 | { | |
2701 | return _obj; | |
2702 | } | |
2703 | ||
2704 | PyObject *operator->() const | |
2705 | { | |
2706 | return _obj; | |
2707 | } | |
2708 | }; | |
2709 | } | |
2710 | ||
2711 | ||
2712 | namespace swig { | |
2713 | struct PyObject_var : PyObject_ptr { | |
2714 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2715 | ||
2716 | PyObject_var & operator = (PyObject* obj) | |
2717 | { | |
2718 | Py_XDECREF(_obj); | |
2719 | _obj = obj; | |
2720 | return *this; | |
2721 | } | |
2722 | }; | |
2723 | } | |
2724 | ||
2725 | ||
2726 | #include "wx/wxPython/wxPython.h" | |
2727 | #include "wx/wxPython/pyclasses.h" | |
2728 | #include "wx/wxPython/printfw.h" | |
2729 | #include "wx/wxPython/twoitem.h" | |
2730 | ||
2731 | #include <wx/richtext/richtextctrl.h> | |
2732 | ||
2733 | ||
2734 | class wxEffects; | |
2735 | class wxBufferedDC; | |
2736 | class wxBufferedPaintDC; | |
2737 | class wxMetaFile; | |
2738 | class wxMetaFileDC; | |
2739 | class wxPrinterDC; | |
2740 | ||
2741 | ||
2742 | ||
2743 | #define SWIG_From_long PyInt_FromLong | |
2744 | ||
2745 | ||
2746 | SWIGINTERNINLINE PyObject * | |
2747 | SWIG_From_int (int value) | |
2748 | { | |
2749 | return SWIG_From_long (value); | |
2750 | } | |
2751 | ||
2752 | static const wxString wxPyEmptyString(wxEmptyString); | |
2753 | ||
2754 | ||
2755 | bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj) | |
2756 | { | |
2757 | if (source == Py_None) { | |
2758 | **obj = wxRICHTEXT_NONE; | |
2759 | return true; | |
2760 | } | |
2761 | return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange")); | |
2762 | } | |
2763 | ||
2764 | ||
2765 | SWIGINTERN int | |
2766 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2767 | { | |
2768 | if (PyNumber_Check(obj)) { | |
2769 | if (val) *val = PyInt_AsLong(obj); | |
2770 | return SWIG_OK; | |
2771 | } | |
2772 | return SWIG_TypeError; | |
2773 | } | |
2774 | ||
2775 | SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){ | |
2776 | wxRichTextRange temp, *obj = &temp; | |
2777 | if ( other == Py_None ) return false; | |
2778 | if ( ! wxRichTextRange_helper(other, &obj) ) { | |
2779 | PyErr_Clear(); | |
2780 | return false; | |
2781 | } | |
2782 | return self->operator==(*obj); | |
2783 | } | |
2784 | SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){ | |
2785 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2786 | PyObject* tup = PyTuple_New(2); | |
2787 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart())); | |
2788 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd())); | |
2789 | wxPyEndBlockThreads(blocked); | |
2790 | return tup; | |
2791 | } | |
2792 | ||
2793 | wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL); | |
2794 | wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE); | |
2795 | ||
2796 | ||
2797 | #include <limits.h> | |
2798 | #ifndef LLONG_MIN | |
2799 | # define LLONG_MIN LONG_LONG_MIN | |
2800 | #endif | |
2801 | #ifndef LLONG_MAX | |
2802 | # define LLONG_MAX LONG_LONG_MAX | |
2803 | #endif | |
2804 | #ifndef ULLONG_MAX | |
2805 | # define ULLONG_MAX ULONG_LONG_MAX | |
2806 | #endif | |
2807 | ||
2808 | ||
2809 | SWIGINTERN int | |
2810 | SWIG_AsVal_int (PyObject * obj, int *val) | |
2811 | { | |
2812 | long v; | |
2813 | int res = SWIG_AsVal_long (obj, &v); | |
2814 | if (SWIG_IsOK(res)) { | |
2815 | if ((v < INT_MIN || v > INT_MAX)) { | |
2816 | return SWIG_OverflowError; | |
2817 | } else { | |
2818 | if (val) *val = static_cast< int >(v); | |
2819 | } | |
2820 | } | |
2821 | return res; | |
2822 | } | |
2823 | ||
2824 | ||
2825 | SWIGINTERN int | |
2826 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2827 | { | |
2828 | if (obj == Py_True) { | |
2829 | if (val) *val = true; | |
2830 | return SWIG_OK; | |
2831 | } else if (obj == Py_False) { | |
2832 | if (val) *val = false; | |
2833 | return SWIG_OK; | |
2834 | } else { | |
2835 | long v = 0; | |
2836 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2837 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2838 | return res; | |
2839 | } | |
2840 | } | |
2841 | ||
2842 | ||
2843 | SWIGINTERN int | |
2844 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2845 | { | |
2846 | long v = 0; | |
2847 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2848 | return SWIG_TypeError; | |
2849 | } | |
2850 | else if (val) | |
2851 | *val = (unsigned long)v; | |
2852 | return SWIG_OK; | |
2853 | } | |
2854 | ||
2855 | ||
2856 | SWIGINTERN swig_type_info* | |
2857 | SWIG_pchar_descriptor() | |
2858 | { | |
2859 | static int init = 0; | |
2860 | static swig_type_info* info = 0; | |
2861 | if (!init) { | |
2862 | info = SWIG_TypeQuery("_p_char"); | |
2863 | init = 1; | |
2864 | } | |
2865 | return info; | |
2866 | } | |
2867 | ||
2868 | ||
2869 | SWIGINTERN int | |
2870 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) | |
2871 | { | |
2872 | if (PyString_Check(obj)) { | |
4f89b6b7 | 2873 | char *cstr; Py_ssize_t len; |
06810ecf RD |
2874 | PyString_AsStringAndSize(obj, &cstr, &len); |
2875 | if (cptr) { | |
2876 | if (alloc) { | |
2877 | /* | |
2878 | In python the user should not be able to modify the inner | |
2879 | string representation. To warranty that, if you define | |
2880 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string | |
2881 | buffer is always returned. | |
2882 | ||
2883 | The default behavior is just to return the pointer value, | |
2884 | so, be careful. | |
2885 | */ | |
2886 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) | |
2887 | if (*alloc != SWIG_OLDOBJ) | |
2888 | #else | |
2889 | if (*alloc == SWIG_NEWOBJ) | |
2890 | #endif | |
2891 | { | |
2892 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); | |
2893 | *alloc = SWIG_NEWOBJ; | |
2894 | } | |
2895 | else { | |
2896 | *cptr = cstr; | |
2897 | *alloc = SWIG_OLDOBJ; | |
2898 | } | |
2899 | } else { | |
2900 | *cptr = PyString_AsString(obj); | |
2901 | } | |
2902 | } | |
2903 | if (psize) *psize = len + 1; | |
2904 | return SWIG_OK; | |
2905 | } else { | |
2906 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); | |
2907 | if (pchar_descriptor) { | |
2908 | void* vptr = 0; | |
2909 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { | |
2910 | if (cptr) *cptr = (char *) vptr; | |
2911 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; | |
2912 | if (alloc) *alloc = SWIG_OLDOBJ; | |
2913 | return SWIG_OK; | |
2914 | } | |
2915 | } | |
2916 | } | |
2917 | return SWIG_TypeError; | |
2918 | } | |
2919 | ||
2920 | ||
2921 | SWIGINTERN int | |
2922 | SWIG_AsCharArray(PyObject * obj, char *val, size_t size) | |
2923 | { | |
2924 | char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; | |
2925 | int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); | |
2926 | if (SWIG_IsOK(res)) { | |
2927 | if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; | |
2928 | if (csize <= size) { | |
2929 | if (val) { | |
2930 | if (csize) memcpy(val, cptr, csize*sizeof(char)); | |
2931 | if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); | |
2932 | } | |
2933 | if (alloc == SWIG_NEWOBJ) { | |
2934 | delete[] cptr; | |
2935 | res = SWIG_DelNewMask(res); | |
2936 | } | |
2937 | return res; | |
2938 | } | |
2939 | if (alloc == SWIG_NEWOBJ) delete[] cptr; | |
2940 | } | |
2941 | return SWIG_TypeError; | |
2942 | } | |
2943 | ||
2944 | ||
2945 | SWIGINTERN int | |
2946 | SWIG_AsVal_char (PyObject * obj, char *val) | |
2947 | { | |
2948 | int res = SWIG_AsCharArray(obj, val, 1); | |
2949 | if (!SWIG_IsOK(res)) { | |
2950 | long v; | |
2951 | res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); | |
2952 | if (SWIG_IsOK(res)) { | |
2953 | if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { | |
2954 | if (val) *val = static_cast< char >(v); | |
2955 | } else { | |
2956 | res = SWIG_OverflowError; | |
2957 | } | |
2958 | } | |
2959 | } | |
2960 | return res; | |
2961 | } | |
2962 | ||
2963 | #ifdef __cplusplus | |
2964 | extern "C" { | |
2965 | #endif | |
2966 | SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2967 | PyObject *resultobj = 0; | |
2968 | long arg1 = (long) 0 ; | |
2969 | long arg2 = (long) 0 ; | |
2970 | wxRichTextRange *result = 0 ; | |
2971 | long val1 ; | |
2972 | int ecode1 = 0 ; | |
2973 | long val2 ; | |
2974 | int ecode2 = 0 ; | |
2975 | PyObject * obj0 = 0 ; | |
2976 | PyObject * obj1 = 0 ; | |
2977 | char * kwnames[] = { | |
2978 | (char *) "start",(char *) "end", NULL | |
2979 | }; | |
2980 | ||
2981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
2982 | if (obj0) { | |
2983 | ecode1 = SWIG_AsVal_long(obj0, &val1); | |
2984 | if (!SWIG_IsOK(ecode1)) { | |
2985 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'"); | |
2986 | } | |
2987 | arg1 = static_cast< long >(val1); | |
2988 | } | |
2989 | if (obj1) { | |
2990 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
2991 | if (!SWIG_IsOK(ecode2)) { | |
2992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'"); | |
2993 | } | |
2994 | arg2 = static_cast< long >(val2); | |
2995 | } | |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2998 | result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2); | |
2999 | wxPyEndAllowThreads(__tstate); | |
3000 | if (PyErr_Occurred()) SWIG_fail; | |
3001 | } | |
3002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 ); | |
3003 | return resultobj; | |
3004 | fail: | |
3005 | return NULL; | |
3006 | } | |
3007 | ||
3008 | ||
3009 | SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3010 | PyObject *resultobj = 0; | |
3011 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3012 | void *argp1 = 0 ; | |
3013 | int res1 = 0 ; | |
3014 | PyObject *swig_obj[1] ; | |
3015 | ||
3016 | if (!args) SWIG_fail; | |
3017 | swig_obj[0] = args; | |
3018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 ); | |
3019 | if (!SWIG_IsOK(res1)) { | |
3020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3021 | } | |
3022 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3023 | { | |
3024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3025 | delete arg1; | |
3026 | ||
3027 | wxPyEndAllowThreads(__tstate); | |
3028 | if (PyErr_Occurred()) SWIG_fail; | |
3029 | } | |
3030 | resultobj = SWIG_Py_Void(); | |
3031 | return resultobj; | |
3032 | fail: | |
3033 | return NULL; | |
3034 | } | |
3035 | ||
3036 | ||
3037 | SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3038 | PyObject *resultobj = 0; | |
3039 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3040 | PyObject *arg2 = (PyObject *) 0 ; | |
3041 | bool result; | |
3042 | void *argp1 = 0 ; | |
3043 | int res1 = 0 ; | |
3044 | PyObject * obj0 = 0 ; | |
3045 | PyObject * obj1 = 0 ; | |
3046 | char * kwnames[] = { | |
3047 | (char *) "self",(char *) "other", NULL | |
3048 | }; | |
3049 | ||
3050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3052 | if (!SWIG_IsOK(res1)) { | |
3053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3054 | } | |
3055 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3056 | arg2 = obj1; | |
3057 | { | |
3058 | result = (bool)wxRichTextRange___eq__(arg1,arg2); | |
3059 | if (PyErr_Occurred()) SWIG_fail; | |
3060 | } | |
3061 | { | |
3062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3063 | } | |
3064 | return resultobj; | |
3065 | fail: | |
3066 | return NULL; | |
3067 | } | |
3068 | ||
3069 | ||
3070 | SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3071 | PyObject *resultobj = 0; | |
3072 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3073 | wxRichTextRange *arg2 = 0 ; | |
3074 | wxRichTextRange result; | |
3075 | void *argp1 = 0 ; | |
3076 | int res1 = 0 ; | |
3077 | wxRichTextRange temp2 ; | |
3078 | PyObject * obj0 = 0 ; | |
3079 | PyObject * obj1 = 0 ; | |
3080 | char * kwnames[] = { | |
3081 | (char *) "self",(char *) "range", NULL | |
3082 | }; | |
3083 | ||
3084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3086 | if (!SWIG_IsOK(res1)) { | |
3087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3088 | } | |
3089 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3090 | { | |
3091 | arg2 = &temp2; | |
3092 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3093 | } | |
3094 | { | |
3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3096 | result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2); | |
3097 | wxPyEndAllowThreads(__tstate); | |
3098 | if (PyErr_Occurred()) SWIG_fail; | |
3099 | } | |
3100 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
3101 | return resultobj; | |
3102 | fail: | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
3107 | SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3108 | PyObject *resultobj = 0; | |
3109 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3110 | wxRichTextRange *arg2 = 0 ; | |
3111 | wxRichTextRange result; | |
3112 | void *argp1 = 0 ; | |
3113 | int res1 = 0 ; | |
3114 | wxRichTextRange temp2 ; | |
3115 | PyObject * obj0 = 0 ; | |
3116 | PyObject * obj1 = 0 ; | |
3117 | char * kwnames[] = { | |
3118 | (char *) "self",(char *) "range", NULL | |
3119 | }; | |
3120 | ||
3121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3123 | if (!SWIG_IsOK(res1)) { | |
3124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3125 | } | |
3126 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3127 | { | |
3128 | arg2 = &temp2; | |
3129 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3130 | } | |
3131 | { | |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3133 | result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2); | |
3134 | wxPyEndAllowThreads(__tstate); | |
3135 | if (PyErr_Occurred()) SWIG_fail; | |
3136 | } | |
3137 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
3138 | return resultobj; | |
3139 | fail: | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | ||
3144 | SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3145 | PyObject *resultobj = 0; | |
3146 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3147 | long arg2 ; | |
3148 | long arg3 ; | |
3149 | void *argp1 = 0 ; | |
3150 | int res1 = 0 ; | |
3151 | long val2 ; | |
3152 | int ecode2 = 0 ; | |
3153 | long val3 ; | |
3154 | int ecode3 = 0 ; | |
3155 | PyObject * obj0 = 0 ; | |
3156 | PyObject * obj1 = 0 ; | |
3157 | PyObject * obj2 = 0 ; | |
3158 | char * kwnames[] = { | |
3159 | (char *) "self",(char *) "start",(char *) "end", NULL | |
3160 | }; | |
3161 | ||
3162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3164 | if (!SWIG_IsOK(res1)) { | |
3165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3166 | } | |
3167 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3168 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3169 | if (!SWIG_IsOK(ecode2)) { | |
3170 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'"); | |
3171 | } | |
3172 | arg2 = static_cast< long >(val2); | |
3173 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
3174 | if (!SWIG_IsOK(ecode3)) { | |
3175 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'"); | |
3176 | } | |
3177 | arg3 = static_cast< long >(val3); | |
3178 | { | |
3179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3180 | (arg1)->SetRange(arg2,arg3); | |
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | resultobj = SWIG_Py_Void(); | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj = 0; | |
3193 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3194 | long arg2 ; | |
3195 | void *argp1 = 0 ; | |
3196 | int res1 = 0 ; | |
3197 | long val2 ; | |
3198 | int ecode2 = 0 ; | |
3199 | PyObject * obj0 = 0 ; | |
3200 | PyObject * obj1 = 0 ; | |
3201 | char * kwnames[] = { | |
3202 | (char *) "self",(char *) "start", NULL | |
3203 | }; | |
3204 | ||
3205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
3206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3207 | if (!SWIG_IsOK(res1)) { | |
3208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3209 | } | |
3210 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3211 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3212 | if (!SWIG_IsOK(ecode2)) { | |
3213 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'"); | |
3214 | } | |
3215 | arg2 = static_cast< long >(val2); | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | (arg1)->SetStart(arg2); | |
3219 | wxPyEndAllowThreads(__tstate); | |
3220 | if (PyErr_Occurred()) SWIG_fail; | |
3221 | } | |
3222 | resultobj = SWIG_Py_Void(); | |
3223 | return resultobj; | |
3224 | fail: | |
3225 | return NULL; | |
3226 | } | |
3227 | ||
3228 | ||
3229 | SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3230 | PyObject *resultobj = 0; | |
3231 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3232 | long result; | |
3233 | void *argp1 = 0 ; | |
3234 | int res1 = 0 ; | |
3235 | PyObject *swig_obj[1] ; | |
3236 | ||
3237 | if (!args) SWIG_fail; | |
3238 | swig_obj[0] = args; | |
3239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3240 | if (!SWIG_IsOK(res1)) { | |
3241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3242 | } | |
3243 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3244 | { | |
3245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3246 | result = (long)((wxRichTextRange const *)arg1)->GetStart(); | |
3247 | wxPyEndAllowThreads(__tstate); | |
3248 | if (PyErr_Occurred()) SWIG_fail; | |
3249 | } | |
3250 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3251 | return resultobj; | |
3252 | fail: | |
3253 | return NULL; | |
3254 | } | |
3255 | ||
3256 | ||
3257 | SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3258 | PyObject *resultobj = 0; | |
3259 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3260 | long arg2 ; | |
3261 | void *argp1 = 0 ; | |
3262 | int res1 = 0 ; | |
3263 | long val2 ; | |
3264 | int ecode2 = 0 ; | |
3265 | PyObject * obj0 = 0 ; | |
3266 | PyObject * obj1 = 0 ; | |
3267 | char * kwnames[] = { | |
3268 | (char *) "self",(char *) "end", NULL | |
3269 | }; | |
3270 | ||
3271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
3272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3273 | if (!SWIG_IsOK(res1)) { | |
3274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3275 | } | |
3276 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3277 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3278 | if (!SWIG_IsOK(ecode2)) { | |
3279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'"); | |
3280 | } | |
3281 | arg2 = static_cast< long >(val2); | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | (arg1)->SetEnd(arg2); | |
3285 | wxPyEndAllowThreads(__tstate); | |
3286 | if (PyErr_Occurred()) SWIG_fail; | |
3287 | } | |
3288 | resultobj = SWIG_Py_Void(); | |
3289 | return resultobj; | |
3290 | fail: | |
3291 | return NULL; | |
3292 | } | |
3293 | ||
3294 | ||
3295 | SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3296 | PyObject *resultobj = 0; | |
3297 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3298 | long result; | |
3299 | void *argp1 = 0 ; | |
3300 | int res1 = 0 ; | |
3301 | PyObject *swig_obj[1] ; | |
3302 | ||
3303 | if (!args) SWIG_fail; | |
3304 | swig_obj[0] = args; | |
3305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3306 | if (!SWIG_IsOK(res1)) { | |
3307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3308 | } | |
3309 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3310 | { | |
3311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3312 | result = (long)((wxRichTextRange const *)arg1)->GetEnd(); | |
3313 | wxPyEndAllowThreads(__tstate); | |
3314 | if (PyErr_Occurred()) SWIG_fail; | |
3315 | } | |
3316 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3317 | return resultobj; | |
3318 | fail: | |
3319 | return NULL; | |
3320 | } | |
3321 | ||
3322 | ||
3323 | SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3324 | PyObject *resultobj = 0; | |
3325 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3326 | wxRichTextRange *arg2 = 0 ; | |
3327 | bool result; | |
3328 | void *argp1 = 0 ; | |
3329 | int res1 = 0 ; | |
3330 | wxRichTextRange temp2 ; | |
3331 | PyObject * obj0 = 0 ; | |
3332 | PyObject * obj1 = 0 ; | |
3333 | char * kwnames[] = { | |
3334 | (char *) "self",(char *) "range", NULL | |
3335 | }; | |
3336 | ||
3337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail; | |
3338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3339 | if (!SWIG_IsOK(res1)) { | |
3340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3341 | } | |
3342 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3343 | { | |
3344 | arg2 = &temp2; | |
3345 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3346 | } | |
3347 | { | |
3348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3349 | result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2); | |
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
3353 | { | |
3354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3355 | } | |
3356 | return resultobj; | |
3357 | fail: | |
3358 | return NULL; | |
3359 | } | |
3360 | ||
3361 | ||
3362 | SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3363 | PyObject *resultobj = 0; | |
3364 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3365 | wxRichTextRange *arg2 = 0 ; | |
3366 | bool result; | |
3367 | void *argp1 = 0 ; | |
3368 | int res1 = 0 ; | |
3369 | wxRichTextRange temp2 ; | |
3370 | PyObject * obj0 = 0 ; | |
3371 | PyObject * obj1 = 0 ; | |
3372 | char * kwnames[] = { | |
3373 | (char *) "self",(char *) "range", NULL | |
3374 | }; | |
3375 | ||
3376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail; | |
3377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3378 | if (!SWIG_IsOK(res1)) { | |
3379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3380 | } | |
3381 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3382 | { | |
3383 | arg2 = &temp2; | |
3384 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3385 | } | |
3386 | { | |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3388 | result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2); | |
3389 | wxPyEndAllowThreads(__tstate); | |
3390 | if (PyErr_Occurred()) SWIG_fail; | |
3391 | } | |
3392 | { | |
3393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3394 | } | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj = 0; | |
3403 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3404 | long arg2 ; | |
3405 | bool result; | |
3406 | void *argp1 = 0 ; | |
3407 | int res1 = 0 ; | |
3408 | long val2 ; | |
3409 | int ecode2 = 0 ; | |
3410 | PyObject * obj0 = 0 ; | |
3411 | PyObject * obj1 = 0 ; | |
3412 | char * kwnames[] = { | |
3413 | (char *) "self",(char *) "pos", NULL | |
3414 | }; | |
3415 | ||
3416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail; | |
3417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3418 | if (!SWIG_IsOK(res1)) { | |
3419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3420 | } | |
3421 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3422 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3423 | if (!SWIG_IsOK(ecode2)) { | |
3424 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'"); | |
3425 | } | |
3426 | arg2 = static_cast< long >(val2); | |
3427 | { | |
3428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3429 | result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2); | |
3430 | wxPyEndAllowThreads(__tstate); | |
3431 | if (PyErr_Occurred()) SWIG_fail; | |
3432 | } | |
3433 | { | |
3434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3435 | } | |
3436 | return resultobj; | |
3437 | fail: | |
3438 | return NULL; | |
3439 | } | |
3440 | ||
3441 | ||
3442 | SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3443 | PyObject *resultobj = 0; | |
3444 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3445 | wxRichTextRange *arg2 = 0 ; | |
3446 | bool result; | |
3447 | void *argp1 = 0 ; | |
3448 | int res1 = 0 ; | |
3449 | wxRichTextRange temp2 ; | |
3450 | PyObject * obj0 = 0 ; | |
3451 | PyObject * obj1 = 0 ; | |
3452 | char * kwnames[] = { | |
3453 | (char *) "self",(char *) "range", NULL | |
3454 | }; | |
3455 | ||
3456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
3457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3458 | if (!SWIG_IsOK(res1)) { | |
3459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3460 | } | |
3461 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3462 | { | |
3463 | arg2 = &temp2; | |
3464 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3465 | } | |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2); | |
3469 | wxPyEndAllowThreads(__tstate); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
3472 | { | |
3473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3474 | } | |
3475 | return resultobj; | |
3476 | fail: | |
3477 | return NULL; | |
3478 | } | |
3479 | ||
3480 | ||
3481 | SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3482 | PyObject *resultobj = 0; | |
3483 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3484 | long result; | |
3485 | void *argp1 = 0 ; | |
3486 | int res1 = 0 ; | |
3487 | PyObject *swig_obj[1] ; | |
3488 | ||
3489 | if (!args) SWIG_fail; | |
3490 | swig_obj[0] = args; | |
3491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3492 | if (!SWIG_IsOK(res1)) { | |
3493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3494 | } | |
3495 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3496 | { | |
3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3498 | result = (long)((wxRichTextRange const *)arg1)->GetLength(); | |
3499 | wxPyEndAllowThreads(__tstate); | |
3500 | if (PyErr_Occurred()) SWIG_fail; | |
3501 | } | |
3502 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3503 | return resultobj; | |
3504 | fail: | |
3505 | return NULL; | |
3506 | } | |
3507 | ||
3508 | ||
3509 | SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3510 | PyObject *resultobj = 0; | |
3511 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3512 | void *argp1 = 0 ; | |
3513 | int res1 = 0 ; | |
3514 | PyObject *swig_obj[1] ; | |
3515 | ||
3516 | if (!args) SWIG_fail; | |
3517 | swig_obj[0] = args; | |
3518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3519 | if (!SWIG_IsOK(res1)) { | |
3520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3521 | } | |
3522 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3523 | { | |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3525 | (arg1)->Swap(); | |
3526 | wxPyEndAllowThreads(__tstate); | |
3527 | if (PyErr_Occurred()) SWIG_fail; | |
3528 | } | |
3529 | resultobj = SWIG_Py_Void(); | |
3530 | return resultobj; | |
3531 | fail: | |
3532 | return NULL; | |
3533 | } | |
3534 | ||
3535 | ||
3536 | SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3537 | PyObject *resultobj = 0; | |
3538 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3539 | PyObject *result = 0 ; | |
3540 | void *argp1 = 0 ; | |
3541 | int res1 = 0 ; | |
3542 | PyObject *swig_obj[1] ; | |
3543 | ||
3544 | if (!args) SWIG_fail; | |
3545 | swig_obj[0] = args; | |
3546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3547 | if (!SWIG_IsOK(res1)) { | |
3548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3549 | } | |
3550 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3551 | { | |
3552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3553 | result = (PyObject *)wxRichTextRange_Get(arg1); | |
3554 | wxPyEndAllowThreads(__tstate); | |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
3556 | } | |
3557 | resultobj = result; | |
3558 | return resultobj; | |
3559 | fail: | |
3560 | return NULL; | |
3561 | } | |
3562 | ||
3563 | ||
3564 | SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3565 | PyObject *obj; | |
3566 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3567 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj)); | |
3568 | return SWIG_Py_Void(); | |
3569 | } | |
3570 | ||
3571 | SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3572 | return SWIG_Python_InitShadowInstance(args); | |
3573 | } | |
3574 | ||
3575 | SWIGINTERN int RICHTEXT_ALL_set(PyObject *) { | |
3576 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only."); | |
3577 | return 1; | |
3578 | } | |
3579 | ||
3580 | ||
3581 | SWIGINTERN PyObject *RICHTEXT_ALL_get(void) { | |
3582 | PyObject *pyobj = 0; | |
3583 | ||
3584 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3585 | return pyobj; | |
3586 | } | |
3587 | ||
3588 | ||
3589 | SWIGINTERN int RICHTEXT_NONE_set(PyObject *) { | |
3590 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only."); | |
3591 | return 1; | |
3592 | } | |
3593 | ||
3594 | ||
3595 | SWIGINTERN PyObject *RICHTEXT_NONE_get(void) { | |
3596 | PyObject *pyobj = 0; | |
3597 | ||
3598 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3599 | return pyobj; | |
3600 | } | |
3601 | ||
3602 | ||
3603 | SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3604 | PyObject *resultobj = 0; | |
3605 | wxColour const &arg1_defvalue = wxNullColour ; | |
3606 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
3607 | wxColour const &arg2_defvalue = wxNullColour ; | |
3608 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3609 | wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
3610 | wxRichTextAttr *result = 0 ; | |
3611 | wxColour temp1 ; | |
3612 | wxColour temp2 ; | |
3613 | int val3 ; | |
3614 | int ecode3 = 0 ; | |
3615 | PyObject * obj0 = 0 ; | |
3616 | PyObject * obj1 = 0 ; | |
3617 | PyObject * obj2 = 0 ; | |
3618 | char * kwnames[] = { | |
3619 | (char *) "colText",(char *) "colBack",(char *) "alignment", NULL | |
3620 | }; | |
3621 | ||
3622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3623 | if (obj0) { | |
3624 | { | |
3625 | arg1 = &temp1; | |
3626 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3627 | } | |
3628 | } | |
3629 | if (obj1) { | |
3630 | { | |
3631 | arg2 = &temp2; | |
3632 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3633 | } | |
3634 | } | |
3635 | if (obj2) { | |
3636 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3637 | if (!SWIG_IsOK(ecode3)) { | |
3638 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'"); | |
3639 | } | |
3640 | arg3 = static_cast< wxTextAttrAlignment >(val3); | |
3641 | } | |
3642 | { | |
3643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3644 | result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3); | |
3645 | wxPyEndAllowThreads(__tstate); | |
3646 | if (PyErr_Occurred()) SWIG_fail; | |
3647 | } | |
3648 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 ); | |
3649 | return resultobj; | |
3650 | fail: | |
3651 | return NULL; | |
3652 | } | |
3653 | ||
3654 | ||
3655 | SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3656 | PyObject *resultobj = 0; | |
3657 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3658 | void *argp1 = 0 ; | |
3659 | int res1 = 0 ; | |
3660 | PyObject *swig_obj[1] ; | |
3661 | ||
3662 | if (!args) SWIG_fail; | |
3663 | swig_obj[0] = args; | |
3664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
3665 | if (!SWIG_IsOK(res1)) { | |
3666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3667 | } | |
3668 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3669 | { | |
3670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3671 | delete arg1; | |
3672 | ||
3673 | wxPyEndAllowThreads(__tstate); | |
3674 | if (PyErr_Occurred()) SWIG_fail; | |
3675 | } | |
3676 | resultobj = SWIG_Py_Void(); | |
3677 | return resultobj; | |
3678 | fail: | |
3679 | return NULL; | |
3680 | } | |
3681 | ||
3682 | ||
3683 | SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3684 | PyObject *resultobj = 0; | |
3685 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
92515dfc | 3686 | wxFont result; |
06810ecf RD |
3687 | void *argp1 = 0 ; |
3688 | int res1 = 0 ; | |
3689 | PyObject *swig_obj[1] ; | |
3690 | ||
3691 | if (!args) SWIG_fail; | |
3692 | swig_obj[0] = args; | |
3693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3694 | if (!SWIG_IsOK(res1)) { | |
3695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
3696 | } | |
3697 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3698 | { | |
3699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3700 | result = ((wxRichTextAttr const *)arg1)->CreateFont(); | |
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3712 | PyObject *resultobj = 0; | |
3713 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3714 | wxFont *arg2 = 0 ; | |
3715 | bool result; | |
3716 | void *argp1 = 0 ; | |
3717 | int res1 = 0 ; | |
3718 | void *argp2 = 0 ; | |
3719 | int res2 = 0 ; | |
3720 | PyObject * obj0 = 0 ; | |
3721 | PyObject * obj1 = 0 ; | |
3722 | char * kwnames[] = { | |
3723 | (char *) "self",(char *) "font", NULL | |
3724 | }; | |
3725 | ||
3726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail; | |
3727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3728 | if (!SWIG_IsOK(res1)) { | |
3729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3730 | } | |
3731 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3732 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
3733 | if (!SWIG_IsOK(res2)) { | |
3734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3735 | } | |
3736 | if (!argp2) { | |
3737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3738 | } | |
3739 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
3740 | { | |
3741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3742 | result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2); | |
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
3746 | { | |
3747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3748 | } | |
3749 | return resultobj; | |
3750 | fail: | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
3755 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3756 | PyObject *resultobj = 0; | |
3757 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3758 | wxColour *arg2 = 0 ; | |
3759 | void *argp1 = 0 ; | |
3760 | int res1 = 0 ; | |
3761 | wxColour temp2 ; | |
3762 | PyObject * obj0 = 0 ; | |
3763 | PyObject * obj1 = 0 ; | |
3764 | char * kwnames[] = { | |
3765 | (char *) "self",(char *) "colText", NULL | |
3766 | }; | |
3767 | ||
3768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3770 | if (!SWIG_IsOK(res1)) { | |
3771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3772 | } | |
3773 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3774 | { | |
3775 | arg2 = &temp2; | |
3776 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3777 | } | |
3778 | { | |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | resultobj = SWIG_Py_Void(); | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
3791 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj = 0; | |
3793 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3794 | wxColour *arg2 = 0 ; | |
3795 | void *argp1 = 0 ; | |
3796 | int res1 = 0 ; | |
3797 | wxColour temp2 ; | |
3798 | PyObject * obj0 = 0 ; | |
3799 | PyObject * obj1 = 0 ; | |
3800 | char * kwnames[] = { | |
3801 | (char *) "self",(char *) "colBack", NULL | |
3802 | }; | |
3803 | ||
3804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3806 | if (!SWIG_IsOK(res1)) { | |
3807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3808 | } | |
3809 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3810 | { | |
3811 | arg2 = &temp2; | |
3812 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3813 | } | |
3814 | { | |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3817 | wxPyEndAllowThreads(__tstate); | |
3818 | if (PyErr_Occurred()) SWIG_fail; | |
3819 | } | |
3820 | resultobj = SWIG_Py_Void(); | |
3821 | return resultobj; | |
3822 | fail: | |
3823 | return NULL; | |
3824 | } | |
3825 | ||
3826 | ||
3827 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3828 | PyObject *resultobj = 0; | |
3829 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3830 | wxTextAttrAlignment arg2 ; | |
3831 | void *argp1 = 0 ; | |
3832 | int res1 = 0 ; | |
3833 | int val2 ; | |
3834 | int ecode2 = 0 ; | |
3835 | PyObject * obj0 = 0 ; | |
3836 | PyObject * obj1 = 0 ; | |
3837 | char * kwnames[] = { | |
3838 | (char *) "self",(char *) "alignment", NULL | |
3839 | }; | |
3840 | ||
3841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
3842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3843 | if (!SWIG_IsOK(res1)) { | |
3844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3845 | } | |
3846 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3847 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3848 | if (!SWIG_IsOK(ecode2)) { | |
3849 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
3850 | } | |
3851 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
3852 | { | |
3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3854 | (arg1)->SetAlignment(arg2); | |
3855 | wxPyEndAllowThreads(__tstate); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
3857 | } | |
3858 | resultobj = SWIG_Py_Void(); | |
3859 | return resultobj; | |
3860 | fail: | |
3861 | return NULL; | |
3862 | } | |
3863 | ||
3864 | ||
3865 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3866 | PyObject *resultobj = 0; | |
3867 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3868 | wxArrayInt *arg2 = 0 ; | |
3869 | void *argp1 = 0 ; | |
3870 | int res1 = 0 ; | |
3871 | bool temp2 = false ; | |
3872 | PyObject * obj0 = 0 ; | |
3873 | PyObject * obj1 = 0 ; | |
3874 | char * kwnames[] = { | |
3875 | (char *) "self",(char *) "tabs", NULL | |
3876 | }; | |
3877 | ||
3878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
3879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3880 | if (!SWIG_IsOK(res1)) { | |
3881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3882 | } | |
3883 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3884 | { | |
3885 | if (! PySequence_Check(obj1)) { | |
3886 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
3887 | SWIG_fail; | |
3888 | } | |
3889 | arg2 = new wxArrayInt; | |
3890 | temp2 = true; | |
3891 | int i, len=PySequence_Length(obj1); | |
3892 | for (i=0; i<len; i++) { | |
3893 | PyObject* item = PySequence_GetItem(obj1, i); | |
3894 | PyObject* number = PyNumber_Int(item); | |
3895 | arg2->Add(PyInt_AS_LONG(number)); | |
3896 | Py_DECREF(item); | |
3897 | Py_DECREF(number); | |
3898 | } | |
3899 | } | |
3900 | { | |
3901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3902 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
3903 | wxPyEndAllowThreads(__tstate); | |
3904 | if (PyErr_Occurred()) SWIG_fail; | |
3905 | } | |
3906 | resultobj = SWIG_Py_Void(); | |
3907 | { | |
3908 | if (temp2) delete arg2; | |
3909 | } | |
3910 | return resultobj; | |
3911 | fail: | |
3912 | { | |
3913 | if (temp2) delete arg2; | |
3914 | } | |
3915 | return NULL; | |
3916 | } | |
3917 | ||
3918 | ||
3919 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3920 | PyObject *resultobj = 0; | |
3921 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3922 | int arg2 ; | |
3923 | int arg3 = (int) 0 ; | |
3924 | void *argp1 = 0 ; | |
3925 | int res1 = 0 ; | |
3926 | int val2 ; | |
3927 | int ecode2 = 0 ; | |
3928 | int val3 ; | |
3929 | int ecode3 = 0 ; | |
3930 | PyObject * obj0 = 0 ; | |
3931 | PyObject * obj1 = 0 ; | |
3932 | PyObject * obj2 = 0 ; | |
3933 | char * kwnames[] = { | |
3934 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
3935 | }; | |
3936 | ||
3937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3939 | if (!SWIG_IsOK(res1)) { | |
3940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3941 | } | |
3942 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3944 | if (!SWIG_IsOK(ecode2)) { | |
3945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
3946 | } | |
3947 | arg2 = static_cast< int >(val2); | |
3948 | if (obj2) { | |
3949 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3950 | if (!SWIG_IsOK(ecode3)) { | |
3951 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
3952 | } | |
3953 | arg3 = static_cast< int >(val3); | |
3954 | } | |
3955 | { | |
3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3957 | (arg1)->SetLeftIndent(arg2,arg3); | |
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
3961 | resultobj = SWIG_Py_Void(); | |
3962 | return resultobj; | |
3963 | fail: | |
3964 | return NULL; | |
3965 | } | |
3966 | ||
3967 | ||
3968 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3969 | PyObject *resultobj = 0; | |
3970 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3971 | int arg2 ; | |
3972 | void *argp1 = 0 ; | |
3973 | int res1 = 0 ; | |
3974 | int val2 ; | |
3975 | int ecode2 = 0 ; | |
3976 | PyObject * obj0 = 0 ; | |
3977 | PyObject * obj1 = 0 ; | |
3978 | char * kwnames[] = { | |
3979 | (char *) "self",(char *) "indent", NULL | |
3980 | }; | |
3981 | ||
3982 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
3983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3984 | if (!SWIG_IsOK(res1)) { | |
3985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3986 | } | |
3987 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3988 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3989 | if (!SWIG_IsOK(ecode2)) { | |
3990 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
3991 | } | |
3992 | arg2 = static_cast< int >(val2); | |
3993 | { | |
3994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3995 | (arg1)->SetRightIndent(arg2); | |
3996 | wxPyEndAllowThreads(__tstate); | |
3997 | if (PyErr_Occurred()) SWIG_fail; | |
3998 | } | |
3999 | resultobj = SWIG_Py_Void(); | |
4000 | return resultobj; | |
4001 | fail: | |
4002 | return NULL; | |
4003 | } | |
4004 | ||
4005 | ||
4006 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4007 | PyObject *resultobj = 0; | |
4008 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4009 | int arg2 ; | |
4010 | void *argp1 = 0 ; | |
4011 | int res1 = 0 ; | |
4012 | int val2 ; | |
4013 | int ecode2 = 0 ; | |
4014 | PyObject * obj0 = 0 ; | |
4015 | PyObject * obj1 = 0 ; | |
4016 | char * kwnames[] = { | |
4017 | (char *) "self",(char *) "pointSize", NULL | |
4018 | }; | |
4019 | ||
4020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4022 | if (!SWIG_IsOK(res1)) { | |
4023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4024 | } | |
4025 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4027 | if (!SWIG_IsOK(ecode2)) { | |
4028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'"); | |
4029 | } | |
4030 | arg2 = static_cast< int >(val2); | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | (arg1)->SetFontSize(arg2); | |
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
4036 | } | |
4037 | resultobj = SWIG_Py_Void(); | |
4038 | return resultobj; | |
4039 | fail: | |
4040 | return NULL; | |
4041 | } | |
4042 | ||
4043 | ||
4044 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4045 | PyObject *resultobj = 0; | |
4046 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4047 | int arg2 ; | |
4048 | void *argp1 = 0 ; | |
4049 | int res1 = 0 ; | |
4050 | int val2 ; | |
4051 | int ecode2 = 0 ; | |
4052 | PyObject * obj0 = 0 ; | |
4053 | PyObject * obj1 = 0 ; | |
4054 | char * kwnames[] = { | |
4055 | (char *) "self",(char *) "fontStyle", NULL | |
4056 | }; | |
4057 | ||
4058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4060 | if (!SWIG_IsOK(res1)) { | |
4061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4062 | } | |
4063 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4064 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4065 | if (!SWIG_IsOK(ecode2)) { | |
4066 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'"); | |
4067 | } | |
4068 | arg2 = static_cast< int >(val2); | |
4069 | { | |
4070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4071 | (arg1)->SetFontStyle(arg2); | |
4072 | wxPyEndAllowThreads(__tstate); | |
4073 | if (PyErr_Occurred()) SWIG_fail; | |
4074 | } | |
4075 | resultobj = SWIG_Py_Void(); | |
4076 | return resultobj; | |
4077 | fail: | |
4078 | return NULL; | |
4079 | } | |
4080 | ||
4081 | ||
4082 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4083 | PyObject *resultobj = 0; | |
4084 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4085 | int arg2 ; | |
4086 | void *argp1 = 0 ; | |
4087 | int res1 = 0 ; | |
4088 | int val2 ; | |
4089 | int ecode2 = 0 ; | |
4090 | PyObject * obj0 = 0 ; | |
4091 | PyObject * obj1 = 0 ; | |
4092 | char * kwnames[] = { | |
4093 | (char *) "self",(char *) "fontWeight", NULL | |
4094 | }; | |
4095 | ||
4096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
4097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4098 | if (!SWIG_IsOK(res1)) { | |
4099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4100 | } | |
4101 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4102 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4103 | if (!SWIG_IsOK(ecode2)) { | |
4104 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'"); | |
4105 | } | |
4106 | arg2 = static_cast< int >(val2); | |
4107 | { | |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4109 | (arg1)->SetFontWeight(arg2); | |
4110 | wxPyEndAllowThreads(__tstate); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | resultobj = SWIG_Py_Void(); | |
4114 | return resultobj; | |
4115 | fail: | |
4116 | return NULL; | |
4117 | } | |
4118 | ||
4119 | ||
4120 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4121 | PyObject *resultobj = 0; | |
4122 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4123 | wxString *arg2 = 0 ; | |
4124 | void *argp1 = 0 ; | |
4125 | int res1 = 0 ; | |
4126 | bool temp2 = false ; | |
4127 | PyObject * obj0 = 0 ; | |
4128 | PyObject * obj1 = 0 ; | |
4129 | char * kwnames[] = { | |
4130 | (char *) "self",(char *) "faceName", NULL | |
4131 | }; | |
4132 | ||
4133 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4134 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4135 | if (!SWIG_IsOK(res1)) { | |
4136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4137 | } | |
4138 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4139 | { | |
4140 | arg2 = wxString_in_helper(obj1); | |
4141 | if (arg2 == NULL) SWIG_fail; | |
4142 | temp2 = true; | |
4143 | } | |
4144 | { | |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | (arg1)->SetFontFaceName((wxString const &)*arg2); | |
4147 | wxPyEndAllowThreads(__tstate); | |
4148 | if (PyErr_Occurred()) SWIG_fail; | |
4149 | } | |
4150 | resultobj = SWIG_Py_Void(); | |
4151 | { | |
4152 | if (temp2) | |
4153 | delete arg2; | |
4154 | } | |
4155 | return resultobj; | |
4156 | fail: | |
4157 | { | |
4158 | if (temp2) | |
4159 | delete arg2; | |
4160 | } | |
4161 | return NULL; | |
4162 | } | |
4163 | ||
4164 | ||
4165 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4166 | PyObject *resultobj = 0; | |
4167 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4168 | bool arg2 ; | |
4169 | void *argp1 = 0 ; | |
4170 | int res1 = 0 ; | |
4171 | bool val2 ; | |
4172 | int ecode2 = 0 ; | |
4173 | PyObject * obj0 = 0 ; | |
4174 | PyObject * obj1 = 0 ; | |
4175 | char * kwnames[] = { | |
4176 | (char *) "self",(char *) "underlined", NULL | |
4177 | }; | |
4178 | ||
4179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
4180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4181 | if (!SWIG_IsOK(res1)) { | |
4182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4183 | } | |
4184 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4185 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4186 | if (!SWIG_IsOK(ecode2)) { | |
4187 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
4188 | } | |
4189 | arg2 = static_cast< bool >(val2); | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | (arg1)->SetFontUnderlined(arg2); | |
4193 | wxPyEndAllowThreads(__tstate); | |
4194 | if (PyErr_Occurred()) SWIG_fail; | |
4195 | } | |
4196 | resultobj = SWIG_Py_Void(); | |
4197 | return resultobj; | |
4198 | fail: | |
4199 | return NULL; | |
4200 | } | |
4201 | ||
4202 | ||
4203 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4204 | PyObject *resultobj = 0; | |
4205 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4206 | long arg2 ; | |
4207 | void *argp1 = 0 ; | |
4208 | int res1 = 0 ; | |
4209 | long val2 ; | |
4210 | int ecode2 = 0 ; | |
4211 | PyObject * obj0 = 0 ; | |
4212 | PyObject * obj1 = 0 ; | |
4213 | char * kwnames[] = { | |
4214 | (char *) "self",(char *) "flags", NULL | |
4215 | }; | |
4216 | ||
4217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4219 | if (!SWIG_IsOK(res1)) { | |
4220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4221 | } | |
4222 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4223 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4224 | if (!SWIG_IsOK(ecode2)) { | |
4225 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
4226 | } | |
4227 | arg2 = static_cast< long >(val2); | |
4228 | { | |
4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4230 | (arg1)->SetFlags(arg2); | |
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | resultobj = SWIG_Py_Void(); | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
4241 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj = 0; | |
4243 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4244 | wxString *arg2 = 0 ; | |
4245 | void *argp1 = 0 ; | |
4246 | int res1 = 0 ; | |
4247 | bool temp2 = false ; | |
4248 | PyObject * obj0 = 0 ; | |
4249 | PyObject * obj1 = 0 ; | |
4250 | char * kwnames[] = { | |
4251 | (char *) "self",(char *) "name", NULL | |
4252 | }; | |
4253 | ||
4254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4256 | if (!SWIG_IsOK(res1)) { | |
4257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4258 | } | |
4259 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4260 | { | |
4261 | arg2 = wxString_in_helper(obj1); | |
4262 | if (arg2 == NULL) SWIG_fail; | |
4263 | temp2 = true; | |
4264 | } | |
4265 | { | |
4266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4267 | (arg1)->SetCharacterStyleName((wxString const &)*arg2); | |
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | resultobj = SWIG_Py_Void(); | |
4272 | { | |
4273 | if (temp2) | |
4274 | delete arg2; | |
4275 | } | |
4276 | return resultobj; | |
4277 | fail: | |
4278 | { | |
4279 | if (temp2) | |
4280 | delete arg2; | |
4281 | } | |
4282 | return NULL; | |
4283 | } | |
4284 | ||
4285 | ||
4286 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4287 | PyObject *resultobj = 0; | |
4288 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4289 | wxString *arg2 = 0 ; | |
4290 | void *argp1 = 0 ; | |
4291 | int res1 = 0 ; | |
4292 | bool temp2 = false ; | |
4293 | PyObject * obj0 = 0 ; | |
4294 | PyObject * obj1 = 0 ; | |
4295 | char * kwnames[] = { | |
4296 | (char *) "self",(char *) "name", NULL | |
4297 | }; | |
4298 | ||
4299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4301 | if (!SWIG_IsOK(res1)) { | |
4302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4303 | } | |
4304 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4305 | { | |
4306 | arg2 = wxString_in_helper(obj1); | |
4307 | if (arg2 == NULL) SWIG_fail; | |
4308 | temp2 = true; | |
4309 | } | |
4310 | { | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | (arg1)->SetParagraphStyleName((wxString const &)*arg2); | |
4313 | wxPyEndAllowThreads(__tstate); | |
4314 | if (PyErr_Occurred()) SWIG_fail; | |
4315 | } | |
4316 | resultobj = SWIG_Py_Void(); | |
4317 | { | |
4318 | if (temp2) | |
4319 | delete arg2; | |
4320 | } | |
4321 | return resultobj; | |
4322 | fail: | |
4323 | { | |
4324 | if (temp2) | |
4325 | delete arg2; | |
4326 | } | |
4327 | return NULL; | |
4328 | } | |
4329 | ||
4330 | ||
4331 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4332 | PyObject *resultobj = 0; | |
4333 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4334 | int arg2 ; | |
4335 | void *argp1 = 0 ; | |
4336 | int res1 = 0 ; | |
4337 | int val2 ; | |
4338 | int ecode2 = 0 ; | |
4339 | PyObject * obj0 = 0 ; | |
4340 | PyObject * obj1 = 0 ; | |
4341 | char * kwnames[] = { | |
4342 | (char *) "self",(char *) "spacing", NULL | |
4343 | }; | |
4344 | ||
4345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail; | |
4346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4347 | if (!SWIG_IsOK(res1)) { | |
4348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4349 | } | |
4350 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4351 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4352 | if (!SWIG_IsOK(ecode2)) { | |
4353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'"); | |
4354 | } | |
4355 | arg2 = static_cast< int >(val2); | |
4356 | { | |
4357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4358 | (arg1)->SetParagraphSpacingAfter(arg2); | |
4359 | wxPyEndAllowThreads(__tstate); | |
4360 | if (PyErr_Occurred()) SWIG_fail; | |
4361 | } | |
4362 | resultobj = SWIG_Py_Void(); | |
4363 | return resultobj; | |
4364 | fail: | |
4365 | return NULL; | |
4366 | } | |
4367 | ||
4368 | ||
4369 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4370 | PyObject *resultobj = 0; | |
4371 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4372 | int arg2 ; | |
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 *) "spacing", NULL | |
4381 | }; | |
4382 | ||
4383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail; | |
4384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4385 | if (!SWIG_IsOK(res1)) { | |
4386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4387 | } | |
4388 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4389 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4390 | if (!SWIG_IsOK(ecode2)) { | |
4391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'"); | |
4392 | } | |
4393 | arg2 = static_cast< int >(val2); | |
4394 | { | |
4395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4396 | (arg1)->SetParagraphSpacingBefore(arg2); | |
4397 | wxPyEndAllowThreads(__tstate); | |
4398 | if (PyErr_Occurred()) SWIG_fail; | |
4399 | } | |
4400 | resultobj = SWIG_Py_Void(); | |
4401 | return resultobj; | |
4402 | fail: | |
4403 | return NULL; | |
4404 | } | |
4405 | ||
4406 | ||
4407 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4408 | PyObject *resultobj = 0; | |
4409 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4410 | int arg2 ; | |
4411 | void *argp1 = 0 ; | |
4412 | int res1 = 0 ; | |
4413 | int val2 ; | |
4414 | int ecode2 = 0 ; | |
4415 | PyObject * obj0 = 0 ; | |
4416 | PyObject * obj1 = 0 ; | |
4417 | char * kwnames[] = { | |
4418 | (char *) "self",(char *) "spacing", NULL | |
4419 | }; | |
4420 | ||
4421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
4422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4423 | if (!SWIG_IsOK(res1)) { | |
4424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4425 | } | |
4426 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4427 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4428 | if (!SWIG_IsOK(ecode2)) { | |
4429 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
4430 | } | |
4431 | arg2 = static_cast< int >(val2); | |
4432 | { | |
4433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4434 | (arg1)->SetLineSpacing(arg2); | |
4435 | wxPyEndAllowThreads(__tstate); | |
4436 | if (PyErr_Occurred()) SWIG_fail; | |
4437 | } | |
4438 | resultobj = SWIG_Py_Void(); | |
4439 | return resultobj; | |
4440 | fail: | |
4441 | return NULL; | |
4442 | } | |
4443 | ||
4444 | ||
4445 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4446 | PyObject *resultobj = 0; | |
4447 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4448 | int arg2 ; | |
4449 | void *argp1 = 0 ; | |
4450 | int res1 = 0 ; | |
4451 | int val2 ; | |
4452 | int ecode2 = 0 ; | |
4453 | PyObject * obj0 = 0 ; | |
4454 | PyObject * obj1 = 0 ; | |
4455 | char * kwnames[] = { | |
4456 | (char *) "self",(char *) "style", NULL | |
4457 | }; | |
4458 | ||
4459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4461 | if (!SWIG_IsOK(res1)) { | |
4462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4463 | } | |
4464 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4465 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4466 | if (!SWIG_IsOK(ecode2)) { | |
4467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'"); | |
4468 | } | |
4469 | arg2 = static_cast< int >(val2); | |
4470 | { | |
4471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4472 | (arg1)->SetBulletStyle(arg2); | |
4473 | wxPyEndAllowThreads(__tstate); | |
4474 | if (PyErr_Occurred()) SWIG_fail; | |
4475 | } | |
4476 | resultobj = SWIG_Py_Void(); | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
4483 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4484 | PyObject *resultobj = 0; | |
4485 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4486 | int arg2 ; | |
4487 | void *argp1 = 0 ; | |
4488 | int res1 = 0 ; | |
4489 | int val2 ; | |
4490 | int ecode2 = 0 ; | |
4491 | PyObject * obj0 = 0 ; | |
4492 | PyObject * obj1 = 0 ; | |
4493 | char * kwnames[] = { | |
4494 | (char *) "self",(char *) "n", NULL | |
4495 | }; | |
4496 | ||
4497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail; | |
4498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4499 | if (!SWIG_IsOK(res1)) { | |
4500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4501 | } | |
4502 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4503 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4504 | if (!SWIG_IsOK(ecode2)) { | |
4505 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'"); | |
4506 | } | |
4507 | arg2 = static_cast< int >(val2); | |
4508 | { | |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | (arg1)->SetBulletNumber(arg2); | |
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4514 | resultobj = SWIG_Py_Void(); | |
4515 | return resultobj; | |
4516 | fail: | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4522 | PyObject *resultobj = 0; | |
4523 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4524 | wxChar arg2 ; | |
4525 | void *argp1 = 0 ; | |
4526 | int res1 = 0 ; | |
4527 | void *argp2 ; | |
4528 | int res2 = 0 ; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | PyObject * obj1 = 0 ; | |
4531 | char * kwnames[] = { | |
4532 | (char *) "self",(char *) "symbol", NULL | |
4533 | }; | |
4534 | ||
4535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletSymbol",kwnames,&obj0,&obj1)) SWIG_fail; | |
4536 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4537 | if (!SWIG_IsOK(res1)) { | |
4538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4539 | } | |
4540 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4541 | { | |
4542 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0); | |
4543 | if (!SWIG_IsOK(res2)) { | |
4544 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'"); | |
4545 | } | |
4546 | if (!argp2) { | |
4547 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'"); | |
4548 | } else { | |
4549 | wxChar * temp = reinterpret_cast< wxChar * >(argp2); | |
4550 | arg2 = *temp; | |
4551 | if (SWIG_IsNewObj(res2)) delete temp; | |
4552 | } | |
4553 | } | |
4554 | { | |
4555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4556 | (arg1)->SetBulletSymbol(arg2); | |
4557 | wxPyEndAllowThreads(__tstate); | |
4558 | if (PyErr_Occurred()) SWIG_fail; | |
4559 | } | |
4560 | resultobj = SWIG_Py_Void(); | |
4561 | return resultobj; | |
4562 | fail: | |
4563 | return NULL; | |
4564 | } | |
4565 | ||
4566 | ||
4567 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4568 | PyObject *resultobj = 0; | |
4569 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4570 | wxColour *result = 0 ; | |
4571 | void *argp1 = 0 ; | |
4572 | int res1 = 0 ; | |
4573 | PyObject *swig_obj[1] ; | |
4574 | ||
4575 | if (!args) SWIG_fail; | |
4576 | swig_obj[0] = args; | |
4577 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4578 | if (!SWIG_IsOK(res1)) { | |
4579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4580 | } | |
4581 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | { | |
4585 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour(); | |
4586 | result = (wxColour *) &_result_ref; | |
4587 | } | |
4588 | wxPyEndAllowThreads(__tstate); | |
4589 | if (PyErr_Occurred()) SWIG_fail; | |
4590 | } | |
4591 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4592 | return resultobj; | |
4593 | fail: | |
4594 | return NULL; | |
4595 | } | |
4596 | ||
4597 | ||
4598 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4599 | PyObject *resultobj = 0; | |
4600 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4601 | wxColour *result = 0 ; | |
4602 | void *argp1 = 0 ; | |
4603 | int res1 = 0 ; | |
4604 | PyObject *swig_obj[1] ; | |
4605 | ||
4606 | if (!args) SWIG_fail; | |
4607 | swig_obj[0] = args; | |
4608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4609 | if (!SWIG_IsOK(res1)) { | |
4610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4611 | } | |
4612 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4613 | { | |
4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4615 | { | |
4616 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour(); | |
4617 | result = (wxColour *) &_result_ref; | |
4618 | } | |
4619 | wxPyEndAllowThreads(__tstate); | |
4620 | if (PyErr_Occurred()) SWIG_fail; | |
4621 | } | |
4622 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4623 | return resultobj; | |
4624 | fail: | |
4625 | return NULL; | |
4626 | } | |
4627 | ||
4628 | ||
4629 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4630 | PyObject *resultobj = 0; | |
4631 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4632 | wxTextAttrAlignment result; | |
4633 | void *argp1 = 0 ; | |
4634 | int res1 = 0 ; | |
4635 | PyObject *swig_obj[1] ; | |
4636 | ||
4637 | if (!args) SWIG_fail; | |
4638 | swig_obj[0] = args; | |
4639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4640 | if (!SWIG_IsOK(res1)) { | |
4641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4642 | } | |
4643 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4644 | { | |
4645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4646 | result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment(); | |
4647 | wxPyEndAllowThreads(__tstate); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4651 | return resultobj; | |
4652 | fail: | |
4653 | return NULL; | |
4654 | } | |
4655 | ||
4656 | ||
4657 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4658 | PyObject *resultobj = 0; | |
4659 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4660 | wxArrayInt *result = 0 ; | |
4661 | void *argp1 = 0 ; | |
4662 | int res1 = 0 ; | |
4663 | PyObject *swig_obj[1] ; | |
4664 | ||
4665 | if (!args) SWIG_fail; | |
4666 | swig_obj[0] = args; | |
4667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4668 | if (!SWIG_IsOK(res1)) { | |
4669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4670 | } | |
4671 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4672 | { | |
4673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4674 | { | |
4675 | wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs(); | |
4676 | result = (wxArrayInt *) &_result_ref; | |
4677 | } | |
4678 | wxPyEndAllowThreads(__tstate); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
4681 | { | |
4682 | resultobj = PyList_New(0); | |
4683 | size_t idx; | |
4684 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
4685 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
4686 | PyList_Append(resultobj, val); | |
4687 | Py_DECREF(val); | |
4688 | } | |
4689 | } | |
4690 | return resultobj; | |
4691 | fail: | |
4692 | return NULL; | |
4693 | } | |
4694 | ||
4695 | ||
4696 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4697 | PyObject *resultobj = 0; | |
4698 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4699 | long result; | |
4700 | void *argp1 = 0 ; | |
4701 | int res1 = 0 ; | |
4702 | PyObject *swig_obj[1] ; | |
4703 | ||
4704 | if (!args) SWIG_fail; | |
4705 | swig_obj[0] = args; | |
4706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4707 | if (!SWIG_IsOK(res1)) { | |
4708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4709 | } | |
4710 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4711 | { | |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent(); | |
4714 | wxPyEndAllowThreads(__tstate); | |
4715 | if (PyErr_Occurred()) SWIG_fail; | |
4716 | } | |
4717 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4718 | return resultobj; | |
4719 | fail: | |
4720 | return NULL; | |
4721 | } | |
4722 | ||
4723 | ||
4724 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4725 | PyObject *resultobj = 0; | |
4726 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4727 | long result; | |
4728 | void *argp1 = 0 ; | |
4729 | int res1 = 0 ; | |
4730 | PyObject *swig_obj[1] ; | |
4731 | ||
4732 | if (!args) SWIG_fail; | |
4733 | swig_obj[0] = args; | |
4734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4735 | if (!SWIG_IsOK(res1)) { | |
4736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4737 | } | |
4738 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4739 | { | |
4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4741 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent(); | |
4742 | wxPyEndAllowThreads(__tstate); | |
4743 | if (PyErr_Occurred()) SWIG_fail; | |
4744 | } | |
4745 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4746 | return resultobj; | |
4747 | fail: | |
4748 | return NULL; | |
4749 | } | |
4750 | ||
4751 | ||
4752 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4753 | PyObject *resultobj = 0; | |
4754 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4755 | long result; | |
4756 | void *argp1 = 0 ; | |
4757 | int res1 = 0 ; | |
4758 | PyObject *swig_obj[1] ; | |
4759 | ||
4760 | if (!args) SWIG_fail; | |
4761 | swig_obj[0] = args; | |
4762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4763 | if (!SWIG_IsOK(res1)) { | |
4764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4765 | } | |
4766 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4767 | { | |
4768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4769 | result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent(); | |
4770 | wxPyEndAllowThreads(__tstate); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | } | |
4773 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4774 | return resultobj; | |
4775 | fail: | |
4776 | return NULL; | |
4777 | } | |
4778 | ||
4779 | ||
4780 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4781 | PyObject *resultobj = 0; | |
4782 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4783 | long result; | |
4784 | void *argp1 = 0 ; | |
4785 | int res1 = 0 ; | |
4786 | PyObject *swig_obj[1] ; | |
4787 | ||
4788 | if (!args) SWIG_fail; | |
4789 | swig_obj[0] = args; | |
4790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4791 | if (!SWIG_IsOK(res1)) { | |
4792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4793 | } | |
4794 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4795 | { | |
4796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4797 | result = (long)((wxRichTextAttr const *)arg1)->GetFlags(); | |
4798 | wxPyEndAllowThreads(__tstate); | |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
4800 | } | |
4801 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4802 | return resultobj; | |
4803 | fail: | |
4804 | return NULL; | |
4805 | } | |
4806 | ||
4807 | ||
4808 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4809 | PyObject *resultobj = 0; | |
4810 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4811 | int result; | |
4812 | void *argp1 = 0 ; | |
4813 | int res1 = 0 ; | |
4814 | PyObject *swig_obj[1] ; | |
4815 | ||
4816 | if (!args) SWIG_fail; | |
4817 | swig_obj[0] = args; | |
4818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4819 | if (!SWIG_IsOK(res1)) { | |
4820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4821 | } | |
4822 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4823 | { | |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | result = (int)((wxRichTextAttr const *)arg1)->GetFontSize(); | |
4826 | wxPyEndAllowThreads(__tstate); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | } | |
4829 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4830 | return resultobj; | |
4831 | fail: | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
4836 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4837 | PyObject *resultobj = 0; | |
4838 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4839 | int result; | |
4840 | void *argp1 = 0 ; | |
4841 | int res1 = 0 ; | |
4842 | PyObject *swig_obj[1] ; | |
4843 | ||
4844 | if (!args) SWIG_fail; | |
4845 | swig_obj[0] = args; | |
4846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4847 | if (!SWIG_IsOK(res1)) { | |
4848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4849 | } | |
4850 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4851 | { | |
4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4853 | result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle(); | |
4854 | wxPyEndAllowThreads(__tstate); | |
4855 | if (PyErr_Occurred()) SWIG_fail; | |
4856 | } | |
4857 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | return NULL; | |
4861 | } | |
4862 | ||
4863 | ||
4864 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4865 | PyObject *resultobj = 0; | |
4866 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4867 | int result; | |
4868 | void *argp1 = 0 ; | |
4869 | int res1 = 0 ; | |
4870 | PyObject *swig_obj[1] ; | |
4871 | ||
4872 | if (!args) SWIG_fail; | |
4873 | swig_obj[0] = args; | |
4874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4875 | if (!SWIG_IsOK(res1)) { | |
4876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4877 | } | |
4878 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4879 | { | |
4880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4881 | result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight(); | |
4882 | wxPyEndAllowThreads(__tstate); | |
4883 | if (PyErr_Occurred()) SWIG_fail; | |
4884 | } | |
4885 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4886 | return resultobj; | |
4887 | fail: | |
4888 | return NULL; | |
4889 | } | |
4890 | ||
4891 | ||
4892 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4893 | PyObject *resultobj = 0; | |
4894 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4895 | bool result; | |
4896 | void *argp1 = 0 ; | |
4897 | int res1 = 0 ; | |
4898 | PyObject *swig_obj[1] ; | |
4899 | ||
4900 | if (!args) SWIG_fail; | |
4901 | swig_obj[0] = args; | |
4902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4903 | if (!SWIG_IsOK(res1)) { | |
4904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4905 | } | |
4906 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4907 | { | |
4908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4909 | result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined(); | |
4910 | wxPyEndAllowThreads(__tstate); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | } | |
4913 | { | |
4914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4915 | } | |
4916 | return resultobj; | |
4917 | fail: | |
4918 | return NULL; | |
4919 | } | |
4920 | ||
4921 | ||
4922 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4923 | PyObject *resultobj = 0; | |
4924 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4925 | wxString *result = 0 ; | |
4926 | void *argp1 = 0 ; | |
4927 | int res1 = 0 ; | |
4928 | PyObject *swig_obj[1] ; | |
4929 | ||
4930 | if (!args) SWIG_fail; | |
4931 | swig_obj[0] = args; | |
4932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4933 | if (!SWIG_IsOK(res1)) { | |
4934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4935 | } | |
4936 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4937 | { | |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | { | |
4940 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName(); | |
4941 | result = (wxString *) &_result_ref; | |
4942 | } | |
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | { | |
4947 | #if wxUSE_UNICODE | |
4948 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4949 | #else | |
4950 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4951 | #endif | |
4952 | } | |
4953 | return resultobj; | |
4954 | fail: | |
4955 | return NULL; | |
4956 | } | |
4957 | ||
4958 | ||
4959 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4960 | PyObject *resultobj = 0; | |
4961 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4962 | wxString *result = 0 ; | |
4963 | void *argp1 = 0 ; | |
4964 | int res1 = 0 ; | |
4965 | PyObject *swig_obj[1] ; | |
4966 | ||
4967 | if (!args) SWIG_fail; | |
4968 | swig_obj[0] = args; | |
4969 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4970 | if (!SWIG_IsOK(res1)) { | |
4971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4972 | } | |
4973 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4974 | { | |
4975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4976 | { | |
4977 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName(); | |
4978 | result = (wxString *) &_result_ref; | |
4979 | } | |
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) SWIG_fail; | |
4982 | } | |
4983 | { | |
4984 | #if wxUSE_UNICODE | |
4985 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4986 | #else | |
4987 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4988 | #endif | |
4989 | } | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
4996 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4997 | PyObject *resultobj = 0; | |
4998 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4999 | wxString *result = 0 ; | |
5000 | void *argp1 = 0 ; | |
5001 | int res1 = 0 ; | |
5002 | PyObject *swig_obj[1] ; | |
5003 | ||
5004 | if (!args) SWIG_fail; | |
5005 | swig_obj[0] = args; | |
5006 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5007 | if (!SWIG_IsOK(res1)) { | |
5008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5009 | } | |
5010 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5011 | { | |
5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5013 | { | |
5014 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName(); | |
5015 | result = (wxString *) &_result_ref; | |
5016 | } | |
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | { | |
5021 | #if wxUSE_UNICODE | |
5022 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5023 | #else | |
5024 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5025 | #endif | |
5026 | } | |
5027 | return resultobj; | |
5028 | fail: | |
5029 | return NULL; | |
5030 | } | |
5031 | ||
5032 | ||
5033 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5034 | PyObject *resultobj = 0; | |
5035 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5036 | int result; | |
5037 | void *argp1 = 0 ; | |
5038 | int res1 = 0 ; | |
5039 | PyObject *swig_obj[1] ; | |
5040 | ||
5041 | if (!args) SWIG_fail; | |
5042 | swig_obj[0] = args; | |
5043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5044 | if (!SWIG_IsOK(res1)) { | |
5045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5046 | } | |
5047 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter(); | |
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
5061 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5062 | PyObject *resultobj = 0; | |
5063 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5064 | int result; | |
5065 | void *argp1 = 0 ; | |
5066 | int res1 = 0 ; | |
5067 | PyObject *swig_obj[1] ; | |
5068 | ||
5069 | if (!args) SWIG_fail; | |
5070 | swig_obj[0] = args; | |
5071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5072 | if (!SWIG_IsOK(res1)) { | |
5073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5074 | } | |
5075 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5076 | { | |
5077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5078 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore(); | |
5079 | wxPyEndAllowThreads(__tstate); | |
5080 | if (PyErr_Occurred()) SWIG_fail; | |
5081 | } | |
5082 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5083 | return resultobj; | |
5084 | fail: | |
5085 | return NULL; | |
5086 | } | |
5087 | ||
5088 | ||
5089 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5090 | PyObject *resultobj = 0; | |
5091 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5092 | int result; | |
5093 | void *argp1 = 0 ; | |
5094 | int res1 = 0 ; | |
5095 | PyObject *swig_obj[1] ; | |
5096 | ||
5097 | if (!args) SWIG_fail; | |
5098 | swig_obj[0] = args; | |
5099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5100 | if (!SWIG_IsOK(res1)) { | |
5101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5102 | } | |
5103 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing(); | |
5107 | wxPyEndAllowThreads(__tstate); | |
5108 | if (PyErr_Occurred()) SWIG_fail; | |
5109 | } | |
5110 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5111 | return resultobj; | |
5112 | fail: | |
5113 | return NULL; | |
5114 | } | |
5115 | ||
5116 | ||
5117 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5118 | PyObject *resultobj = 0; | |
5119 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5120 | int result; | |
5121 | void *argp1 = 0 ; | |
5122 | int res1 = 0 ; | |
5123 | PyObject *swig_obj[1] ; | |
5124 | ||
5125 | if (!args) SWIG_fail; | |
5126 | swig_obj[0] = args; | |
5127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5128 | if (!SWIG_IsOK(res1)) { | |
5129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5130 | } | |
5131 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5132 | { | |
5133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5134 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle(); | |
5135 | wxPyEndAllowThreads(__tstate); | |
5136 | if (PyErr_Occurred()) SWIG_fail; | |
5137 | } | |
5138 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5139 | return resultobj; | |
5140 | fail: | |
5141 | return NULL; | |
5142 | } | |
5143 | ||
5144 | ||
5145 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5146 | PyObject *resultobj = 0; | |
5147 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5148 | int result; | |
5149 | void *argp1 = 0 ; | |
5150 | int res1 = 0 ; | |
5151 | PyObject *swig_obj[1] ; | |
5152 | ||
5153 | if (!args) SWIG_fail; | |
5154 | swig_obj[0] = args; | |
5155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5156 | if (!SWIG_IsOK(res1)) { | |
5157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5158 | } | |
5159 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5160 | { | |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5162 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber(); | |
5163 | wxPyEndAllowThreads(__tstate); | |
5164 | if (PyErr_Occurred()) SWIG_fail; | |
5165 | } | |
5166 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5167 | return resultobj; | |
5168 | fail: | |
5169 | return NULL; | |
5170 | } | |
5171 | ||
5172 | ||
5173 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5174 | PyObject *resultobj = 0; | |
5175 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5176 | wxChar result; | |
5177 | void *argp1 = 0 ; | |
5178 | int res1 = 0 ; | |
5179 | PyObject *swig_obj[1] ; | |
5180 | ||
5181 | if (!args) SWIG_fail; | |
5182 | swig_obj[0] = args; | |
5183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5184 | if (!SWIG_IsOK(res1)) { | |
5185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5186 | } | |
5187 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5188 | { | |
5189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5190 | result = ((wxRichTextAttr const *)arg1)->GetBulletSymbol(); | |
5191 | wxPyEndAllowThreads(__tstate); | |
5192 | if (PyErr_Occurred()) SWIG_fail; | |
5193 | } | |
5194 | resultobj = SWIG_NewPointerObj((new wxChar(static_cast< const wxChar& >(result))), SWIGTYPE_p_wxChar, SWIG_POINTER_OWN | 0 ); | |
5195 | return resultobj; | |
5196 | fail: | |
5197 | return NULL; | |
5198 | } | |
5199 | ||
5200 | ||
5201 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5202 | PyObject *resultobj = 0; | |
5203 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5204 | bool result; | |
5205 | void *argp1 = 0 ; | |
5206 | int res1 = 0 ; | |
5207 | PyObject *swig_obj[1] ; | |
5208 | ||
5209 | if (!args) SWIG_fail; | |
5210 | swig_obj[0] = args; | |
5211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5212 | if (!SWIG_IsOK(res1)) { | |
5213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5214 | } | |
5215 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5216 | { | |
5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5218 | result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour(); | |
5219 | wxPyEndAllowThreads(__tstate); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | } | |
5222 | { | |
5223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5224 | } | |
5225 | return resultobj; | |
5226 | fail: | |
5227 | return NULL; | |
5228 | } | |
5229 | ||
5230 | ||
5231 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5232 | PyObject *resultobj = 0; | |
5233 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5234 | bool result; | |
5235 | void *argp1 = 0 ; | |
5236 | int res1 = 0 ; | |
5237 | PyObject *swig_obj[1] ; | |
5238 | ||
5239 | if (!args) SWIG_fail; | |
5240 | swig_obj[0] = args; | |
5241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5242 | if (!SWIG_IsOK(res1)) { | |
5243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5244 | } | |
5245 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5246 | { | |
5247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5248 | result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour(); | |
5249 | wxPyEndAllowThreads(__tstate); | |
5250 | if (PyErr_Occurred()) SWIG_fail; | |
5251 | } | |
5252 | { | |
5253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5254 | } | |
5255 | return resultobj; | |
5256 | fail: | |
5257 | return NULL; | |
5258 | } | |
5259 | ||
5260 | ||
5261 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5262 | PyObject *resultobj = 0; | |
5263 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5264 | bool result; | |
5265 | void *argp1 = 0 ; | |
5266 | int res1 = 0 ; | |
5267 | PyObject *swig_obj[1] ; | |
5268 | ||
5269 | if (!args) SWIG_fail; | |
5270 | swig_obj[0] = args; | |
5271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5272 | if (!SWIG_IsOK(res1)) { | |
5273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5274 | } | |
5275 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5276 | { | |
5277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5278 | result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment(); | |
5279 | wxPyEndAllowThreads(__tstate); | |
5280 | if (PyErr_Occurred()) SWIG_fail; | |
5281 | } | |
5282 | { | |
5283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5284 | } | |
5285 | return resultobj; | |
5286 | fail: | |
5287 | return NULL; | |
5288 | } | |
5289 | ||
5290 | ||
5291 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5292 | PyObject *resultobj = 0; | |
5293 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5294 | bool result; | |
5295 | void *argp1 = 0 ; | |
5296 | int res1 = 0 ; | |
5297 | PyObject *swig_obj[1] ; | |
5298 | ||
5299 | if (!args) SWIG_fail; | |
5300 | swig_obj[0] = args; | |
5301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5302 | if (!SWIG_IsOK(res1)) { | |
5303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5304 | } | |
5305 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5306 | { | |
5307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5308 | result = (bool)((wxRichTextAttr const *)arg1)->HasTabs(); | |
5309 | wxPyEndAllowThreads(__tstate); | |
5310 | if (PyErr_Occurred()) SWIG_fail; | |
5311 | } | |
5312 | { | |
5313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5314 | } | |
5315 | return resultobj; | |
5316 | fail: | |
5317 | return NULL; | |
5318 | } | |
5319 | ||
5320 | ||
5321 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5322 | PyObject *resultobj = 0; | |
5323 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5324 | bool result; | |
5325 | void *argp1 = 0 ; | |
5326 | int res1 = 0 ; | |
5327 | PyObject *swig_obj[1] ; | |
5328 | ||
5329 | if (!args) SWIG_fail; | |
5330 | swig_obj[0] = args; | |
5331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5332 | if (!SWIG_IsOK(res1)) { | |
5333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5334 | } | |
5335 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5336 | { | |
5337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5338 | result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent(); | |
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | { | |
5343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5344 | } | |
5345 | return resultobj; | |
5346 | fail: | |
5347 | return NULL; | |
5348 | } | |
5349 | ||
5350 | ||
5351 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5352 | PyObject *resultobj = 0; | |
5353 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5354 | bool result; | |
5355 | void *argp1 = 0 ; | |
5356 | int res1 = 0 ; | |
5357 | PyObject *swig_obj[1] ; | |
5358 | ||
5359 | if (!args) SWIG_fail; | |
5360 | swig_obj[0] = args; | |
5361 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5362 | if (!SWIG_IsOK(res1)) { | |
5363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5364 | } | |
5365 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5366 | { | |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent(); | |
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | { | |
5373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5374 | } | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
5378 | } | |
5379 | ||
5380 | ||
5381 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5382 | PyObject *resultobj = 0; | |
5383 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5384 | bool result; | |
5385 | void *argp1 = 0 ; | |
5386 | int res1 = 0 ; | |
5387 | PyObject *swig_obj[1] ; | |
5388 | ||
5389 | if (!args) SWIG_fail; | |
5390 | swig_obj[0] = args; | |
5391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5392 | if (!SWIG_IsOK(res1)) { | |
5393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5394 | } | |
5395 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5396 | { | |
5397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5398 | result = (bool)((wxRichTextAttr const *)arg1)->HasWeight(); | |
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | { | |
5403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5404 | } | |
5405 | return resultobj; | |
5406 | fail: | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5412 | PyObject *resultobj = 0; | |
5413 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5414 | bool result; | |
5415 | void *argp1 = 0 ; | |
5416 | int res1 = 0 ; | |
5417 | PyObject *swig_obj[1] ; | |
5418 | ||
5419 | if (!args) SWIG_fail; | |
5420 | swig_obj[0] = args; | |
5421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5422 | if (!SWIG_IsOK(res1)) { | |
5423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5424 | } | |
5425 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5426 | { | |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | result = (bool)((wxRichTextAttr const *)arg1)->HasSize(); | |
5429 | wxPyEndAllowThreads(__tstate); | |
5430 | if (PyErr_Occurred()) SWIG_fail; | |
5431 | } | |
5432 | { | |
5433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5434 | } | |
5435 | return resultobj; | |
5436 | fail: | |
5437 | return NULL; | |
5438 | } | |
5439 | ||
5440 | ||
5441 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5442 | PyObject *resultobj = 0; | |
5443 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5444 | bool result; | |
5445 | void *argp1 = 0 ; | |
5446 | int res1 = 0 ; | |
5447 | PyObject *swig_obj[1] ; | |
5448 | ||
5449 | if (!args) SWIG_fail; | |
5450 | swig_obj[0] = args; | |
5451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5452 | if (!SWIG_IsOK(res1)) { | |
5453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5454 | } | |
5455 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5456 | { | |
5457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5458 | result = (bool)((wxRichTextAttr const *)arg1)->HasItalic(); | |
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
5461 | } | |
5462 | { | |
5463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5464 | } | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | return NULL; | |
5468 | } | |
5469 | ||
5470 | ||
5471 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5472 | PyObject *resultobj = 0; | |
5473 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5474 | bool result; | |
5475 | void *argp1 = 0 ; | |
5476 | int res1 = 0 ; | |
5477 | PyObject *swig_obj[1] ; | |
5478 | ||
5479 | if (!args) SWIG_fail; | |
5480 | swig_obj[0] = args; | |
5481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5482 | if (!SWIG_IsOK(res1)) { | |
5483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5484 | } | |
5485 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5486 | { | |
5487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5488 | result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined(); | |
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | { | |
5493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5494 | } | |
5495 | return resultobj; | |
5496 | fail: | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
5501 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5502 | PyObject *resultobj = 0; | |
5503 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5504 | bool result; | |
5505 | void *argp1 = 0 ; | |
5506 | int res1 = 0 ; | |
5507 | PyObject *swig_obj[1] ; | |
5508 | ||
5509 | if (!args) SWIG_fail; | |
5510 | swig_obj[0] = args; | |
5511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5512 | if (!SWIG_IsOK(res1)) { | |
5513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5514 | } | |
5515 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5516 | { | |
5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5518 | result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName(); | |
5519 | wxPyEndAllowThreads(__tstate); | |
5520 | if (PyErr_Occurred()) SWIG_fail; | |
5521 | } | |
5522 | { | |
5523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5524 | } | |
5525 | return resultobj; | |
5526 | fail: | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
5531 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5532 | PyObject *resultobj = 0; | |
5533 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5534 | bool result; | |
5535 | void *argp1 = 0 ; | |
5536 | int res1 = 0 ; | |
5537 | PyObject *swig_obj[1] ; | |
5538 | ||
5539 | if (!args) SWIG_fail; | |
5540 | swig_obj[0] = args; | |
5541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5542 | if (!SWIG_IsOK(res1)) { | |
5543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5544 | } | |
5545 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5546 | { | |
5547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5548 | result = (bool)((wxRichTextAttr const *)arg1)->HasFont(); | |
5549 | wxPyEndAllowThreads(__tstate); | |
5550 | if (PyErr_Occurred()) SWIG_fail; | |
5551 | } | |
5552 | { | |
5553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5554 | } | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5562 | PyObject *resultobj = 0; | |
5563 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5564 | bool result; | |
5565 | void *argp1 = 0 ; | |
5566 | int res1 = 0 ; | |
5567 | PyObject *swig_obj[1] ; | |
5568 | ||
5569 | if (!args) SWIG_fail; | |
5570 | swig_obj[0] = args; | |
5571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5572 | if (!SWIG_IsOK(res1)) { | |
5573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5574 | } | |
5575 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5576 | { | |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5578 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter(); | |
5579 | wxPyEndAllowThreads(__tstate); | |
5580 | if (PyErr_Occurred()) SWIG_fail; | |
5581 | } | |
5582 | { | |
5583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5584 | } | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5592 | PyObject *resultobj = 0; | |
5593 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5594 | bool result; | |
5595 | void *argp1 = 0 ; | |
5596 | int res1 = 0 ; | |
5597 | PyObject *swig_obj[1] ; | |
5598 | ||
5599 | if (!args) SWIG_fail; | |
5600 | swig_obj[0] = args; | |
5601 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5602 | if (!SWIG_IsOK(res1)) { | |
5603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5604 | } | |
5605 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5606 | { | |
5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5608 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore(); | |
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
5612 | { | |
5613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5614 | } | |
5615 | return resultobj; | |
5616 | fail: | |
5617 | return NULL; | |
5618 | } | |
5619 | ||
5620 | ||
5621 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5622 | PyObject *resultobj = 0; | |
5623 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5624 | bool result; | |
5625 | void *argp1 = 0 ; | |
5626 | int res1 = 0 ; | |
5627 | PyObject *swig_obj[1] ; | |
5628 | ||
5629 | if (!args) SWIG_fail; | |
5630 | swig_obj[0] = args; | |
5631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5632 | if (!SWIG_IsOK(res1)) { | |
5633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5634 | } | |
5635 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5636 | { | |
5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5638 | result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing(); | |
5639 | wxPyEndAllowThreads(__tstate); | |
5640 | if (PyErr_Occurred()) SWIG_fail; | |
5641 | } | |
5642 | { | |
5643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5644 | } | |
5645 | return resultobj; | |
5646 | fail: | |
5647 | return NULL; | |
5648 | } | |
5649 | ||
5650 | ||
5651 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5652 | PyObject *resultobj = 0; | |
5653 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5654 | bool result; | |
5655 | void *argp1 = 0 ; | |
5656 | int res1 = 0 ; | |
5657 | PyObject *swig_obj[1] ; | |
5658 | ||
5659 | if (!args) SWIG_fail; | |
5660 | swig_obj[0] = args; | |
5661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5662 | if (!SWIG_IsOK(res1)) { | |
5663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5664 | } | |
5665 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5666 | { | |
5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5668 | result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName(); | |
5669 | wxPyEndAllowThreads(__tstate); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
5672 | { | |
5673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5674 | } | |
5675 | return resultobj; | |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
5681 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5682 | PyObject *resultobj = 0; | |
5683 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5684 | bool result; | |
5685 | void *argp1 = 0 ; | |
5686 | int res1 = 0 ; | |
5687 | PyObject *swig_obj[1] ; | |
5688 | ||
5689 | if (!args) SWIG_fail; | |
5690 | swig_obj[0] = args; | |
5691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5692 | if (!SWIG_IsOK(res1)) { | |
5693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5694 | } | |
5695 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5696 | { | |
5697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5698 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName(); | |
5699 | wxPyEndAllowThreads(__tstate); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | } | |
5702 | { | |
5703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5704 | } | |
5705 | return resultobj; | |
5706 | fail: | |
5707 | return NULL; | |
5708 | } | |
5709 | ||
5710 | ||
5711 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5712 | PyObject *resultobj = 0; | |
5713 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5714 | bool result; | |
5715 | void *argp1 = 0 ; | |
5716 | int res1 = 0 ; | |
5717 | PyObject *swig_obj[1] ; | |
5718 | ||
5719 | if (!args) SWIG_fail; | |
5720 | swig_obj[0] = args; | |
5721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5722 | if (!SWIG_IsOK(res1)) { | |
5723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5724 | } | |
5725 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5726 | { | |
5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5728 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle(); | |
5729 | wxPyEndAllowThreads(__tstate); | |
5730 | if (PyErr_Occurred()) SWIG_fail; | |
5731 | } | |
5732 | { | |
5733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5734 | } | |
5735 | return resultobj; | |
5736 | fail: | |
5737 | return NULL; | |
5738 | } | |
5739 | ||
5740 | ||
5741 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5742 | PyObject *resultobj = 0; | |
5743 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5744 | bool result; | |
5745 | void *argp1 = 0 ; | |
5746 | int res1 = 0 ; | |
5747 | PyObject *swig_obj[1] ; | |
5748 | ||
5749 | if (!args) SWIG_fail; | |
5750 | swig_obj[0] = args; | |
5751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5752 | if (!SWIG_IsOK(res1)) { | |
5753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5754 | } | |
5755 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5758 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber(); | |
5759 | wxPyEndAllowThreads(__tstate); | |
5760 | if (PyErr_Occurred()) SWIG_fail; | |
5761 | } | |
5762 | { | |
5763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5764 | } | |
5765 | return resultobj; | |
5766 | fail: | |
5767 | return NULL; | |
5768 | } | |
5769 | ||
5770 | ||
5771 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5772 | PyObject *resultobj = 0; | |
5773 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5774 | bool result; | |
5775 | void *argp1 = 0 ; | |
5776 | int res1 = 0 ; | |
5777 | PyObject *swig_obj[1] ; | |
5778 | ||
5779 | if (!args) SWIG_fail; | |
5780 | swig_obj[0] = args; | |
5781 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5782 | if (!SWIG_IsOK(res1)) { | |
5783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5784 | } | |
5785 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5786 | { | |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletSymbol(); | |
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
5792 | { | |
5793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5794 | } | |
5795 | return resultobj; | |
5796 | fail: | |
5797 | return NULL; | |
5798 | } | |
5799 | ||
5800 | ||
5801 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5802 | PyObject *resultobj = 0; | |
5803 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5804 | long arg2 ; | |
5805 | bool result; | |
5806 | void *argp1 = 0 ; | |
5807 | int res1 = 0 ; | |
5808 | long val2 ; | |
5809 | int ecode2 = 0 ; | |
5810 | PyObject * obj0 = 0 ; | |
5811 | PyObject * obj1 = 0 ; | |
5812 | char * kwnames[] = { | |
5813 | (char *) "self",(char *) "flag", NULL | |
5814 | }; | |
5815 | ||
5816 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
5817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5818 | if (!SWIG_IsOK(res1)) { | |
5819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5820 | } | |
5821 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5822 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5823 | if (!SWIG_IsOK(ecode2)) { | |
5824 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
5825 | } | |
5826 | arg2 = static_cast< long >(val2); | |
5827 | { | |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5829 | result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2); | |
5830 | wxPyEndAllowThreads(__tstate); | |
5831 | if (PyErr_Occurred()) SWIG_fail; | |
5832 | } | |
5833 | { | |
5834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5835 | } | |
5836 | return resultobj; | |
5837 | fail: | |
5838 | return NULL; | |
5839 | } | |
5840 | ||
5841 | ||
5842 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5843 | PyObject *resultobj = 0; | |
5844 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5845 | bool result; | |
5846 | void *argp1 = 0 ; | |
5847 | int res1 = 0 ; | |
5848 | PyObject *swig_obj[1] ; | |
5849 | ||
5850 | if (!args) SWIG_fail; | |
5851 | swig_obj[0] = args; | |
5852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5853 | if (!SWIG_IsOK(res1)) { | |
5854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5855 | } | |
5856 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle(); | |
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
5863 | { | |
5864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5865 | } | |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
5872 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5873 | PyObject *resultobj = 0; | |
5874 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5875 | bool result; | |
5876 | void *argp1 = 0 ; | |
5877 | int res1 = 0 ; | |
5878 | PyObject *swig_obj[1] ; | |
5879 | ||
5880 | if (!args) SWIG_fail; | |
5881 | swig_obj[0] = args; | |
5882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5883 | if (!SWIG_IsOK(res1)) { | |
5884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5885 | } | |
5886 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle(); | |
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5895 | } | |
5896 | return resultobj; | |
5897 | fail: | |
5898 | return NULL; | |
5899 | } | |
5900 | ||
5901 | ||
5902 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5903 | PyObject *resultobj = 0; | |
5904 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5905 | bool result; | |
5906 | void *argp1 = 0 ; | |
5907 | int res1 = 0 ; | |
5908 | PyObject *swig_obj[1] ; | |
5909 | ||
5910 | if (!args) SWIG_fail; | |
5911 | swig_obj[0] = args; | |
5912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5913 | if (!SWIG_IsOK(res1)) { | |
5914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5915 | } | |
5916 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5917 | { | |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | result = (bool)((wxRichTextAttr const *)arg1)->IsDefault(); | |
5920 | wxPyEndAllowThreads(__tstate); | |
5921 | if (PyErr_Occurred()) SWIG_fail; | |
5922 | } | |
5923 | { | |
5924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5925 | } | |
5926 | return resultobj; | |
5927 | fail: | |
5928 | return NULL; | |
5929 | } | |
5930 | ||
5931 | ||
5932 | SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5933 | PyObject *obj; | |
5934 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5935 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj)); | |
5936 | return SWIG_Py_Void(); | |
5937 | } | |
5938 | ||
5939 | SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5940 | return SWIG_Python_InitShadowInstance(args); | |
5941 | } | |
5942 | ||
5943 | SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5944 | PyObject *resultobj = 0; | |
5945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5946 | int arg2 = (int) -1 ; | |
5947 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5948 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5949 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5950 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5951 | long arg5 = (long) wxRE_MULTILINE ; | |
5952 | wxRichTextCtrl *result = 0 ; | |
5953 | void *argp1 = 0 ; | |
5954 | int res1 = 0 ; | |
5955 | int val2 ; | |
5956 | int ecode2 = 0 ; | |
5957 | wxPoint temp3 ; | |
5958 | wxSize temp4 ; | |
5959 | long val5 ; | |
5960 | int ecode5 = 0 ; | |
5961 | PyObject * obj0 = 0 ; | |
5962 | PyObject * obj1 = 0 ; | |
5963 | PyObject * obj2 = 0 ; | |
5964 | PyObject * obj3 = 0 ; | |
5965 | PyObject * obj4 = 0 ; | |
5966 | char * kwnames[] = { | |
5967 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
5968 | }; | |
5969 | ||
5970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
5971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5972 | if (!SWIG_IsOK(res1)) { | |
5973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5974 | } | |
5975 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5976 | if (obj1) { | |
5977 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5978 | if (!SWIG_IsOK(ecode2)) { | |
5979 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
5980 | } | |
5981 | arg2 = static_cast< int >(val2); | |
5982 | } | |
5983 | if (obj2) { | |
5984 | { | |
5985 | arg3 = &temp3; | |
5986 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5987 | } | |
5988 | } | |
5989 | if (obj3) { | |
5990 | { | |
5991 | arg4 = &temp4; | |
5992 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5993 | } | |
5994 | } | |
5995 | if (obj4) { | |
5996 | ecode5 = SWIG_AsVal_long(obj4, &val5); | |
5997 | if (!SWIG_IsOK(ecode5)) { | |
5998 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_RichTextCtrl" "', expected argument " "5"" of type '" "long""'"); | |
5999 | } | |
6000 | arg5 = static_cast< long >(val5); | |
6001 | } | |
6002 | { | |
6003 | if (!wxPyCheckForApp()) SWIG_fail; | |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
6006 | wxPyEndAllowThreads(__tstate); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 ); | |
6010 | return resultobj; | |
6011 | fail: | |
6012 | return NULL; | |
6013 | } | |
6014 | ||
6015 | ||
6016 | SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6017 | PyObject *resultobj = 0; | |
6018 | wxRichTextCtrl *result = 0 ; | |
6019 | ||
6020 | if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail; | |
6021 | { | |
6022 | if (!wxPyCheckForApp()) SWIG_fail; | |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | result = (wxRichTextCtrl *)new wxRichTextCtrl(); | |
6025 | wxPyEndAllowThreads(__tstate); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
6027 | } | |
6028 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 ); | |
6029 | return resultobj; | |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6036 | PyObject *resultobj = 0; | |
6037 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6038 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6039 | int arg3 = (int) -1 ; | |
6040 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6041 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6042 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6043 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6044 | long arg6 = (long) wxRE_MULTILINE ; | |
6045 | bool result; | |
6046 | void *argp1 = 0 ; | |
6047 | int res1 = 0 ; | |
6048 | void *argp2 = 0 ; | |
6049 | int res2 = 0 ; | |
6050 | int val3 ; | |
6051 | int ecode3 = 0 ; | |
6052 | wxPoint temp4 ; | |
6053 | wxSize temp5 ; | |
6054 | long val6 ; | |
6055 | int ecode6 = 0 ; | |
6056 | PyObject * obj0 = 0 ; | |
6057 | PyObject * obj1 = 0 ; | |
6058 | PyObject * obj2 = 0 ; | |
6059 | PyObject * obj3 = 0 ; | |
6060 | PyObject * obj4 = 0 ; | |
6061 | PyObject * obj5 = 0 ; | |
6062 | char * kwnames[] = { | |
6063 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
6064 | }; | |
6065 | ||
6066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
6067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6068 | if (!SWIG_IsOK(res1)) { | |
6069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6070 | } | |
6071 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6072 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6073 | if (!SWIG_IsOK(res2)) { | |
6074 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6075 | } | |
6076 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6077 | if (obj2) { | |
6078 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6079 | if (!SWIG_IsOK(ecode3)) { | |
6080 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
6081 | } | |
6082 | arg3 = static_cast< int >(val3); | |
6083 | } | |
6084 | if (obj3) { | |
6085 | { | |
6086 | arg4 = &temp4; | |
6087 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6088 | } | |
6089 | } | |
6090 | if (obj4) { | |
6091 | { | |
6092 | arg5 = &temp5; | |
6093 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6094 | } | |
6095 | } | |
6096 | if (obj5) { | |
6097 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6098 | if (!SWIG_IsOK(ecode6)) { | |
6099 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RichTextCtrl_Create" "', expected argument " "6"" of type '" "long""'"); | |
6100 | } | |
6101 | arg6 = static_cast< long >(val6); | |
6102 | } | |
6103 | { | |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6105 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
6109 | { | |
6110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6111 | } | |
6112 | return resultobj; | |
6113 | fail: | |
6114 | return NULL; | |
6115 | } | |
6116 | ||
6117 | ||
6118 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6119 | PyObject *resultobj = 0; | |
6120 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6121 | wxString result; | |
6122 | void *argp1 = 0 ; | |
6123 | int res1 = 0 ; | |
6124 | PyObject *swig_obj[1] ; | |
6125 | ||
6126 | if (!args) SWIG_fail; | |
6127 | swig_obj[0] = args; | |
6128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6129 | if (!SWIG_IsOK(res1)) { | |
6130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6131 | } | |
6132 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | result = ((wxRichTextCtrl const *)arg1)->GetValue(); | |
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | { | |
6140 | #if wxUSE_UNICODE | |
6141 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6142 | #else | |
6143 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6144 | #endif | |
6145 | } | |
6146 | return resultobj; | |
6147 | fail: | |
6148 | return NULL; | |
6149 | } | |
6150 | ||
6151 | ||
6152 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6153 | PyObject *resultobj = 0; | |
6154 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6155 | wxString *arg2 = 0 ; | |
6156 | void *argp1 = 0 ; | |
6157 | int res1 = 0 ; | |
6158 | bool temp2 = false ; | |
6159 | PyObject * obj0 = 0 ; | |
6160 | PyObject * obj1 = 0 ; | |
6161 | char * kwnames[] = { | |
6162 | (char *) "self",(char *) "value", NULL | |
6163 | }; | |
6164 | ||
6165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
6166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6167 | if (!SWIG_IsOK(res1)) { | |
6168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6169 | } | |
6170 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6171 | { | |
6172 | arg2 = wxString_in_helper(obj1); | |
6173 | if (arg2 == NULL) SWIG_fail; | |
6174 | temp2 = true; | |
6175 | } | |
6176 | { | |
6177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6178 | (arg1)->SetValue((wxString const &)*arg2); | |
6179 | wxPyEndAllowThreads(__tstate); | |
6180 | if (PyErr_Occurred()) SWIG_fail; | |
6181 | } | |
6182 | resultobj = SWIG_Py_Void(); | |
6183 | { | |
6184 | if (temp2) | |
6185 | delete arg2; | |
6186 | } | |
6187 | return resultobj; | |
6188 | fail: | |
6189 | { | |
6190 | if (temp2) | |
6191 | delete arg2; | |
6192 | } | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
6197 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6198 | PyObject *resultobj = 0; | |
6199 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6200 | long arg2 ; | |
6201 | long arg3 ; | |
6202 | wxString result; | |
6203 | void *argp1 = 0 ; | |
6204 | int res1 = 0 ; | |
6205 | long val2 ; | |
6206 | int ecode2 = 0 ; | |
6207 | long val3 ; | |
6208 | int ecode3 = 0 ; | |
6209 | PyObject * obj0 = 0 ; | |
6210 | PyObject * obj1 = 0 ; | |
6211 | PyObject * obj2 = 0 ; | |
6212 | char * kwnames[] = { | |
6213 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6214 | }; | |
6215 | ||
6216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6218 | if (!SWIG_IsOK(res1)) { | |
6219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6220 | } | |
6221 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6222 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6223 | if (!SWIG_IsOK(ecode2)) { | |
6224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
6225 | } | |
6226 | arg2 = static_cast< long >(val2); | |
6227 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6228 | if (!SWIG_IsOK(ecode3)) { | |
6229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
6230 | } | |
6231 | arg3 = static_cast< long >(val3); | |
6232 | { | |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6234 | result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
6238 | { | |
6239 | #if wxUSE_UNICODE | |
6240 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6241 | #else | |
6242 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6243 | #endif | |
6244 | } | |
6245 | return resultobj; | |
6246 | fail: | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
6251 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6252 | PyObject *resultobj = 0; | |
6253 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6254 | long arg2 ; | |
6255 | int result; | |
6256 | void *argp1 = 0 ; | |
6257 | int res1 = 0 ; | |
6258 | long val2 ; | |
6259 | int ecode2 = 0 ; | |
6260 | PyObject * obj0 = 0 ; | |
6261 | PyObject * obj1 = 0 ; | |
6262 | char * kwnames[] = { | |
6263 | (char *) "self",(char *) "lineNo", NULL | |
6264 | }; | |
6265 | ||
6266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
6267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6268 | if (!SWIG_IsOK(res1)) { | |
6269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6270 | } | |
6271 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6272 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6273 | if (!SWIG_IsOK(ecode2)) { | |
6274 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
6275 | } | |
6276 | arg2 = static_cast< long >(val2); | |
6277 | { | |
6278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6279 | result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2); | |
6280 | wxPyEndAllowThreads(__tstate); | |
6281 | if (PyErr_Occurred()) SWIG_fail; | |
6282 | } | |
6283 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | return NULL; | |
6287 | } | |
6288 | ||
6289 | ||
6290 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6291 | PyObject *resultobj = 0; | |
6292 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6293 | long arg2 ; | |
6294 | wxString result; | |
6295 | void *argp1 = 0 ; | |
6296 | int res1 = 0 ; | |
6297 | long val2 ; | |
6298 | int ecode2 = 0 ; | |
6299 | PyObject * obj0 = 0 ; | |
6300 | PyObject * obj1 = 0 ; | |
6301 | char * kwnames[] = { | |
6302 | (char *) "self",(char *) "lineNo", NULL | |
6303 | }; | |
6304 | ||
6305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6307 | if (!SWIG_IsOK(res1)) { | |
6308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6309 | } | |
6310 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6311 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6312 | if (!SWIG_IsOK(ecode2)) { | |
6313 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
6314 | } | |
6315 | arg2 = static_cast< long >(val2); | |
6316 | { | |
6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6318 | result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2); | |
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | { | |
6323 | #if wxUSE_UNICODE | |
6324 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6325 | #else | |
6326 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6327 | #endif | |
6328 | } | |
6329 | return resultobj; | |
6330 | fail: | |
6331 | return NULL; | |
6332 | } | |
6333 | ||
6334 | ||
6335 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6336 | PyObject *resultobj = 0; | |
6337 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6338 | int result; | |
6339 | void *argp1 = 0 ; | |
6340 | int res1 = 0 ; | |
6341 | PyObject *swig_obj[1] ; | |
6342 | ||
6343 | if (!args) SWIG_fail; | |
6344 | swig_obj[0] = args; | |
6345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6346 | if (!SWIG_IsOK(res1)) { | |
6347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6348 | } | |
6349 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6350 | { | |
6351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6352 | result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines(); | |
6353 | wxPyEndAllowThreads(__tstate); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | } | |
6356 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6357 | return resultobj; | |
6358 | fail: | |
6359 | return NULL; | |
6360 | } | |
6361 | ||
6362 | ||
6363 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6364 | PyObject *resultobj = 0; | |
6365 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6366 | bool result; | |
6367 | void *argp1 = 0 ; | |
6368 | int res1 = 0 ; | |
6369 | PyObject *swig_obj[1] ; | |
6370 | ||
6371 | if (!args) SWIG_fail; | |
6372 | swig_obj[0] = args; | |
6373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6374 | if (!SWIG_IsOK(res1)) { | |
6375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6376 | } | |
6377 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6378 | { | |
6379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6380 | result = (bool)((wxRichTextCtrl const *)arg1)->IsModified(); | |
6381 | wxPyEndAllowThreads(__tstate); | |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
6383 | } | |
6384 | { | |
6385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6386 | } | |
6387 | return resultobj; | |
6388 | fail: | |
6389 | return NULL; | |
6390 | } | |
6391 | ||
6392 | ||
6393 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6394 | PyObject *resultobj = 0; | |
6395 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6396 | bool result; | |
6397 | void *argp1 = 0 ; | |
6398 | int res1 = 0 ; | |
6399 | PyObject *swig_obj[1] ; | |
6400 | ||
6401 | if (!args) SWIG_fail; | |
6402 | swig_obj[0] = args; | |
6403 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6404 | if (!SWIG_IsOK(res1)) { | |
6405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6406 | } | |
6407 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6408 | { | |
6409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6410 | result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable(); | |
6411 | wxPyEndAllowThreads(__tstate); | |
6412 | if (PyErr_Occurred()) SWIG_fail; | |
6413 | } | |
6414 | { | |
6415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6416 | } | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
6423 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6424 | PyObject *resultobj = 0; | |
6425 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6426 | bool result; | |
6427 | void *argp1 = 0 ; | |
6428 | int res1 = 0 ; | |
6429 | PyObject *swig_obj[1] ; | |
6430 | ||
6431 | if (!args) SWIG_fail; | |
6432 | swig_obj[0] = args; | |
6433 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6434 | if (!SWIG_IsOK(res1)) { | |
6435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6436 | } | |
6437 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6438 | { | |
6439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6440 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine(); | |
6441 | wxPyEndAllowThreads(__tstate); | |
6442 | if (PyErr_Occurred()) SWIG_fail; | |
6443 | } | |
6444 | { | |
6445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6446 | } | |
6447 | return resultobj; | |
6448 | fail: | |
6449 | return NULL; | |
6450 | } | |
6451 | ||
6452 | ||
6453 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6454 | PyObject *resultobj = 0; | |
6455 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6456 | bool result; | |
6457 | void *argp1 = 0 ; | |
6458 | int res1 = 0 ; | |
6459 | PyObject *swig_obj[1] ; | |
6460 | ||
6461 | if (!args) SWIG_fail; | |
6462 | swig_obj[0] = args; | |
6463 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6464 | if (!SWIG_IsOK(res1)) { | |
6465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6466 | } | |
6467 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6468 | { | |
6469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6470 | result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine(); | |
6471 | wxPyEndAllowThreads(__tstate); | |
6472 | if (PyErr_Occurred()) SWIG_fail; | |
6473 | } | |
6474 | { | |
6475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6476 | } | |
6477 | return resultobj; | |
6478 | fail: | |
6479 | return NULL; | |
6480 | } | |
6481 | ||
6482 | ||
6483 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6484 | PyObject *resultobj = 0; | |
6485 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6486 | long *arg2 = (long *) 0 ; | |
6487 | long *arg3 = (long *) 0 ; | |
6488 | void *argp1 = 0 ; | |
6489 | int res1 = 0 ; | |
6490 | long temp2 ; | |
6491 | int res2 = SWIG_TMPOBJ ; | |
6492 | long temp3 ; | |
6493 | int res3 = SWIG_TMPOBJ ; | |
6494 | PyObject *swig_obj[1] ; | |
6495 | ||
6496 | arg2 = &temp2; | |
6497 | arg3 = &temp3; | |
6498 | if (!args) SWIG_fail; | |
6499 | swig_obj[0] = args; | |
6500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6501 | if (!SWIG_IsOK(res1)) { | |
6502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6503 | } | |
6504 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6508 | wxPyEndAllowThreads(__tstate); | |
6509 | if (PyErr_Occurred()) SWIG_fail; | |
6510 | } | |
6511 | resultobj = SWIG_Py_Void(); | |
6512 | if (SWIG_IsTmpObj(res2)) { | |
6513 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6514 | } else { | |
6515 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6516 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6517 | } | |
6518 | if (SWIG_IsTmpObj(res3)) { | |
6519 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6520 | } else { | |
6521 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6522 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6523 | } | |
6524 | return resultobj; | |
6525 | fail: | |
6526 | return NULL; | |
6527 | } | |
6528 | ||
6529 | ||
6530 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6531 | PyObject *resultobj = 0; | |
6532 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6533 | wxString result; | |
6534 | void *argp1 = 0 ; | |
6535 | int res1 = 0 ; | |
6536 | PyObject *swig_obj[1] ; | |
6537 | ||
6538 | if (!args) SWIG_fail; | |
6539 | swig_obj[0] = args; | |
6540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6541 | if (!SWIG_IsOK(res1)) { | |
6542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6543 | } | |
6544 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | result = ((wxRichTextCtrl const *)arg1)->GetStringSelection(); | |
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | { | |
6552 | #if wxUSE_UNICODE | |
6553 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6554 | #else | |
6555 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6556 | #endif | |
6557 | } | |
6558 | return resultobj; | |
6559 | fail: | |
6560 | return NULL; | |
6561 | } | |
6562 | ||
6563 | ||
6564 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6565 | PyObject *resultobj = 0; | |
6566 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6567 | wxString result; | |
6568 | void *argp1 = 0 ; | |
6569 | int res1 = 0 ; | |
6570 | PyObject *swig_obj[1] ; | |
6571 | ||
6572 | if (!args) SWIG_fail; | |
6573 | swig_obj[0] = args; | |
6574 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6575 | if (!SWIG_IsOK(res1)) { | |
6576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6577 | } | |
6578 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6579 | { | |
6580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6581 | result = ((wxRichTextCtrl const *)arg1)->GetFilename(); | |
6582 | wxPyEndAllowThreads(__tstate); | |
6583 | if (PyErr_Occurred()) SWIG_fail; | |
6584 | } | |
6585 | { | |
6586 | #if wxUSE_UNICODE | |
6587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6588 | #else | |
6589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6590 | #endif | |
6591 | } | |
6592 | return resultobj; | |
6593 | fail: | |
6594 | return NULL; | |
6595 | } | |
6596 | ||
6597 | ||
6598 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6599 | PyObject *resultobj = 0; | |
6600 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6601 | wxString *arg2 = 0 ; | |
6602 | void *argp1 = 0 ; | |
6603 | int res1 = 0 ; | |
6604 | bool temp2 = false ; | |
6605 | PyObject * obj0 = 0 ; | |
6606 | PyObject * obj1 = 0 ; | |
6607 | char * kwnames[] = { | |
6608 | (char *) "self",(char *) "filename", NULL | |
6609 | }; | |
6610 | ||
6611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
6612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6613 | if (!SWIG_IsOK(res1)) { | |
6614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6615 | } | |
6616 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6617 | { | |
6618 | arg2 = wxString_in_helper(obj1); | |
6619 | if (arg2 == NULL) SWIG_fail; | |
6620 | temp2 = true; | |
6621 | } | |
6622 | { | |
6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6624 | (arg1)->SetFilename((wxString const &)*arg2); | |
6625 | wxPyEndAllowThreads(__tstate); | |
6626 | if (PyErr_Occurred()) SWIG_fail; | |
6627 | } | |
6628 | resultobj = SWIG_Py_Void(); | |
6629 | { | |
6630 | if (temp2) | |
6631 | delete arg2; | |
6632 | } | |
6633 | return resultobj; | |
6634 | fail: | |
6635 | { | |
6636 | if (temp2) | |
6637 | delete arg2; | |
6638 | } | |
6639 | return NULL; | |
6640 | } | |
6641 | ||
6642 | ||
6643 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6644 | PyObject *resultobj = 0; | |
6645 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6646 | long arg2 ; | |
6647 | void *argp1 = 0 ; | |
6648 | int res1 = 0 ; | |
6649 | long val2 ; | |
6650 | int ecode2 = 0 ; | |
6651 | PyObject * obj0 = 0 ; | |
6652 | PyObject * obj1 = 0 ; | |
6653 | char * kwnames[] = { | |
6654 | (char *) "self",(char *) "threshold", NULL | |
6655 | }; | |
6656 | ||
6657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail; | |
6658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6659 | if (!SWIG_IsOK(res1)) { | |
6660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6661 | } | |
6662 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6663 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6664 | if (!SWIG_IsOK(ecode2)) { | |
6665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'"); | |
6666 | } | |
6667 | arg2 = static_cast< long >(val2); | |
6668 | { | |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | (arg1)->SetDelayedLayoutThreshold(arg2); | |
6671 | wxPyEndAllowThreads(__tstate); | |
6672 | if (PyErr_Occurred()) SWIG_fail; | |
6673 | } | |
6674 | resultobj = SWIG_Py_Void(); | |
6675 | return resultobj; | |
6676 | fail: | |
6677 | return NULL; | |
6678 | } | |
6679 | ||
6680 | ||
6681 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6682 | PyObject *resultobj = 0; | |
6683 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6684 | long result; | |
6685 | void *argp1 = 0 ; | |
6686 | int res1 = 0 ; | |
6687 | PyObject *swig_obj[1] ; | |
6688 | ||
6689 | if (!args) SWIG_fail; | |
6690 | swig_obj[0] = args; | |
6691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6692 | if (!SWIG_IsOK(res1)) { | |
6693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6694 | } | |
6695 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6696 | { | |
6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6698 | result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold(); | |
6699 | wxPyEndAllowThreads(__tstate); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
6702 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6703 | return resultobj; | |
6704 | fail: | |
6705 | return NULL; | |
6706 | } | |
6707 | ||
6708 | ||
6709 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6710 | PyObject *resultobj = 0; | |
6711 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6712 | void *argp1 = 0 ; | |
6713 | int res1 = 0 ; | |
6714 | PyObject *swig_obj[1] ; | |
6715 | ||
6716 | if (!args) SWIG_fail; | |
6717 | swig_obj[0] = args; | |
6718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6719 | if (!SWIG_IsOK(res1)) { | |
6720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6721 | } | |
6722 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6723 | { | |
6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6725 | (arg1)->Clear(); | |
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_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6737 | PyObject *resultobj = 0; | |
6738 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6739 | long arg2 ; | |
6740 | long arg3 ; | |
6741 | wxString *arg4 = 0 ; | |
6742 | void *argp1 = 0 ; | |
6743 | int res1 = 0 ; | |
6744 | long val2 ; | |
6745 | int ecode2 = 0 ; | |
6746 | long val3 ; | |
6747 | int ecode3 = 0 ; | |
6748 | bool temp4 = false ; | |
6749 | PyObject * obj0 = 0 ; | |
6750 | PyObject * obj1 = 0 ; | |
6751 | PyObject * obj2 = 0 ; | |
6752 | PyObject * obj3 = 0 ; | |
6753 | char * kwnames[] = { | |
6754 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6755 | }; | |
6756 | ||
6757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6759 | if (!SWIG_IsOK(res1)) { | |
6760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6761 | } | |
6762 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6763 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6764 | if (!SWIG_IsOK(ecode2)) { | |
6765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6766 | } | |
6767 | arg2 = static_cast< long >(val2); | |
6768 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6769 | if (!SWIG_IsOK(ecode3)) { | |
6770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6771 | } | |
6772 | arg3 = static_cast< long >(val3); | |
6773 | { | |
6774 | arg4 = wxString_in_helper(obj3); | |
6775 | if (arg4 == NULL) SWIG_fail; | |
6776 | temp4 = true; | |
6777 | } | |
6778 | { | |
6779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6780 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6781 | wxPyEndAllowThreads(__tstate); | |
6782 | if (PyErr_Occurred()) SWIG_fail; | |
6783 | } | |
6784 | resultobj = SWIG_Py_Void(); | |
6785 | { | |
6786 | if (temp4) | |
6787 | delete arg4; | |
6788 | } | |
6789 | return resultobj; | |
6790 | fail: | |
6791 | { | |
6792 | if (temp4) | |
6793 | delete arg4; | |
6794 | } | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj = 0; | |
6801 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6802 | long arg2 ; | |
6803 | long arg3 ; | |
6804 | void *argp1 = 0 ; | |
6805 | int res1 = 0 ; | |
6806 | long val2 ; | |
6807 | int ecode2 = 0 ; | |
6808 | long val3 ; | |
6809 | int ecode3 = 0 ; | |
6810 | PyObject * obj0 = 0 ; | |
6811 | PyObject * obj1 = 0 ; | |
6812 | PyObject * obj2 = 0 ; | |
6813 | char * kwnames[] = { | |
6814 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6815 | }; | |
6816 | ||
6817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6819 | if (!SWIG_IsOK(res1)) { | |
6820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6821 | } | |
6822 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6823 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6824 | if (!SWIG_IsOK(ecode2)) { | |
6825 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6826 | } | |
6827 | arg2 = static_cast< long >(val2); | |
6828 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6829 | if (!SWIG_IsOK(ecode3)) { | |
6830 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6831 | } | |
6832 | arg3 = static_cast< long >(val3); | |
6833 | { | |
6834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6835 | (arg1)->Remove(arg2,arg3); | |
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
6839 | resultobj = SWIG_Py_Void(); | |
6840 | return resultobj; | |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj = 0; | |
6848 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6849 | wxString *arg2 = 0 ; | |
6850 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6851 | bool result; | |
6852 | void *argp1 = 0 ; | |
6853 | int res1 = 0 ; | |
6854 | bool temp2 = false ; | |
6855 | int val3 ; | |
6856 | int ecode3 = 0 ; | |
6857 | PyObject * obj0 = 0 ; | |
6858 | PyObject * obj1 = 0 ; | |
6859 | PyObject * obj2 = 0 ; | |
6860 | char * kwnames[] = { | |
6861 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6862 | }; | |
6863 | ||
6864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6866 | if (!SWIG_IsOK(res1)) { | |
6867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6868 | } | |
6869 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6870 | { | |
6871 | arg2 = wxString_in_helper(obj1); | |
6872 | if (arg2 == NULL) SWIG_fail; | |
6873 | temp2 = true; | |
6874 | } | |
6875 | if (obj2) { | |
6876 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6877 | if (!SWIG_IsOK(ecode3)) { | |
6878 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
6879 | } | |
6880 | arg3 = static_cast< int >(val3); | |
6881 | } | |
6882 | { | |
6883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6884 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | { | |
6889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6890 | } | |
6891 | { | |
6892 | if (temp2) | |
6893 | delete arg2; | |
6894 | } | |
6895 | return resultobj; | |
6896 | fail: | |
6897 | { | |
6898 | if (temp2) | |
6899 | delete arg2; | |
6900 | } | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
6905 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6906 | PyObject *resultobj = 0; | |
6907 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6908 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6909 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6910 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6911 | bool result; | |
6912 | void *argp1 = 0 ; | |
6913 | int res1 = 0 ; | |
6914 | bool temp2 = false ; | |
6915 | int val3 ; | |
6916 | int ecode3 = 0 ; | |
6917 | PyObject * obj0 = 0 ; | |
6918 | PyObject * obj1 = 0 ; | |
6919 | PyObject * obj2 = 0 ; | |
6920 | char * kwnames[] = { | |
6921 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6922 | }; | |
6923 | ||
6924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6926 | if (!SWIG_IsOK(res1)) { | |
6927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6928 | } | |
6929 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6930 | if (obj1) { | |
6931 | { | |
6932 | arg2 = wxString_in_helper(obj1); | |
6933 | if (arg2 == NULL) SWIG_fail; | |
6934 | temp2 = true; | |
6935 | } | |
6936 | } | |
6937 | if (obj2) { | |
6938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6939 | if (!SWIG_IsOK(ecode3)) { | |
6940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
6941 | } | |
6942 | arg3 = static_cast< int >(val3); | |
6943 | } | |
6944 | { | |
6945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6946 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
6947 | wxPyEndAllowThreads(__tstate); | |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
6949 | } | |
6950 | { | |
6951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6952 | } | |
6953 | { | |
6954 | if (temp2) | |
6955 | delete arg2; | |
6956 | } | |
6957 | return resultobj; | |
6958 | fail: | |
6959 | { | |
6960 | if (temp2) | |
6961 | delete arg2; | |
6962 | } | |
6963 | return NULL; | |
6964 | } | |
6965 | ||
6966 | ||
6967 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6968 | PyObject *resultobj = 0; | |
6969 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6970 | void *argp1 = 0 ; | |
6971 | int res1 = 0 ; | |
6972 | PyObject *swig_obj[1] ; | |
6973 | ||
6974 | if (!args) SWIG_fail; | |
6975 | swig_obj[0] = args; | |
6976 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6977 | if (!SWIG_IsOK(res1)) { | |
6978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6979 | } | |
6980 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6981 | { | |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6983 | (arg1)->MarkDirty(); | |
6984 | wxPyEndAllowThreads(__tstate); | |
6985 | if (PyErr_Occurred()) SWIG_fail; | |
6986 | } | |
6987 | resultobj = SWIG_Py_Void(); | |
6988 | return resultobj; | |
6989 | fail: | |
6990 | return NULL; | |
6991 | } | |
6992 | ||
6993 | ||
6994 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6995 | PyObject *resultobj = 0; | |
6996 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6997 | void *argp1 = 0 ; | |
6998 | int res1 = 0 ; | |
6999 | PyObject *swig_obj[1] ; | |
7000 | ||
7001 | if (!args) SWIG_fail; | |
7002 | swig_obj[0] = args; | |
7003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7004 | if (!SWIG_IsOK(res1)) { | |
7005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7006 | } | |
7007 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | (arg1)->DiscardEdits(); | |
7011 | wxPyEndAllowThreads(__tstate); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | } | |
7014 | resultobj = SWIG_Py_Void(); | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
7021 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7022 | PyObject *resultobj = 0; | |
7023 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7024 | unsigned long arg2 ; | |
7025 | void *argp1 = 0 ; | |
7026 | int res1 = 0 ; | |
7027 | unsigned long val2 ; | |
7028 | int ecode2 = 0 ; | |
7029 | PyObject * obj0 = 0 ; | |
7030 | PyObject * obj1 = 0 ; | |
7031 | char * kwnames[] = { | |
7032 | (char *) "self",(char *) "len", NULL | |
7033 | }; | |
7034 | ||
7035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
7036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7037 | if (!SWIG_IsOK(res1)) { | |
7038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7039 | } | |
7040 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7041 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
7042 | if (!SWIG_IsOK(ecode2)) { | |
7043 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
7044 | } | |
7045 | arg2 = static_cast< unsigned long >(val2); | |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | (arg1)->SetMaxLength(arg2); | |
7049 | wxPyEndAllowThreads(__tstate); | |
7050 | if (PyErr_Occurred()) SWIG_fail; | |
7051 | } | |
7052 | resultobj = SWIG_Py_Void(); | |
7053 | return resultobj; | |
7054 | fail: | |
7055 | return NULL; | |
7056 | } | |
7057 | ||
7058 | ||
7059 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7060 | PyObject *resultobj = 0; | |
7061 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7062 | wxString *arg2 = 0 ; | |
7063 | void *argp1 = 0 ; | |
7064 | int res1 = 0 ; | |
7065 | bool temp2 = false ; | |
7066 | PyObject * obj0 = 0 ; | |
7067 | PyObject * obj1 = 0 ; | |
7068 | char * kwnames[] = { | |
7069 | (char *) "self",(char *) "text", NULL | |
7070 | }; | |
7071 | ||
7072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7074 | if (!SWIG_IsOK(res1)) { | |
7075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7076 | } | |
7077 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7078 | { | |
7079 | arg2 = wxString_in_helper(obj1); | |
7080 | if (arg2 == NULL) SWIG_fail; | |
7081 | temp2 = true; | |
7082 | } | |
7083 | { | |
7084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7085 | (arg1)->WriteText((wxString const &)*arg2); | |
7086 | wxPyEndAllowThreads(__tstate); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | } | |
7089 | resultobj = SWIG_Py_Void(); | |
7090 | { | |
7091 | if (temp2) | |
7092 | delete arg2; | |
7093 | } | |
7094 | return resultobj; | |
7095 | fail: | |
7096 | { | |
7097 | if (temp2) | |
7098 | delete arg2; | |
7099 | } | |
7100 | return NULL; | |
7101 | } | |
7102 | ||
7103 | ||
7104 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7105 | PyObject *resultobj = 0; | |
7106 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7107 | wxString *arg2 = 0 ; | |
7108 | void *argp1 = 0 ; | |
7109 | int res1 = 0 ; | |
7110 | bool temp2 = false ; | |
7111 | PyObject * obj0 = 0 ; | |
7112 | PyObject * obj1 = 0 ; | |
7113 | char * kwnames[] = { | |
7114 | (char *) "self",(char *) "text", NULL | |
7115 | }; | |
7116 | ||
7117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7119 | if (!SWIG_IsOK(res1)) { | |
7120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7121 | } | |
7122 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7123 | { | |
7124 | arg2 = wxString_in_helper(obj1); | |
7125 | if (arg2 == NULL) SWIG_fail; | |
7126 | temp2 = true; | |
7127 | } | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | (arg1)->AppendText((wxString const &)*arg2); | |
7131 | wxPyEndAllowThreads(__tstate); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
7134 | resultobj = SWIG_Py_Void(); | |
7135 | { | |
7136 | if (temp2) | |
7137 | delete arg2; | |
7138 | } | |
7139 | return resultobj; | |
7140 | fail: | |
7141 | { | |
7142 | if (temp2) | |
7143 | delete arg2; | |
7144 | } | |
7145 | return NULL; | |
7146 | } | |
7147 | ||
7148 | ||
7149 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7150 | PyObject *resultobj = 0; | |
7151 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7152 | wxRichTextRange *arg2 = 0 ; | |
7153 | wxRichTextAttr *arg3 = 0 ; | |
7154 | bool result; | |
7155 | void *argp1 = 0 ; | |
7156 | int res1 = 0 ; | |
7157 | wxRichTextRange temp2 ; | |
7158 | void *argp3 = 0 ; | |
7159 | int res3 = 0 ; | |
7160 | PyObject * obj0 = 0 ; | |
7161 | PyObject * obj1 = 0 ; | |
7162 | PyObject * obj2 = 0 ; | |
7163 | char * kwnames[] = { | |
7164 | (char *) "self",(char *) "range",(char *) "style", NULL | |
7165 | }; | |
7166 | ||
7167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7169 | if (!SWIG_IsOK(res1)) { | |
7170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7171 | } | |
7172 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7173 | { | |
7174 | arg2 = &temp2; | |
7175 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
7176 | } | |
7177 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7178 | if (!SWIG_IsOK(res3)) { | |
7179 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7180 | } | |
7181 | if (!argp3) { | |
7182 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7183 | } | |
7184 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7185 | { | |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
7188 | wxPyEndAllowThreads(__tstate); | |
7189 | if (PyErr_Occurred()) SWIG_fail; | |
7190 | } | |
7191 | { | |
7192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7193 | } | |
7194 | return resultobj; | |
7195 | fail: | |
7196 | return NULL; | |
7197 | } | |
7198 | ||
7199 | ||
7200 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7201 | PyObject *resultobj = 0; | |
7202 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7203 | long arg2 ; | |
7204 | wxRichTextAttr *arg3 = 0 ; | |
7205 | bool result; | |
7206 | void *argp1 = 0 ; | |
7207 | int res1 = 0 ; | |
7208 | long val2 ; | |
7209 | int ecode2 = 0 ; | |
7210 | void *argp3 = 0 ; | |
7211 | int res3 = 0 ; | |
7212 | PyObject * obj0 = 0 ; | |
7213 | PyObject * obj1 = 0 ; | |
7214 | PyObject * obj2 = 0 ; | |
7215 | char * kwnames[] = { | |
7216 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7217 | }; | |
7218 | ||
7219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7221 | if (!SWIG_IsOK(res1)) { | |
7222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7223 | } | |
7224 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7225 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7226 | if (!SWIG_IsOK(ecode2)) { | |
7227 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
7228 | } | |
7229 | arg2 = static_cast< long >(val2); | |
7230 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7231 | if (!SWIG_IsOK(res3)) { | |
7232 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7233 | } | |
7234 | if (!argp3) { | |
7235 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7236 | } | |
7237 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7238 | { | |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7240 | result = (bool)((wxRichTextCtrl const *)arg1)->GetStyle(arg2,*arg3); | |
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | { | |
7245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7246 | } | |
7247 | return resultobj; | |
7248 | fail: | |
7249 | return NULL; | |
7250 | } | |
7251 | ||
7252 | ||
7253 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7254 | PyObject *resultobj = 0; | |
7255 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7256 | wxRichTextAttr *arg2 = 0 ; | |
7257 | bool result; | |
7258 | void *argp1 = 0 ; | |
7259 | int res1 = 0 ; | |
7260 | void *argp2 = 0 ; | |
7261 | int res2 = 0 ; | |
7262 | PyObject * obj0 = 0 ; | |
7263 | PyObject * obj1 = 0 ; | |
7264 | char * kwnames[] = { | |
7265 | (char *) "self",(char *) "style", NULL | |
7266 | }; | |
7267 | ||
7268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
7269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7270 | if (!SWIG_IsOK(res1)) { | |
7271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7272 | } | |
7273 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7274 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7275 | if (!SWIG_IsOK(res2)) { | |
7276 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7277 | } | |
7278 | if (!argp2) { | |
7279 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7280 | } | |
7281 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
7282 | { | |
7283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7284 | result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2); | |
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | { | |
7289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7290 | } | |
7291 | return resultobj; | |
7292 | fail: | |
7293 | return NULL; | |
7294 | } | |
7295 | ||
7296 | ||
7297 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7298 | PyObject *resultobj = 0; | |
7299 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7300 | wxRichTextAttr result; | |
7301 | void *argp1 = 0 ; | |
7302 | int res1 = 0 ; | |
7303 | PyObject *swig_obj[1] ; | |
7304 | ||
7305 | if (!args) SWIG_fail; | |
7306 | swig_obj[0] = args; | |
7307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7308 | if (!SWIG_IsOK(res1)) { | |
7309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7310 | } | |
7311 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7312 | { | |
7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7314 | result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx(); | |
7315 | wxPyEndAllowThreads(__tstate); | |
7316 | if (PyErr_Occurred()) SWIG_fail; | |
7317 | } | |
7318 | resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 ); | |
7319 | return resultobj; | |
7320 | fail: | |
7321 | return NULL; | |
7322 | } | |
7323 | ||
7324 | ||
7325 | SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7326 | PyObject *resultobj = 0; | |
7327 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7328 | long arg2 ; | |
7329 | long arg3 ; | |
7330 | long result; | |
7331 | void *argp1 = 0 ; | |
7332 | int res1 = 0 ; | |
7333 | long val2 ; | |
7334 | int ecode2 = 0 ; | |
7335 | long val3 ; | |
7336 | int ecode3 = 0 ; | |
7337 | PyObject * obj0 = 0 ; | |
7338 | PyObject * obj1 = 0 ; | |
7339 | PyObject * obj2 = 0 ; | |
7340 | char * kwnames[] = { | |
7341 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7342 | }; | |
7343 | ||
7344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7346 | if (!SWIG_IsOK(res1)) { | |
7347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7348 | } | |
7349 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7350 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7351 | if (!SWIG_IsOK(ecode2)) { | |
7352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
7353 | } | |
7354 | arg2 = static_cast< long >(val2); | |
7355 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7356 | if (!SWIG_IsOK(ecode3)) { | |
7357 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
7358 | } | |
7359 | arg3 = static_cast< long >(val3); | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7363 | wxPyEndAllowThreads(__tstate); | |
7364 | if (PyErr_Occurred()) SWIG_fail; | |
7365 | } | |
7366 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | return NULL; | |
7370 | } | |
7371 | ||
7372 | ||
7373 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7374 | PyObject *resultobj = 0; | |
7375 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7376 | long arg2 ; | |
7377 | long *arg3 = (long *) 0 ; | |
7378 | long *arg4 = (long *) 0 ; | |
7379 | void *argp1 = 0 ; | |
7380 | int res1 = 0 ; | |
7381 | long val2 ; | |
7382 | int ecode2 = 0 ; | |
7383 | long temp3 ; | |
7384 | int res3 = SWIG_TMPOBJ ; | |
7385 | long temp4 ; | |
7386 | int res4 = SWIG_TMPOBJ ; | |
7387 | PyObject * obj0 = 0 ; | |
7388 | PyObject * obj1 = 0 ; | |
7389 | char * kwnames[] = { | |
7390 | (char *) "self",(char *) "pos", NULL | |
7391 | }; | |
7392 | ||
7393 | arg3 = &temp3; | |
7394 | arg4 = &temp4; | |
7395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
7396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7397 | if (!SWIG_IsOK(res1)) { | |
7398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7399 | } | |
7400 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7401 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7402 | if (!SWIG_IsOK(ecode2)) { | |
7403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
7404 | } | |
7405 | arg2 = static_cast< long >(val2); | |
7406 | { | |
7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7408 | ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
7412 | resultobj = SWIG_Py_Void(); | |
7413 | if (SWIG_IsTmpObj(res3)) { | |
7414 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7415 | } else { | |
7416 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7417 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7418 | } | |
7419 | if (SWIG_IsTmpObj(res4)) { | |
7420 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
7421 | } else { | |
7422 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7423 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
7424 | } | |
7425 | return resultobj; | |
7426 | fail: | |
7427 | return NULL; | |
7428 | } | |
7429 | ||
7430 | ||
7431 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7432 | PyObject *resultobj = 0; | |
7433 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7434 | long arg2 ; | |
7435 | void *argp1 = 0 ; | |
7436 | int res1 = 0 ; | |
7437 | long val2 ; | |
7438 | int ecode2 = 0 ; | |
7439 | PyObject * obj0 = 0 ; | |
7440 | PyObject * obj1 = 0 ; | |
7441 | char * kwnames[] = { | |
7442 | (char *) "self",(char *) "position", NULL | |
7443 | }; | |
7444 | ||
7445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
7446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7447 | if (!SWIG_IsOK(res1)) { | |
7448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7449 | } | |
7450 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7451 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7452 | if (!SWIG_IsOK(ecode2)) { | |
7453 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
7454 | } | |
7455 | arg2 = static_cast< long >(val2); | |
7456 | { | |
7457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7458 | (arg1)->ShowPosition(arg2); | |
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | resultobj = SWIG_Py_Void(); | |
7463 | return resultobj; | |
7464 | fail: | |
7465 | return NULL; | |
7466 | } | |
7467 | ||
7468 | ||
7469 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7470 | PyObject *resultobj = 0; | |
7471 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7472 | wxPoint *arg2 = 0 ; | |
7473 | long *arg3 = (long *) 0 ; | |
7474 | wxTextCtrlHitTestResult result; | |
7475 | void *argp1 = 0 ; | |
7476 | int res1 = 0 ; | |
7477 | wxPoint temp2 ; | |
7478 | long temp3 ; | |
7479 | int res3 = SWIG_TMPOBJ ; | |
7480 | PyObject * obj0 = 0 ; | |
7481 | PyObject * obj1 = 0 ; | |
7482 | char * kwnames[] = { | |
7483 | (char *) "self",(char *) "pt", NULL | |
7484 | }; | |
7485 | ||
7486 | arg3 = &temp3; | |
7487 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
7488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7489 | if (!SWIG_IsOK(res1)) { | |
7490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7491 | } | |
7492 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7493 | { | |
7494 | arg2 = &temp2; | |
7495 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7496 | } | |
7497 | { | |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
7503 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7504 | if (SWIG_IsTmpObj(res3)) { | |
7505 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7506 | } else { | |
7507 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7508 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7509 | } | |
7510 | return resultobj; | |
7511 | fail: | |
7512 | return NULL; | |
7513 | } | |
7514 | ||
7515 | ||
7516 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7517 | PyObject *resultobj = 0; | |
7518 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7519 | wxPoint *arg2 = 0 ; | |
7520 | wxTextCoord *arg3 = (wxTextCoord *) 0 ; | |
7521 | wxTextCoord *arg4 = (wxTextCoord *) 0 ; | |
7522 | wxTextCtrlHitTestResult result; | |
7523 | void *argp1 = 0 ; | |
7524 | int res1 = 0 ; | |
7525 | wxPoint temp2 ; | |
7526 | void *argp3 = 0 ; | |
7527 | int res3 = 0 ; | |
7528 | void *argp4 = 0 ; | |
7529 | int res4 = 0 ; | |
7530 | PyObject * obj0 = 0 ; | |
7531 | PyObject * obj1 = 0 ; | |
7532 | PyObject * obj2 = 0 ; | |
7533 | PyObject * obj3 = 0 ; | |
7534 | char * kwnames[] = { | |
7535 | (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL | |
7536 | }; | |
7537 | ||
7538 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7539 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7540 | if (!SWIG_IsOK(res1)) { | |
7541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7542 | } | |
7543 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7544 | { | |
7545 | arg2 = &temp2; | |
7546 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7547 | } | |
7548 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7549 | if (!SWIG_IsOK(res3)) { | |
7550 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'"); | |
7551 | } | |
7552 | arg3 = reinterpret_cast< wxTextCoord * >(argp3); | |
7553 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7554 | if (!SWIG_IsOK(res4)) { | |
7555 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'"); | |
7556 | } | |
7557 | arg4 = reinterpret_cast< wxTextCoord * >(argp4); | |
7558 | { | |
7559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7560 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | return NULL; | |
7568 | } | |
7569 | ||
7570 | ||
7571 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7572 | PyObject *resultobj = 0; | |
7573 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7574 | void *argp1 = 0 ; | |
7575 | int res1 = 0 ; | |
7576 | PyObject *swig_obj[1] ; | |
7577 | ||
7578 | if (!args) SWIG_fail; | |
7579 | swig_obj[0] = args; | |
7580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7581 | if (!SWIG_IsOK(res1)) { | |
7582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7583 | } | |
7584 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7585 | { | |
7586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7587 | (arg1)->Copy(); | |
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | resultobj = SWIG_Py_Void(); | |
7592 | return resultobj; | |
7593 | fail: | |
7594 | return NULL; | |
7595 | } | |
7596 | ||
7597 | ||
7598 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7599 | PyObject *resultobj = 0; | |
7600 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7601 | void *argp1 = 0 ; | |
7602 | int res1 = 0 ; | |
7603 | PyObject *swig_obj[1] ; | |
7604 | ||
7605 | if (!args) SWIG_fail; | |
7606 | swig_obj[0] = args; | |
7607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7608 | if (!SWIG_IsOK(res1)) { | |
7609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7610 | } | |
7611 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7612 | { | |
7613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7614 | (arg1)->Cut(); | |
7615 | wxPyEndAllowThreads(__tstate); | |
7616 | if (PyErr_Occurred()) SWIG_fail; | |
7617 | } | |
7618 | resultobj = SWIG_Py_Void(); | |
7619 | return resultobj; | |
7620 | fail: | |
7621 | return NULL; | |
7622 | } | |
7623 | ||
7624 | ||
7625 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7626 | PyObject *resultobj = 0; | |
7627 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7628 | void *argp1 = 0 ; | |
7629 | int res1 = 0 ; | |
7630 | PyObject *swig_obj[1] ; | |
7631 | ||
7632 | if (!args) SWIG_fail; | |
7633 | swig_obj[0] = args; | |
7634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7635 | if (!SWIG_IsOK(res1)) { | |
7636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7637 | } | |
7638 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7639 | { | |
7640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7641 | (arg1)->Paste(); | |
7642 | wxPyEndAllowThreads(__tstate); | |
7643 | if (PyErr_Occurred()) SWIG_fail; | |
7644 | } | |
7645 | resultobj = SWIG_Py_Void(); | |
7646 | return resultobj; | |
7647 | fail: | |
7648 | return NULL; | |
7649 | } | |
7650 | ||
7651 | ||
7652 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7653 | PyObject *resultobj = 0; | |
7654 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7655 | void *argp1 = 0 ; | |
7656 | int res1 = 0 ; | |
7657 | PyObject *swig_obj[1] ; | |
7658 | ||
7659 | if (!args) SWIG_fail; | |
7660 | swig_obj[0] = args; | |
7661 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7662 | if (!SWIG_IsOK(res1)) { | |
7663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7664 | } | |
7665 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7666 | { | |
7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7668 | (arg1)->DeleteSelection(); | |
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | resultobj = SWIG_Py_Void(); | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7680 | PyObject *resultobj = 0; | |
7681 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7682 | bool result; | |
7683 | void *argp1 = 0 ; | |
7684 | int res1 = 0 ; | |
7685 | PyObject *swig_obj[1] ; | |
7686 | ||
7687 | if (!args) SWIG_fail; | |
7688 | swig_obj[0] = args; | |
7689 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7690 | if (!SWIG_IsOK(res1)) { | |
7691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7692 | } | |
7693 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy(); | |
7697 | wxPyEndAllowThreads(__tstate); | |
7698 | if (PyErr_Occurred()) SWIG_fail; | |
7699 | } | |
7700 | { | |
7701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7702 | } | |
7703 | return resultobj; | |
7704 | fail: | |
7705 | return NULL; | |
7706 | } | |
7707 | ||
7708 | ||
7709 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7710 | PyObject *resultobj = 0; | |
7711 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7712 | bool result; | |
7713 | void *argp1 = 0 ; | |
7714 | int res1 = 0 ; | |
7715 | PyObject *swig_obj[1] ; | |
7716 | ||
7717 | if (!args) SWIG_fail; | |
7718 | swig_obj[0] = args; | |
7719 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7720 | if (!SWIG_IsOK(res1)) { | |
7721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7722 | } | |
7723 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7724 | { | |
7725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7726 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCut(); | |
7727 | wxPyEndAllowThreads(__tstate); | |
7728 | if (PyErr_Occurred()) SWIG_fail; | |
7729 | } | |
7730 | { | |
7731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7732 | } | |
7733 | return resultobj; | |
7734 | fail: | |
7735 | return NULL; | |
7736 | } | |
7737 | ||
7738 | ||
7739 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7740 | PyObject *resultobj = 0; | |
7741 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7742 | bool result; | |
7743 | void *argp1 = 0 ; | |
7744 | int res1 = 0 ; | |
7745 | PyObject *swig_obj[1] ; | |
7746 | ||
7747 | if (!args) SWIG_fail; | |
7748 | swig_obj[0] = args; | |
7749 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7750 | if (!SWIG_IsOK(res1)) { | |
7751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7752 | } | |
7753 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7754 | { | |
7755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7756 | result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste(); | |
7757 | wxPyEndAllowThreads(__tstate); | |
7758 | if (PyErr_Occurred()) SWIG_fail; | |
7759 | } | |
7760 | { | |
7761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7762 | } | |
7763 | return resultobj; | |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7770 | PyObject *resultobj = 0; | |
7771 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7772 | bool result; | |
7773 | void *argp1 = 0 ; | |
7774 | int res1 = 0 ; | |
7775 | PyObject *swig_obj[1] ; | |
7776 | ||
7777 | if (!args) SWIG_fail; | |
7778 | swig_obj[0] = args; | |
7779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7780 | if (!SWIG_IsOK(res1)) { | |
7781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7782 | } | |
7783 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection(); | |
7787 | wxPyEndAllowThreads(__tstate); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
7790 | { | |
7791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7792 | } | |
7793 | return resultobj; | |
7794 | fail: | |
7795 | return NULL; | |
7796 | } | |
7797 | ||
7798 | ||
7799 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7800 | PyObject *resultobj = 0; | |
7801 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7802 | void *argp1 = 0 ; | |
7803 | int res1 = 0 ; | |
7804 | PyObject *swig_obj[1] ; | |
7805 | ||
7806 | if (!args) SWIG_fail; | |
7807 | swig_obj[0] = args; | |
7808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7809 | if (!SWIG_IsOK(res1)) { | |
7810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7811 | } | |
7812 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7813 | { | |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | (arg1)->Undo(); | |
7816 | wxPyEndAllowThreads(__tstate); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | resultobj = SWIG_Py_Void(); | |
7820 | return resultobj; | |
7821 | fail: | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
7826 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7827 | PyObject *resultobj = 0; | |
7828 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7829 | void *argp1 = 0 ; | |
7830 | int res1 = 0 ; | |
7831 | PyObject *swig_obj[1] ; | |
7832 | ||
7833 | if (!args) SWIG_fail; | |
7834 | swig_obj[0] = args; | |
7835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7836 | if (!SWIG_IsOK(res1)) { | |
7837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7838 | } | |
7839 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7840 | { | |
7841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7842 | (arg1)->Redo(); | |
7843 | wxPyEndAllowThreads(__tstate); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | } | |
7846 | resultobj = SWIG_Py_Void(); | |
7847 | return resultobj; | |
7848 | fail: | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
7853 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7854 | PyObject *resultobj = 0; | |
7855 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7856 | bool result; | |
7857 | void *argp1 = 0 ; | |
7858 | int res1 = 0 ; | |
7859 | PyObject *swig_obj[1] ; | |
7860 | ||
7861 | if (!args) SWIG_fail; | |
7862 | swig_obj[0] = args; | |
7863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7864 | if (!SWIG_IsOK(res1)) { | |
7865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7866 | } | |
7867 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7868 | { | |
7869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7870 | result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo(); | |
7871 | wxPyEndAllowThreads(__tstate); | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | } | |
7874 | { | |
7875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7876 | } | |
7877 | return resultobj; | |
7878 | fail: | |
7879 | return NULL; | |
7880 | } | |
7881 | ||
7882 | ||
7883 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7884 | PyObject *resultobj = 0; | |
7885 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7886 | bool result; | |
7887 | void *argp1 = 0 ; | |
7888 | int res1 = 0 ; | |
7889 | PyObject *swig_obj[1] ; | |
7890 | ||
7891 | if (!args) SWIG_fail; | |
7892 | swig_obj[0] = args; | |
7893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7894 | if (!SWIG_IsOK(res1)) { | |
7895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7896 | } | |
7897 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7898 | { | |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo(); | |
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | { | |
7905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7906 | } | |
7907 | return resultobj; | |
7908 | fail: | |
7909 | return NULL; | |
7910 | } | |
7911 | ||
7912 | ||
7913 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7914 | PyObject *resultobj = 0; | |
7915 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7916 | long arg2 ; | |
7917 | void *argp1 = 0 ; | |
7918 | int res1 = 0 ; | |
7919 | long val2 ; | |
7920 | int ecode2 = 0 ; | |
7921 | PyObject * obj0 = 0 ; | |
7922 | PyObject * obj1 = 0 ; | |
7923 | char * kwnames[] = { | |
7924 | (char *) "self",(char *) "pos", NULL | |
7925 | }; | |
7926 | ||
7927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
7928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7929 | if (!SWIG_IsOK(res1)) { | |
7930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7931 | } | |
7932 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7933 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7934 | if (!SWIG_IsOK(ecode2)) { | |
7935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
7936 | } | |
7937 | arg2 = static_cast< long >(val2); | |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | (arg1)->SetInsertionPoint(arg2); | |
7941 | wxPyEndAllowThreads(__tstate); | |
7942 | if (PyErr_Occurred()) SWIG_fail; | |
7943 | } | |
7944 | resultobj = SWIG_Py_Void(); | |
7945 | return resultobj; | |
7946 | fail: | |
7947 | return NULL; | |
7948 | } | |
7949 | ||
7950 | ||
7951 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7952 | PyObject *resultobj = 0; | |
7953 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7954 | void *argp1 = 0 ; | |
7955 | int res1 = 0 ; | |
7956 | PyObject *swig_obj[1] ; | |
7957 | ||
7958 | if (!args) SWIG_fail; | |
7959 | swig_obj[0] = args; | |
7960 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7961 | if (!SWIG_IsOK(res1)) { | |
7962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7963 | } | |
7964 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7965 | { | |
7966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7967 | (arg1)->SetInsertionPointEnd(); | |
7968 | wxPyEndAllowThreads(__tstate); | |
7969 | if (PyErr_Occurred()) SWIG_fail; | |
7970 | } | |
7971 | resultobj = SWIG_Py_Void(); | |
7972 | return resultobj; | |
7973 | fail: | |
7974 | return NULL; | |
7975 | } | |
7976 | ||
7977 | ||
7978 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7979 | PyObject *resultobj = 0; | |
7980 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7981 | long result; | |
7982 | void *argp1 = 0 ; | |
7983 | int res1 = 0 ; | |
7984 | PyObject *swig_obj[1] ; | |
7985 | ||
7986 | if (!args) SWIG_fail; | |
7987 | swig_obj[0] = args; | |
7988 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7989 | if (!SWIG_IsOK(res1)) { | |
7990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7991 | } | |
7992 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7993 | { | |
7994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7995 | result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint(); | |
7996 | wxPyEndAllowThreads(__tstate); | |
7997 | if (PyErr_Occurred()) SWIG_fail; | |
7998 | } | |
7999 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
8006 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8007 | PyObject *resultobj = 0; | |
8008 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8009 | long result; | |
8010 | void *argp1 = 0 ; | |
8011 | int res1 = 0 ; | |
8012 | PyObject *swig_obj[1] ; | |
8013 | ||
8014 | if (!args) SWIG_fail; | |
8015 | swig_obj[0] = args; | |
8016 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8017 | if (!SWIG_IsOK(res1)) { | |
8018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8019 | } | |
8020 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8021 | { | |
8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8023 | result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition(); | |
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | return NULL; | |
8031 | } | |
8032 | ||
8033 | ||
8034 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8035 | PyObject *resultobj = 0; | |
8036 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8037 | long arg2 ; | |
8038 | long arg3 ; | |
8039 | void *argp1 = 0 ; | |
8040 | int res1 = 0 ; | |
8041 | long val2 ; | |
8042 | int ecode2 = 0 ; | |
8043 | long val3 ; | |
8044 | int ecode3 = 0 ; | |
8045 | PyObject * obj0 = 0 ; | |
8046 | PyObject * obj1 = 0 ; | |
8047 | PyObject * obj2 = 0 ; | |
8048 | char * kwnames[] = { | |
8049 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8050 | }; | |
8051 | ||
8052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8054 | if (!SWIG_IsOK(res1)) { | |
8055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8056 | } | |
8057 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8058 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8059 | if (!SWIG_IsOK(ecode2)) { | |
8060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
8061 | } | |
8062 | arg2 = static_cast< long >(val2); | |
8063 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8064 | if (!SWIG_IsOK(ecode3)) { | |
8065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
8066 | } | |
8067 | arg3 = static_cast< long >(val3); | |
8068 | { | |
8069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8070 | (arg1)->SetSelection(arg2,arg3); | |
8071 | wxPyEndAllowThreads(__tstate); | |
8072 | if (PyErr_Occurred()) SWIG_fail; | |
8073 | } | |
8074 | resultobj = SWIG_Py_Void(); | |
8075 | return resultobj; | |
8076 | fail: | |
8077 | return NULL; | |
8078 | } | |
8079 | ||
8080 | ||
8081 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8082 | PyObject *resultobj = 0; | |
8083 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8084 | void *argp1 = 0 ; | |
8085 | int res1 = 0 ; | |
8086 | PyObject *swig_obj[1] ; | |
8087 | ||
8088 | if (!args) SWIG_fail; | |
8089 | swig_obj[0] = args; | |
8090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8091 | if (!SWIG_IsOK(res1)) { | |
8092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8093 | } | |
8094 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8095 | { | |
8096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8097 | (arg1)->SelectAll(); | |
8098 | wxPyEndAllowThreads(__tstate); | |
8099 | if (PyErr_Occurred()) SWIG_fail; | |
8100 | } | |
8101 | resultobj = SWIG_Py_Void(); | |
8102 | return resultobj; | |
8103 | fail: | |
8104 | return NULL; | |
8105 | } | |
8106 | ||
8107 | ||
8108 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8109 | PyObject *resultobj = 0; | |
8110 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8111 | bool arg2 ; | |
8112 | void *argp1 = 0 ; | |
8113 | int res1 = 0 ; | |
8114 | bool val2 ; | |
8115 | int ecode2 = 0 ; | |
8116 | PyObject * obj0 = 0 ; | |
8117 | PyObject * obj1 = 0 ; | |
8118 | char * kwnames[] = { | |
8119 | (char *) "self",(char *) "editable", NULL | |
8120 | }; | |
8121 | ||
8122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
8123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8124 | if (!SWIG_IsOK(res1)) { | |
8125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8126 | } | |
8127 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8128 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
8129 | if (!SWIG_IsOK(ecode2)) { | |
8130 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
8131 | } | |
8132 | arg2 = static_cast< bool >(val2); | |
8133 | { | |
8134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8135 | (arg1)->SetEditable(arg2); | |
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
8138 | } | |
8139 | resultobj = SWIG_Py_Void(); | |
8140 | return resultobj; | |
8141 | fail: | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8147 | PyObject *resultobj = 0; | |
8148 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8149 | bool result; | |
8150 | void *argp1 = 0 ; | |
8151 | int res1 = 0 ; | |
8152 | PyObject *swig_obj[1] ; | |
8153 | ||
8154 | if (!args) SWIG_fail; | |
8155 | swig_obj[0] = args; | |
8156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8157 | if (!SWIG_IsOK(res1)) { | |
8158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8159 | } | |
8160 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8161 | { | |
8162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8163 | result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection(); | |
8164 | wxPyEndAllowThreads(__tstate); | |
8165 | if (PyErr_Occurred()) SWIG_fail; | |
8166 | } | |
8167 | { | |
8168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8169 | } | |
8170 | return resultobj; | |
8171 | fail: | |
8172 | return NULL; | |
8173 | } | |
8174 | ||
8175 | ||
8176 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8177 | PyObject *resultobj = 0; | |
8178 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8179 | wxImage *arg2 = 0 ; | |
8180 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8181 | bool result; | |
8182 | void *argp1 = 0 ; | |
8183 | int res1 = 0 ; | |
8184 | void *argp2 = 0 ; | |
8185 | int res2 = 0 ; | |
8186 | int val3 ; | |
8187 | int ecode3 = 0 ; | |
8188 | PyObject * obj0 = 0 ; | |
8189 | PyObject * obj1 = 0 ; | |
8190 | PyObject * obj2 = 0 ; | |
8191 | char * kwnames[] = { | |
8192 | (char *) "self",(char *) "image",(char *) "bitmapType", NULL | |
8193 | }; | |
8194 | ||
8195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8197 | if (!SWIG_IsOK(res1)) { | |
8198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8199 | } | |
8200 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8201 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
8202 | if (!SWIG_IsOK(res2)) { | |
8203 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8204 | } | |
8205 | if (!argp2) { | |
8206 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8207 | } | |
8208 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
8209 | if (obj2) { | |
8210 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8211 | if (!SWIG_IsOK(ecode3)) { | |
8212 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'"); | |
8213 | } | |
8214 | arg3 = static_cast< int >(val3); | |
8215 | } | |
8216 | { | |
8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8218 | result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3); | |
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | { | |
8223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8224 | } | |
8225 | return resultobj; | |
8226 | fail: | |
8227 | return NULL; | |
8228 | } | |
8229 | ||
8230 | ||
8231 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8232 | PyObject *resultobj = 0; | |
8233 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8234 | wxBitmap *arg2 = 0 ; | |
8235 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8236 | bool result; | |
8237 | void *argp1 = 0 ; | |
8238 | int res1 = 0 ; | |
8239 | void *argp2 = 0 ; | |
8240 | int res2 = 0 ; | |
8241 | int val3 ; | |
8242 | int ecode3 = 0 ; | |
8243 | PyObject * obj0 = 0 ; | |
8244 | PyObject * obj1 = 0 ; | |
8245 | PyObject * obj2 = 0 ; | |
8246 | char * kwnames[] = { | |
8247 | (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL | |
8248 | }; | |
8249 | ||
8250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8252 | if (!SWIG_IsOK(res1)) { | |
8253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8254 | } | |
8255 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8256 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8257 | if (!SWIG_IsOK(res2)) { | |
8258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8259 | } | |
8260 | if (!argp2) { | |
8261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8262 | } | |
8263 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8264 | if (obj2) { | |
8265 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8266 | if (!SWIG_IsOK(ecode3)) { | |
8267 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'"); | |
8268 | } | |
8269 | arg3 = static_cast< int >(val3); | |
8270 | } | |
8271 | { | |
8272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8273 | result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3); | |
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | { | |
8278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8279 | } | |
8280 | return resultobj; | |
8281 | fail: | |
8282 | return NULL; | |
8283 | } | |
8284 | ||
8285 | ||
8286 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8287 | PyObject *resultobj = 0; | |
8288 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8289 | wxString *arg2 = 0 ; | |
8290 | int arg3 ; | |
8291 | bool result; | |
8292 | void *argp1 = 0 ; | |
8293 | int res1 = 0 ; | |
8294 | bool temp2 = false ; | |
8295 | int val3 ; | |
8296 | int ecode3 = 0 ; | |
8297 | PyObject * obj0 = 0 ; | |
8298 | PyObject * obj1 = 0 ; | |
8299 | PyObject * obj2 = 0 ; | |
8300 | char * kwnames[] = { | |
8301 | (char *) "self",(char *) "filename",(char *) "bitmapType", NULL | |
8302 | }; | |
8303 | ||
8304 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8305 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8306 | if (!SWIG_IsOK(res1)) { | |
8307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8308 | } | |
8309 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8310 | { | |
8311 | arg2 = wxString_in_helper(obj1); | |
8312 | if (arg2 == NULL) SWIG_fail; | |
8313 | temp2 = true; | |
8314 | } | |
8315 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8316 | if (!SWIG_IsOK(ecode3)) { | |
8317 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'"); | |
8318 | } | |
8319 | arg3 = static_cast< int >(val3); | |
8320 | { | |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3); | |
8323 | wxPyEndAllowThreads(__tstate); | |
8324 | if (PyErr_Occurred()) SWIG_fail; | |
8325 | } | |
8326 | { | |
8327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8328 | } | |
8329 | { | |
8330 | if (temp2) | |
8331 | delete arg2; | |
8332 | } | |
8333 | return resultobj; | |
8334 | fail: | |
8335 | { | |
8336 | if (temp2) | |
8337 | delete arg2; | |
8338 | } | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8344 | PyObject *resultobj = 0; | |
8345 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8346 | wxRichTextImageBlock *arg2 = 0 ; | |
8347 | bool result; | |
8348 | void *argp1 = 0 ; | |
8349 | int res1 = 0 ; | |
8350 | void *argp2 = 0 ; | |
8351 | int res2 = 0 ; | |
8352 | PyObject * obj0 = 0 ; | |
8353 | PyObject * obj1 = 0 ; | |
8354 | char * kwnames[] = { | |
8355 | (char *) "self",(char *) "imageBlock", NULL | |
8356 | }; | |
8357 | ||
8358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail; | |
8359 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8360 | if (!SWIG_IsOK(res1)) { | |
8361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8362 | } | |
8363 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8364 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0); | |
8365 | if (!SWIG_IsOK(res2)) { | |
8366 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8367 | } | |
8368 | if (!argp2) { | |
8369 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8370 | } | |
8371 | arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2); | |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2); | |
8375 | wxPyEndAllowThreads(__tstate); | |
8376 | if (PyErr_Occurred()) SWIG_fail; | |
8377 | } | |
8378 | { | |
8379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8380 | } | |
8381 | return resultobj; | |
8382 | fail: | |
8383 | return NULL; | |
8384 | } | |
8385 | ||
8386 | ||
8387 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8388 | PyObject *resultobj = 0; | |
8389 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8390 | bool result; | |
8391 | void *argp1 = 0 ; | |
8392 | int res1 = 0 ; | |
8393 | PyObject *swig_obj[1] ; | |
8394 | ||
8395 | if (!args) SWIG_fail; | |
8396 | swig_obj[0] = args; | |
8397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8398 | if (!SWIG_IsOK(res1)) { | |
8399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8400 | } | |
8401 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8402 | { | |
8403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8404 | result = (bool)(arg1)->Newline(); | |
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) SWIG_fail; | |
8407 | } | |
8408 | { | |
8409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8410 | } | |
8411 | return resultobj; | |
8412 | fail: | |
8413 | return NULL; | |
8414 | } | |
8415 | ||
8416 | ||
8417 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8418 | PyObject *resultobj = 0; | |
8419 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8420 | wxRichTextAttr *arg2 = 0 ; | |
8421 | void *argp1 = 0 ; | |
8422 | int res1 = 0 ; | |
8423 | void *argp2 = 0 ; | |
8424 | int res2 = 0 ; | |
8425 | PyObject * obj0 = 0 ; | |
8426 | PyObject * obj1 = 0 ; | |
8427 | char * kwnames[] = { | |
8428 | (char *) "self",(char *) "style", NULL | |
8429 | }; | |
8430 | ||
8431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
8432 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8433 | if (!SWIG_IsOK(res1)) { | |
8434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8435 | } | |
8436 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8437 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
8438 | if (!SWIG_IsOK(res2)) { | |
8439 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8440 | } | |
8441 | if (!argp2) { | |
8442 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8443 | } | |
8444 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
8445 | { | |
8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8447 | (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2); | |
8448 | wxPyEndAllowThreads(__tstate); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | resultobj = SWIG_Py_Void(); | |
8452 | return resultobj; | |
8453 | fail: | |
8454 | return NULL; | |
8455 | } | |
8456 | ||
8457 | ||
8458 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8459 | PyObject *resultobj = 0; | |
8460 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8461 | bool result; | |
8462 | void *argp1 = 0 ; | |
8463 | int res1 = 0 ; | |
8464 | PyObject *swig_obj[1] ; | |
8465 | ||
8466 | if (!args) SWIG_fail; | |
8467 | swig_obj[0] = args; | |
8468 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8469 | if (!SWIG_IsOK(res1)) { | |
8470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8471 | } | |
8472 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8473 | { | |
8474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8475 | result = (bool)(arg1)->EndStyle(); | |
8476 | wxPyEndAllowThreads(__tstate); | |
8477 | if (PyErr_Occurred()) SWIG_fail; | |
8478 | } | |
8479 | { | |
8480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8481 | } | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
8488 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8489 | PyObject *resultobj = 0; | |
8490 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8491 | bool result; | |
8492 | void *argp1 = 0 ; | |
8493 | int res1 = 0 ; | |
8494 | PyObject *swig_obj[1] ; | |
8495 | ||
8496 | if (!args) SWIG_fail; | |
8497 | swig_obj[0] = args; | |
8498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8499 | if (!SWIG_IsOK(res1)) { | |
8500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8501 | } | |
8502 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8503 | { | |
8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8505 | result = (bool)(arg1)->EndAllStyles(); | |
8506 | wxPyEndAllowThreads(__tstate); | |
8507 | if (PyErr_Occurred()) SWIG_fail; | |
8508 | } | |
8509 | { | |
8510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8511 | } | |
8512 | return resultobj; | |
8513 | fail: | |
8514 | return NULL; | |
8515 | } | |
8516 | ||
8517 | ||
8518 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8519 | PyObject *resultobj = 0; | |
8520 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8521 | bool result; | |
8522 | void *argp1 = 0 ; | |
8523 | int res1 = 0 ; | |
8524 | PyObject *swig_obj[1] ; | |
8525 | ||
8526 | if (!args) SWIG_fail; | |
8527 | swig_obj[0] = args; | |
8528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8529 | if (!SWIG_IsOK(res1)) { | |
8530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8531 | } | |
8532 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8533 | { | |
8534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8535 | result = (bool)(arg1)->BeginBold(); | |
8536 | wxPyEndAllowThreads(__tstate); | |
8537 | if (PyErr_Occurred()) SWIG_fail; | |
8538 | } | |
8539 | { | |
8540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8541 | } | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
8548 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8549 | PyObject *resultobj = 0; | |
8550 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8551 | bool result; | |
8552 | void *argp1 = 0 ; | |
8553 | int res1 = 0 ; | |
8554 | PyObject *swig_obj[1] ; | |
8555 | ||
8556 | if (!args) SWIG_fail; | |
8557 | swig_obj[0] = args; | |
8558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8559 | if (!SWIG_IsOK(res1)) { | |
8560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8561 | } | |
8562 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8563 | { | |
8564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8565 | result = (bool)(arg1)->EndBold(); | |
8566 | wxPyEndAllowThreads(__tstate); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | } | |
8569 | { | |
8570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | return NULL; | |
8575 | } | |
8576 | ||
8577 | ||
8578 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8579 | PyObject *resultobj = 0; | |
8580 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8581 | bool result; | |
8582 | void *argp1 = 0 ; | |
8583 | int res1 = 0 ; | |
8584 | PyObject *swig_obj[1] ; | |
8585 | ||
8586 | if (!args) SWIG_fail; | |
8587 | swig_obj[0] = args; | |
8588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8589 | if (!SWIG_IsOK(res1)) { | |
8590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8591 | } | |
8592 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8593 | { | |
8594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8595 | result = (bool)(arg1)->BeginItalic(); | |
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) SWIG_fail; | |
8598 | } | |
8599 | { | |
8600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8601 | } | |
8602 | return resultobj; | |
8603 | fail: | |
8604 | return NULL; | |
8605 | } | |
8606 | ||
8607 | ||
8608 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8609 | PyObject *resultobj = 0; | |
8610 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8611 | bool result; | |
8612 | void *argp1 = 0 ; | |
8613 | int res1 = 0 ; | |
8614 | PyObject *swig_obj[1] ; | |
8615 | ||
8616 | if (!args) SWIG_fail; | |
8617 | swig_obj[0] = args; | |
8618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8619 | if (!SWIG_IsOK(res1)) { | |
8620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8621 | } | |
8622 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8623 | { | |
8624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8625 | result = (bool)(arg1)->EndItalic(); | |
8626 | wxPyEndAllowThreads(__tstate); | |
8627 | if (PyErr_Occurred()) SWIG_fail; | |
8628 | } | |
8629 | { | |
8630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8631 | } | |
8632 | return resultobj; | |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8639 | PyObject *resultobj = 0; | |
8640 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8641 | bool result; | |
8642 | void *argp1 = 0 ; | |
8643 | int res1 = 0 ; | |
8644 | PyObject *swig_obj[1] ; | |
8645 | ||
8646 | if (!args) SWIG_fail; | |
8647 | swig_obj[0] = args; | |
8648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8649 | if (!SWIG_IsOK(res1)) { | |
8650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8651 | } | |
8652 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8653 | { | |
8654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8655 | result = (bool)(arg1)->BeginUnderline(); | |
8656 | wxPyEndAllowThreads(__tstate); | |
8657 | if (PyErr_Occurred()) SWIG_fail; | |
8658 | } | |
8659 | { | |
8660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8661 | } | |
8662 | return resultobj; | |
8663 | fail: | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8669 | PyObject *resultobj = 0; | |
8670 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8671 | bool result; | |
8672 | void *argp1 = 0 ; | |
8673 | int res1 = 0 ; | |
8674 | PyObject *swig_obj[1] ; | |
8675 | ||
8676 | if (!args) SWIG_fail; | |
8677 | swig_obj[0] = args; | |
8678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8679 | if (!SWIG_IsOK(res1)) { | |
8680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8681 | } | |
8682 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | result = (bool)(arg1)->EndUnderline(); | |
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
8689 | { | |
8690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8691 | } | |
8692 | return resultobj; | |
8693 | fail: | |
8694 | return NULL; | |
8695 | } | |
8696 | ||
8697 | ||
8698 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8699 | PyObject *resultobj = 0; | |
8700 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8701 | int arg2 ; | |
8702 | bool result; | |
8703 | void *argp1 = 0 ; | |
8704 | int res1 = 0 ; | |
8705 | int val2 ; | |
8706 | int ecode2 = 0 ; | |
8707 | PyObject * obj0 = 0 ; | |
8708 | PyObject * obj1 = 0 ; | |
8709 | char * kwnames[] = { | |
8710 | (char *) "self",(char *) "pointSize", NULL | |
8711 | }; | |
8712 | ||
8713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8715 | if (!SWIG_IsOK(res1)) { | |
8716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8717 | } | |
8718 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8719 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8720 | if (!SWIG_IsOK(ecode2)) { | |
8721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'"); | |
8722 | } | |
8723 | arg2 = static_cast< int >(val2); | |
8724 | { | |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8726 | result = (bool)(arg1)->BeginFontSize(arg2); | |
8727 | wxPyEndAllowThreads(__tstate); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | } | |
8730 | { | |
8731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8732 | } | |
8733 | return resultobj; | |
8734 | fail: | |
8735 | return NULL; | |
8736 | } | |
8737 | ||
8738 | ||
8739 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8740 | PyObject *resultobj = 0; | |
8741 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8742 | bool result; | |
8743 | void *argp1 = 0 ; | |
8744 | int res1 = 0 ; | |
8745 | PyObject *swig_obj[1] ; | |
8746 | ||
8747 | if (!args) SWIG_fail; | |
8748 | swig_obj[0] = args; | |
8749 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8750 | if (!SWIG_IsOK(res1)) { | |
8751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8752 | } | |
8753 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8754 | { | |
8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8756 | result = (bool)(arg1)->EndFontSize(); | |
8757 | wxPyEndAllowThreads(__tstate); | |
8758 | if (PyErr_Occurred()) SWIG_fail; | |
8759 | } | |
8760 | { | |
8761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8762 | } | |
8763 | return resultobj; | |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
8769 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8770 | PyObject *resultobj = 0; | |
8771 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8772 | wxFont *arg2 = 0 ; | |
8773 | bool result; | |
8774 | void *argp1 = 0 ; | |
8775 | int res1 = 0 ; | |
8776 | void *argp2 = 0 ; | |
8777 | int res2 = 0 ; | |
8778 | PyObject * obj0 = 0 ; | |
8779 | PyObject * obj1 = 0 ; | |
8780 | char * kwnames[] = { | |
8781 | (char *) "self",(char *) "font", NULL | |
8782 | }; | |
8783 | ||
8784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8786 | if (!SWIG_IsOK(res1)) { | |
8787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8788 | } | |
8789 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8790 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
8791 | if (!SWIG_IsOK(res2)) { | |
8792 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8793 | } | |
8794 | if (!argp2) { | |
8795 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8796 | } | |
8797 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
8798 | { | |
8799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8800 | result = (bool)(arg1)->BeginFont((wxFont const &)*arg2); | |
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | { | |
8805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8806 | } | |
8807 | return resultobj; | |
8808 | fail: | |
8809 | return NULL; | |
8810 | } | |
8811 | ||
8812 | ||
8813 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8814 | PyObject *resultobj = 0; | |
8815 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8816 | bool result; | |
8817 | void *argp1 = 0 ; | |
8818 | int res1 = 0 ; | |
8819 | PyObject *swig_obj[1] ; | |
8820 | ||
8821 | if (!args) SWIG_fail; | |
8822 | swig_obj[0] = args; | |
8823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8824 | if (!SWIG_IsOK(res1)) { | |
8825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8826 | } | |
8827 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | result = (bool)(arg1)->EndFont(); | |
8831 | wxPyEndAllowThreads(__tstate); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
8834 | { | |
8835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8836 | } | |
8837 | return resultobj; | |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
8843 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8844 | PyObject *resultobj = 0; | |
8845 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8846 | wxColour *arg2 = 0 ; | |
8847 | bool result; | |
8848 | void *argp1 = 0 ; | |
8849 | int res1 = 0 ; | |
8850 | wxColour temp2 ; | |
8851 | PyObject * obj0 = 0 ; | |
8852 | PyObject * obj1 = 0 ; | |
8853 | char * kwnames[] = { | |
8854 | (char *) "self",(char *) "colour", NULL | |
8855 | }; | |
8856 | ||
8857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
8858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8859 | if (!SWIG_IsOK(res1)) { | |
8860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8861 | } | |
8862 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8863 | { | |
8864 | arg2 = &temp2; | |
8865 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8866 | } | |
8867 | { | |
8868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8869 | result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2); | |
8870 | wxPyEndAllowThreads(__tstate); | |
8871 | if (PyErr_Occurred()) SWIG_fail; | |
8872 | } | |
8873 | { | |
8874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8875 | } | |
8876 | return resultobj; | |
8877 | fail: | |
8878 | return NULL; | |
8879 | } | |
8880 | ||
8881 | ||
8882 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8883 | PyObject *resultobj = 0; | |
8884 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8885 | bool result; | |
8886 | void *argp1 = 0 ; | |
8887 | int res1 = 0 ; | |
8888 | PyObject *swig_obj[1] ; | |
8889 | ||
8890 | if (!args) SWIG_fail; | |
8891 | swig_obj[0] = args; | |
8892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8893 | if (!SWIG_IsOK(res1)) { | |
8894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8895 | } | |
8896 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8897 | { | |
8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8899 | result = (bool)(arg1)->EndTextColour(); | |
8900 | wxPyEndAllowThreads(__tstate); | |
8901 | if (PyErr_Occurred()) SWIG_fail; | |
8902 | } | |
8903 | { | |
8904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8905 | } | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
8912 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj = 0; | |
8914 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8915 | wxTextAttrAlignment arg2 ; | |
8916 | bool result; | |
8917 | void *argp1 = 0 ; | |
8918 | int res1 = 0 ; | |
8919 | int val2 ; | |
8920 | int ecode2 = 0 ; | |
8921 | PyObject * obj0 = 0 ; | |
8922 | PyObject * obj1 = 0 ; | |
8923 | char * kwnames[] = { | |
8924 | (char *) "self",(char *) "alignment", NULL | |
8925 | }; | |
8926 | ||
8927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
8928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8929 | if (!SWIG_IsOK(res1)) { | |
8930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8931 | } | |
8932 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8934 | if (!SWIG_IsOK(ecode2)) { | |
8935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
8936 | } | |
8937 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | result = (bool)(arg1)->BeginAlignment(arg2); | |
8941 | wxPyEndAllowThreads(__tstate); | |
8942 | if (PyErr_Occurred()) SWIG_fail; | |
8943 | } | |
8944 | { | |
8945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8946 | } | |
8947 | return resultobj; | |
8948 | fail: | |
8949 | return NULL; | |
8950 | } | |
8951 | ||
8952 | ||
8953 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8954 | PyObject *resultobj = 0; | |
8955 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8956 | bool result; | |
8957 | void *argp1 = 0 ; | |
8958 | int res1 = 0 ; | |
8959 | PyObject *swig_obj[1] ; | |
8960 | ||
8961 | if (!args) SWIG_fail; | |
8962 | swig_obj[0] = args; | |
8963 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8964 | if (!SWIG_IsOK(res1)) { | |
8965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8966 | } | |
8967 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (bool)(arg1)->EndAlignment(); | |
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | { | |
8975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8976 | } | |
8977 | return resultobj; | |
8978 | fail: | |
8979 | return NULL; | |
8980 | } | |
8981 | ||
8982 | ||
8983 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8984 | PyObject *resultobj = 0; | |
8985 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8986 | int arg2 ; | |
8987 | int arg3 = (int) 0 ; | |
8988 | bool result; | |
8989 | void *argp1 = 0 ; | |
8990 | int res1 = 0 ; | |
8991 | int val2 ; | |
8992 | int ecode2 = 0 ; | |
8993 | int val3 ; | |
8994 | int ecode3 = 0 ; | |
8995 | PyObject * obj0 = 0 ; | |
8996 | PyObject * obj1 = 0 ; | |
8997 | PyObject * obj2 = 0 ; | |
8998 | char * kwnames[] = { | |
8999 | (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL | |
9000 | }; | |
9001 | ||
9002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9004 | if (!SWIG_IsOK(res1)) { | |
9005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9006 | } | |
9007 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9008 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9009 | if (!SWIG_IsOK(ecode2)) { | |
9010 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
9011 | } | |
9012 | arg2 = static_cast< int >(val2); | |
9013 | if (obj2) { | |
9014 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9015 | if (!SWIG_IsOK(ecode3)) { | |
9016 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
9017 | } | |
9018 | arg3 = static_cast< int >(val3); | |
9019 | } | |
9020 | { | |
9021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9022 | result = (bool)(arg1)->BeginLeftIndent(arg2,arg3); | |
9023 | wxPyEndAllowThreads(__tstate); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | } | |
9026 | { | |
9027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9028 | } | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9036 | PyObject *resultobj = 0; | |
9037 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9038 | bool result; | |
9039 | void *argp1 = 0 ; | |
9040 | int res1 = 0 ; | |
9041 | PyObject *swig_obj[1] ; | |
9042 | ||
9043 | if (!args) SWIG_fail; | |
9044 | swig_obj[0] = args; | |
9045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9046 | if (!SWIG_IsOK(res1)) { | |
9047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9048 | } | |
9049 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9050 | { | |
9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9052 | result = (bool)(arg1)->EndLeftIndent(); | |
9053 | wxPyEndAllowThreads(__tstate); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
9056 | { | |
9057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9058 | } | |
9059 | return resultobj; | |
9060 | fail: | |
9061 | return NULL; | |
9062 | } | |
9063 | ||
9064 | ||
9065 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9066 | PyObject *resultobj = 0; | |
9067 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9068 | int arg2 ; | |
9069 | bool result; | |
9070 | void *argp1 = 0 ; | |
9071 | int res1 = 0 ; | |
9072 | int val2 ; | |
9073 | int ecode2 = 0 ; | |
9074 | PyObject * obj0 = 0 ; | |
9075 | PyObject * obj1 = 0 ; | |
9076 | char * kwnames[] = { | |
9077 | (char *) "self",(char *) "rightIndent", NULL | |
9078 | }; | |
9079 | ||
9080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
9081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9082 | if (!SWIG_IsOK(res1)) { | |
9083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9084 | } | |
9085 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9086 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9087 | if (!SWIG_IsOK(ecode2)) { | |
9088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
9089 | } | |
9090 | arg2 = static_cast< int >(val2); | |
9091 | { | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (bool)(arg1)->BeginRightIndent(arg2); | |
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | } | |
9097 | { | |
9098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9099 | } | |
9100 | return resultobj; | |
9101 | fail: | |
9102 | return NULL; | |
9103 | } | |
9104 | ||
9105 | ||
9106 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9107 | PyObject *resultobj = 0; | |
9108 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9109 | bool result; | |
9110 | void *argp1 = 0 ; | |
9111 | int res1 = 0 ; | |
9112 | PyObject *swig_obj[1] ; | |
9113 | ||
9114 | if (!args) SWIG_fail; | |
9115 | swig_obj[0] = args; | |
9116 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9117 | if (!SWIG_IsOK(res1)) { | |
9118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9119 | } | |
9120 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9121 | { | |
9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9123 | result = (bool)(arg1)->EndRightIndent(); | |
9124 | wxPyEndAllowThreads(__tstate); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
9126 | } | |
9127 | { | |
9128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9129 | } | |
9130 | return resultobj; | |
9131 | fail: | |
9132 | return NULL; | |
9133 | } | |
9134 | ||
9135 | ||
9136 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9137 | PyObject *resultobj = 0; | |
9138 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9139 | int arg2 ; | |
9140 | int arg3 ; | |
9141 | bool result; | |
9142 | void *argp1 = 0 ; | |
9143 | int res1 = 0 ; | |
9144 | int val2 ; | |
9145 | int ecode2 = 0 ; | |
9146 | int val3 ; | |
9147 | int ecode3 = 0 ; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | PyObject * obj1 = 0 ; | |
9150 | PyObject * obj2 = 0 ; | |
9151 | char * kwnames[] = { | |
9152 | (char *) "self",(char *) "before",(char *) "after", NULL | |
9153 | }; | |
9154 | ||
9155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9157 | if (!SWIG_IsOK(res1)) { | |
9158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9159 | } | |
9160 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9161 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9162 | if (!SWIG_IsOK(ecode2)) { | |
9163 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9164 | } | |
9165 | arg2 = static_cast< int >(val2); | |
9166 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9167 | if (!SWIG_IsOK(ecode3)) { | |
9168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'"); | |
9169 | } | |
9170 | arg3 = static_cast< int >(val3); | |
9171 | { | |
9172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9173 | result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3); | |
9174 | wxPyEndAllowThreads(__tstate); | |
9175 | if (PyErr_Occurred()) SWIG_fail; | |
9176 | } | |
9177 | { | |
9178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9179 | } | |
9180 | return resultobj; | |
9181 | fail: | |
9182 | return NULL; | |
9183 | } | |
9184 | ||
9185 | ||
9186 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9187 | PyObject *resultobj = 0; | |
9188 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9189 | bool result; | |
9190 | void *argp1 = 0 ; | |
9191 | int res1 = 0 ; | |
9192 | PyObject *swig_obj[1] ; | |
9193 | ||
9194 | if (!args) SWIG_fail; | |
9195 | swig_obj[0] = args; | |
9196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9197 | if (!SWIG_IsOK(res1)) { | |
9198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9199 | } | |
9200 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9201 | { | |
9202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9203 | result = (bool)(arg1)->EndParagraphSpacing(); | |
9204 | wxPyEndAllowThreads(__tstate); | |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
9206 | } | |
9207 | { | |
9208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9209 | } | |
9210 | return resultobj; | |
9211 | fail: | |
9212 | return NULL; | |
9213 | } | |
9214 | ||
9215 | ||
9216 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9217 | PyObject *resultobj = 0; | |
9218 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9219 | int arg2 ; | |
9220 | bool result; | |
9221 | void *argp1 = 0 ; | |
9222 | int res1 = 0 ; | |
9223 | int val2 ; | |
9224 | int ecode2 = 0 ; | |
9225 | PyObject * obj0 = 0 ; | |
9226 | PyObject * obj1 = 0 ; | |
9227 | char * kwnames[] = { | |
9228 | (char *) "self",(char *) "lineSpacing", NULL | |
9229 | }; | |
9230 | ||
9231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
9232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9233 | if (!SWIG_IsOK(res1)) { | |
9234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9235 | } | |
9236 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9237 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9238 | if (!SWIG_IsOK(ecode2)) { | |
9239 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9240 | } | |
9241 | arg2 = static_cast< int >(val2); | |
9242 | { | |
9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9244 | result = (bool)(arg1)->BeginLineSpacing(arg2); | |
9245 | wxPyEndAllowThreads(__tstate); | |
9246 | if (PyErr_Occurred()) SWIG_fail; | |
9247 | } | |
9248 | { | |
9249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9250 | } | |
9251 | return resultobj; | |
9252 | fail: | |
9253 | return NULL; | |
9254 | } | |
9255 | ||
9256 | ||
9257 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9258 | PyObject *resultobj = 0; | |
9259 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9260 | bool result; | |
9261 | void *argp1 = 0 ; | |
9262 | int res1 = 0 ; | |
9263 | PyObject *swig_obj[1] ; | |
9264 | ||
9265 | if (!args) SWIG_fail; | |
9266 | swig_obj[0] = args; | |
9267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9268 | if (!SWIG_IsOK(res1)) { | |
9269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9270 | } | |
9271 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9272 | { | |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (bool)(arg1)->EndLineSpacing(); | |
9275 | wxPyEndAllowThreads(__tstate); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
9277 | } | |
9278 | { | |
9279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9280 | } | |
9281 | return resultobj; | |
9282 | fail: | |
9283 | return NULL; | |
9284 | } | |
9285 | ||
9286 | ||
9287 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9288 | PyObject *resultobj = 0; | |
9289 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9290 | int arg2 ; | |
9291 | int arg3 ; | |
9292 | int arg4 ; | |
9293 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ; | |
9294 | bool result; | |
9295 | void *argp1 = 0 ; | |
9296 | int res1 = 0 ; | |
9297 | int val2 ; | |
9298 | int ecode2 = 0 ; | |
9299 | int val3 ; | |
9300 | int ecode3 = 0 ; | |
9301 | int val4 ; | |
9302 | int ecode4 = 0 ; | |
9303 | int val5 ; | |
9304 | int ecode5 = 0 ; | |
9305 | PyObject * obj0 = 0 ; | |
9306 | PyObject * obj1 = 0 ; | |
9307 | PyObject * obj2 = 0 ; | |
9308 | PyObject * obj3 = 0 ; | |
9309 | PyObject * obj4 = 0 ; | |
9310 | char * kwnames[] = { | |
9311 | (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9312 | }; | |
9313 | ||
9314 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9316 | if (!SWIG_IsOK(res1)) { | |
9317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9318 | } | |
9319 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9320 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9321 | if (!SWIG_IsOK(ecode2)) { | |
9322 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'"); | |
9323 | } | |
9324 | arg2 = static_cast< int >(val2); | |
9325 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9326 | if (!SWIG_IsOK(ecode3)) { | |
9327 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'"); | |
9328 | } | |
9329 | arg3 = static_cast< int >(val3); | |
9330 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9331 | if (!SWIG_IsOK(ecode4)) { | |
9332 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'"); | |
9333 | } | |
9334 | arg4 = static_cast< int >(val4); | |
9335 | if (obj4) { | |
9336 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9337 | if (!SWIG_IsOK(ecode5)) { | |
9338 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'"); | |
9339 | } | |
9340 | arg5 = static_cast< int >(val5); | |
9341 | } | |
9342 | { | |
9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9344 | result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5); | |
9345 | wxPyEndAllowThreads(__tstate); | |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
9347 | } | |
9348 | { | |
9349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9350 | } | |
9351 | return resultobj; | |
9352 | fail: | |
9353 | return NULL; | |
9354 | } | |
9355 | ||
9356 | ||
9357 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9358 | PyObject *resultobj = 0; | |
9359 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9360 | bool result; | |
9361 | void *argp1 = 0 ; | |
9362 | int res1 = 0 ; | |
9363 | PyObject *swig_obj[1] ; | |
9364 | ||
9365 | if (!args) SWIG_fail; | |
9366 | swig_obj[0] = args; | |
9367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9368 | if (!SWIG_IsOK(res1)) { | |
9369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9370 | } | |
9371 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9372 | { | |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9374 | result = (bool)(arg1)->EndNumberedBullet(); | |
9375 | wxPyEndAllowThreads(__tstate); | |
9376 | if (PyErr_Occurred()) SWIG_fail; | |
9377 | } | |
9378 | { | |
9379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9380 | } | |
9381 | return resultobj; | |
9382 | fail: | |
9383 | return NULL; | |
9384 | } | |
9385 | ||
9386 | ||
9387 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9388 | PyObject *resultobj = 0; | |
9389 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9390 | char arg2 ; | |
9391 | int arg3 ; | |
9392 | int arg4 ; | |
9393 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ; | |
9394 | bool result; | |
9395 | void *argp1 = 0 ; | |
9396 | int res1 = 0 ; | |
9397 | char val2 ; | |
9398 | int ecode2 = 0 ; | |
9399 | int val3 ; | |
9400 | int ecode3 = 0 ; | |
9401 | int val4 ; | |
9402 | int ecode4 = 0 ; | |
9403 | int val5 ; | |
9404 | int ecode5 = 0 ; | |
9405 | PyObject * obj0 = 0 ; | |
9406 | PyObject * obj1 = 0 ; | |
9407 | PyObject * obj2 = 0 ; | |
9408 | PyObject * obj3 = 0 ; | |
9409 | PyObject * obj4 = 0 ; | |
9410 | char * kwnames[] = { | |
9411 | (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9412 | }; | |
9413 | ||
9414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9416 | if (!SWIG_IsOK(res1)) { | |
9417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9418 | } | |
9419 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9420 | ecode2 = SWIG_AsVal_char(obj1, &val2); | |
9421 | if (!SWIG_IsOK(ecode2)) { | |
9422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "2"" of type '" "char""'"); | |
9423 | } | |
9424 | arg2 = static_cast< char >(val2); | |
9425 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9426 | if (!SWIG_IsOK(ecode3)) { | |
9427 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'"); | |
9428 | } | |
9429 | arg3 = static_cast< int >(val3); | |
9430 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9431 | if (!SWIG_IsOK(ecode4)) { | |
9432 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'"); | |
9433 | } | |
9434 | arg4 = static_cast< int >(val4); | |
9435 | if (obj4) { | |
9436 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9437 | if (!SWIG_IsOK(ecode5)) { | |
9438 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'"); | |
9439 | } | |
9440 | arg5 = static_cast< int >(val5); | |
9441 | } | |
9442 | { | |
9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9444 | result = (bool)(arg1)->BeginSymbolBullet(arg2,arg3,arg4,arg5); | |
9445 | wxPyEndAllowThreads(__tstate); | |
9446 | if (PyErr_Occurred()) SWIG_fail; | |
9447 | } | |
9448 | { | |
9449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9450 | } | |
9451 | return resultobj; | |
9452 | fail: | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
9457 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9458 | PyObject *resultobj = 0; | |
9459 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9460 | bool result; | |
9461 | void *argp1 = 0 ; | |
9462 | int res1 = 0 ; | |
9463 | PyObject *swig_obj[1] ; | |
9464 | ||
9465 | if (!args) SWIG_fail; | |
9466 | swig_obj[0] = args; | |
9467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9468 | if (!SWIG_IsOK(res1)) { | |
9469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9470 | } | |
9471 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9472 | { | |
9473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9474 | result = (bool)(arg1)->EndSymbolBullet(); | |
9475 | wxPyEndAllowThreads(__tstate); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
9478 | { | |
9479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9480 | } | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | return NULL; | |
9484 | } | |
9485 | ||
9486 | ||
9487 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9488 | PyObject *resultobj = 0; | |
9489 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9490 | wxString *arg2 = 0 ; | |
9491 | bool result; | |
9492 | void *argp1 = 0 ; | |
9493 | int res1 = 0 ; | |
9494 | bool temp2 = false ; | |
9495 | PyObject * obj0 = 0 ; | |
9496 | PyObject * obj1 = 0 ; | |
9497 | char * kwnames[] = { | |
9498 | (char *) "self",(char *) "characterStyle", NULL | |
9499 | }; | |
9500 | ||
9501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9502 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9503 | if (!SWIG_IsOK(res1)) { | |
9504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9505 | } | |
9506 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9507 | { | |
9508 | arg2 = wxString_in_helper(obj1); | |
9509 | if (arg2 == NULL) SWIG_fail; | |
9510 | temp2 = true; | |
9511 | } | |
9512 | { | |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2); | |
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
9518 | { | |
9519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9520 | } | |
9521 | { | |
9522 | if (temp2) | |
9523 | delete arg2; | |
9524 | } | |
9525 | return resultobj; | |
9526 | fail: | |
9527 | { | |
9528 | if (temp2) | |
9529 | delete arg2; | |
9530 | } | |
9531 | return NULL; | |
9532 | } | |
9533 | ||
9534 | ||
9535 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9536 | PyObject *resultobj = 0; | |
9537 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9538 | bool result; | |
9539 | void *argp1 = 0 ; | |
9540 | int res1 = 0 ; | |
9541 | PyObject *swig_obj[1] ; | |
9542 | ||
9543 | if (!args) SWIG_fail; | |
9544 | swig_obj[0] = args; | |
9545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9546 | if (!SWIG_IsOK(res1)) { | |
9547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9548 | } | |
9549 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9550 | { | |
9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9552 | result = (bool)(arg1)->EndCharacterStyle(); | |
9553 | wxPyEndAllowThreads(__tstate); | |
9554 | if (PyErr_Occurred()) SWIG_fail; | |
9555 | } | |
9556 | { | |
9557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9558 | } | |
9559 | return resultobj; | |
9560 | fail: | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
9565 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9566 | PyObject *resultobj = 0; | |
9567 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9568 | wxString *arg2 = 0 ; | |
9569 | bool result; | |
9570 | void *argp1 = 0 ; | |
9571 | int res1 = 0 ; | |
9572 | bool temp2 = false ; | |
9573 | PyObject * obj0 = 0 ; | |
9574 | PyObject * obj1 = 0 ; | |
9575 | char * kwnames[] = { | |
9576 | (char *) "self",(char *) "paragraphStyle", NULL | |
9577 | }; | |
9578 | ||
9579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9581 | if (!SWIG_IsOK(res1)) { | |
9582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9583 | } | |
9584 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9585 | { | |
9586 | arg2 = wxString_in_helper(obj1); | |
9587 | if (arg2 == NULL) SWIG_fail; | |
9588 | temp2 = true; | |
9589 | } | |
9590 | { | |
9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9592 | result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2); | |
9593 | wxPyEndAllowThreads(__tstate); | |
9594 | if (PyErr_Occurred()) SWIG_fail; | |
9595 | } | |
9596 | { | |
9597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9598 | } | |
9599 | { | |
9600 | if (temp2) | |
9601 | delete arg2; | |
9602 | } | |
9603 | return resultobj; | |
9604 | fail: | |
9605 | { | |
9606 | if (temp2) | |
9607 | delete arg2; | |
9608 | } | |
9609 | return NULL; | |
9610 | } | |
9611 | ||
9612 | ||
9613 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9614 | PyObject *resultobj = 0; | |
9615 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9616 | bool result; | |
9617 | void *argp1 = 0 ; | |
9618 | int res1 = 0 ; | |
9619 | PyObject *swig_obj[1] ; | |
9620 | ||
9621 | if (!args) SWIG_fail; | |
9622 | swig_obj[0] = args; | |
9623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9624 | if (!SWIG_IsOK(res1)) { | |
9625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9626 | } | |
9627 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9628 | { | |
9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9630 | result = (bool)(arg1)->EndParagraphStyle(); | |
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
9634 | { | |
9635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9636 | } | |
9637 | return resultobj; | |
9638 | fail: | |
9639 | return NULL; | |
9640 | } | |
9641 | ||
9642 | ||
9643 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9644 | PyObject *resultobj = 0; | |
9645 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9646 | bool result; | |
9647 | void *argp1 = 0 ; | |
9648 | int res1 = 0 ; | |
9649 | PyObject *swig_obj[1] ; | |
9650 | ||
9651 | if (!args) SWIG_fail; | |
9652 | swig_obj[0] = args; | |
9653 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9654 | if (!SWIG_IsOK(res1)) { | |
9655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9656 | } | |
9657 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9658 | { | |
9659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9660 | result = (bool)(arg1)->SetDefaultStyleToCursorStyle(); | |
9661 | wxPyEndAllowThreads(__tstate); | |
9662 | if (PyErr_Occurred()) SWIG_fail; | |
9663 | } | |
9664 | { | |
9665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9666 | } | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | return NULL; | |
9670 | } | |
9671 | ||
9672 | ||
9673 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9674 | PyObject *resultobj = 0; | |
9675 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9676 | void *argp1 = 0 ; | |
9677 | int res1 = 0 ; | |
9678 | PyObject *swig_obj[1] ; | |
9679 | ||
9680 | if (!args) SWIG_fail; | |
9681 | swig_obj[0] = args; | |
9682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9683 | if (!SWIG_IsOK(res1)) { | |
9684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9685 | } | |
9686 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | (arg1)->SelectNone(); | |
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
9693 | resultobj = SWIG_Py_Void(); | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
9700 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9701 | PyObject *resultobj = 0; | |
9702 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9703 | wxRichTextRange *result = 0 ; | |
9704 | void *argp1 = 0 ; | |
9705 | int res1 = 0 ; | |
9706 | PyObject *swig_obj[1] ; | |
9707 | ||
9708 | if (!args) SWIG_fail; | |
9709 | swig_obj[0] = args; | |
9710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9711 | if (!SWIG_IsOK(res1)) { | |
9712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
9713 | } | |
9714 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9715 | { | |
9716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9717 | { | |
9718 | wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetSelectionRange(); | |
9719 | result = (wxRichTextRange *) &_result_ref; | |
9720 | } | |
9721 | wxPyEndAllowThreads(__tstate); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | } | |
9724 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
9725 | return resultobj; | |
9726 | fail: | |
9727 | return NULL; | |
9728 | } | |
9729 | ||
9730 | ||
9731 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9732 | PyObject *resultobj = 0; | |
9733 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9734 | wxRichTextRange *arg2 = 0 ; | |
9735 | void *argp1 = 0 ; | |
9736 | int res1 = 0 ; | |
9737 | wxRichTextRange temp2 ; | |
9738 | PyObject * obj0 = 0 ; | |
9739 | PyObject * obj1 = 0 ; | |
9740 | char * kwnames[] = { | |
9741 | (char *) "self",(char *) "range", NULL | |
9742 | }; | |
9743 | ||
9744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
9745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9746 | if (!SWIG_IsOK(res1)) { | |
9747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9748 | } | |
9749 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9750 | { | |
9751 | arg2 = &temp2; | |
9752 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
9753 | } | |
9754 | { | |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2); | |
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
9760 | resultobj = SWIG_Py_Void(); | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj = 0; | |
9769 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9770 | wxString *arg2 = 0 ; | |
9771 | wxRichTextRange result; | |
9772 | void *argp1 = 0 ; | |
9773 | int res1 = 0 ; | |
9774 | bool temp2 = false ; | |
9775 | PyObject * obj0 = 0 ; | |
9776 | PyObject * obj1 = 0 ; | |
9777 | char * kwnames[] = { | |
9778 | (char *) "self",(char *) "text", NULL | |
9779 | }; | |
9780 | ||
9781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail; | |
9782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9783 | if (!SWIG_IsOK(res1)) { | |
9784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9785 | } | |
9786 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9787 | { | |
9788 | arg2 = wxString_in_helper(obj1); | |
9789 | if (arg2 == NULL) SWIG_fail; | |
9790 | temp2 = true; | |
9791 | } | |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | result = (arg1)->AddParagraph((wxString const &)*arg2); | |
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
9799 | { | |
9800 | if (temp2) | |
9801 | delete arg2; | |
9802 | } | |
9803 | return resultobj; | |
9804 | fail: | |
9805 | { | |
9806 | if (temp2) | |
9807 | delete arg2; | |
9808 | } | |
9809 | return NULL; | |
9810 | } | |
9811 | ||
9812 | ||
9813 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9814 | PyObject *resultobj = 0; | |
9815 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9816 | wxImage *arg2 = 0 ; | |
9817 | wxRichTextRange result; | |
9818 | void *argp1 = 0 ; | |
9819 | int res1 = 0 ; | |
9820 | void *argp2 = 0 ; | |
9821 | int res2 = 0 ; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | PyObject * obj1 = 0 ; | |
9824 | char * kwnames[] = { | |
9825 | (char *) "self",(char *) "image", NULL | |
9826 | }; | |
9827 | ||
9828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
9829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9830 | if (!SWIG_IsOK(res1)) { | |
9831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9832 | } | |
9833 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9834 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
9835 | if (!SWIG_IsOK(res2)) { | |
9836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
9837 | } | |
9838 | if (!argp2) { | |
9839 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
9840 | } | |
9841 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
9842 | { | |
9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9844 | result = (arg1)->AddImage((wxImage const &)*arg2); | |
9845 | wxPyEndAllowThreads(__tstate); | |
9846 | if (PyErr_Occurred()) SWIG_fail; | |
9847 | } | |
9848 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
9849 | return resultobj; | |
9850 | fail: | |
9851 | return NULL; | |
9852 | } | |
9853 | ||
9854 | ||
9855 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9856 | PyObject *resultobj = 0; | |
9857 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9858 | bool arg2 = (bool) false ; | |
9859 | bool result; | |
9860 | void *argp1 = 0 ; | |
9861 | int res1 = 0 ; | |
9862 | bool val2 ; | |
9863 | int ecode2 = 0 ; | |
9864 | PyObject * obj0 = 0 ; | |
9865 | PyObject * obj1 = 0 ; | |
9866 | char * kwnames[] = { | |
9867 | (char *) "self",(char *) "onlyVisibleRect", NULL | |
9868 | }; | |
9869 | ||
9870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
9871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9872 | if (!SWIG_IsOK(res1)) { | |
9873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9874 | } | |
9875 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9876 | if (obj1) { | |
9877 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
9878 | if (!SWIG_IsOK(ecode2)) { | |
9879 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'"); | |
9880 | } | |
9881 | arg2 = static_cast< bool >(val2); | |
9882 | } | |
9883 | { | |
9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9885 | result = (bool)(arg1)->LayoutContent(arg2); | |
9886 | wxPyEndAllowThreads(__tstate); | |
9887 | if (PyErr_Occurred()) SWIG_fail; | |
9888 | } | |
9889 | { | |
9890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9891 | } | |
9892 | return resultobj; | |
9893 | fail: | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
9898 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9899 | PyObject *resultobj = 0; | |
9900 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9901 | long arg2 ; | |
9902 | bool arg3 = (bool) false ; | |
9903 | bool result; | |
9904 | void *argp1 = 0 ; | |
9905 | int res1 = 0 ; | |
9906 | long val2 ; | |
9907 | int ecode2 = 0 ; | |
9908 | bool val3 ; | |
9909 | int ecode3 = 0 ; | |
9910 | PyObject * obj0 = 0 ; | |
9911 | PyObject * obj1 = 0 ; | |
9912 | PyObject * obj2 = 0 ; | |
9913 | char * kwnames[] = { | |
9914 | (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL | |
9915 | }; | |
9916 | ||
9917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9919 | if (!SWIG_IsOK(res1)) { | |
9920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9921 | } | |
9922 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9923 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9924 | if (!SWIG_IsOK(ecode2)) { | |
9925 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'"); | |
9926 | } | |
9927 | arg2 = static_cast< long >(val2); | |
9928 | if (obj2) { | |
9929 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
9930 | if (!SWIG_IsOK(ecode3)) { | |
9931 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'"); | |
9932 | } | |
9933 | arg3 = static_cast< bool >(val3); | |
9934 | } | |
9935 | { | |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9937 | result = (bool)(arg1)->MoveCaret(arg2,arg3); | |
9938 | wxPyEndAllowThreads(__tstate); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
9940 | } | |
9941 | { | |
9942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9943 | } | |
9944 | return resultobj; | |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
9950 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9951 | PyObject *resultobj = 0; | |
9952 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9953 | int arg2 = (int) 1 ; | |
9954 | int arg3 = (int) 0 ; | |
9955 | bool result; | |
9956 | void *argp1 = 0 ; | |
9957 | int res1 = 0 ; | |
9958 | int val2 ; | |
9959 | int ecode2 = 0 ; | |
9960 | int val3 ; | |
9961 | int ecode3 = 0 ; | |
9962 | PyObject * obj0 = 0 ; | |
9963 | PyObject * obj1 = 0 ; | |
9964 | PyObject * obj2 = 0 ; | |
9965 | char * kwnames[] = { | |
9966 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
9967 | }; | |
9968 | ||
9969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9971 | if (!SWIG_IsOK(res1)) { | |
9972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9973 | } | |
9974 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9975 | if (obj1) { | |
9976 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9977 | if (!SWIG_IsOK(ecode2)) { | |
9978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'"); | |
9979 | } | |
9980 | arg2 = static_cast< int >(val2); | |
9981 | } | |
9982 | if (obj2) { | |
9983 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9984 | if (!SWIG_IsOK(ecode3)) { | |
9985 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'"); | |
9986 | } | |
9987 | arg3 = static_cast< int >(val3); | |
9988 | } | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | result = (bool)(arg1)->MoveRight(arg2,arg3); | |
9992 | wxPyEndAllowThreads(__tstate); | |
9993 | if (PyErr_Occurred()) SWIG_fail; | |
9994 | } | |
9995 | { | |
9996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9997 | } | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
10004 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10005 | PyObject *resultobj = 0; | |
10006 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10007 | int arg2 = (int) 1 ; | |
10008 | int arg3 = (int) 0 ; | |
10009 | bool result; | |
10010 | void *argp1 = 0 ; | |
10011 | int res1 = 0 ; | |
10012 | int val2 ; | |
10013 | int ecode2 = 0 ; | |
10014 | int val3 ; | |
10015 | int ecode3 = 0 ; | |
10016 | PyObject * obj0 = 0 ; | |
10017 | PyObject * obj1 = 0 ; | |
10018 | PyObject * obj2 = 0 ; | |
10019 | char * kwnames[] = { | |
10020 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10021 | }; | |
10022 | ||
10023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10025 | if (!SWIG_IsOK(res1)) { | |
10026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10027 | } | |
10028 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10029 | if (obj1) { | |
10030 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10031 | if (!SWIG_IsOK(ecode2)) { | |
10032 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'"); | |
10033 | } | |
10034 | arg2 = static_cast< int >(val2); | |
10035 | } | |
10036 | if (obj2) { | |
10037 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10038 | if (!SWIG_IsOK(ecode3)) { | |
10039 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'"); | |
10040 | } | |
10041 | arg3 = static_cast< int >(val3); | |
10042 | } | |
10043 | { | |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | result = (bool)(arg1)->MoveLeft(arg2,arg3); | |
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | { | |
10050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10051 | } | |
10052 | return resultobj; | |
10053 | fail: | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
10058 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10059 | PyObject *resultobj = 0; | |
10060 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10061 | int arg2 = (int) 1 ; | |
10062 | int arg3 = (int) 0 ; | |
10063 | bool result; | |
10064 | void *argp1 = 0 ; | |
10065 | int res1 = 0 ; | |
10066 | int val2 ; | |
10067 | int ecode2 = 0 ; | |
10068 | int val3 ; | |
10069 | int ecode3 = 0 ; | |
10070 | PyObject * obj0 = 0 ; | |
10071 | PyObject * obj1 = 0 ; | |
10072 | PyObject * obj2 = 0 ; | |
10073 | char * kwnames[] = { | |
10074 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10075 | }; | |
10076 | ||
10077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10079 | if (!SWIG_IsOK(res1)) { | |
10080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10081 | } | |
10082 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10083 | if (obj1) { | |
10084 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10085 | if (!SWIG_IsOK(ecode2)) { | |
10086 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'"); | |
10087 | } | |
10088 | arg2 = static_cast< int >(val2); | |
10089 | } | |
10090 | if (obj2) { | |
10091 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10092 | if (!SWIG_IsOK(ecode3)) { | |
10093 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'"); | |
10094 | } | |
10095 | arg3 = static_cast< int >(val3); | |
10096 | } | |
10097 | { | |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10099 | result = (bool)(arg1)->MoveUp(arg2,arg3); | |
10100 | wxPyEndAllowThreads(__tstate); | |
10101 | if (PyErr_Occurred()) SWIG_fail; | |
10102 | } | |
10103 | { | |
10104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10105 | } | |
10106 | return resultobj; | |
10107 | fail: | |
10108 | return NULL; | |
10109 | } | |
10110 | ||
10111 | ||
10112 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10113 | PyObject *resultobj = 0; | |
10114 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10115 | int arg2 = (int) 1 ; | |
10116 | int arg3 = (int) 0 ; | |
10117 | bool result; | |
10118 | void *argp1 = 0 ; | |
10119 | int res1 = 0 ; | |
10120 | int val2 ; | |
10121 | int ecode2 = 0 ; | |
10122 | int val3 ; | |
10123 | int ecode3 = 0 ; | |
10124 | PyObject * obj0 = 0 ; | |
10125 | PyObject * obj1 = 0 ; | |
10126 | PyObject * obj2 = 0 ; | |
10127 | char * kwnames[] = { | |
10128 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10129 | }; | |
10130 | ||
10131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10133 | if (!SWIG_IsOK(res1)) { | |
10134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10135 | } | |
10136 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10137 | if (obj1) { | |
10138 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10139 | if (!SWIG_IsOK(ecode2)) { | |
10140 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'"); | |
10141 | } | |
10142 | arg2 = static_cast< int >(val2); | |
10143 | } | |
10144 | if (obj2) { | |
10145 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10146 | if (!SWIG_IsOK(ecode3)) { | |
10147 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'"); | |
10148 | } | |
10149 | arg3 = static_cast< int >(val3); | |
10150 | } | |
10151 | { | |
10152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10153 | result = (bool)(arg1)->MoveDown(arg2,arg3); | |
10154 | wxPyEndAllowThreads(__tstate); | |
10155 | if (PyErr_Occurred()) SWIG_fail; | |
10156 | } | |
10157 | { | |
10158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10159 | } | |
10160 | return resultobj; | |
10161 | fail: | |
10162 | return NULL; | |
10163 | } | |
10164 | ||
10165 | ||
10166 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10167 | PyObject *resultobj = 0; | |
10168 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10169 | int arg2 = (int) 0 ; | |
10170 | bool result; | |
10171 | void *argp1 = 0 ; | |
10172 | int res1 = 0 ; | |
10173 | int val2 ; | |
10174 | int ecode2 = 0 ; | |
10175 | PyObject * obj0 = 0 ; | |
10176 | PyObject * obj1 = 0 ; | |
10177 | char * kwnames[] = { | |
10178 | (char *) "self",(char *) "flags", NULL | |
10179 | }; | |
10180 | ||
10181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10183 | if (!SWIG_IsOK(res1)) { | |
10184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10185 | } | |
10186 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10187 | if (obj1) { | |
10188 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10189 | if (!SWIG_IsOK(ecode2)) { | |
10190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'"); | |
10191 | } | |
10192 | arg2 = static_cast< int >(val2); | |
10193 | } | |
10194 | { | |
10195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10196 | result = (bool)(arg1)->MoveToLineEnd(arg2); | |
10197 | wxPyEndAllowThreads(__tstate); | |
10198 | if (PyErr_Occurred()) SWIG_fail; | |
10199 | } | |
10200 | { | |
10201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10202 | } | |
10203 | return resultobj; | |
10204 | fail: | |
10205 | return NULL; | |
10206 | } | |
10207 | ||
10208 | ||
10209 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10210 | PyObject *resultobj = 0; | |
10211 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10212 | int arg2 = (int) 0 ; | |
10213 | bool result; | |
10214 | void *argp1 = 0 ; | |
10215 | int res1 = 0 ; | |
10216 | int val2 ; | |
10217 | int ecode2 = 0 ; | |
10218 | PyObject * obj0 = 0 ; | |
10219 | PyObject * obj1 = 0 ; | |
10220 | char * kwnames[] = { | |
10221 | (char *) "self",(char *) "flags", NULL | |
10222 | }; | |
10223 | ||
10224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10225 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10226 | if (!SWIG_IsOK(res1)) { | |
10227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10228 | } | |
10229 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10230 | if (obj1) { | |
10231 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10232 | if (!SWIG_IsOK(ecode2)) { | |
10233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'"); | |
10234 | } | |
10235 | arg2 = static_cast< int >(val2); | |
10236 | } | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (bool)(arg1)->MoveToLineStart(arg2); | |
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | { | |
10244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10245 | } | |
10246 | return resultobj; | |
10247 | fail: | |
10248 | return NULL; | |
10249 | } | |
10250 | ||
10251 | ||
10252 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10253 | PyObject *resultobj = 0; | |
10254 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10255 | int arg2 = (int) 0 ; | |
10256 | bool result; | |
10257 | void *argp1 = 0 ; | |
10258 | int res1 = 0 ; | |
10259 | int val2 ; | |
10260 | int ecode2 = 0 ; | |
10261 | PyObject * obj0 = 0 ; | |
10262 | PyObject * obj1 = 0 ; | |
10263 | char * kwnames[] = { | |
10264 | (char *) "self",(char *) "flags", NULL | |
10265 | }; | |
10266 | ||
10267 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10268 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10269 | if (!SWIG_IsOK(res1)) { | |
10270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10271 | } | |
10272 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10273 | if (obj1) { | |
10274 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10275 | if (!SWIG_IsOK(ecode2)) { | |
10276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'"); | |
10277 | } | |
10278 | arg2 = static_cast< int >(val2); | |
10279 | } | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | result = (bool)(arg1)->MoveToParagraphEnd(arg2); | |
10283 | wxPyEndAllowThreads(__tstate); | |
10284 | if (PyErr_Occurred()) SWIG_fail; | |
10285 | } | |
10286 | { | |
10287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10288 | } | |
10289 | return resultobj; | |
10290 | fail: | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
10295 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10296 | PyObject *resultobj = 0; | |
10297 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10298 | int arg2 = (int) 0 ; | |
10299 | bool result; | |
10300 | void *argp1 = 0 ; | |
10301 | int res1 = 0 ; | |
10302 | int val2 ; | |
10303 | int ecode2 = 0 ; | |
10304 | PyObject * obj0 = 0 ; | |
10305 | PyObject * obj1 = 0 ; | |
10306 | char * kwnames[] = { | |
10307 | (char *) "self",(char *) "flags", NULL | |
10308 | }; | |
10309 | ||
10310 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10312 | if (!SWIG_IsOK(res1)) { | |
10313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10314 | } | |
10315 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10316 | if (obj1) { | |
10317 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10318 | if (!SWIG_IsOK(ecode2)) { | |
10319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'"); | |
10320 | } | |
10321 | arg2 = static_cast< int >(val2); | |
10322 | } | |
10323 | { | |
10324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10325 | result = (bool)(arg1)->MoveToParagraphStart(arg2); | |
10326 | wxPyEndAllowThreads(__tstate); | |
10327 | if (PyErr_Occurred()) SWIG_fail; | |
10328 | } | |
10329 | { | |
10330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10331 | } | |
10332 | return resultobj; | |
10333 | fail: | |
10334 | return NULL; | |
10335 | } | |
10336 | ||
10337 | ||
10338 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10339 | PyObject *resultobj = 0; | |
10340 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10341 | int arg2 = (int) 0 ; | |
10342 | bool result; | |
10343 | void *argp1 = 0 ; | |
10344 | int res1 = 0 ; | |
10345 | int val2 ; | |
10346 | int ecode2 = 0 ; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | PyObject * obj1 = 0 ; | |
10349 | char * kwnames[] = { | |
10350 | (char *) "self",(char *) "flags", NULL | |
10351 | }; | |
10352 | ||
10353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail; | |
10354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10355 | if (!SWIG_IsOK(res1)) { | |
10356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10357 | } | |
10358 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10359 | if (obj1) { | |
10360 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10361 | if (!SWIG_IsOK(ecode2)) { | |
10362 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'"); | |
10363 | } | |
10364 | arg2 = static_cast< int >(val2); | |
10365 | } | |
10366 | { | |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | result = (bool)(arg1)->MoveHome(arg2); | |
10369 | wxPyEndAllowThreads(__tstate); | |
10370 | if (PyErr_Occurred()) SWIG_fail; | |
10371 | } | |
10372 | { | |
10373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10374 | } | |
10375 | return resultobj; | |
10376 | fail: | |
10377 | return NULL; | |
10378 | } | |
10379 | ||
10380 | ||
10381 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10382 | PyObject *resultobj = 0; | |
10383 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10384 | int arg2 = (int) 0 ; | |
10385 | bool result; | |
10386 | void *argp1 = 0 ; | |
10387 | int res1 = 0 ; | |
10388 | int val2 ; | |
10389 | int ecode2 = 0 ; | |
10390 | PyObject * obj0 = 0 ; | |
10391 | PyObject * obj1 = 0 ; | |
10392 | char * kwnames[] = { | |
10393 | (char *) "self",(char *) "flags", NULL | |
10394 | }; | |
10395 | ||
10396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10398 | if (!SWIG_IsOK(res1)) { | |
10399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10400 | } | |
10401 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10402 | if (obj1) { | |
10403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10404 | if (!SWIG_IsOK(ecode2)) { | |
10405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'"); | |
10406 | } | |
10407 | arg2 = static_cast< int >(val2); | |
10408 | } | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10411 | result = (bool)(arg1)->MoveEnd(arg2); | |
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
10415 | { | |
10416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10417 | } | |
10418 | return resultobj; | |
10419 | fail: | |
10420 | return NULL; | |
10421 | } | |
10422 | ||
10423 | ||
10424 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10425 | PyObject *resultobj = 0; | |
10426 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10427 | int arg2 = (int) 1 ; | |
10428 | int arg3 = (int) 0 ; | |
10429 | bool result; | |
10430 | void *argp1 = 0 ; | |
10431 | int res1 = 0 ; | |
10432 | int val2 ; | |
10433 | int ecode2 = 0 ; | |
10434 | int val3 ; | |
10435 | int ecode3 = 0 ; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | PyObject * obj2 = 0 ; | |
10439 | char * kwnames[] = { | |
10440 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10441 | }; | |
10442 | ||
10443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10445 | if (!SWIG_IsOK(res1)) { | |
10446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10447 | } | |
10448 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10449 | if (obj1) { | |
10450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10451 | if (!SWIG_IsOK(ecode2)) { | |
10452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'"); | |
10453 | } | |
10454 | arg2 = static_cast< int >(val2); | |
10455 | } | |
10456 | if (obj2) { | |
10457 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10458 | if (!SWIG_IsOK(ecode3)) { | |
10459 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'"); | |
10460 | } | |
10461 | arg3 = static_cast< int >(val3); | |
10462 | } | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10465 | result = (bool)(arg1)->PageUp(arg2,arg3); | |
10466 | wxPyEndAllowThreads(__tstate); | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
10468 | } | |
10469 | { | |
10470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10471 | } | |
10472 | return resultobj; | |
10473 | fail: | |
10474 | return NULL; | |
10475 | } | |
10476 | ||
10477 | ||
10478 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10479 | PyObject *resultobj = 0; | |
10480 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10481 | int arg2 = (int) 1 ; | |
10482 | int arg3 = (int) 0 ; | |
10483 | bool result; | |
10484 | void *argp1 = 0 ; | |
10485 | int res1 = 0 ; | |
10486 | int val2 ; | |
10487 | int ecode2 = 0 ; | |
10488 | int val3 ; | |
10489 | int ecode3 = 0 ; | |
10490 | PyObject * obj0 = 0 ; | |
10491 | PyObject * obj1 = 0 ; | |
10492 | PyObject * obj2 = 0 ; | |
10493 | char * kwnames[] = { | |
10494 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10495 | }; | |
10496 | ||
10497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10499 | if (!SWIG_IsOK(res1)) { | |
10500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10501 | } | |
10502 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10503 | if (obj1) { | |
10504 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10505 | if (!SWIG_IsOK(ecode2)) { | |
10506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'"); | |
10507 | } | |
10508 | arg2 = static_cast< int >(val2); | |
10509 | } | |
10510 | if (obj2) { | |
10511 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10512 | if (!SWIG_IsOK(ecode3)) { | |
10513 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'"); | |
10514 | } | |
10515 | arg3 = static_cast< int >(val3); | |
10516 | } | |
10517 | { | |
10518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10519 | result = (bool)(arg1)->PageDown(arg2,arg3); | |
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
10523 | { | |
10524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10525 | } | |
10526 | return resultobj; | |
10527 | fail: | |
10528 | return NULL; | |
10529 | } | |
10530 | ||
10531 | ||
10532 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10533 | PyObject *resultobj = 0; | |
10534 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10535 | int arg2 = (int) 1 ; | |
10536 | int arg3 = (int) 0 ; | |
10537 | bool result; | |
10538 | void *argp1 = 0 ; | |
10539 | int res1 = 0 ; | |
10540 | int val2 ; | |
10541 | int ecode2 = 0 ; | |
10542 | int val3 ; | |
10543 | int ecode3 = 0 ; | |
10544 | PyObject * obj0 = 0 ; | |
10545 | PyObject * obj1 = 0 ; | |
10546 | PyObject * obj2 = 0 ; | |
10547 | char * kwnames[] = { | |
10548 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10549 | }; | |
10550 | ||
10551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10553 | if (!SWIG_IsOK(res1)) { | |
10554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10555 | } | |
10556 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10557 | if (obj1) { | |
10558 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10559 | if (!SWIG_IsOK(ecode2)) { | |
10560 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'"); | |
10561 | } | |
10562 | arg2 = static_cast< int >(val2); | |
10563 | } | |
10564 | if (obj2) { | |
10565 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10566 | if (!SWIG_IsOK(ecode3)) { | |
10567 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'"); | |
10568 | } | |
10569 | arg3 = static_cast< int >(val3); | |
10570 | } | |
10571 | { | |
10572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10573 | result = (bool)(arg1)->WordLeft(arg2,arg3); | |
10574 | wxPyEndAllowThreads(__tstate); | |
10575 | if (PyErr_Occurred()) SWIG_fail; | |
10576 | } | |
10577 | { | |
10578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10579 | } | |
10580 | return resultobj; | |
10581 | fail: | |
10582 | return NULL; | |
10583 | } | |
10584 | ||
10585 | ||
10586 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10587 | PyObject *resultobj = 0; | |
10588 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10589 | int arg2 = (int) 1 ; | |
10590 | int arg3 = (int) 0 ; | |
10591 | bool result; | |
10592 | void *argp1 = 0 ; | |
10593 | int res1 = 0 ; | |
10594 | int val2 ; | |
10595 | int ecode2 = 0 ; | |
10596 | int val3 ; | |
10597 | int ecode3 = 0 ; | |
10598 | PyObject * obj0 = 0 ; | |
10599 | PyObject * obj1 = 0 ; | |
10600 | PyObject * obj2 = 0 ; | |
10601 | char * kwnames[] = { | |
10602 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10603 | }; | |
10604 | ||
10605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10607 | if (!SWIG_IsOK(res1)) { | |
10608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10609 | } | |
10610 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10611 | if (obj1) { | |
10612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10613 | if (!SWIG_IsOK(ecode2)) { | |
10614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'"); | |
10615 | } | |
10616 | arg2 = static_cast< int >(val2); | |
10617 | } | |
10618 | if (obj2) { | |
10619 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10620 | if (!SWIG_IsOK(ecode3)) { | |
10621 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'"); | |
10622 | } | |
10623 | arg3 = static_cast< int >(val3); | |
10624 | } | |
10625 | { | |
10626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10627 | result = (bool)(arg1)->WordRight(arg2,arg3); | |
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | { | |
10632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10633 | } | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | return NULL; | |
10637 | } | |
10638 | ||
10639 | ||
10640 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10641 | PyObject *resultobj = 0; | |
10642 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10643 | wxRichTextBuffer *result = 0 ; | |
10644 | void *argp1 = 0 ; | |
10645 | int res1 = 0 ; | |
10646 | PyObject *swig_obj[1] ; | |
10647 | ||
10648 | if (!args) SWIG_fail; | |
10649 | swig_obj[0] = args; | |
10650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10651 | if (!SWIG_IsOK(res1)) { | |
10652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10653 | } | |
10654 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10655 | { | |
10656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10657 | { | |
10658 | wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer(); | |
10659 | result = (wxRichTextBuffer *) &_result_ref; | |
10660 | } | |
10661 | wxPyEndAllowThreads(__tstate); | |
10662 | if (PyErr_Occurred()) SWIG_fail; | |
10663 | } | |
10664 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 ); | |
10665 | return resultobj; | |
10666 | fail: | |
10667 | return NULL; | |
10668 | } | |
10669 | ||
10670 | ||
10671 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10672 | PyObject *resultobj = 0; | |
10673 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10674 | wxString *arg2 = 0 ; | |
10675 | bool result; | |
10676 | void *argp1 = 0 ; | |
10677 | int res1 = 0 ; | |
10678 | bool temp2 = false ; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | PyObject * obj1 = 0 ; | |
10681 | char * kwnames[] = { | |
10682 | (char *) "self",(char *) "cmdName", NULL | |
10683 | }; | |
10684 | ||
10685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail; | |
10686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10687 | if (!SWIG_IsOK(res1)) { | |
10688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10689 | } | |
10690 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10691 | { | |
10692 | arg2 = wxString_in_helper(obj1); | |
10693 | if (arg2 == NULL) SWIG_fail; | |
10694 | temp2 = true; | |
10695 | } | |
10696 | { | |
10697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10698 | result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2); | |
10699 | wxPyEndAllowThreads(__tstate); | |
10700 | if (PyErr_Occurred()) SWIG_fail; | |
10701 | } | |
10702 | { | |
10703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10704 | } | |
10705 | { | |
10706 | if (temp2) | |
10707 | delete arg2; | |
10708 | } | |
10709 | return resultobj; | |
10710 | fail: | |
10711 | { | |
10712 | if (temp2) | |
10713 | delete arg2; | |
10714 | } | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
10719 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10720 | PyObject *resultobj = 0; | |
10721 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10722 | bool result; | |
10723 | void *argp1 = 0 ; | |
10724 | int res1 = 0 ; | |
10725 | PyObject *swig_obj[1] ; | |
10726 | ||
10727 | if (!args) SWIG_fail; | |
10728 | swig_obj[0] = args; | |
10729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10730 | if (!SWIG_IsOK(res1)) { | |
10731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10732 | } | |
10733 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10734 | { | |
10735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10736 | result = (bool)(arg1)->EndBatchUndo(); | |
10737 | wxPyEndAllowThreads(__tstate); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | } | |
10740 | { | |
10741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10742 | } | |
10743 | return resultobj; | |
10744 | fail: | |
10745 | return NULL; | |
10746 | } | |
10747 | ||
10748 | ||
10749 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10750 | PyObject *resultobj = 0; | |
10751 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10752 | bool result; | |
10753 | void *argp1 = 0 ; | |
10754 | int res1 = 0 ; | |
10755 | PyObject *swig_obj[1] ; | |
10756 | ||
10757 | if (!args) SWIG_fail; | |
10758 | swig_obj[0] = args; | |
10759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10760 | if (!SWIG_IsOK(res1)) { | |
10761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10762 | } | |
10763 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10764 | { | |
10765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10766 | result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo(); | |
10767 | wxPyEndAllowThreads(__tstate); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
10770 | { | |
10771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10772 | } | |
10773 | return resultobj; | |
10774 | fail: | |
10775 | return NULL; | |
10776 | } | |
10777 | ||
10778 | ||
10779 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10780 | PyObject *resultobj = 0; | |
10781 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10782 | bool result; | |
10783 | void *argp1 = 0 ; | |
10784 | int res1 = 0 ; | |
10785 | PyObject *swig_obj[1] ; | |
10786 | ||
10787 | if (!args) SWIG_fail; | |
10788 | swig_obj[0] = args; | |
10789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10790 | if (!SWIG_IsOK(res1)) { | |
10791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10792 | } | |
10793 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10794 | { | |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10796 | result = (bool)(arg1)->BeginSuppressUndo(); | |
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | { | |
10801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10802 | } | |
10803 | return resultobj; | |
10804 | fail: | |
10805 | return NULL; | |
10806 | } | |
10807 | ||
10808 | ||
10809 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10810 | PyObject *resultobj = 0; | |
10811 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10812 | bool result; | |
10813 | void *argp1 = 0 ; | |
10814 | int res1 = 0 ; | |
10815 | PyObject *swig_obj[1] ; | |
10816 | ||
10817 | if (!args) SWIG_fail; | |
10818 | swig_obj[0] = args; | |
10819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10820 | if (!SWIG_IsOK(res1)) { | |
10821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10822 | } | |
10823 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10824 | { | |
10825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10826 | result = (bool)(arg1)->EndSuppressUndo(); | |
10827 | wxPyEndAllowThreads(__tstate); | |
10828 | if (PyErr_Occurred()) SWIG_fail; | |
10829 | } | |
10830 | { | |
10831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10832 | } | |
10833 | return resultobj; | |
10834 | fail: | |
10835 | return NULL; | |
10836 | } | |
10837 | ||
10838 | ||
10839 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10840 | PyObject *resultobj = 0; | |
10841 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10842 | bool result; | |
10843 | void *argp1 = 0 ; | |
10844 | int res1 = 0 ; | |
10845 | PyObject *swig_obj[1] ; | |
10846 | ||
10847 | if (!args) SWIG_fail; | |
10848 | swig_obj[0] = args; | |
10849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10850 | if (!SWIG_IsOK(res1)) { | |
10851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10852 | } | |
10853 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10854 | { | |
10855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10856 | result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo(); | |
10857 | wxPyEndAllowThreads(__tstate); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
10860 | { | |
10861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10862 | } | |
10863 | return resultobj; | |
10864 | fail: | |
10865 | return NULL; | |
10866 | } | |
10867 | ||
10868 | ||
10869 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10870 | PyObject *resultobj = 0; | |
10871 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10872 | wxRichTextRange *arg2 = 0 ; | |
10873 | wxRichTextAttr *arg3 = 0 ; | |
10874 | bool result; | |
10875 | void *argp1 = 0 ; | |
10876 | int res1 = 0 ; | |
10877 | wxRichTextRange temp2 ; | |
10878 | void *argp3 = 0 ; | |
10879 | int res3 = 0 ; | |
10880 | PyObject * obj0 = 0 ; | |
10881 | PyObject * obj1 = 0 ; | |
10882 | PyObject * obj2 = 0 ; | |
10883 | char * kwnames[] = { | |
10884 | (char *) "self",(char *) "range",(char *) "style", NULL | |
10885 | }; | |
10886 | ||
10887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10889 | if (!SWIG_IsOK(res1)) { | |
10890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10891 | } | |
10892 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10893 | { | |
10894 | arg2 = &temp2; | |
10895 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
10896 | } | |
10897 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
10898 | if (!SWIG_IsOK(res3)) { | |
10899 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
10900 | } | |
10901 | if (!argp3) { | |
10902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
10903 | } | |
10904 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
10905 | { | |
10906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10907 | result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | { | |
10912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10913 | } | |
10914 | return resultobj; | |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
10920 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10921 | PyObject *resultobj = 0; | |
10922 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10923 | wxRichTextRange *arg2 = 0 ; | |
10924 | wxRichTextAttr *arg3 = 0 ; | |
10925 | bool result; | |
10926 | void *argp1 = 0 ; | |
10927 | int res1 = 0 ; | |
10928 | wxRichTextRange temp2 ; | |
10929 | void *argp3 = 0 ; | |
10930 | int res3 = 0 ; | |
10931 | PyObject * obj0 = 0 ; | |
10932 | PyObject * obj1 = 0 ; | |
10933 | PyObject * obj2 = 0 ; | |
10934 | char * kwnames[] = { | |
10935 | (char *) "self",(char *) "range",(char *) "style", NULL | |
10936 | }; | |
10937 | ||
10938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10940 | if (!SWIG_IsOK(res1)) { | |
10941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10942 | } | |
10943 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10944 | { | |
10945 | arg2 = &temp2; | |
10946 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
10947 | } | |
10948 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
10949 | if (!SWIG_IsOK(res3)) { | |
10950 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
10951 | } | |
10952 | if (!argp3) { | |
10953 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
10954 | } | |
10955 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
10956 | { | |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
10959 | wxPyEndAllowThreads(__tstate); | |
10960 | if (PyErr_Occurred()) SWIG_fail; | |
10961 | } | |
10962 | { | |
10963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10964 | } | |
10965 | return resultobj; | |
10966 | fail: | |
10967 | return NULL; | |
10968 | } | |
10969 | ||
10970 | ||
10971 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10972 | PyObject *resultobj = 0; | |
10973 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10974 | bool result; | |
10975 | void *argp1 = 0 ; | |
10976 | int res1 = 0 ; | |
10977 | PyObject *swig_obj[1] ; | |
10978 | ||
10979 | if (!args) SWIG_fail; | |
10980 | swig_obj[0] = args; | |
10981 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10982 | if (!SWIG_IsOK(res1)) { | |
10983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10984 | } | |
10985 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10986 | { | |
10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10988 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionBold(); | |
10989 | wxPyEndAllowThreads(__tstate); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | { | |
10993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10994 | } | |
10995 | return resultobj; | |
10996 | fail: | |
10997 | return NULL; | |
10998 | } | |
10999 | ||
11000 | ||
11001 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11002 | PyObject *resultobj = 0; | |
11003 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11004 | bool result; | |
11005 | void *argp1 = 0 ; | |
11006 | int res1 = 0 ; | |
11007 | PyObject *swig_obj[1] ; | |
11008 | ||
11009 | if (!args) SWIG_fail; | |
11010 | swig_obj[0] = args; | |
11011 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11012 | if (!SWIG_IsOK(res1)) { | |
11013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11014 | } | |
11015 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11016 | { | |
11017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11018 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionItalics(); | |
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
11022 | { | |
11023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11024 | } | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11032 | PyObject *resultobj = 0; | |
11033 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11034 | bool result; | |
11035 | void *argp1 = 0 ; | |
11036 | int res1 = 0 ; | |
11037 | PyObject *swig_obj[1] ; | |
11038 | ||
11039 | if (!args) SWIG_fail; | |
11040 | swig_obj[0] = args; | |
11041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11042 | if (!SWIG_IsOK(res1)) { | |
11043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11044 | } | |
11045 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11046 | { | |
11047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11048 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionUnderlined(); | |
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | { | |
11053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11054 | } | |
11055 | return resultobj; | |
11056 | fail: | |
11057 | return NULL; | |
11058 | } | |
11059 | ||
11060 | ||
11061 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11062 | PyObject *resultobj = 0; | |
11063 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11064 | wxTextAttrAlignment arg2 ; | |
11065 | bool result; | |
11066 | void *argp1 = 0 ; | |
11067 | int res1 = 0 ; | |
11068 | int val2 ; | |
11069 | int ecode2 = 0 ; | |
11070 | PyObject * obj0 = 0 ; | |
11071 | PyObject * obj1 = 0 ; | |
11072 | char * kwnames[] = { | |
11073 | (char *) "self",(char *) "alignment", NULL | |
11074 | }; | |
11075 | ||
11076 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail; | |
11077 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11078 | if (!SWIG_IsOK(res1)) { | |
11079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11080 | } | |
11081 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11082 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11083 | if (!SWIG_IsOK(ecode2)) { | |
11084 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11085 | } | |
11086 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11087 | { | |
11088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11089 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionAligned(arg2); | |
11090 | wxPyEndAllowThreads(__tstate); | |
11091 | if (PyErr_Occurred()) SWIG_fail; | |
11092 | } | |
11093 | { | |
11094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11095 | } | |
11096 | return resultobj; | |
11097 | fail: | |
11098 | return NULL; | |
11099 | } | |
11100 | ||
11101 | ||
11102 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11103 | PyObject *resultobj = 0; | |
11104 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11105 | bool result; | |
11106 | void *argp1 = 0 ; | |
11107 | int res1 = 0 ; | |
11108 | PyObject *swig_obj[1] ; | |
11109 | ||
11110 | if (!args) SWIG_fail; | |
11111 | swig_obj[0] = args; | |
11112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11113 | if (!SWIG_IsOK(res1)) { | |
11114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11115 | } | |
11116 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11117 | { | |
11118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11119 | result = (bool)(arg1)->ApplyBoldToSelection(); | |
11120 | wxPyEndAllowThreads(__tstate); | |
11121 | if (PyErr_Occurred()) SWIG_fail; | |
11122 | } | |
11123 | { | |
11124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11125 | } | |
11126 | return resultobj; | |
11127 | fail: | |
11128 | return NULL; | |
11129 | } | |
11130 | ||
11131 | ||
11132 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11133 | PyObject *resultobj = 0; | |
11134 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11135 | bool result; | |
11136 | void *argp1 = 0 ; | |
11137 | int res1 = 0 ; | |
11138 | PyObject *swig_obj[1] ; | |
11139 | ||
11140 | if (!args) SWIG_fail; | |
11141 | swig_obj[0] = args; | |
11142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11143 | if (!SWIG_IsOK(res1)) { | |
11144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11145 | } | |
11146 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11147 | { | |
11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11149 | result = (bool)(arg1)->ApplyItalicToSelection(); | |
11150 | wxPyEndAllowThreads(__tstate); | |
11151 | if (PyErr_Occurred()) SWIG_fail; | |
11152 | } | |
11153 | { | |
11154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11155 | } | |
11156 | return resultobj; | |
11157 | fail: | |
11158 | return NULL; | |
11159 | } | |
11160 | ||
11161 | ||
11162 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11163 | PyObject *resultobj = 0; | |
11164 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11165 | bool result; | |
11166 | void *argp1 = 0 ; | |
11167 | int res1 = 0 ; | |
11168 | PyObject *swig_obj[1] ; | |
11169 | ||
11170 | if (!args) SWIG_fail; | |
11171 | swig_obj[0] = args; | |
11172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11173 | if (!SWIG_IsOK(res1)) { | |
11174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11175 | } | |
11176 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11177 | { | |
11178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11179 | result = (bool)(arg1)->ApplyUnderlineToSelection(); | |
11180 | wxPyEndAllowThreads(__tstate); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | { | |
11184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11185 | } | |
11186 | return resultobj; | |
11187 | fail: | |
11188 | return NULL; | |
11189 | } | |
11190 | ||
11191 | ||
11192 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11193 | PyObject *resultobj = 0; | |
11194 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11195 | wxTextAttrAlignment arg2 ; | |
11196 | bool result; | |
11197 | void *argp1 = 0 ; | |
11198 | int res1 = 0 ; | |
11199 | int val2 ; | |
11200 | int ecode2 = 0 ; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | PyObject * obj1 = 0 ; | |
11203 | char * kwnames[] = { | |
11204 | (char *) "self",(char *) "alignment", NULL | |
11205 | }; | |
11206 | ||
11207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
11208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11209 | if (!SWIG_IsOK(res1)) { | |
11210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11211 | } | |
11212 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11213 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11214 | if (!SWIG_IsOK(ecode2)) { | |
11215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11216 | } | |
11217 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11218 | { | |
11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11220 | result = (bool)(arg1)->ApplyAlignmentToSelection(arg2); | |
11221 | wxPyEndAllowThreads(__tstate); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | { | |
11225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11226 | } | |
11227 | return resultobj; | |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj = 0; | |
11235 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11236 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ; | |
11237 | void *argp1 = 0 ; | |
11238 | int res1 = 0 ; | |
11239 | void *argp2 = 0 ; | |
11240 | int res2 = 0 ; | |
11241 | PyObject * obj0 = 0 ; | |
11242 | PyObject * obj1 = 0 ; | |
11243 | char * kwnames[] = { | |
11244 | (char *) "self",(char *) "styleSheet", NULL | |
11245 | }; | |
11246 | ||
11247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11249 | if (!SWIG_IsOK(res1)) { | |
11250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11251 | } | |
11252 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11253 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11254 | if (!SWIG_IsOK(res2)) { | |
11255 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11256 | } | |
11257 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | (arg1)->SetStyleSheet(arg2); | |
11261 | wxPyEndAllowThreads(__tstate); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | } | |
11264 | resultobj = SWIG_Py_Void(); | |
11265 | return resultobj; | |
11266 | fail: | |
11267 | return NULL; | |
11268 | } | |
11269 | ||
11270 | ||
11271 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11272 | PyObject *resultobj = 0; | |
11273 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11274 | wxRichTextStyleSheet *result = 0 ; | |
11275 | void *argp1 = 0 ; | |
11276 | int res1 = 0 ; | |
11277 | PyObject *swig_obj[1] ; | |
11278 | ||
11279 | if (!args) SWIG_fail; | |
11280 | swig_obj[0] = args; | |
11281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11282 | if (!SWIG_IsOK(res1)) { | |
11283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11284 | } | |
11285 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11286 | { | |
11287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11288 | result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet(); | |
11289 | wxPyEndAllowThreads(__tstate); | |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | } | |
11292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11293 | return resultobj; | |
11294 | fail: | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
11299 | SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11300 | PyObject *obj; | |
11301 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11302 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj)); | |
11303 | return SWIG_Py_Void(); | |
11304 | } | |
11305 | ||
11306 | SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11307 | return SWIG_Python_InitShadowInstance(args); | |
11308 | } | |
11309 | ||
11310 | SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11311 | PyObject *resultobj = 0; | |
11312 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11313 | int arg2 = (int) 0 ; | |
11314 | wxRichTextEvent *result = 0 ; | |
11315 | int val1 ; | |
11316 | int ecode1 = 0 ; | |
11317 | int val2 ; | |
11318 | int ecode2 = 0 ; | |
11319 | PyObject * obj0 = 0 ; | |
11320 | PyObject * obj1 = 0 ; | |
11321 | char * kwnames[] = { | |
11322 | (char *) "commandType",(char *) "winid", NULL | |
11323 | }; | |
11324 | ||
11325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11326 | if (obj0) { | |
11327 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11328 | if (!SWIG_IsOK(ecode1)) { | |
11329 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
11330 | } | |
11331 | arg1 = static_cast< wxEventType >(val1); | |
11332 | } | |
11333 | if (obj1) { | |
11334 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11335 | if (!SWIG_IsOK(ecode2)) { | |
11336 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'"); | |
11337 | } | |
11338 | arg2 = static_cast< int >(val2); | |
11339 | } | |
11340 | { | |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2); | |
11343 | wxPyEndAllowThreads(__tstate); | |
11344 | if (PyErr_Occurred()) SWIG_fail; | |
11345 | } | |
11346 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 ); | |
11347 | return resultobj; | |
11348 | fail: | |
11349 | return NULL; | |
11350 | } | |
11351 | ||
11352 | ||
11353 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11354 | PyObject *resultobj = 0; | |
11355 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11356 | int result; | |
11357 | void *argp1 = 0 ; | |
11358 | int res1 = 0 ; | |
11359 | PyObject *swig_obj[1] ; | |
11360 | ||
11361 | if (!args) SWIG_fail; | |
11362 | swig_obj[0] = args; | |
11363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11364 | if (!SWIG_IsOK(res1)) { | |
11365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11366 | } | |
11367 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11368 | { | |
11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11370 | result = (int)((wxRichTextEvent const *)arg1)->GetIndex(); | |
11371 | wxPyEndAllowThreads(__tstate); | |
11372 | if (PyErr_Occurred()) SWIG_fail; | |
11373 | } | |
11374 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11375 | return resultobj; | |
11376 | fail: | |
11377 | return NULL; | |
11378 | } | |
11379 | ||
11380 | ||
11381 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11382 | PyObject *resultobj = 0; | |
11383 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11384 | int arg2 ; | |
11385 | void *argp1 = 0 ; | |
11386 | int res1 = 0 ; | |
11387 | int val2 ; | |
11388 | int ecode2 = 0 ; | |
11389 | PyObject * obj0 = 0 ; | |
11390 | PyObject * obj1 = 0 ; | |
11391 | char * kwnames[] = { | |
11392 | (char *) "self",(char *) "n", NULL | |
11393 | }; | |
11394 | ||
11395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
11396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11397 | if (!SWIG_IsOK(res1)) { | |
11398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
11399 | } | |
11400 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11401 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11402 | if (!SWIG_IsOK(ecode2)) { | |
11403 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
11404 | } | |
11405 | arg2 = static_cast< int >(val2); | |
11406 | { | |
11407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11408 | (arg1)->SetIndex(arg2); | |
11409 | wxPyEndAllowThreads(__tstate); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | } | |
11412 | resultobj = SWIG_Py_Void(); | |
11413 | return resultobj; | |
11414 | fail: | |
11415 | return NULL; | |
11416 | } | |
11417 | ||
11418 | ||
11419 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11420 | PyObject *resultobj = 0; | |
11421 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11422 | int result; | |
11423 | void *argp1 = 0 ; | |
11424 | int res1 = 0 ; | |
11425 | PyObject *swig_obj[1] ; | |
11426 | ||
11427 | if (!args) SWIG_fail; | |
11428 | swig_obj[0] = args; | |
11429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11430 | if (!SWIG_IsOK(res1)) { | |
11431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11432 | } | |
11433 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11434 | { | |
11435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11436 | result = (int)((wxRichTextEvent const *)arg1)->GetFlags(); | |
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
11440 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11441 | return resultobj; | |
11442 | fail: | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
11447 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11448 | PyObject *resultobj = 0; | |
11449 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11450 | int arg2 ; | |
11451 | void *argp1 = 0 ; | |
11452 | int res1 = 0 ; | |
11453 | int val2 ; | |
11454 | int ecode2 = 0 ; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | PyObject * obj1 = 0 ; | |
11457 | char * kwnames[] = { | |
11458 | (char *) "self",(char *) "flags", NULL | |
11459 | }; | |
11460 | ||
11461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
11462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11463 | if (!SWIG_IsOK(res1)) { | |
11464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
11465 | } | |
11466 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11467 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11468 | if (!SWIG_IsOK(ecode2)) { | |
11469 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
11470 | } | |
11471 | arg2 = static_cast< int >(val2); | |
11472 | { | |
11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11474 | (arg1)->SetFlags(arg2); | |
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
11478 | resultobj = SWIG_Py_Void(); | |
11479 | return resultobj; | |
11480 | fail: | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
11485 | SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11486 | PyObject *obj; | |
11487 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11488 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj)); | |
11489 | return SWIG_Py_Void(); | |
11490 | } | |
11491 | ||
11492 | SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11493 | return SWIG_Python_InitShadowInstance(args); | |
11494 | } | |
11495 | ||
11496 | static PyMethodDef SwigMethods[] = { | |
11497 | { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11498 | { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL}, | |
11499 | { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11500 | { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11501 | { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11502 | { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11503 | { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11504 | { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL}, | |
11505 | { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11506 | { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL}, | |
11507 | { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11508 | { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11509 | { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11510 | { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11511 | { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL}, | |
11512 | { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL}, | |
11513 | { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL}, | |
11514 | { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL}, | |
11515 | { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL}, | |
11516 | { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11517 | { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL}, | |
11518 | { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL}, | |
11519 | { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11520 | { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11521 | { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11522 | { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11523 | { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11524 | { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11525 | { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11526 | { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11527 | { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11528 | { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11529 | { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11530 | { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11531 | { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11532 | { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11533 | { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11534 | { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11535 | { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11536 | { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11537 | { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11538 | { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11539 | { (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11540 | { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL}, | |
11541 | { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL}, | |
11542 | { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL}, | |
11543 | { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL}, | |
11544 | { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL}, | |
11545 | { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL}, | |
11546 | { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL}, | |
11547 | { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL}, | |
11548 | { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL}, | |
11549 | { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL}, | |
11550 | { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL}, | |
11551 | { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL}, | |
11552 | { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL}, | |
11553 | { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL}, | |
11554 | { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL}, | |
11555 | { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL}, | |
11556 | { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL}, | |
11557 | { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL}, | |
11558 | { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL}, | |
11559 | { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL}, | |
11560 | { (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL}, | |
11561 | { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL}, | |
11562 | { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL}, | |
11563 | { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL}, | |
11564 | { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL}, | |
11565 | { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL}, | |
11566 | { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL}, | |
11567 | { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL}, | |
11568 | { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL}, | |
11569 | { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL}, | |
11570 | { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL}, | |
11571 | { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL}, | |
11572 | { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL}, | |
11573 | { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL}, | |
11574 | { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL}, | |
11575 | { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL}, | |
11576 | { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL}, | |
11577 | { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL}, | |
11578 | { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL}, | |
11579 | { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL}, | |
11580 | { (char *)"RichTextAttr_HasBulletSymbol", (PyCFunction)_wrap_RichTextAttr_HasBulletSymbol, METH_O, NULL}, | |
11581 | { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11582 | { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL}, | |
11583 | { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL}, | |
11584 | { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL}, | |
11585 | { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL}, | |
11586 | { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL}, | |
11587 | { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11588 | { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL}, | |
11589 | { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11590 | { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL}, | |
11591 | { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11592 | { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11593 | { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11594 | { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11595 | { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL}, | |
11596 | { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL}, | |
11597 | { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL}, | |
11598 | { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL}, | |
11599 | { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL}, | |
11600 | { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL}, | |
11601 | { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL}, | |
11602 | { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL}, | |
11603 | { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11604 | { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11605 | { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL}, | |
11606 | { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL}, | |
11607 | { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11608 | { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11609 | { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11610 | { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11611 | { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL}, | |
11612 | { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL}, | |
11613 | { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11614 | { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11615 | { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11616 | { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11617 | { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11618 | { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11619 | { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL}, | |
11620 | { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11621 | { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11622 | { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11623 | { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11624 | { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11625 | { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL}, | |
11626 | { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL}, | |
11627 | { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL}, | |
11628 | { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL}, | |
11629 | { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL}, | |
11630 | { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL}, | |
11631 | { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL}, | |
11632 | { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL}, | |
11633 | { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL}, | |
11634 | { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL}, | |
11635 | { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL}, | |
11636 | { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL}, | |
11637 | { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11638 | { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
11639 | { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL}, | |
11640 | { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL}, | |
11641 | { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11642 | { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL}, | |
11643 | { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11644 | { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL}, | |
11645 | { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11646 | { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11647 | { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11648 | { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11649 | { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL}, | |
11650 | { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11651 | { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL}, | |
11652 | { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL}, | |
11653 | { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL}, | |
11654 | { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL}, | |
11655 | { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL}, | |
11656 | { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL}, | |
11657 | { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL}, | |
11658 | { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL}, | |
11659 | { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11660 | { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL}, | |
11661 | { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11662 | { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL}, | |
11663 | { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11664 | { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL}, | |
11665 | { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11666 | { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL}, | |
11667 | { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11668 | { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL}, | |
11669 | { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11670 | { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL}, | |
11671 | { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11672 | { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL}, | |
11673 | { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11674 | { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL}, | |
11675 | { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11676 | { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL}, | |
11677 | { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11678 | { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL}, | |
11679 | { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11680 | { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL}, | |
11681 | { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11682 | { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL}, | |
11683 | { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL}, | |
11684 | { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL}, | |
11685 | { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL}, | |
11686 | { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11687 | { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11688 | { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11689 | { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11690 | { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11691 | { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11692 | { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11693 | { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11694 | { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11695 | { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11696 | { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11697 | { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11698 | { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11699 | { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11700 | { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11701 | { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11702 | { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11703 | { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11704 | { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11705 | { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL}, | |
11706 | { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11707 | { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL}, | |
11708 | { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL}, | |
11709 | { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL}, | |
11710 | { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL}, | |
11711 | { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL}, | |
11712 | { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11713 | { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11714 | { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL}, | |
11715 | { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL}, | |
11716 | { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL}, | |
11717 | { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11718 | { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL}, | |
11719 | { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL}, | |
11720 | { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL}, | |
11721 | { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11722 | { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11723 | { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL}, | |
11724 | { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL}, | |
11725 | { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL}, | |
11726 | { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11727 | { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL}, | |
11728 | { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11729 | { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL}, | |
11730 | { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11731 | { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL}, | |
11732 | { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL}, | |
11733 | { NULL, NULL, 0, NULL } | |
11734 | }; | |
11735 | ||
11736 | ||
11737 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
11738 | ||
11739 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
11740 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
11741 | } | |
11742 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
11743 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
11744 | } | |
11745 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
11746 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
11747 | } | |
11748 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
11749 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
11750 | } | |
11751 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
11752 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
11753 | } | |
11754 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
11755 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
11756 | } | |
11757 | static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) { | |
11758 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
11759 | } | |
11760 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
11761 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
11762 | } | |
11763 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
11764 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
11765 | } | |
11766 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
11767 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
11768 | } | |
11769 | static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) { | |
11770 | return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
11771 | } | |
11772 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
11773 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
11774 | } | |
11775 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
11776 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
11777 | } | |
11778 | static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) { | |
11779 | return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
11780 | } | |
11781 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
11782 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
11783 | } | |
11784 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
11785 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
11786 | } | |
11787 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
11788 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
11789 | } | |
11790 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
11791 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
11792 | } | |
11793 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
11794 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
11795 | } | |
11796 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
11797 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
11798 | } | |
11799 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
11800 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
11801 | } | |
11802 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
11803 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
11804 | } | |
11805 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { | |
11806 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
11807 | } | |
11808 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
11809 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
11810 | } | |
11811 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
11812 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
11813 | } | |
11814 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
11815 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
11816 | } | |
11817 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
11818 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
11819 | } | |
11820 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
11821 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
11822 | } | |
11823 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
11824 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
11825 | } | |
11826 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
11827 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
11828 | } | |
11829 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
11830 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
11831 | } | |
11832 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
11833 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
11834 | } | |
11835 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
11836 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
11837 | } | |
11838 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
11839 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
11840 | } | |
11841 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
11842 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
11843 | } | |
11844 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
11845 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
11846 | } | |
11847 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
11848 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
11849 | } | |
11850 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
11851 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
11852 | } | |
11853 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
11854 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
11855 | } | |
11856 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
11857 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
11858 | } | |
11859 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
11860 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
11861 | } | |
11862 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
11863 | return (void *)((wxWindow *) ((wxControl *) x)); | |
11864 | } | |
11865 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
11866 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
11867 | } | |
11868 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
11869 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
11870 | } | |
11871 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
11872 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
11873 | } | |
11874 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
11875 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
11876 | } | |
11877 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
11878 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
11879 | } | |
11880 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
11881 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
11882 | } | |
11883 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
11884 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
11885 | } | |
11886 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
11887 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
11888 | } | |
11889 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
11890 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
11891 | } | |
11892 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
11893 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
11894 | } | |
11895 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
11896 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
11897 | } | |
11898 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
11899 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
11900 | } | |
11901 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
11902 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
11903 | } | |
11904 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
11905 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
11906 | } | |
11907 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
11908 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
11909 | } | |
11910 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
11911 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
11912 | } | |
11913 | static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) { | |
11914 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
11915 | } | |
11916 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
11917 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
11918 | } | |
11919 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
11920 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
11921 | } | |
11922 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
11923 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
11924 | } | |
11925 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
11926 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
11927 | } | |
11928 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
11929 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
11930 | } | |
11931 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
11932 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
11933 | } | |
11934 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
11935 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
11936 | } | |
11937 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
11938 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
11939 | } | |
11940 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
11941 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
11942 | } | |
11943 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
11944 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
11945 | } | |
11946 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
11947 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
11948 | } | |
11949 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
11950 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
11951 | } | |
11952 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
11953 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
11954 | } | |
11955 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
11956 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
11957 | } | |
11958 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
11959 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
11960 | } | |
11961 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
11962 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
11963 | } | |
11964 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
11965 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
11966 | } | |
11967 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
11968 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
11969 | } | |
11970 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
11971 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
11972 | } | |
11973 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
11974 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
11975 | } | |
11976 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
11977 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
11978 | } | |
11979 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
11980 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
11981 | } | |
11982 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { | |
11983 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
11984 | } | |
11985 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
11986 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
11987 | } | |
11988 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
11989 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
11990 | } | |
11991 | static void *_p_wxRichTextEventTo_p_wxEvent(void *x) { | |
11992 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
11993 | } | |
11994 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
11995 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
11996 | } | |
11997 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
11998 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
11999 | } | |
12000 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
12001 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
12002 | } | |
12003 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
12004 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
12005 | } | |
12006 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
12007 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
12008 | } | |
12009 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
12010 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
12011 | } | |
12012 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
12013 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
12014 | } | |
12015 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
12016 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
12017 | } | |
12018 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
12019 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
12020 | } | |
12021 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
12022 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
12023 | } | |
12024 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
12025 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
12026 | } | |
12027 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
12028 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
12029 | } | |
12030 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
12031 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
12032 | } | |
12033 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
12034 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12035 | } | |
12036 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
12037 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
12038 | } | |
12039 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
12040 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
12041 | } | |
12042 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
12043 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
12044 | } | |
12045 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
12046 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
12047 | } | |
92515dfc RD |
12048 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
12049 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
06810ecf | 12050 | } |
92515dfc RD |
12051 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { |
12052 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
06810ecf RD |
12053 | } |
12054 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
12055 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12056 | } | |
92515dfc RD |
12057 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { |
12058 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
06810ecf | 12059 | } |
92515dfc RD |
12060 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
12061 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
06810ecf | 12062 | } |
92515dfc RD |
12063 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
12064 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
06810ecf | 12065 | } |
92515dfc RD |
12066 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
12067 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
06810ecf | 12068 | } |
92515dfc RD |
12069 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
12070 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
06810ecf | 12071 | } |
92515dfc RD |
12072 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
12073 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
06810ecf | 12074 | } |
92515dfc RD |
12075 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
12076 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
06810ecf | 12077 | } |
92515dfc RD |
12078 | static void *_p_wxSizerTo_p_wxObject(void *x) { |
12079 | return (void *)((wxObject *) ((wxSizer *) x)); | |
06810ecf | 12080 | } |
92515dfc RD |
12081 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
12082 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
06810ecf | 12083 | } |
92515dfc RD |
12084 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
12085 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
06810ecf | 12086 | } |
92515dfc RD |
12087 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { |
12088 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
06810ecf | 12089 | } |
92515dfc RD |
12090 | static void *_p_wxEventTo_p_wxObject(void *x) { |
12091 | return (void *)((wxObject *) ((wxEvent *) x)); | |
06810ecf | 12092 | } |
92515dfc RD |
12093 | static void *_p_wxFontDataTo_p_wxObject(void *x) { |
12094 | return (void *)((wxObject *) ((wxFontData *) x)); | |
06810ecf | 12095 | } |
92515dfc RD |
12096 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { |
12097 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
06810ecf | 12098 | } |
92515dfc RD |
12099 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
12100 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
06810ecf | 12101 | } |
92515dfc RD |
12102 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
12103 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
06810ecf | 12104 | } |
92515dfc RD |
12105 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
12106 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
06810ecf | 12107 | } |
92515dfc RD |
12108 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { |
12109 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
06810ecf | 12110 | } |
92515dfc RD |
12111 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
12112 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
06810ecf | 12113 | } |
92515dfc RD |
12114 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { |
12115 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
06810ecf | 12116 | } |
92515dfc RD |
12117 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
12118 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
06810ecf | 12119 | } |
92515dfc RD |
12120 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
12121 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
06810ecf | 12122 | } |
92515dfc RD |
12123 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
12124 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
06810ecf | 12125 | } |
92515dfc RD |
12126 | static void *_p_wxRichTextEventTo_p_wxObject(void *x) { |
12127 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
06810ecf | 12128 | } |
92515dfc RD |
12129 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
12130 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
06810ecf | 12131 | } |
92515dfc RD |
12132 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
12133 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
06810ecf | 12134 | } |
92515dfc RD |
12135 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
12136 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
06810ecf | 12137 | } |
92515dfc RD |
12138 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { |
12139 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
06810ecf | 12140 | } |
92515dfc RD |
12141 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { |
12142 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
06810ecf RD |
12143 | } |
12144 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
12145 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
12146 | } | |
92515dfc RD |
12147 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
12148 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
06810ecf | 12149 | } |
92515dfc RD |
12150 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { |
12151 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
06810ecf | 12152 | } |
92515dfc RD |
12153 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
12154 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
06810ecf | 12155 | } |
92515dfc RD |
12156 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { |
12157 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
06810ecf | 12158 | } |
92515dfc RD |
12159 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
12160 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
06810ecf RD |
12161 | } |
12162 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
12163 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12164 | } | |
92515dfc RD |
12165 | static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) { |
12166 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
06810ecf | 12167 | } |
92515dfc RD |
12168 | static void *_p_wxColourDataTo_p_wxObject(void *x) { |
12169 | return (void *)((wxObject *) ((wxColourData *) x)); | |
06810ecf | 12170 | } |
92515dfc RD |
12171 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
12172 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
06810ecf | 12173 | } |
92515dfc RD |
12174 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
12175 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
06810ecf | 12176 | } |
92515dfc RD |
12177 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { |
12178 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
06810ecf RD |
12179 | } |
12180 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
12181 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12182 | } | |
92515dfc RD |
12183 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { |
12184 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
06810ecf | 12185 | } |
92515dfc RD |
12186 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { |
12187 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
06810ecf | 12188 | } |
92515dfc RD |
12189 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { |
12190 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
06810ecf | 12191 | } |
92515dfc RD |
12192 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { |
12193 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
06810ecf | 12194 | } |
92515dfc RD |
12195 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
12196 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
06810ecf | 12197 | } |
92515dfc RD |
12198 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
12199 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
06810ecf | 12200 | } |
92515dfc RD |
12201 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { |
12202 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
06810ecf | 12203 | } |
92515dfc RD |
12204 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { |
12205 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
06810ecf | 12206 | } |
92515dfc RD |
12207 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
12208 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
06810ecf | 12209 | } |
92515dfc RD |
12210 | static void *_p_wxPrinterTo_p_wxObject(void *x) { |
12211 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
06810ecf | 12212 | } |
92515dfc RD |
12213 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
12214 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
06810ecf | 12215 | } |
92515dfc RD |
12216 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
12217 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
06810ecf | 12218 | } |
92515dfc RD |
12219 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
12220 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
06810ecf | 12221 | } |
92515dfc RD |
12222 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
12223 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
06810ecf | 12224 | } |
92515dfc RD |
12225 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { |
12226 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
06810ecf | 12227 | } |
92515dfc RD |
12228 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { |
12229 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
06810ecf | 12230 | } |
92515dfc RD |
12231 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
12232 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
06810ecf | 12233 | } |
92515dfc RD |
12234 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
12235 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
06810ecf | 12236 | } |
92515dfc RD |
12237 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
12238 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
06810ecf | 12239 | } |
92515dfc RD |
12240 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
12241 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
06810ecf | 12242 | } |
92515dfc RD |
12243 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
12244 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
06810ecf | 12245 | } |
92515dfc RD |
12246 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
12247 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
06810ecf | 12248 | } |
92515dfc RD |
12249 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
12250 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
06810ecf | 12251 | } |
92515dfc RD |
12252 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
12253 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
06810ecf | 12254 | } |
92515dfc RD |
12255 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
12256 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
06810ecf | 12257 | } |
92515dfc RD |
12258 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { |
12259 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
06810ecf | 12260 | } |
92515dfc RD |
12261 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
12262 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
06810ecf | 12263 | } |
92515dfc RD |
12264 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
12265 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
06810ecf | 12266 | } |
92515dfc RD |
12267 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
12268 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
06810ecf | 12269 | } |
92515dfc RD |
12270 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
12271 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
06810ecf | 12272 | } |
92515dfc RD |
12273 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
12274 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
06810ecf RD |
12275 | } |
12276 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
12277 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
12278 | } | |
92515dfc RD |
12279 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
12280 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
06810ecf | 12281 | } |
92515dfc RD |
12282 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
12283 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
06810ecf | 12284 | } |
92515dfc RD |
12285 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
12286 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
06810ecf | 12287 | } |
92515dfc RD |
12288 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { |
12289 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
06810ecf | 12290 | } |
92515dfc RD |
12291 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { |
12292 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
06810ecf | 12293 | } |
92515dfc RD |
12294 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
12295 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
06810ecf | 12296 | } |
92515dfc RD |
12297 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
12298 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
06810ecf | 12299 | } |
92515dfc RD |
12300 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { |
12301 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
06810ecf | 12302 | } |
92515dfc RD |
12303 | static void *_p_wxImageTo_p_wxObject(void *x) { |
12304 | return (void *)((wxObject *) ((wxImage *) x)); | |
06810ecf | 12305 | } |
92515dfc RD |
12306 | static void *_p_wxFrameTo_p_wxObject(void *x) { |
12307 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
06810ecf | 12308 | } |
92515dfc RD |
12309 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { |
12310 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
06810ecf | 12311 | } |
92515dfc RD |
12312 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
12313 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
06810ecf | 12314 | } |
92515dfc RD |
12315 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { |
12316 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
06810ecf | 12317 | } |
92515dfc RD |
12318 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { |
12319 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
06810ecf | 12320 | } |
92515dfc RD |
12321 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { |
12322 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
06810ecf | 12323 | } |
92515dfc RD |
12324 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
12325 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
06810ecf | 12326 | } |
92515dfc RD |
12327 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
12328 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
06810ecf | 12329 | } |
92515dfc RD |
12330 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
12331 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
06810ecf | 12332 | } |
92515dfc RD |
12333 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
12334 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
06810ecf | 12335 | } |
92515dfc RD |
12336 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
12337 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
06810ecf | 12338 | } |
92515dfc RD |
12339 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
12340 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
12341 | } | |
12342 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
12343 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
06810ecf RD |
12344 | } |
12345 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
12346 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
12347 | } | |
92515dfc RD |
12348 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { |
12349 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
06810ecf | 12350 | } |
92515dfc RD |
12351 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { |
12352 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
06810ecf | 12353 | } |
92515dfc RD |
12354 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { |
12355 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
06810ecf | 12356 | } |
92515dfc RD |
12357 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { |
12358 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
06810ecf | 12359 | } |
92515dfc RD |
12360 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { |
12361 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
06810ecf | 12362 | } |
92515dfc RD |
12363 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { |
12364 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
06810ecf | 12365 | } |
92515dfc RD |
12366 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { |
12367 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
06810ecf | 12368 | } |
92515dfc RD |
12369 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { |
12370 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
06810ecf | 12371 | } |
92515dfc RD |
12372 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { |
12373 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
06810ecf | 12374 | } |
92515dfc RD |
12375 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
12376 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
06810ecf | 12377 | } |
92515dfc RD |
12378 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
12379 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
06810ecf | 12380 | } |
92515dfc RD |
12381 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { |
12382 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
06810ecf | 12383 | } |
92515dfc RD |
12384 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { |
12385 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
06810ecf | 12386 | } |
92515dfc RD |
12387 | static void *_p_wxPanelTo_p_wxObject(void *x) { |
12388 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
06810ecf | 12389 | } |
92515dfc RD |
12390 | static void *_p_wxDialogTo_p_wxObject(void *x) { |
12391 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
06810ecf | 12392 | } |
92515dfc RD |
12393 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { |
12394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
06810ecf | 12395 | } |
92515dfc RD |
12396 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { |
12397 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
06810ecf | 12398 | } |
92515dfc RD |
12399 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { |
12400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
06810ecf | 12401 | } |
92515dfc RD |
12402 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { |
12403 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); | |
06810ecf | 12404 | } |
92515dfc RD |
12405 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { |
12406 | return (void *)((wxObject *) ((wxPrintDialog *) x)); | |
06810ecf | 12407 | } |
92515dfc RD |
12408 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
12409 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
06810ecf | 12410 | } |
92515dfc RD |
12411 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
12412 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
06810ecf | 12413 | } |
92515dfc RD |
12414 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
12415 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
06810ecf | 12416 | } |
92515dfc RD |
12417 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
12418 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
06810ecf | 12419 | } |
92515dfc RD |
12420 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
12421 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
06810ecf | 12422 | } |
92515dfc RD |
12423 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
12424 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
06810ecf | 12425 | } |
92515dfc RD |
12426 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
12427 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
06810ecf | 12428 | } |
92515dfc RD |
12429 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { |
12430 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
06810ecf RD |
12431 | } |
12432 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
12433 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
12434 | } | |
92515dfc RD |
12435 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { |
12436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
06810ecf | 12437 | } |
92515dfc RD |
12438 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { |
12439 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
06810ecf | 12440 | } |
92515dfc RD |
12441 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
12442 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
06810ecf RD |
12443 | } |
12444 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
12445 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
12446 | } | |
92515dfc RD |
12447 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
12448 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
06810ecf | 12449 | } |
92515dfc RD |
12450 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
12451 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
06810ecf | 12452 | } |
92515dfc RD |
12453 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { |
12454 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
12455 | } | |
12456 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
12457 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
12458 | } | |
12459 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
12460 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
12461 | } | |
12462 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
12463 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
06810ecf RD |
12464 | } |
12465 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
12466 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12467 | } | |
12468 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
12469 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
12470 | } | |
12471 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
12472 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
12473 | } | |
12474 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
12475 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
12476 | } | |
12477 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
12478 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
12479 | } | |
12480 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
12481 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
12482 | } | |
12483 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
12484 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
12485 | } | |
12486 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { | |
12487 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
12488 | } | |
12489 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
12490 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
12491 | } | |
12492 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
12493 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
12494 | } | |
12495 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
12496 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
12497 | } | |
12498 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
12499 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
12500 | } | |
12501 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
12502 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
12503 | } | |
12504 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
12505 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
12506 | } | |
12507 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
12508 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
12509 | } | |
12510 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
12511 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
12512 | } | |
12513 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
12514 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
12515 | } | |
12516 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
12517 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12518 | } | |
12519 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
12520 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
12521 | } | |
12522 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
12523 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
12524 | } | |
12525 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
12526 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
12527 | } | |
12528 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
12529 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
12530 | } | |
12531 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
12532 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
12533 | } | |
12534 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
12535 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
12536 | } | |
12537 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
12538 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
12539 | } | |
12540 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
12541 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
12542 | } | |
12543 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
12544 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
12545 | } | |
12546 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
12547 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
12548 | } | |
12549 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
12550 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
12551 | } | |
12552 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
12553 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12554 | } | |
12555 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
12556 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
12557 | } | |
12558 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
12559 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12560 | } | |
12561 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
12562 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
12563 | } | |
12564 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
12565 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12566 | } | |
12567 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
12568 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
12569 | } | |
12570 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
12571 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
12572 | } | |
12573 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
12574 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
12575 | } | |
12576 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
12577 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12578 | } | |
12579 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
12580 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12581 | } | |
12582 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
12583 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12584 | } | |
12585 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
12586 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
12587 | } | |
12588 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
12589 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12590 | } | |
12591 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { | |
12592 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
12593 | } | |
12594 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
12595 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
12596 | } | |
12597 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
12598 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
12599 | } | |
12600 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
12601 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
12602 | } | |
12603 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
12604 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
12605 | } | |
12606 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
12607 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
12608 | } | |
12609 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
12610 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
12611 | } | |
12612 | static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) { | |
12613 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12614 | } | |
12615 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
12616 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
12617 | } | |
12618 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
12619 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12620 | } | |
12621 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
12622 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12623 | } | |
12624 | static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) { | |
12625 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12626 | } | |
12627 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { | |
12628 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
12629 | } | |
12630 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
12631 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
12632 | } | |
12633 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
12634 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
12635 | } | |
12636 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
12637 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
12638 | } | |
12639 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
12640 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
12641 | } | |
12642 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
12643 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
12644 | } | |
12645 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
12646 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
12647 | } | |
12648 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
12649 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
12650 | } | |
12651 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
12652 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
12653 | } | |
12654 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
12655 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
12656 | } | |
12657 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
12658 | 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}; | |
12659 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
12660 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
12661 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
12662 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
12663 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
12664 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
12665 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
12666 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; | |
12667 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
12668 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
12669 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0}; | |
12670 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
12671 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0}; | |
12672 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
12673 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
12674 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
12675 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
12676 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
12677 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
12678 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
12679 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0}; | |
12680 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
12681 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
12682 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
12683 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
12684 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
12685 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
12686 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
12687 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
12688 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
12689 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
12690 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0}; | |
12691 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
12692 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
12693 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
12694 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
12695 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
12696 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
12697 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
12698 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
12699 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
12700 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
12701 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
12702 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
12703 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
12704 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
12705 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
12706 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0}; | |
12707 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
12708 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
12709 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
12710 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
12711 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0}; | |
12712 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
12713 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0}; | |
12714 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0}; | |
12715 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0}; | |
12716 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
12717 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
12718 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
12719 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0}; | |
12720 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0}; | |
12721 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0}; | |
12722 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0}; | |
12723 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0}; | |
12724 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0}; | |
12725 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0}; | |
12726 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0}; | |
12727 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0}; | |
12728 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0}; | |
12729 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0}; | |
12730 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0}; | |
12731 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0}; | |
12732 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0}; | |
12733 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0}; | |
12734 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0}; | |
12735 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0}; | |
12736 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0}; | |
12737 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0}; | |
12738 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0}; | |
12739 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0}; | |
12740 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0}; | |
12741 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
12742 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0}; | |
12743 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
12744 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
12745 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0}; | |
12746 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0}; | |
12747 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0}; | |
12748 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0}; | |
12749 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0}; | |
12750 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0}; | |
12751 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0}; | |
12752 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0}; | |
12753 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0}; | |
12754 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0}; | |
12755 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0}; | |
12756 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0}; | |
12757 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
12758 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0}; | |
12759 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
12760 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
12761 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
12762 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
06810ecf | 12763 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; |
92515dfc RD |
12764 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
12765 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
12766 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
06810ecf | 12767 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
12768 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; |
12769 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
06810ecf | 12770 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
12771 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0}; |
12772 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0}; | |
12773 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
12774 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
12775 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0}; | |
06810ecf | 12776 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; |
92515dfc RD |
12777 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0}; |
12778 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
12779 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0}; | |
12780 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0}; | |
12781 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
06810ecf RD |
12782 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; |
12783 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
12784 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
12785 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
12786 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
12787 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
12788 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
12789 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
92515dfc RD |
12790 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
12791 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
12792 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
12793 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
12794 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
12795 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
12796 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
12797 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0}; | |
12798 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0}; | |
12799 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0}; | |
12800 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0}; | |
12801 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0}; | |
12802 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
12803 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0}; | |
12804 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0}; | |
06810ecf RD |
12805 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; |
12806 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
12807 | static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0}; | |
12808 | static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0}; | |
12809 | static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0}; | |
12810 | static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0}; | |
12811 | static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0}; | |
12812 | static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0}; | |
12813 | static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0}; | |
12814 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
12815 | static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0}; | |
12816 | static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0}; | |
12817 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
12818 | ||
12819 | static swig_type_info *swig_type_initial[] = { | |
12820 | &_swigt__p_char, | |
12821 | &_swigt__p_form_ops_t, | |
12822 | &_swigt__p_int, | |
12823 | &_swigt__p_long, | |
12824 | &_swigt__p_unsigned_char, | |
12825 | &_swigt__p_unsigned_int, | |
12826 | &_swigt__p_unsigned_long, | |
12827 | &_swigt__p_wxANIHandler, | |
12828 | &_swigt__p_wxAcceleratorTable, | |
12829 | &_swigt__p_wxActivateEvent, | |
12830 | &_swigt__p_wxArrayInt, | |
12831 | &_swigt__p_wxBMPHandler, | |
12832 | &_swigt__p_wxBitmap, | |
12833 | &_swigt__p_wxBoxSizer, | |
06810ecf RD |
12834 | &_swigt__p_wxCURHandler, |
12835 | &_swigt__p_wxCalculateLayoutEvent, | |
12836 | &_swigt__p_wxChar, | |
12837 | &_swigt__p_wxChildFocusEvent, | |
06810ecf RD |
12838 | &_swigt__p_wxClipboardTextEvent, |
12839 | &_swigt__p_wxCloseEvent, | |
12840 | &_swigt__p_wxColour, | |
12841 | &_swigt__p_wxColourData, | |
12842 | &_swigt__p_wxColourDialog, | |
12843 | &_swigt__p_wxCommandEvent, | |
12844 | &_swigt__p_wxContextMenuEvent, | |
12845 | &_swigt__p_wxControl, | |
12846 | &_swigt__p_wxControlWithItems, | |
06810ecf RD |
12847 | &_swigt__p_wxDateEvent, |
12848 | &_swigt__p_wxDialog, | |
12849 | &_swigt__p_wxDirDialog, | |
12850 | &_swigt__p_wxDisplayChangedEvent, | |
12851 | &_swigt__p_wxDropFilesEvent, | |
12852 | &_swigt__p_wxDuplexMode, | |
06810ecf RD |
12853 | &_swigt__p_wxEraseEvent, |
12854 | &_swigt__p_wxEvent, | |
12855 | &_swigt__p_wxEvtHandler, | |
12856 | &_swigt__p_wxFSFile, | |
12857 | &_swigt__p_wxFileDialog, | |
12858 | &_swigt__p_wxFileSystem, | |
12859 | &_swigt__p_wxFindDialogEvent, | |
12860 | &_swigt__p_wxFindReplaceData, | |
12861 | &_swigt__p_wxFindReplaceDialog, | |
12862 | &_swigt__p_wxFlexGridSizer, | |
12863 | &_swigt__p_wxFocusEvent, | |
12864 | &_swigt__p_wxFont, | |
12865 | &_swigt__p_wxFontData, | |
12866 | &_swigt__p_wxFontDialog, | |
12867 | &_swigt__p_wxFrame, | |
12868 | &_swigt__p_wxGBSizerItem, | |
06810ecf RD |
12869 | &_swigt__p_wxGIFHandler, |
12870 | &_swigt__p_wxGridBagSizer, | |
12871 | &_swigt__p_wxGridSizer, | |
12872 | &_swigt__p_wxICOHandler, | |
06810ecf RD |
12873 | &_swigt__p_wxIconizeEvent, |
12874 | &_swigt__p_wxIdleEvent, | |
12875 | &_swigt__p_wxImage, | |
12876 | &_swigt__p_wxImageHandler, | |
06810ecf RD |
12877 | &_swigt__p_wxIndividualLayoutConstraint, |
12878 | &_swigt__p_wxInitDialogEvent, | |
12879 | &_swigt__p_wxJPEGHandler, | |
12880 | &_swigt__p_wxKeyEvent, | |
12881 | &_swigt__p_wxLayoutAlgorithm, | |
12882 | &_swigt__p_wxLayoutConstraints, | |
12883 | &_swigt__p_wxMDIChildFrame, | |
12884 | &_swigt__p_wxMDIClientWindow, | |
12885 | &_swigt__p_wxMDIParentFrame, | |
06810ecf | 12886 | &_swigt__p_wxMaximizeEvent, |
06810ecf RD |
12887 | &_swigt__p_wxMenu, |
12888 | &_swigt__p_wxMenuBar, | |
12889 | &_swigt__p_wxMenuEvent, | |
12890 | &_swigt__p_wxMenuItem, | |
12891 | &_swigt__p_wxMessageDialog, | |
06810ecf | 12892 | &_swigt__p_wxMiniFrame, |
06810ecf RD |
12893 | &_swigt__p_wxMouseCaptureChangedEvent, |
12894 | &_swigt__p_wxMouseEvent, | |
12895 | &_swigt__p_wxMoveEvent, | |
12896 | &_swigt__p_wxMultiChoiceDialog, | |
12897 | &_swigt__p_wxNavigationKeyEvent, | |
12898 | &_swigt__p_wxNcPaintEvent, | |
12899 | &_swigt__p_wxNotifyEvent, | |
12900 | &_swigt__p_wxObject, | |
12901 | &_swigt__p_wxPCXHandler, | |
12902 | &_swigt__p_wxPNGHandler, | |
12903 | &_swigt__p_wxPNMHandler, | |
12904 | &_swigt__p_wxPageSetupDialog, | |
12905 | &_swigt__p_wxPageSetupDialogData, | |
06810ecf | 12906 | &_swigt__p_wxPaintEvent, |
06810ecf RD |
12907 | &_swigt__p_wxPaletteChangedEvent, |
12908 | &_swigt__p_wxPanel, | |
12909 | &_swigt__p_wxPaperSize, | |
12910 | &_swigt__p_wxPasswordEntryDialog, | |
06810ecf | 12911 | &_swigt__p_wxPopupWindow, |
06810ecf RD |
12912 | &_swigt__p_wxPreviewCanvas, |
12913 | &_swigt__p_wxPreviewControlBar, | |
12914 | &_swigt__p_wxPreviewFrame, | |
12915 | &_swigt__p_wxPrintData, | |
12916 | &_swigt__p_wxPrintDialog, | |
12917 | &_swigt__p_wxPrintDialogData, | |
12918 | &_swigt__p_wxPrintPreview, | |
12919 | &_swigt__p_wxPrinter, | |
06810ecf RD |
12920 | &_swigt__p_wxProgressDialog, |
12921 | &_swigt__p_wxPyApp, | |
12922 | &_swigt__p_wxPyCommandEvent, | |
12923 | &_swigt__p_wxPyEvent, | |
12924 | &_swigt__p_wxPyHtmlListBox, | |
12925 | &_swigt__p_wxPyImageHandler, | |
12926 | &_swigt__p_wxPyPanel, | |
12927 | &_swigt__p_wxPyPopupTransientWindow, | |
12928 | &_swigt__p_wxPyPreviewControlBar, | |
12929 | &_swigt__p_wxPyPreviewFrame, | |
12930 | &_swigt__p_wxPyPrintPreview, | |
12931 | &_swigt__p_wxPyPrintout, | |
12932 | &_swigt__p_wxPyScrolledWindow, | |
12933 | &_swigt__p_wxPySizer, | |
12934 | &_swigt__p_wxPyTaskBarIcon, | |
12935 | &_swigt__p_wxPyVListBox, | |
12936 | &_swigt__p_wxPyVScrolledWindow, | |
12937 | &_swigt__p_wxPyValidator, | |
12938 | &_swigt__p_wxPyWindow, | |
12939 | &_swigt__p_wxQueryLayoutInfoEvent, | |
12940 | &_swigt__p_wxQueryNewPaletteEvent, | |
06810ecf RD |
12941 | &_swigt__p_wxRichTextAttr, |
12942 | &_swigt__p_wxRichTextBuffer, | |
12943 | &_swigt__p_wxRichTextCtrl, | |
12944 | &_swigt__p_wxRichTextEvent, | |
12945 | &_swigt__p_wxRichTextImageBlock, | |
12946 | &_swigt__p_wxRichTextRange, | |
12947 | &_swigt__p_wxRichTextStyleSheet, | |
12948 | &_swigt__p_wxSashEvent, | |
12949 | &_swigt__p_wxSashLayoutWindow, | |
12950 | &_swigt__p_wxSashWindow, | |
06810ecf RD |
12951 | &_swigt__p_wxScrollEvent, |
12952 | &_swigt__p_wxScrollWinEvent, | |
12953 | &_swigt__p_wxScrolledWindow, | |
12954 | &_swigt__p_wxSetCursorEvent, | |
12955 | &_swigt__p_wxShowEvent, | |
12956 | &_swigt__p_wxSingleChoiceDialog, | |
12957 | &_swigt__p_wxSizeEvent, | |
12958 | &_swigt__p_wxSizer, | |
12959 | &_swigt__p_wxSizerItem, | |
12960 | &_swigt__p_wxSplashScreen, | |
12961 | &_swigt__p_wxSplashScreenWindow, | |
12962 | &_swigt__p_wxSplitterEvent, | |
12963 | &_swigt__p_wxSplitterWindow, | |
12964 | &_swigt__p_wxStaticBoxSizer, | |
12965 | &_swigt__p_wxStatusBar, | |
12966 | &_swigt__p_wxStdDialogButtonSizer, | |
12967 | &_swigt__p_wxSysColourChangedEvent, | |
12968 | &_swigt__p_wxTIFFHandler, | |
12969 | &_swigt__p_wxTaskBarIconEvent, | |
12970 | &_swigt__p_wxTextCoord, | |
12971 | &_swigt__p_wxTextCtrlHitTestResult, | |
12972 | &_swigt__p_wxTextEntryDialog, | |
12973 | &_swigt__p_wxTipWindow, | |
12974 | &_swigt__p_wxTopLevelWindow, | |
12975 | &_swigt__p_wxUpdateUIEvent, | |
12976 | &_swigt__p_wxValidator, | |
12977 | &_swigt__p_wxWindow, | |
12978 | &_swigt__p_wxWindowCreateEvent, | |
06810ecf RD |
12979 | &_swigt__p_wxWindowDestroyEvent, |
12980 | &_swigt__p_wxXPMHandler, | |
12981 | }; | |
12982 | ||
12983 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
12984 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
12985 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
12986 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
12987 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
12988 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
12989 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
12990 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
12991 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
12992 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; | |
12993 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
12994 | static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
12995 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
12996 | static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
12997 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
12998 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
12999 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13000 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13001 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13002 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13003 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13004 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13005 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13006 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; | |
13007 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
13008 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13009 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13010 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13011 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13012 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13013 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13014 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13015 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13016 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13017 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13018 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13019 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13020 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13021 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13022 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13023 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13024 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13025 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13026 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13027 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13028 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13029 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13030 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13031 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13032 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13033 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13034 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13035 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13036 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13037 | 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_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_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}}; | |
13038 | static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
13039 | static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13040 | static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
13041 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13042 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
13043 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
13044 | static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13045 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13046 | static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13047 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13048 | static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13049 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13050 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13051 | static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13052 | static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13053 | static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13054 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13055 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13056 | static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13057 | static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13058 | static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13059 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13060 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13061 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13062 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13063 | static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13064 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13065 | static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13066 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
13067 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13068 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
13069 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
13070 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
13071 | static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13072 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13073 | static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13074 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13075 | static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13076 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
13077 | static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13078 | static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13079 | static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13080 | static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13081 | static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13082 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
13083 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13084 | 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_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_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_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_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; | |
13085 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
13086 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
13087 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13088 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13089 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
13090 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
13091 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13092 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13093 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; |
13094 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13095 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13096 | static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; |
13097 | static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
13098 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13099 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13100 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13101 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13102 | static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; |
13103 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13104 | static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
13105 | static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
13106 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf RD |
13107 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; |
13108 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13109 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13110 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13111 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13112 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13113 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13114 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
92515dfc RD |
13115 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
13116 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13117 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13118 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13119 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13120 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13121 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
13122 | static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
13123 | static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13124 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13125 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13126 | static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13127 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
13128 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
13129 | static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
13130 | 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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_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_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_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_wxActivateEvent, _p_wxActivateEventTo_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_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_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_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_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_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_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_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_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_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_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}}; | |
06810ecf RD |
13131 | 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_wxRichTextCtrl, _p_wxRichTextCtrlTo_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}}; |
13132 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
13133 | static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
13134 | static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}}; | |
13135 | static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
13136 | static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13137 | static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}}; | |
13138 | static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}}; | |
13139 | static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}}; | |
13140 | static swig_cast_info _swigc__p_wxScrolledWindow[] = { {&_swigt__p_wxScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxScrolledWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
13141 | static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}}; | |
13142 | static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}}; | |
13143 | 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_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_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_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_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_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
13144 | ||
13145 | static swig_cast_info *swig_cast_initial[] = { | |
13146 | _swigc__p_char, | |
13147 | _swigc__p_form_ops_t, | |
13148 | _swigc__p_int, | |
13149 | _swigc__p_long, | |
13150 | _swigc__p_unsigned_char, | |
13151 | _swigc__p_unsigned_int, | |
13152 | _swigc__p_unsigned_long, | |
13153 | _swigc__p_wxANIHandler, | |
13154 | _swigc__p_wxAcceleratorTable, | |
13155 | _swigc__p_wxActivateEvent, | |
13156 | _swigc__p_wxArrayInt, | |
13157 | _swigc__p_wxBMPHandler, | |
13158 | _swigc__p_wxBitmap, | |
13159 | _swigc__p_wxBoxSizer, | |
06810ecf RD |
13160 | _swigc__p_wxCURHandler, |
13161 | _swigc__p_wxCalculateLayoutEvent, | |
13162 | _swigc__p_wxChar, | |
13163 | _swigc__p_wxChildFocusEvent, | |
06810ecf RD |
13164 | _swigc__p_wxClipboardTextEvent, |
13165 | _swigc__p_wxCloseEvent, | |
13166 | _swigc__p_wxColour, | |
13167 | _swigc__p_wxColourData, | |
13168 | _swigc__p_wxColourDialog, | |
13169 | _swigc__p_wxCommandEvent, | |
13170 | _swigc__p_wxContextMenuEvent, | |
13171 | _swigc__p_wxControl, | |
13172 | _swigc__p_wxControlWithItems, | |
06810ecf RD |
13173 | _swigc__p_wxDateEvent, |
13174 | _swigc__p_wxDialog, | |
13175 | _swigc__p_wxDirDialog, | |
13176 | _swigc__p_wxDisplayChangedEvent, | |
13177 | _swigc__p_wxDropFilesEvent, | |
13178 | _swigc__p_wxDuplexMode, | |
06810ecf RD |
13179 | _swigc__p_wxEraseEvent, |
13180 | _swigc__p_wxEvent, | |
13181 | _swigc__p_wxEvtHandler, | |
13182 | _swigc__p_wxFSFile, | |
13183 | _swigc__p_wxFileDialog, | |
13184 | _swigc__p_wxFileSystem, | |
13185 | _swigc__p_wxFindDialogEvent, | |
13186 | _swigc__p_wxFindReplaceData, | |
13187 | _swigc__p_wxFindReplaceDialog, | |
13188 | _swigc__p_wxFlexGridSizer, | |
13189 | _swigc__p_wxFocusEvent, | |
13190 | _swigc__p_wxFont, | |
13191 | _swigc__p_wxFontData, | |
13192 | _swigc__p_wxFontDialog, | |
13193 | _swigc__p_wxFrame, | |
13194 | _swigc__p_wxGBSizerItem, | |
06810ecf RD |
13195 | _swigc__p_wxGIFHandler, |
13196 | _swigc__p_wxGridBagSizer, | |
13197 | _swigc__p_wxGridSizer, | |
13198 | _swigc__p_wxICOHandler, | |
06810ecf RD |
13199 | _swigc__p_wxIconizeEvent, |
13200 | _swigc__p_wxIdleEvent, | |
13201 | _swigc__p_wxImage, | |
13202 | _swigc__p_wxImageHandler, | |
06810ecf RD |
13203 | _swigc__p_wxIndividualLayoutConstraint, |
13204 | _swigc__p_wxInitDialogEvent, | |
13205 | _swigc__p_wxJPEGHandler, | |
13206 | _swigc__p_wxKeyEvent, | |
13207 | _swigc__p_wxLayoutAlgorithm, | |
13208 | _swigc__p_wxLayoutConstraints, | |
13209 | _swigc__p_wxMDIChildFrame, | |
13210 | _swigc__p_wxMDIClientWindow, | |
13211 | _swigc__p_wxMDIParentFrame, | |
06810ecf | 13212 | _swigc__p_wxMaximizeEvent, |
06810ecf RD |
13213 | _swigc__p_wxMenu, |
13214 | _swigc__p_wxMenuBar, | |
13215 | _swigc__p_wxMenuEvent, | |
13216 | _swigc__p_wxMenuItem, | |
13217 | _swigc__p_wxMessageDialog, | |
06810ecf | 13218 | _swigc__p_wxMiniFrame, |
06810ecf RD |
13219 | _swigc__p_wxMouseCaptureChangedEvent, |
13220 | _swigc__p_wxMouseEvent, | |
13221 | _swigc__p_wxMoveEvent, | |
13222 | _swigc__p_wxMultiChoiceDialog, | |
13223 | _swigc__p_wxNavigationKeyEvent, | |
13224 | _swigc__p_wxNcPaintEvent, | |
13225 | _swigc__p_wxNotifyEvent, | |
13226 | _swigc__p_wxObject, | |
13227 | _swigc__p_wxPCXHandler, | |
13228 | _swigc__p_wxPNGHandler, | |
13229 | _swigc__p_wxPNMHandler, | |
13230 | _swigc__p_wxPageSetupDialog, | |
13231 | _swigc__p_wxPageSetupDialogData, | |
06810ecf | 13232 | _swigc__p_wxPaintEvent, |
06810ecf RD |
13233 | _swigc__p_wxPaletteChangedEvent, |
13234 | _swigc__p_wxPanel, | |
13235 | _swigc__p_wxPaperSize, | |
13236 | _swigc__p_wxPasswordEntryDialog, | |
06810ecf | 13237 | _swigc__p_wxPopupWindow, |
06810ecf RD |
13238 | _swigc__p_wxPreviewCanvas, |
13239 | _swigc__p_wxPreviewControlBar, | |
13240 | _swigc__p_wxPreviewFrame, | |
13241 | _swigc__p_wxPrintData, | |
13242 | _swigc__p_wxPrintDialog, | |
13243 | _swigc__p_wxPrintDialogData, | |
13244 | _swigc__p_wxPrintPreview, | |
13245 | _swigc__p_wxPrinter, | |
06810ecf RD |
13246 | _swigc__p_wxProgressDialog, |
13247 | _swigc__p_wxPyApp, | |
13248 | _swigc__p_wxPyCommandEvent, | |
13249 | _swigc__p_wxPyEvent, | |
13250 | _swigc__p_wxPyHtmlListBox, | |
13251 | _swigc__p_wxPyImageHandler, | |
13252 | _swigc__p_wxPyPanel, | |
13253 | _swigc__p_wxPyPopupTransientWindow, | |
13254 | _swigc__p_wxPyPreviewControlBar, | |
13255 | _swigc__p_wxPyPreviewFrame, | |
13256 | _swigc__p_wxPyPrintPreview, | |
13257 | _swigc__p_wxPyPrintout, | |
13258 | _swigc__p_wxPyScrolledWindow, | |
13259 | _swigc__p_wxPySizer, | |
13260 | _swigc__p_wxPyTaskBarIcon, | |
13261 | _swigc__p_wxPyVListBox, | |
13262 | _swigc__p_wxPyVScrolledWindow, | |
13263 | _swigc__p_wxPyValidator, | |
13264 | _swigc__p_wxPyWindow, | |
13265 | _swigc__p_wxQueryLayoutInfoEvent, | |
13266 | _swigc__p_wxQueryNewPaletteEvent, | |
06810ecf RD |
13267 | _swigc__p_wxRichTextAttr, |
13268 | _swigc__p_wxRichTextBuffer, | |
13269 | _swigc__p_wxRichTextCtrl, | |
13270 | _swigc__p_wxRichTextEvent, | |
13271 | _swigc__p_wxRichTextImageBlock, | |
13272 | _swigc__p_wxRichTextRange, | |
13273 | _swigc__p_wxRichTextStyleSheet, | |
13274 | _swigc__p_wxSashEvent, | |
13275 | _swigc__p_wxSashLayoutWindow, | |
13276 | _swigc__p_wxSashWindow, | |
06810ecf RD |
13277 | _swigc__p_wxScrollEvent, |
13278 | _swigc__p_wxScrollWinEvent, | |
13279 | _swigc__p_wxScrolledWindow, | |
13280 | _swigc__p_wxSetCursorEvent, | |
13281 | _swigc__p_wxShowEvent, | |
13282 | _swigc__p_wxSingleChoiceDialog, | |
13283 | _swigc__p_wxSizeEvent, | |
13284 | _swigc__p_wxSizer, | |
13285 | _swigc__p_wxSizerItem, | |
13286 | _swigc__p_wxSplashScreen, | |
13287 | _swigc__p_wxSplashScreenWindow, | |
13288 | _swigc__p_wxSplitterEvent, | |
13289 | _swigc__p_wxSplitterWindow, | |
13290 | _swigc__p_wxStaticBoxSizer, | |
13291 | _swigc__p_wxStatusBar, | |
13292 | _swigc__p_wxStdDialogButtonSizer, | |
13293 | _swigc__p_wxSysColourChangedEvent, | |
13294 | _swigc__p_wxTIFFHandler, | |
13295 | _swigc__p_wxTaskBarIconEvent, | |
13296 | _swigc__p_wxTextCoord, | |
13297 | _swigc__p_wxTextCtrlHitTestResult, | |
13298 | _swigc__p_wxTextEntryDialog, | |
13299 | _swigc__p_wxTipWindow, | |
13300 | _swigc__p_wxTopLevelWindow, | |
13301 | _swigc__p_wxUpdateUIEvent, | |
13302 | _swigc__p_wxValidator, | |
13303 | _swigc__p_wxWindow, | |
13304 | _swigc__p_wxWindowCreateEvent, | |
06810ecf RD |
13305 | _swigc__p_wxWindowDestroyEvent, |
13306 | _swigc__p_wxXPMHandler, | |
13307 | }; | |
13308 | ||
13309 | ||
13310 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
13311 | ||
13312 | static swig_const_info swig_const_table[] = { | |
13313 | {0, 0, 0, 0.0, 0, 0}}; | |
13314 | ||
13315 | #ifdef __cplusplus | |
13316 | } | |
13317 | #endif | |
13318 | /* ----------------------------------------------------------------------------- | |
13319 | * Type initialization: | |
13320 | * This problem is tough by the requirement that no dynamic | |
13321 | * memory is used. Also, since swig_type_info structures store pointers to | |
13322 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
13323 | * to swig_type_info structures, we need some lookup code at initialization. | |
13324 | * The idea is that swig generates all the structures that are needed. | |
13325 | * The runtime then collects these partially filled structures. | |
13326 | * The SWIG_InitializeModule function takes these initial arrays out of | |
13327 | * swig_module, and does all the lookup, filling in the swig_module.types | |
13328 | * array with the correct data and linking the correct swig_cast_info | |
13329 | * structures together. | |
13330 | * | |
13331 | * The generated swig_type_info structures are assigned staticly to an initial | |
13332 | * array. We just loop though that array, and handle each type individually. | |
13333 | * First we lookup if this type has been already loaded, and if so, use the | |
13334 | * loaded structure instead of the generated one. Then we have to fill in the | |
13335 | * cast linked list. The cast data is initially stored in something like a | |
13336 | * two-dimensional array. Each row corresponds to a type (there are the same | |
13337 | * number of rows as there are in the swig_type_initial array). Each entry in | |
13338 | * a column is one of the swig_cast_info structures for that type. | |
13339 | * The cast_initial array is actually an array of arrays, because each row has | |
13340 | * a variable number of columns. So to actually build the cast linked list, | |
13341 | * we find the array of casts associated with the type, and loop through it | |
13342 | * adding the casts to the list. The one last trick we need to do is making | |
13343 | * sure the type pointer in the swig_cast_info struct is correct. | |
13344 | * | |
13345 | * First off, we lookup the cast->type name to see if it is already loaded. | |
13346 | * There are three cases to handle: | |
13347 | * 1) If the cast->type has already been loaded AND the type we are adding | |
13348 | * casting info to has not been loaded (it is in this module), THEN we | |
13349 | * replace the cast->type pointer with the type pointer that has already | |
13350 | * been loaded. | |
13351 | * 2) If BOTH types (the one we are adding casting info to, and the | |
13352 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
13353 | * the previous module so we just ignore it. | |
13354 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
13355 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
13356 | * be correct. | |
13357 | * ----------------------------------------------------------------------------- */ | |
13358 | ||
13359 | #ifdef __cplusplus | |
13360 | extern "C" { | |
13361 | #if 0 | |
13362 | } /* c-mode */ | |
13363 | #endif | |
13364 | #endif | |
13365 | ||
13366 | #if 0 | |
13367 | #define SWIGRUNTIME_DEBUG | |
13368 | #endif | |
13369 | ||
13370 | SWIGRUNTIME void | |
13371 | SWIG_InitializeModule(void *clientdata) { | |
13372 | size_t i; | |
13373 | swig_module_info *module_head; | |
13374 | static int init_run = 0; | |
13375 | ||
13376 | clientdata = clientdata; | |
13377 | ||
13378 | if (init_run) return; | |
13379 | init_run = 1; | |
13380 | ||
13381 | /* Initialize the swig_module */ | |
13382 | swig_module.type_initial = swig_type_initial; | |
13383 | swig_module.cast_initial = swig_cast_initial; | |
13384 | ||
13385 | /* Try and load any already created modules */ | |
13386 | module_head = SWIG_GetModule(clientdata); | |
13387 | if (module_head) { | |
13388 | swig_module.next = module_head->next; | |
13389 | module_head->next = &swig_module; | |
13390 | } else { | |
13391 | /* This is the first module loaded */ | |
13392 | swig_module.next = &swig_module; | |
13393 | SWIG_SetModule(clientdata, &swig_module); | |
13394 | } | |
13395 | ||
13396 | /* Now work on filling in swig_module.types */ | |
13397 | #ifdef SWIGRUNTIME_DEBUG | |
13398 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
13399 | #endif | |
13400 | for (i = 0; i < swig_module.size; ++i) { | |
13401 | swig_type_info *type = 0; | |
13402 | swig_type_info *ret; | |
13403 | swig_cast_info *cast; | |
13404 | ||
13405 | #ifdef SWIGRUNTIME_DEBUG | |
13406 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
13407 | #endif | |
13408 | ||
13409 | /* if there is another module already loaded */ | |
13410 | if (swig_module.next != &swig_module) { | |
13411 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
13412 | } | |
13413 | if (type) { | |
13414 | /* Overwrite clientdata field */ | |
13415 | #ifdef SWIGRUNTIME_DEBUG | |
13416 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
13417 | #endif | |
13418 | if (swig_module.type_initial[i]->clientdata) { | |
13419 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
13420 | #ifdef SWIGRUNTIME_DEBUG | |
13421 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
13422 | #endif | |
13423 | } | |
13424 | } else { | |
13425 | type = swig_module.type_initial[i]; | |
13426 | } | |
13427 | ||
13428 | /* Insert casting types */ | |
13429 | cast = swig_module.cast_initial[i]; | |
13430 | while (cast->type) { | |
13431 | /* Don't need to add information already in the list */ | |
13432 | ret = 0; | |
13433 | #ifdef SWIGRUNTIME_DEBUG | |
13434 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
13435 | #endif | |
13436 | if (swig_module.next != &swig_module) { | |
13437 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
13438 | #ifdef SWIGRUNTIME_DEBUG | |
13439 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
13440 | #endif | |
13441 | } | |
13442 | if (ret) { | |
13443 | if (type == swig_module.type_initial[i]) { | |
13444 | #ifdef SWIGRUNTIME_DEBUG | |
13445 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
13446 | #endif | |
13447 | cast->type = ret; | |
13448 | ret = 0; | |
13449 | } else { | |
13450 | /* Check for casting already in the list */ | |
13451 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
13452 | #ifdef SWIGRUNTIME_DEBUG | |
13453 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
13454 | #endif | |
13455 | if (!ocast) ret = 0; | |
13456 | } | |
13457 | } | |
13458 | ||
13459 | if (!ret) { | |
13460 | #ifdef SWIGRUNTIME_DEBUG | |
13461 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
13462 | #endif | |
13463 | if (type->cast) { | |
13464 | type->cast->prev = cast; | |
13465 | cast->next = type->cast; | |
13466 | } | |
13467 | type->cast = cast; | |
13468 | } | |
13469 | cast++; | |
13470 | } | |
13471 | /* Set entry in modules->types array equal to the type */ | |
13472 | swig_module.types[i] = type; | |
13473 | } | |
13474 | swig_module.types[i] = 0; | |
13475 | ||
13476 | #ifdef SWIGRUNTIME_DEBUG | |
13477 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
13478 | for (i = 0; i < swig_module.size; ++i) { | |
13479 | int j = 0; | |
13480 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
13481 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
13482 | while (cast->type) { | |
13483 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
13484 | cast++; | |
13485 | ++j; | |
13486 | } | |
13487 | printf("---- Total casts: %d\n",j); | |
13488 | } | |
13489 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
13490 | #endif | |
13491 | } | |
13492 | ||
13493 | /* This function will propagate the clientdata field of type to | |
13494 | * any new swig_type_info structures that have been added into the list | |
13495 | * of equivalent types. It is like calling | |
13496 | * SWIG_TypeClientData(type, clientdata) a second time. | |
13497 | */ | |
13498 | SWIGRUNTIME void | |
13499 | SWIG_PropagateClientData(void) { | |
13500 | size_t i; | |
13501 | swig_cast_info *equiv; | |
13502 | static int init_run = 0; | |
13503 | ||
13504 | if (init_run) return; | |
13505 | init_run = 1; | |
13506 | ||
13507 | for (i = 0; i < swig_module.size; i++) { | |
13508 | if (swig_module.types[i]->clientdata) { | |
13509 | equiv = swig_module.types[i]->cast; | |
13510 | while (equiv) { | |
13511 | if (!equiv->converter) { | |
13512 | if (equiv->type && !equiv->type->clientdata) | |
13513 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
13514 | } | |
13515 | equiv = equiv->next; | |
13516 | } | |
13517 | } | |
13518 | } | |
13519 | } | |
13520 | ||
13521 | #ifdef __cplusplus | |
13522 | #if 0 | |
13523 | { | |
13524 | /* c-mode */ | |
13525 | #endif | |
13526 | } | |
13527 | #endif | |
13528 | ||
13529 | ||
13530 | ||
13531 | #ifdef __cplusplus | |
13532 | extern "C" { | |
13533 | #endif | |
13534 | ||
13535 | /* Python-specific SWIG API */ | |
13536 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
13537 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
13538 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
13539 | ||
13540 | /* ----------------------------------------------------------------------------- | |
13541 | * global variable support code. | |
13542 | * ----------------------------------------------------------------------------- */ | |
13543 | ||
13544 | typedef struct swig_globalvar { | |
13545 | char *name; /* Name of global variable */ | |
13546 | PyObject *(*get_attr)(void); /* Return the current value */ | |
13547 | int (*set_attr)(PyObject *); /* Set the value */ | |
13548 | struct swig_globalvar *next; | |
13549 | } swig_globalvar; | |
13550 | ||
13551 | typedef struct swig_varlinkobject { | |
13552 | PyObject_HEAD | |
13553 | swig_globalvar *vars; | |
13554 | } swig_varlinkobject; | |
13555 | ||
13556 | SWIGINTERN PyObject * | |
13557 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
13558 | return PyString_FromString("<Swig global variables>"); | |
13559 | } | |
13560 | ||
13561 | SWIGINTERN PyObject * | |
13562 | swig_varlink_str(swig_varlinkobject *v) { | |
13563 | PyObject *str = PyString_FromString("("); | |
13564 | swig_globalvar *var; | |
13565 | for (var = v->vars; var; var=var->next) { | |
13566 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
13567 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
13568 | } | |
13569 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
13570 | return str; | |
13571 | } | |
13572 | ||
13573 | SWIGINTERN int | |
13574 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
13575 | PyObject *str = swig_varlink_str(v); | |
13576 | fprintf(fp,"Swig global variables "); | |
13577 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
13578 | Py_DECREF(str); | |
13579 | return 0; | |
13580 | } | |
13581 | ||
13582 | SWIGINTERN void | |
13583 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
13584 | swig_globalvar *var = v->vars; | |
13585 | while (var) { | |
13586 | swig_globalvar *n = var->next; | |
13587 | free(var->name); | |
13588 | free(var); | |
13589 | var = n; | |
13590 | } | |
13591 | } | |
13592 | ||
13593 | SWIGINTERN PyObject * | |
13594 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
13595 | PyObject *res = NULL; | |
13596 | swig_globalvar *var = v->vars; | |
13597 | while (var) { | |
13598 | if (strcmp(var->name,n) == 0) { | |
13599 | res = (*var->get_attr)(); | |
13600 | break; | |
13601 | } | |
13602 | var = var->next; | |
13603 | } | |
13604 | if (res == NULL && !PyErr_Occurred()) { | |
13605 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
13606 | } | |
13607 | return res; | |
13608 | } | |
13609 | ||
13610 | SWIGINTERN int | |
13611 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
13612 | int res = 1; | |
13613 | swig_globalvar *var = v->vars; | |
13614 | while (var) { | |
13615 | if (strcmp(var->name,n) == 0) { | |
13616 | res = (*var->set_attr)(p); | |
13617 | break; | |
13618 | } | |
13619 | var = var->next; | |
13620 | } | |
13621 | if (res == 1 && !PyErr_Occurred()) { | |
13622 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
13623 | } | |
13624 | return res; | |
13625 | } | |
13626 | ||
13627 | SWIGINTERN PyTypeObject* | |
13628 | swig_varlink_type(void) { | |
13629 | static char varlink__doc__[] = "Swig var link object"; | |
13630 | static PyTypeObject varlink_type; | |
13631 | static int type_init = 0; | |
13632 | if (!type_init) { | |
13633 | const PyTypeObject tmp | |
13634 | = { | |
13635 | PyObject_HEAD_INIT(NULL) | |
13636 | 0, /* Number of items in variable part (ob_size) */ | |
13637 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
13638 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
13639 | 0, /* Itemsize (tp_itemsize) */ | |
13640 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
13641 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
13642 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
13643 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
13644 | 0, /* tp_compare */ | |
13645 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
13646 | 0, /* tp_as_number */ | |
13647 | 0, /* tp_as_sequence */ | |
13648 | 0, /* tp_as_mapping */ | |
13649 | 0, /* tp_hash */ | |
13650 | 0, /* tp_call */ | |
13651 | (reprfunc)swig_varlink_str, /* tp_str */ | |
13652 | 0, /* tp_getattro */ | |
13653 | 0, /* tp_setattro */ | |
13654 | 0, /* tp_as_buffer */ | |
13655 | 0, /* tp_flags */ | |
13656 | varlink__doc__, /* tp_doc */ | |
13657 | 0, /* tp_traverse */ | |
13658 | 0, /* tp_clear */ | |
13659 | 0, /* tp_richcompare */ | |
13660 | 0, /* tp_weaklistoffset */ | |
13661 | #if PY_VERSION_HEX >= 0x02020000 | |
13662 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
13663 | #endif | |
13664 | #if PY_VERSION_HEX >= 0x02030000 | |
13665 | 0, /* tp_del */ | |
13666 | #endif | |
13667 | #ifdef COUNT_ALLOCS | |
13668 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
13669 | #endif | |
13670 | }; | |
13671 | varlink_type = tmp; | |
13672 | varlink_type.ob_type = &PyType_Type; | |
13673 | type_init = 1; | |
13674 | } | |
13675 | return &varlink_type; | |
13676 | } | |
13677 | ||
13678 | /* Create a variable linking object for use later */ | |
13679 | SWIGINTERN PyObject * | |
13680 | SWIG_Python_newvarlink(void) { | |
13681 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
13682 | if (result) { | |
13683 | result->vars = 0; | |
13684 | } | |
13685 | return ((PyObject*) result); | |
13686 | } | |
13687 | ||
13688 | SWIGINTERN void | |
13689 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
13690 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
13691 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
13692 | if (gv) { | |
13693 | size_t size = strlen(name)+1; | |
13694 | gv->name = (char *)malloc(size); | |
13695 | if (gv->name) { | |
13696 | strncpy(gv->name,name,size); | |
13697 | gv->get_attr = get_attr; | |
13698 | gv->set_attr = set_attr; | |
13699 | gv->next = v->vars; | |
13700 | } | |
13701 | } | |
13702 | v->vars = gv; | |
13703 | } | |
13704 | ||
13705 | SWIGINTERN PyObject * | |
13706 | SWIG_globals() { | |
13707 | static PyObject *_SWIG_globals = 0; | |
13708 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
13709 | return _SWIG_globals; | |
13710 | } | |
13711 | ||
13712 | /* ----------------------------------------------------------------------------- | |
13713 | * constants/methods manipulation | |
13714 | * ----------------------------------------------------------------------------- */ | |
13715 | ||
13716 | /* Install Constants */ | |
13717 | SWIGINTERN void | |
13718 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
13719 | PyObject *obj = 0; | |
13720 | size_t i; | |
13721 | for (i = 0; constants[i].type; ++i) { | |
13722 | switch(constants[i].type) { | |
13723 | case SWIG_PY_POINTER: | |
13724 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
13725 | break; | |
13726 | case SWIG_PY_BINARY: | |
13727 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
13728 | break; | |
13729 | default: | |
13730 | obj = 0; | |
13731 | break; | |
13732 | } | |
13733 | if (obj) { | |
13734 | PyDict_SetItemString(d, constants[i].name, obj); | |
13735 | Py_DECREF(obj); | |
13736 | } | |
13737 | } | |
13738 | } | |
13739 | ||
13740 | /* -----------------------------------------------------------------------------*/ | |
13741 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
13742 | /* -----------------------------------------------------------------------------*/ | |
13743 | ||
13744 | SWIGINTERN void | |
13745 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
13746 | swig_const_info *const_table, | |
13747 | swig_type_info **types, | |
13748 | swig_type_info **types_initial) { | |
13749 | size_t i; | |
13750 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 13751 | const char *c = methods[i].ml_doc; |
06810ecf RD |
13752 | if (c && (c = strstr(c, "swig_ptr: "))) { |
13753 | int j; | |
13754 | swig_const_info *ci = 0; | |
3d6c9062 | 13755 | const char *name = c + 10; |
06810ecf RD |
13756 | for (j = 0; const_table[j].type; ++j) { |
13757 | if (strncmp(const_table[j].name, name, | |
13758 | strlen(const_table[j].name)) == 0) { | |
13759 | ci = &(const_table[j]); | |
13760 | break; | |
13761 | } | |
13762 | } | |
13763 | if (ci) { | |
13764 | size_t shift = (ci->ptype) - types; | |
13765 | swig_type_info *ty = types_initial[shift]; | |
13766 | size_t ldoc = (c - methods[i].ml_doc); | |
13767 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
13768 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
13769 | if (ndoc) { | |
13770 | char *buff = ndoc; | |
13771 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
13772 | if (ptr) { | |
13773 | strncpy(buff, methods[i].ml_doc, ldoc); | |
13774 | buff += ldoc; | |
13775 | strncpy(buff, "swig_ptr: ", 10); | |
13776 | buff += 10; | |
13777 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
13778 | methods[i].ml_doc = ndoc; | |
13779 | } | |
13780 | } | |
13781 | } | |
13782 | } | |
13783 | } | |
13784 | } | |
13785 | ||
13786 | #ifdef __cplusplus | |
13787 | } | |
13788 | #endif | |
13789 | ||
13790 | /* -----------------------------------------------------------------------------* | |
13791 | * Partial Init method | |
13792 | * -----------------------------------------------------------------------------*/ | |
13793 | ||
13794 | #ifdef __cplusplus | |
13795 | extern "C" | |
13796 | #endif | |
13797 | SWIGEXPORT void SWIG_init(void) { | |
13798 | PyObject *m, *d; | |
13799 | ||
13800 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
13801 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
13802 | ||
13803 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
13804 | d = PyModule_GetDict(m); | |
13805 | ||
13806 | SWIG_InitializeModule(0); | |
13807 | SWIG_InstallConstants(d,swig_const_table); | |
13808 | ||
13809 | ||
13810 | SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0))); | |
13811 | SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY))); | |
13812 | SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE))); | |
13813 | SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN))); | |
13814 | SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN))); | |
13815 | SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN))); | |
13816 | SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED))); | |
13817 | SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED))); | |
13818 | SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED))); | |
13819 | SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS))); | |
13820 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY))); | |
13821 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT))); | |
13822 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML))); | |
13823 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML))); | |
13824 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF))); | |
13825 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF))); | |
13826 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH))); | |
13827 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT))); | |
13828 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH))); | |
13829 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT))); | |
13830 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE))); | |
13831 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE))); | |
13832 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER))); | |
13833 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON))); | |
13834 | SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED))); | |
13835 | SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED))); | |
13836 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
13837 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
13838 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
13839 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
13840 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
13841 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
13842 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
13843 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
13844 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
13845 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
13846 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
13847 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
13848 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER))); | |
13849 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE))); | |
13850 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING))); | |
13851 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME))); | |
13852 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME))); | |
13853 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE))); | |
13854 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER))); | |
13855 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_SYMBOL))); | |
13856 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE))); | |
13857 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC))); | |
13858 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER))); | |
13859 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER))); | |
13860 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER))); | |
13861 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER))); | |
13862 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL))); | |
13863 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP))); | |
13864 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES))); | |
13865 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD))); | |
13866 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL))); | |
13867 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF))); | |
13868 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE))); | |
13869 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
13870 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
13871 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
13872 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
13873 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
13874 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
13875 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
13876 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set); | |
13877 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set); | |
13878 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER))); | |
13879 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH))); | |
13880 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL))); | |
13881 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED)); | |
13882 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED)); | |
13883 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK)); | |
13884 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK)); | |
13885 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK)); | |
13886 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK)); | |
13887 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN)); | |
13888 | ||
13889 | ||
13890 | } | |
13891 |