]>
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] | |
34e0a3bb RD |
2540 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[74] |
2541 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMoveEvent swig_types[76] | |
2543 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[77] | |
2544 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxNotifyEvent swig_types[80] | |
2547 | #define SWIGTYPE_p_wxNumberEntryDialog swig_types[81] | |
2548 | #define SWIGTYPE_p_wxObject swig_types[82] | |
2549 | #define SWIGTYPE_p_wxPCXHandler swig_types[83] | |
2550 | #define SWIGTYPE_p_wxPNGHandler swig_types[84] | |
2551 | #define SWIGTYPE_p_wxPNMHandler swig_types[85] | |
2552 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[86] | |
2553 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPaintEvent swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPanel swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPaperSize swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPopupWindow swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPreviewFrame swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPrintData swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPrintDialog swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPrintDialogData swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPrintPreview swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPrinter swig_types[101] | |
2568 | #define SWIGTYPE_p_wxProgressDialog swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPyEvent swig_types[105] | |
2572 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPyImageHandler swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPyPanel swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyPrintout swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPySizer swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyVListBox swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPyValidator swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyWindow swig_types[120] | |
2587 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[121] | |
2588 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[122] | |
2589 | #define SWIGTYPE_p_wxRichTextAttr swig_types[123] | |
2590 | #define SWIGTYPE_p_wxRichTextBuffer swig_types[124] | |
2591 | #define SWIGTYPE_p_wxRichTextCtrl swig_types[125] | |
2592 | #define SWIGTYPE_p_wxRichTextEvent swig_types[126] | |
2593 | #define SWIGTYPE_p_wxRichTextImageBlock swig_types[127] | |
2594 | #define SWIGTYPE_p_wxRichTextRange swig_types[128] | |
2595 | #define SWIGTYPE_p_wxRichTextStyleSheet swig_types[129] | |
2596 | #define SWIGTYPE_p_wxSashEvent swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[131] | |
2598 | #define SWIGTYPE_p_wxSashWindow swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScrolledWindow swig_types[135] | |
2602 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxShowEvent swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizeEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizer swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizerItem swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSplashScreen swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplitterEvent swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplitterWindow swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStatusBar swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[148] | |
2615 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxTIFFHandler swig_types[150] | |
2617 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTextCoord swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTipWindow swig_types[155] | |
2622 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[156] | |
2623 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[157] | |
2624 | #define SWIGTYPE_p_wxValidator swig_types[158] | |
2625 | #define SWIGTYPE_p_wxWindow swig_types[159] | |
2626 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160] | |
2627 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161] | |
2628 | #define SWIGTYPE_p_wxXPMHandler swig_types[162] | |
2629 | static swig_type_info *swig_types[164]; | |
2630 | static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0}; | |
06810ecf RD |
2631 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2632 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
2633 | ||
2634 | /* -------- TYPES TABLE (END) -------- */ | |
2635 | ||
2636 | #if (PY_VERSION_HEX <= 0x02000000) | |
2637 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2638 | # error "This python version requires to use swig with the '-classic' option" | |
2639 | # endif | |
2640 | #endif | |
2641 | #if (PY_VERSION_HEX <= 0x02020000) | |
2642 | # error "This python version requires to use swig with the '-nomodern' option" | |
2643 | #endif | |
2644 | #if (PY_VERSION_HEX <= 0x02020000) | |
2645 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2646 | #endif | |
2647 | #ifndef METH_O | |
2648 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2649 | #endif | |
2650 | ||
2651 | /*----------------------------------------------- | |
2652 | @(target):= _richtext.so | |
2653 | ------------------------------------------------*/ | |
2654 | #define SWIG_init init_richtext | |
2655 | ||
2656 | #define SWIG_name "_richtext" | |
2657 | ||
2658 | #define SWIGVERSION 0x010329 | |
2659 | ||
2660 | ||
2661 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2662 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2663 | ||
2664 | ||
2665 | #include <stdexcept> | |
2666 | ||
2667 | ||
2668 | namespace swig { | |
2669 | class PyObject_ptr { | |
2670 | protected: | |
2671 | PyObject *_obj; | |
2672 | ||
2673 | public: | |
2674 | PyObject_ptr() :_obj(0) | |
2675 | { | |
2676 | } | |
2677 | ||
2678 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2679 | { | |
2680 | Py_XINCREF(_obj); | |
2681 | } | |
2682 | ||
2683 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2684 | { | |
2685 | if (initial_ref) Py_XINCREF(_obj); | |
2686 | } | |
2687 | ||
2688 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2689 | { | |
2690 | Py_XINCREF(item._obj); | |
2691 | Py_XDECREF(_obj); | |
2692 | _obj = item._obj; | |
2693 | return *this; | |
2694 | } | |
2695 | ||
2696 | ~PyObject_ptr() | |
2697 | { | |
2698 | Py_XDECREF(_obj); | |
2699 | } | |
2700 | ||
2701 | operator PyObject *() const | |
2702 | { | |
2703 | return _obj; | |
2704 | } | |
2705 | ||
2706 | PyObject *operator->() const | |
2707 | { | |
2708 | return _obj; | |
2709 | } | |
2710 | }; | |
2711 | } | |
2712 | ||
2713 | ||
2714 | namespace swig { | |
2715 | struct PyObject_var : PyObject_ptr { | |
2716 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2717 | ||
2718 | PyObject_var & operator = (PyObject* obj) | |
2719 | { | |
2720 | Py_XDECREF(_obj); | |
2721 | _obj = obj; | |
2722 | return *this; | |
2723 | } | |
2724 | }; | |
2725 | } | |
2726 | ||
2727 | ||
2728 | #include "wx/wxPython/wxPython.h" | |
2729 | #include "wx/wxPython/pyclasses.h" | |
2730 | #include "wx/wxPython/printfw.h" | |
2731 | #include "wx/wxPython/twoitem.h" | |
2732 | ||
2733 | #include <wx/richtext/richtextctrl.h> | |
2734 | ||
2735 | ||
2736 | class wxEffects; | |
2737 | class wxBufferedDC; | |
2738 | class wxBufferedPaintDC; | |
2739 | class wxMetaFile; | |
2740 | class wxMetaFileDC; | |
2741 | class wxPrinterDC; | |
2742 | ||
2743 | ||
2744 | ||
2745 | #define SWIG_From_long PyInt_FromLong | |
2746 | ||
2747 | ||
2748 | SWIGINTERNINLINE PyObject * | |
2749 | SWIG_From_int (int value) | |
2750 | { | |
2751 | return SWIG_From_long (value); | |
2752 | } | |
2753 | ||
2754 | static const wxString wxPyEmptyString(wxEmptyString); | |
2755 | ||
2756 | ||
2757 | bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj) | |
2758 | { | |
2759 | if (source == Py_None) { | |
2760 | **obj = wxRICHTEXT_NONE; | |
2761 | return true; | |
2762 | } | |
2763 | return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange")); | |
2764 | } | |
2765 | ||
2766 | ||
2767 | SWIGINTERN int | |
2768 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2769 | { | |
2770 | if (PyNumber_Check(obj)) { | |
2771 | if (val) *val = PyInt_AsLong(obj); | |
2772 | return SWIG_OK; | |
2773 | } | |
2774 | return SWIG_TypeError; | |
2775 | } | |
2776 | ||
2777 | SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){ | |
2778 | wxRichTextRange temp, *obj = &temp; | |
2779 | if ( other == Py_None ) return false; | |
2780 | if ( ! wxRichTextRange_helper(other, &obj) ) { | |
2781 | PyErr_Clear(); | |
2782 | return false; | |
2783 | } | |
2784 | return self->operator==(*obj); | |
2785 | } | |
2786 | SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){ | |
2787 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2788 | PyObject* tup = PyTuple_New(2); | |
2789 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart())); | |
2790 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd())); | |
2791 | wxPyEndBlockThreads(blocked); | |
2792 | return tup; | |
2793 | } | |
2794 | ||
2795 | wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL); | |
2796 | wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE); | |
2797 | ||
2798 | ||
2799 | #include <limits.h> | |
2800 | #ifndef LLONG_MIN | |
2801 | # define LLONG_MIN LONG_LONG_MIN | |
2802 | #endif | |
2803 | #ifndef LLONG_MAX | |
2804 | # define LLONG_MAX LONG_LONG_MAX | |
2805 | #endif | |
2806 | #ifndef ULLONG_MAX | |
2807 | # define ULLONG_MAX ULONG_LONG_MAX | |
2808 | #endif | |
2809 | ||
2810 | ||
2811 | SWIGINTERN int | |
2812 | SWIG_AsVal_int (PyObject * obj, int *val) | |
2813 | { | |
2814 | long v; | |
2815 | int res = SWIG_AsVal_long (obj, &v); | |
2816 | if (SWIG_IsOK(res)) { | |
2817 | if ((v < INT_MIN || v > INT_MAX)) { | |
2818 | return SWIG_OverflowError; | |
2819 | } else { | |
2820 | if (val) *val = static_cast< int >(v); | |
2821 | } | |
2822 | } | |
2823 | return res; | |
2824 | } | |
2825 | ||
2826 | ||
2827 | SWIGINTERN int | |
2828 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2829 | { | |
2830 | if (obj == Py_True) { | |
2831 | if (val) *val = true; | |
2832 | return SWIG_OK; | |
2833 | } else if (obj == Py_False) { | |
2834 | if (val) *val = false; | |
2835 | return SWIG_OK; | |
2836 | } else { | |
2837 | long v = 0; | |
2838 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2839 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2840 | return res; | |
2841 | } | |
2842 | } | |
2843 | ||
2844 | ||
2845 | SWIGINTERN int | |
2846 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2847 | { | |
2848 | long v = 0; | |
2849 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2850 | return SWIG_TypeError; | |
2851 | } | |
2852 | else if (val) | |
2853 | *val = (unsigned long)v; | |
2854 | return SWIG_OK; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | SWIGINTERN swig_type_info* | |
2859 | SWIG_pchar_descriptor() | |
2860 | { | |
2861 | static int init = 0; | |
2862 | static swig_type_info* info = 0; | |
2863 | if (!init) { | |
2864 | info = SWIG_TypeQuery("_p_char"); | |
2865 | init = 1; | |
2866 | } | |
2867 | return info; | |
2868 | } | |
2869 | ||
2870 | ||
2871 | SWIGINTERN int | |
2872 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) | |
2873 | { | |
2874 | if (PyString_Check(obj)) { | |
4f89b6b7 | 2875 | char *cstr; Py_ssize_t len; |
06810ecf RD |
2876 | PyString_AsStringAndSize(obj, &cstr, &len); |
2877 | if (cptr) { | |
2878 | if (alloc) { | |
2879 | /* | |
2880 | In python the user should not be able to modify the inner | |
2881 | string representation. To warranty that, if you define | |
2882 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string | |
2883 | buffer is always returned. | |
2884 | ||
2885 | The default behavior is just to return the pointer value, | |
2886 | so, be careful. | |
2887 | */ | |
2888 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) | |
2889 | if (*alloc != SWIG_OLDOBJ) | |
2890 | #else | |
2891 | if (*alloc == SWIG_NEWOBJ) | |
2892 | #endif | |
2893 | { | |
2894 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); | |
2895 | *alloc = SWIG_NEWOBJ; | |
2896 | } | |
2897 | else { | |
2898 | *cptr = cstr; | |
2899 | *alloc = SWIG_OLDOBJ; | |
2900 | } | |
2901 | } else { | |
2902 | *cptr = PyString_AsString(obj); | |
2903 | } | |
2904 | } | |
2905 | if (psize) *psize = len + 1; | |
2906 | return SWIG_OK; | |
2907 | } else { | |
2908 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); | |
2909 | if (pchar_descriptor) { | |
2910 | void* vptr = 0; | |
2911 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { | |
2912 | if (cptr) *cptr = (char *) vptr; | |
2913 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; | |
2914 | if (alloc) *alloc = SWIG_OLDOBJ; | |
2915 | return SWIG_OK; | |
2916 | } | |
2917 | } | |
2918 | } | |
2919 | return SWIG_TypeError; | |
2920 | } | |
2921 | ||
2922 | ||
2923 | SWIGINTERN int | |
2924 | SWIG_AsCharArray(PyObject * obj, char *val, size_t size) | |
2925 | { | |
2926 | char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; | |
2927 | int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); | |
2928 | if (SWIG_IsOK(res)) { | |
2929 | if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; | |
2930 | if (csize <= size) { | |
2931 | if (val) { | |
2932 | if (csize) memcpy(val, cptr, csize*sizeof(char)); | |
2933 | if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); | |
2934 | } | |
2935 | if (alloc == SWIG_NEWOBJ) { | |
2936 | delete[] cptr; | |
2937 | res = SWIG_DelNewMask(res); | |
2938 | } | |
2939 | return res; | |
2940 | } | |
2941 | if (alloc == SWIG_NEWOBJ) delete[] cptr; | |
2942 | } | |
2943 | return SWIG_TypeError; | |
2944 | } | |
2945 | ||
2946 | ||
2947 | SWIGINTERN int | |
2948 | SWIG_AsVal_char (PyObject * obj, char *val) | |
2949 | { | |
2950 | int res = SWIG_AsCharArray(obj, val, 1); | |
2951 | if (!SWIG_IsOK(res)) { | |
2952 | long v; | |
2953 | res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); | |
2954 | if (SWIG_IsOK(res)) { | |
2955 | if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { | |
2956 | if (val) *val = static_cast< char >(v); | |
2957 | } else { | |
2958 | res = SWIG_OverflowError; | |
2959 | } | |
2960 | } | |
2961 | } | |
2962 | return res; | |
2963 | } | |
2964 | ||
2965 | #ifdef __cplusplus | |
2966 | extern "C" { | |
2967 | #endif | |
2968 | SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2969 | PyObject *resultobj = 0; | |
2970 | long arg1 = (long) 0 ; | |
2971 | long arg2 = (long) 0 ; | |
2972 | wxRichTextRange *result = 0 ; | |
2973 | long val1 ; | |
2974 | int ecode1 = 0 ; | |
2975 | long val2 ; | |
2976 | int ecode2 = 0 ; | |
2977 | PyObject * obj0 = 0 ; | |
2978 | PyObject * obj1 = 0 ; | |
2979 | char * kwnames[] = { | |
2980 | (char *) "start",(char *) "end", NULL | |
2981 | }; | |
2982 | ||
2983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
2984 | if (obj0) { | |
2985 | ecode1 = SWIG_AsVal_long(obj0, &val1); | |
2986 | if (!SWIG_IsOK(ecode1)) { | |
2987 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'"); | |
2988 | } | |
2989 | arg1 = static_cast< long >(val1); | |
2990 | } | |
2991 | if (obj1) { | |
2992 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
2993 | if (!SWIG_IsOK(ecode2)) { | |
2994 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'"); | |
2995 | } | |
2996 | arg2 = static_cast< long >(val2); | |
2997 | } | |
2998 | { | |
2999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3000 | result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2); | |
3001 | wxPyEndAllowThreads(__tstate); | |
3002 | if (PyErr_Occurred()) SWIG_fail; | |
3003 | } | |
3004 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 ); | |
3005 | return resultobj; | |
3006 | fail: | |
3007 | return NULL; | |
3008 | } | |
3009 | ||
3010 | ||
3011 | SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3012 | PyObject *resultobj = 0; | |
3013 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3014 | void *argp1 = 0 ; | |
3015 | int res1 = 0 ; | |
3016 | PyObject *swig_obj[1] ; | |
3017 | ||
3018 | if (!args) SWIG_fail; | |
3019 | swig_obj[0] = args; | |
3020 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 ); | |
3021 | if (!SWIG_IsOK(res1)) { | |
3022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3023 | } | |
3024 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3025 | { | |
3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3027 | delete arg1; | |
3028 | ||
3029 | wxPyEndAllowThreads(__tstate); | |
3030 | if (PyErr_Occurred()) SWIG_fail; | |
3031 | } | |
3032 | resultobj = SWIG_Py_Void(); | |
3033 | return resultobj; | |
3034 | fail: | |
3035 | return NULL; | |
3036 | } | |
3037 | ||
3038 | ||
3039 | SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3040 | PyObject *resultobj = 0; | |
3041 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3042 | PyObject *arg2 = (PyObject *) 0 ; | |
3043 | bool result; | |
3044 | void *argp1 = 0 ; | |
3045 | int res1 = 0 ; | |
3046 | PyObject * obj0 = 0 ; | |
3047 | PyObject * obj1 = 0 ; | |
3048 | char * kwnames[] = { | |
3049 | (char *) "self",(char *) "other", NULL | |
3050 | }; | |
3051 | ||
3052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3054 | if (!SWIG_IsOK(res1)) { | |
3055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3056 | } | |
3057 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3058 | arg2 = obj1; | |
3059 | { | |
3060 | result = (bool)wxRichTextRange___eq__(arg1,arg2); | |
3061 | if (PyErr_Occurred()) SWIG_fail; | |
3062 | } | |
3063 | { | |
3064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3065 | } | |
3066 | return resultobj; | |
3067 | fail: | |
3068 | return NULL; | |
3069 | } | |
3070 | ||
3071 | ||
3072 | SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3073 | PyObject *resultobj = 0; | |
3074 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3075 | wxRichTextRange *arg2 = 0 ; | |
3076 | wxRichTextRange result; | |
3077 | void *argp1 = 0 ; | |
3078 | int res1 = 0 ; | |
3079 | wxRichTextRange temp2 ; | |
3080 | PyObject * obj0 = 0 ; | |
3081 | PyObject * obj1 = 0 ; | |
3082 | char * kwnames[] = { | |
3083 | (char *) "self",(char *) "range", NULL | |
3084 | }; | |
3085 | ||
3086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3088 | if (!SWIG_IsOK(res1)) { | |
3089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3090 | } | |
3091 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3092 | { | |
3093 | arg2 = &temp2; | |
3094 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3095 | } | |
3096 | { | |
3097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3098 | result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2); | |
3099 | wxPyEndAllowThreads(__tstate); | |
3100 | if (PyErr_Occurred()) SWIG_fail; | |
3101 | } | |
3102 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
3103 | return resultobj; | |
3104 | fail: | |
3105 | return NULL; | |
3106 | } | |
3107 | ||
3108 | ||
3109 | SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3110 | PyObject *resultobj = 0; | |
3111 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3112 | wxRichTextRange *arg2 = 0 ; | |
3113 | wxRichTextRange result; | |
3114 | void *argp1 = 0 ; | |
3115 | int res1 = 0 ; | |
3116 | wxRichTextRange temp2 ; | |
3117 | PyObject * obj0 = 0 ; | |
3118 | PyObject * obj1 = 0 ; | |
3119 | char * kwnames[] = { | |
3120 | (char *) "self",(char *) "range", NULL | |
3121 | }; | |
3122 | ||
3123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3125 | if (!SWIG_IsOK(res1)) { | |
3126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3127 | } | |
3128 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3129 | { | |
3130 | arg2 = &temp2; | |
3131 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3132 | } | |
3133 | { | |
3134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3135 | result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2); | |
3136 | wxPyEndAllowThreads(__tstate); | |
3137 | if (PyErr_Occurred()) SWIG_fail; | |
3138 | } | |
3139 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
3140 | return resultobj; | |
3141 | fail: | |
3142 | return NULL; | |
3143 | } | |
3144 | ||
3145 | ||
3146 | SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3147 | PyObject *resultobj = 0; | |
3148 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3149 | long arg2 ; | |
3150 | long arg3 ; | |
3151 | void *argp1 = 0 ; | |
3152 | int res1 = 0 ; | |
3153 | long val2 ; | |
3154 | int ecode2 = 0 ; | |
3155 | long val3 ; | |
3156 | int ecode3 = 0 ; | |
3157 | PyObject * obj0 = 0 ; | |
3158 | PyObject * obj1 = 0 ; | |
3159 | PyObject * obj2 = 0 ; | |
3160 | char * kwnames[] = { | |
3161 | (char *) "self",(char *) "start",(char *) "end", NULL | |
3162 | }; | |
3163 | ||
3164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3166 | if (!SWIG_IsOK(res1)) { | |
3167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3168 | } | |
3169 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3170 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3171 | if (!SWIG_IsOK(ecode2)) { | |
3172 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'"); | |
3173 | } | |
3174 | arg2 = static_cast< long >(val2); | |
3175 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
3176 | if (!SWIG_IsOK(ecode3)) { | |
3177 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'"); | |
3178 | } | |
3179 | arg3 = static_cast< long >(val3); | |
3180 | { | |
3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3182 | (arg1)->SetRange(arg2,arg3); | |
3183 | wxPyEndAllowThreads(__tstate); | |
3184 | if (PyErr_Occurred()) SWIG_fail; | |
3185 | } | |
3186 | resultobj = SWIG_Py_Void(); | |
3187 | return resultobj; | |
3188 | fail: | |
3189 | return NULL; | |
3190 | } | |
3191 | ||
3192 | ||
3193 | SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3194 | PyObject *resultobj = 0; | |
3195 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3196 | long arg2 ; | |
3197 | void *argp1 = 0 ; | |
3198 | int res1 = 0 ; | |
3199 | long val2 ; | |
3200 | int ecode2 = 0 ; | |
3201 | PyObject * obj0 = 0 ; | |
3202 | PyObject * obj1 = 0 ; | |
3203 | char * kwnames[] = { | |
3204 | (char *) "self",(char *) "start", NULL | |
3205 | }; | |
3206 | ||
3207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
3208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3209 | if (!SWIG_IsOK(res1)) { | |
3210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3211 | } | |
3212 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3213 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3214 | if (!SWIG_IsOK(ecode2)) { | |
3215 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'"); | |
3216 | } | |
3217 | arg2 = static_cast< long >(val2); | |
3218 | { | |
3219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3220 | (arg1)->SetStart(arg2); | |
3221 | wxPyEndAllowThreads(__tstate); | |
3222 | if (PyErr_Occurred()) SWIG_fail; | |
3223 | } | |
3224 | resultobj = SWIG_Py_Void(); | |
3225 | return resultobj; | |
3226 | fail: | |
3227 | return NULL; | |
3228 | } | |
3229 | ||
3230 | ||
3231 | SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3232 | PyObject *resultobj = 0; | |
3233 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3234 | long result; | |
3235 | void *argp1 = 0 ; | |
3236 | int res1 = 0 ; | |
3237 | PyObject *swig_obj[1] ; | |
3238 | ||
3239 | if (!args) SWIG_fail; | |
3240 | swig_obj[0] = args; | |
3241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3242 | if (!SWIG_IsOK(res1)) { | |
3243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3244 | } | |
3245 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3246 | { | |
3247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3248 | result = (long)((wxRichTextRange const *)arg1)->GetStart(); | |
3249 | wxPyEndAllowThreads(__tstate); | |
3250 | if (PyErr_Occurred()) SWIG_fail; | |
3251 | } | |
3252 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3253 | return resultobj; | |
3254 | fail: | |
3255 | return NULL; | |
3256 | } | |
3257 | ||
3258 | ||
3259 | SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3260 | PyObject *resultobj = 0; | |
3261 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3262 | long arg2 ; | |
3263 | void *argp1 = 0 ; | |
3264 | int res1 = 0 ; | |
3265 | long val2 ; | |
3266 | int ecode2 = 0 ; | |
3267 | PyObject * obj0 = 0 ; | |
3268 | PyObject * obj1 = 0 ; | |
3269 | char * kwnames[] = { | |
3270 | (char *) "self",(char *) "end", NULL | |
3271 | }; | |
3272 | ||
3273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
3274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3275 | if (!SWIG_IsOK(res1)) { | |
3276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3277 | } | |
3278 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3279 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3280 | if (!SWIG_IsOK(ecode2)) { | |
3281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'"); | |
3282 | } | |
3283 | arg2 = static_cast< long >(val2); | |
3284 | { | |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | (arg1)->SetEnd(arg2); | |
3287 | wxPyEndAllowThreads(__tstate); | |
3288 | if (PyErr_Occurred()) SWIG_fail; | |
3289 | } | |
3290 | resultobj = SWIG_Py_Void(); | |
3291 | return resultobj; | |
3292 | fail: | |
3293 | return NULL; | |
3294 | } | |
3295 | ||
3296 | ||
3297 | SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3298 | PyObject *resultobj = 0; | |
3299 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3300 | long result; | |
3301 | void *argp1 = 0 ; | |
3302 | int res1 = 0 ; | |
3303 | PyObject *swig_obj[1] ; | |
3304 | ||
3305 | if (!args) SWIG_fail; | |
3306 | swig_obj[0] = args; | |
3307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3308 | if (!SWIG_IsOK(res1)) { | |
3309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3310 | } | |
3311 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3312 | { | |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3314 | result = (long)((wxRichTextRange const *)arg1)->GetEnd(); | |
3315 | wxPyEndAllowThreads(__tstate); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3319 | return resultobj; | |
3320 | fail: | |
3321 | return NULL; | |
3322 | } | |
3323 | ||
3324 | ||
3325 | SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3326 | PyObject *resultobj = 0; | |
3327 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3328 | wxRichTextRange *arg2 = 0 ; | |
3329 | bool result; | |
3330 | void *argp1 = 0 ; | |
3331 | int res1 = 0 ; | |
3332 | wxRichTextRange temp2 ; | |
3333 | PyObject * obj0 = 0 ; | |
3334 | PyObject * obj1 = 0 ; | |
3335 | char * kwnames[] = { | |
3336 | (char *) "self",(char *) "range", NULL | |
3337 | }; | |
3338 | ||
3339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail; | |
3340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3341 | if (!SWIG_IsOK(res1)) { | |
3342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3343 | } | |
3344 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3345 | { | |
3346 | arg2 = &temp2; | |
3347 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2); | |
3352 | wxPyEndAllowThreads(__tstate); | |
3353 | if (PyErr_Occurred()) SWIG_fail; | |
3354 | } | |
3355 | { | |
3356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3357 | } | |
3358 | return resultobj; | |
3359 | fail: | |
3360 | return NULL; | |
3361 | } | |
3362 | ||
3363 | ||
3364 | SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3365 | PyObject *resultobj = 0; | |
3366 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3367 | wxRichTextRange *arg2 = 0 ; | |
3368 | bool result; | |
3369 | void *argp1 = 0 ; | |
3370 | int res1 = 0 ; | |
3371 | wxRichTextRange temp2 ; | |
3372 | PyObject * obj0 = 0 ; | |
3373 | PyObject * obj1 = 0 ; | |
3374 | char * kwnames[] = { | |
3375 | (char *) "self",(char *) "range", NULL | |
3376 | }; | |
3377 | ||
3378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail; | |
3379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3380 | if (!SWIG_IsOK(res1)) { | |
3381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3382 | } | |
3383 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3384 | { | |
3385 | arg2 = &temp2; | |
3386 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3387 | } | |
3388 | { | |
3389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3390 | result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2); | |
3391 | wxPyEndAllowThreads(__tstate); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | { | |
3395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3396 | } | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj = 0; | |
3405 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3406 | long arg2 ; | |
3407 | bool result; | |
3408 | void *argp1 = 0 ; | |
3409 | int res1 = 0 ; | |
3410 | long val2 ; | |
3411 | int ecode2 = 0 ; | |
3412 | PyObject * obj0 = 0 ; | |
3413 | PyObject * obj1 = 0 ; | |
3414 | char * kwnames[] = { | |
3415 | (char *) "self",(char *) "pos", NULL | |
3416 | }; | |
3417 | ||
3418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail; | |
3419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3420 | if (!SWIG_IsOK(res1)) { | |
3421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3422 | } | |
3423 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3424 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3425 | if (!SWIG_IsOK(ecode2)) { | |
3426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'"); | |
3427 | } | |
3428 | arg2 = static_cast< long >(val2); | |
3429 | { | |
3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3431 | result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2); | |
3432 | wxPyEndAllowThreads(__tstate); | |
3433 | if (PyErr_Occurred()) SWIG_fail; | |
3434 | } | |
3435 | { | |
3436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3437 | } | |
3438 | return resultobj; | |
3439 | fail: | |
3440 | return NULL; | |
3441 | } | |
3442 | ||
3443 | ||
3444 | SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3445 | PyObject *resultobj = 0; | |
3446 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3447 | wxRichTextRange *arg2 = 0 ; | |
3448 | bool result; | |
3449 | void *argp1 = 0 ; | |
3450 | int res1 = 0 ; | |
3451 | wxRichTextRange temp2 ; | |
3452 | PyObject * obj0 = 0 ; | |
3453 | PyObject * obj1 = 0 ; | |
3454 | char * kwnames[] = { | |
3455 | (char *) "self",(char *) "range", NULL | |
3456 | }; | |
3457 | ||
3458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
3459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3460 | if (!SWIG_IsOK(res1)) { | |
3461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3462 | } | |
3463 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3464 | { | |
3465 | arg2 = &temp2; | |
3466 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3467 | } | |
3468 | { | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3470 | result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2); | |
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
3473 | } | |
3474 | { | |
3475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3476 | } | |
3477 | return resultobj; | |
3478 | fail: | |
3479 | return NULL; | |
3480 | } | |
3481 | ||
3482 | ||
3483 | SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3484 | PyObject *resultobj = 0; | |
3485 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3486 | long result; | |
3487 | void *argp1 = 0 ; | |
3488 | int res1 = 0 ; | |
3489 | PyObject *swig_obj[1] ; | |
3490 | ||
3491 | if (!args) SWIG_fail; | |
3492 | swig_obj[0] = args; | |
3493 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3494 | if (!SWIG_IsOK(res1)) { | |
3495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3496 | } | |
3497 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3498 | { | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | result = (long)((wxRichTextRange const *)arg1)->GetLength(); | |
3501 | wxPyEndAllowThreads(__tstate); | |
3502 | if (PyErr_Occurred()) SWIG_fail; | |
3503 | } | |
3504 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3505 | return resultobj; | |
3506 | fail: | |
3507 | return NULL; | |
3508 | } | |
3509 | ||
3510 | ||
3511 | SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3512 | PyObject *resultobj = 0; | |
3513 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3514 | void *argp1 = 0 ; | |
3515 | int res1 = 0 ; | |
3516 | PyObject *swig_obj[1] ; | |
3517 | ||
3518 | if (!args) SWIG_fail; | |
3519 | swig_obj[0] = args; | |
3520 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3521 | if (!SWIG_IsOK(res1)) { | |
3522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3523 | } | |
3524 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3525 | { | |
3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3527 | (arg1)->Swap(); | |
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
3531 | resultobj = SWIG_Py_Void(); | |
3532 | return resultobj; | |
3533 | fail: | |
3534 | return NULL; | |
3535 | } | |
3536 | ||
3537 | ||
3538 | SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3539 | PyObject *resultobj = 0; | |
3540 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3541 | PyObject *result = 0 ; | |
3542 | void *argp1 = 0 ; | |
3543 | int res1 = 0 ; | |
3544 | PyObject *swig_obj[1] ; | |
3545 | ||
3546 | if (!args) SWIG_fail; | |
3547 | swig_obj[0] = args; | |
3548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3549 | if (!SWIG_IsOK(res1)) { | |
3550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3551 | } | |
3552 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3555 | result = (PyObject *)wxRichTextRange_Get(arg1); | |
3556 | wxPyEndAllowThreads(__tstate); | |
3557 | if (PyErr_Occurred()) SWIG_fail; | |
3558 | } | |
3559 | resultobj = result; | |
3560 | return resultobj; | |
3561 | fail: | |
3562 | return NULL; | |
3563 | } | |
3564 | ||
3565 | ||
3566 | SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3567 | PyObject *obj; | |
3568 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3569 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj)); | |
3570 | return SWIG_Py_Void(); | |
3571 | } | |
3572 | ||
3573 | SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3574 | return SWIG_Python_InitShadowInstance(args); | |
3575 | } | |
3576 | ||
3577 | SWIGINTERN int RICHTEXT_ALL_set(PyObject *) { | |
3578 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only."); | |
3579 | return 1; | |
3580 | } | |
3581 | ||
3582 | ||
3583 | SWIGINTERN PyObject *RICHTEXT_ALL_get(void) { | |
3584 | PyObject *pyobj = 0; | |
3585 | ||
3586 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3587 | return pyobj; | |
3588 | } | |
3589 | ||
3590 | ||
3591 | SWIGINTERN int RICHTEXT_NONE_set(PyObject *) { | |
3592 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only."); | |
3593 | return 1; | |
3594 | } | |
3595 | ||
3596 | ||
3597 | SWIGINTERN PyObject *RICHTEXT_NONE_get(void) { | |
3598 | PyObject *pyobj = 0; | |
3599 | ||
3600 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3601 | return pyobj; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj = 0; | |
3607 | wxColour const &arg1_defvalue = wxNullColour ; | |
3608 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
3609 | wxColour const &arg2_defvalue = wxNullColour ; | |
3610 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3611 | wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
3612 | wxRichTextAttr *result = 0 ; | |
3613 | wxColour temp1 ; | |
3614 | wxColour temp2 ; | |
3615 | int val3 ; | |
3616 | int ecode3 = 0 ; | |
3617 | PyObject * obj0 = 0 ; | |
3618 | PyObject * obj1 = 0 ; | |
3619 | PyObject * obj2 = 0 ; | |
3620 | char * kwnames[] = { | |
3621 | (char *) "colText",(char *) "colBack",(char *) "alignment", NULL | |
3622 | }; | |
3623 | ||
3624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3625 | if (obj0) { | |
3626 | { | |
3627 | arg1 = &temp1; | |
3628 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3629 | } | |
3630 | } | |
3631 | if (obj1) { | |
3632 | { | |
3633 | arg2 = &temp2; | |
3634 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3635 | } | |
3636 | } | |
3637 | if (obj2) { | |
3638 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3639 | if (!SWIG_IsOK(ecode3)) { | |
3640 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'"); | |
3641 | } | |
3642 | arg3 = static_cast< wxTextAttrAlignment >(val3); | |
3643 | } | |
3644 | { | |
3645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3646 | result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3); | |
3647 | wxPyEndAllowThreads(__tstate); | |
3648 | if (PyErr_Occurred()) SWIG_fail; | |
3649 | } | |
3650 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 ); | |
3651 | return resultobj; | |
3652 | fail: | |
3653 | return NULL; | |
3654 | } | |
3655 | ||
3656 | ||
3657 | SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3658 | PyObject *resultobj = 0; | |
3659 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3660 | void *argp1 = 0 ; | |
3661 | int res1 = 0 ; | |
3662 | PyObject *swig_obj[1] ; | |
3663 | ||
3664 | if (!args) SWIG_fail; | |
3665 | swig_obj[0] = args; | |
3666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
3667 | if (!SWIG_IsOK(res1)) { | |
3668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3669 | } | |
3670 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3671 | { | |
3672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3673 | delete arg1; | |
3674 | ||
3675 | wxPyEndAllowThreads(__tstate); | |
3676 | if (PyErr_Occurred()) SWIG_fail; | |
3677 | } | |
3678 | resultobj = SWIG_Py_Void(); | |
3679 | return resultobj; | |
3680 | fail: | |
3681 | return NULL; | |
3682 | } | |
3683 | ||
3684 | ||
3685 | SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3686 | PyObject *resultobj = 0; | |
3687 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
92515dfc | 3688 | wxFont result; |
06810ecf RD |
3689 | void *argp1 = 0 ; |
3690 | int res1 = 0 ; | |
3691 | PyObject *swig_obj[1] ; | |
3692 | ||
3693 | if (!args) SWIG_fail; | |
3694 | swig_obj[0] = args; | |
3695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3696 | if (!SWIG_IsOK(res1)) { | |
3697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
3698 | } | |
3699 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3700 | { | |
3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3702 | result = ((wxRichTextAttr const *)arg1)->CreateFont(); | |
3703 | wxPyEndAllowThreads(__tstate); | |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
3705 | } | |
3706 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
3707 | return resultobj; | |
3708 | fail: | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
3713 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3714 | PyObject *resultobj = 0; | |
3715 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3716 | wxFont *arg2 = 0 ; | |
3717 | bool result; | |
3718 | void *argp1 = 0 ; | |
3719 | int res1 = 0 ; | |
3720 | void *argp2 = 0 ; | |
3721 | int res2 = 0 ; | |
3722 | PyObject * obj0 = 0 ; | |
3723 | PyObject * obj1 = 0 ; | |
3724 | char * kwnames[] = { | |
3725 | (char *) "self",(char *) "font", NULL | |
3726 | }; | |
3727 | ||
3728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail; | |
3729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3730 | if (!SWIG_IsOK(res1)) { | |
3731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3732 | } | |
3733 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3734 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
3735 | if (!SWIG_IsOK(res2)) { | |
3736 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3737 | } | |
3738 | if (!argp2) { | |
3739 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3740 | } | |
3741 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
3742 | { | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2); | |
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | { | |
3749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3750 | } | |
3751 | return resultobj; | |
3752 | fail: | |
3753 | return NULL; | |
3754 | } | |
3755 | ||
3756 | ||
3757 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3758 | PyObject *resultobj = 0; | |
3759 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3760 | wxColour *arg2 = 0 ; | |
3761 | void *argp1 = 0 ; | |
3762 | int res1 = 0 ; | |
3763 | wxColour temp2 ; | |
3764 | PyObject * obj0 = 0 ; | |
3765 | PyObject * obj1 = 0 ; | |
3766 | char * kwnames[] = { | |
3767 | (char *) "self",(char *) "colText", NULL | |
3768 | }; | |
3769 | ||
3770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3772 | if (!SWIG_IsOK(res1)) { | |
3773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3774 | } | |
3775 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3776 | { | |
3777 | arg2 = &temp2; | |
3778 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3779 | } | |
3780 | { | |
3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3782 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3783 | wxPyEndAllowThreads(__tstate); | |
3784 | if (PyErr_Occurred()) SWIG_fail; | |
3785 | } | |
3786 | resultobj = SWIG_Py_Void(); | |
3787 | return resultobj; | |
3788 | fail: | |
3789 | return NULL; | |
3790 | } | |
3791 | ||
3792 | ||
3793 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3794 | PyObject *resultobj = 0; | |
3795 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3796 | wxColour *arg2 = 0 ; | |
3797 | void *argp1 = 0 ; | |
3798 | int res1 = 0 ; | |
3799 | wxColour temp2 ; | |
3800 | PyObject * obj0 = 0 ; | |
3801 | PyObject * obj1 = 0 ; | |
3802 | char * kwnames[] = { | |
3803 | (char *) "self",(char *) "colBack", NULL | |
3804 | }; | |
3805 | ||
3806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3808 | if (!SWIG_IsOK(res1)) { | |
3809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3810 | } | |
3811 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3812 | { | |
3813 | arg2 = &temp2; | |
3814 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3815 | } | |
3816 | { | |
3817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3818 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3819 | wxPyEndAllowThreads(__tstate); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
3822 | resultobj = SWIG_Py_Void(); | |
3823 | return resultobj; | |
3824 | fail: | |
3825 | return NULL; | |
3826 | } | |
3827 | ||
3828 | ||
3829 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3830 | PyObject *resultobj = 0; | |
3831 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3832 | wxTextAttrAlignment arg2 ; | |
3833 | void *argp1 = 0 ; | |
3834 | int res1 = 0 ; | |
3835 | int val2 ; | |
3836 | int ecode2 = 0 ; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | PyObject * obj1 = 0 ; | |
3839 | char * kwnames[] = { | |
3840 | (char *) "self",(char *) "alignment", NULL | |
3841 | }; | |
3842 | ||
3843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
3844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3845 | if (!SWIG_IsOK(res1)) { | |
3846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3847 | } | |
3848 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3849 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3850 | if (!SWIG_IsOK(ecode2)) { | |
3851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
3852 | } | |
3853 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
3854 | { | |
3855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3856 | (arg1)->SetAlignment(arg2); | |
3857 | wxPyEndAllowThreads(__tstate); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
3859 | } | |
3860 | resultobj = SWIG_Py_Void(); | |
3861 | return resultobj; | |
3862 | fail: | |
3863 | return NULL; | |
3864 | } | |
3865 | ||
3866 | ||
3867 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3868 | PyObject *resultobj = 0; | |
3869 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3870 | wxArrayInt *arg2 = 0 ; | |
3871 | void *argp1 = 0 ; | |
3872 | int res1 = 0 ; | |
3873 | bool temp2 = false ; | |
3874 | PyObject * obj0 = 0 ; | |
3875 | PyObject * obj1 = 0 ; | |
3876 | char * kwnames[] = { | |
3877 | (char *) "self",(char *) "tabs", NULL | |
3878 | }; | |
3879 | ||
3880 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
3881 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3882 | if (!SWIG_IsOK(res1)) { | |
3883 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3884 | } | |
3885 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3886 | { | |
3887 | if (! PySequence_Check(obj1)) { | |
3888 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
3889 | SWIG_fail; | |
3890 | } | |
3891 | arg2 = new wxArrayInt; | |
3892 | temp2 = true; | |
3893 | int i, len=PySequence_Length(obj1); | |
3894 | for (i=0; i<len; i++) { | |
3895 | PyObject* item = PySequence_GetItem(obj1, i); | |
3896 | PyObject* number = PyNumber_Int(item); | |
3897 | arg2->Add(PyInt_AS_LONG(number)); | |
3898 | Py_DECREF(item); | |
3899 | Py_DECREF(number); | |
3900 | } | |
3901 | } | |
3902 | { | |
3903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3904 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
3905 | wxPyEndAllowThreads(__tstate); | |
3906 | if (PyErr_Occurred()) SWIG_fail; | |
3907 | } | |
3908 | resultobj = SWIG_Py_Void(); | |
3909 | { | |
3910 | if (temp2) delete arg2; | |
3911 | } | |
3912 | return resultobj; | |
3913 | fail: | |
3914 | { | |
3915 | if (temp2) delete arg2; | |
3916 | } | |
3917 | return NULL; | |
3918 | } | |
3919 | ||
3920 | ||
3921 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3922 | PyObject *resultobj = 0; | |
3923 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3924 | int arg2 ; | |
3925 | int arg3 = (int) 0 ; | |
3926 | void *argp1 = 0 ; | |
3927 | int res1 = 0 ; | |
3928 | int val2 ; | |
3929 | int ecode2 = 0 ; | |
3930 | int val3 ; | |
3931 | int ecode3 = 0 ; | |
3932 | PyObject * obj0 = 0 ; | |
3933 | PyObject * obj1 = 0 ; | |
3934 | PyObject * obj2 = 0 ; | |
3935 | char * kwnames[] = { | |
3936 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
3937 | }; | |
3938 | ||
3939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3941 | if (!SWIG_IsOK(res1)) { | |
3942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3943 | } | |
3944 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3945 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3946 | if (!SWIG_IsOK(ecode2)) { | |
3947 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
3948 | } | |
3949 | arg2 = static_cast< int >(val2); | |
3950 | if (obj2) { | |
3951 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3952 | if (!SWIG_IsOK(ecode3)) { | |
3953 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
3954 | } | |
3955 | arg3 = static_cast< int >(val3); | |
3956 | } | |
3957 | { | |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | (arg1)->SetLeftIndent(arg2,arg3); | |
3960 | wxPyEndAllowThreads(__tstate); | |
3961 | if (PyErr_Occurred()) SWIG_fail; | |
3962 | } | |
3963 | resultobj = SWIG_Py_Void(); | |
3964 | return resultobj; | |
3965 | fail: | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
3970 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3971 | PyObject *resultobj = 0; | |
3972 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3973 | int arg2 ; | |
3974 | void *argp1 = 0 ; | |
3975 | int res1 = 0 ; | |
3976 | int val2 ; | |
3977 | int ecode2 = 0 ; | |
3978 | PyObject * obj0 = 0 ; | |
3979 | PyObject * obj1 = 0 ; | |
3980 | char * kwnames[] = { | |
3981 | (char *) "self",(char *) "indent", NULL | |
3982 | }; | |
3983 | ||
3984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
3985 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3986 | if (!SWIG_IsOK(res1)) { | |
3987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3988 | } | |
3989 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3990 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3991 | if (!SWIG_IsOK(ecode2)) { | |
3992 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
3993 | } | |
3994 | arg2 = static_cast< int >(val2); | |
3995 | { | |
3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3997 | (arg1)->SetRightIndent(arg2); | |
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
4001 | resultobj = SWIG_Py_Void(); | |
4002 | return resultobj; | |
4003 | fail: | |
4004 | return NULL; | |
4005 | } | |
4006 | ||
4007 | ||
4008 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4009 | PyObject *resultobj = 0; | |
4010 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4011 | int arg2 ; | |
4012 | void *argp1 = 0 ; | |
4013 | int res1 = 0 ; | |
4014 | int val2 ; | |
4015 | int ecode2 = 0 ; | |
4016 | PyObject * obj0 = 0 ; | |
4017 | PyObject * obj1 = 0 ; | |
4018 | char * kwnames[] = { | |
4019 | (char *) "self",(char *) "pointSize", NULL | |
4020 | }; | |
4021 | ||
4022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
4023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4024 | if (!SWIG_IsOK(res1)) { | |
4025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4026 | } | |
4027 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4028 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4029 | if (!SWIG_IsOK(ecode2)) { | |
4030 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'"); | |
4031 | } | |
4032 | arg2 = static_cast< int >(val2); | |
4033 | { | |
4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4035 | (arg1)->SetFontSize(arg2); | |
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | resultobj = SWIG_Py_Void(); | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
4046 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4047 | PyObject *resultobj = 0; | |
4048 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4049 | int arg2 ; | |
4050 | void *argp1 = 0 ; | |
4051 | int res1 = 0 ; | |
4052 | int val2 ; | |
4053 | int ecode2 = 0 ; | |
4054 | PyObject * obj0 = 0 ; | |
4055 | PyObject * obj1 = 0 ; | |
4056 | char * kwnames[] = { | |
4057 | (char *) "self",(char *) "fontStyle", NULL | |
4058 | }; | |
4059 | ||
4060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4062 | if (!SWIG_IsOK(res1)) { | |
4063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4064 | } | |
4065 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4067 | if (!SWIG_IsOK(ecode2)) { | |
4068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'"); | |
4069 | } | |
4070 | arg2 = static_cast< int >(val2); | |
4071 | { | |
4072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4073 | (arg1)->SetFontStyle(arg2); | |
4074 | wxPyEndAllowThreads(__tstate); | |
4075 | if (PyErr_Occurred()) SWIG_fail; | |
4076 | } | |
4077 | resultobj = SWIG_Py_Void(); | |
4078 | return resultobj; | |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
4084 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4085 | PyObject *resultobj = 0; | |
4086 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4087 | int arg2 ; | |
4088 | void *argp1 = 0 ; | |
4089 | int res1 = 0 ; | |
4090 | int val2 ; | |
4091 | int ecode2 = 0 ; | |
4092 | PyObject * obj0 = 0 ; | |
4093 | PyObject * obj1 = 0 ; | |
4094 | char * kwnames[] = { | |
4095 | (char *) "self",(char *) "fontWeight", NULL | |
4096 | }; | |
4097 | ||
4098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
4099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4100 | if (!SWIG_IsOK(res1)) { | |
4101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4102 | } | |
4103 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4104 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4105 | if (!SWIG_IsOK(ecode2)) { | |
4106 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'"); | |
4107 | } | |
4108 | arg2 = static_cast< int >(val2); | |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | (arg1)->SetFontWeight(arg2); | |
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | resultobj = SWIG_Py_Void(); | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | return NULL; | |
4119 | } | |
4120 | ||
4121 | ||
4122 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4123 | PyObject *resultobj = 0; | |
4124 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4125 | wxString *arg2 = 0 ; | |
4126 | void *argp1 = 0 ; | |
4127 | int res1 = 0 ; | |
4128 | bool temp2 = false ; | |
4129 | PyObject * obj0 = 0 ; | |
4130 | PyObject * obj1 = 0 ; | |
4131 | char * kwnames[] = { | |
4132 | (char *) "self",(char *) "faceName", NULL | |
4133 | }; | |
4134 | ||
4135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4137 | if (!SWIG_IsOK(res1)) { | |
4138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4139 | } | |
4140 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4141 | { | |
4142 | arg2 = wxString_in_helper(obj1); | |
4143 | if (arg2 == NULL) SWIG_fail; | |
4144 | temp2 = true; | |
4145 | } | |
4146 | { | |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4148 | (arg1)->SetFontFaceName((wxString const &)*arg2); | |
4149 | wxPyEndAllowThreads(__tstate); | |
4150 | if (PyErr_Occurred()) SWIG_fail; | |
4151 | } | |
4152 | resultobj = SWIG_Py_Void(); | |
4153 | { | |
4154 | if (temp2) | |
4155 | delete arg2; | |
4156 | } | |
4157 | return resultobj; | |
4158 | fail: | |
4159 | { | |
4160 | if (temp2) | |
4161 | delete arg2; | |
4162 | } | |
4163 | return NULL; | |
4164 | } | |
4165 | ||
4166 | ||
4167 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4168 | PyObject *resultobj = 0; | |
4169 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4170 | bool arg2 ; | |
4171 | void *argp1 = 0 ; | |
4172 | int res1 = 0 ; | |
4173 | bool val2 ; | |
4174 | int ecode2 = 0 ; | |
4175 | PyObject * obj0 = 0 ; | |
4176 | PyObject * obj1 = 0 ; | |
4177 | char * kwnames[] = { | |
4178 | (char *) "self",(char *) "underlined", NULL | |
4179 | }; | |
4180 | ||
4181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
4182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4183 | if (!SWIG_IsOK(res1)) { | |
4184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4185 | } | |
4186 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4187 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4188 | if (!SWIG_IsOK(ecode2)) { | |
4189 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
4190 | } | |
4191 | arg2 = static_cast< bool >(val2); | |
4192 | { | |
4193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4194 | (arg1)->SetFontUnderlined(arg2); | |
4195 | wxPyEndAllowThreads(__tstate); | |
4196 | if (PyErr_Occurred()) SWIG_fail; | |
4197 | } | |
4198 | resultobj = SWIG_Py_Void(); | |
4199 | return resultobj; | |
4200 | fail: | |
4201 | return NULL; | |
4202 | } | |
4203 | ||
4204 | ||
4205 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4206 | PyObject *resultobj = 0; | |
4207 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4208 | long arg2 ; | |
4209 | void *argp1 = 0 ; | |
4210 | int res1 = 0 ; | |
4211 | long val2 ; | |
4212 | int ecode2 = 0 ; | |
4213 | PyObject * obj0 = 0 ; | |
4214 | PyObject * obj1 = 0 ; | |
4215 | char * kwnames[] = { | |
4216 | (char *) "self",(char *) "flags", NULL | |
4217 | }; | |
4218 | ||
4219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4221 | if (!SWIG_IsOK(res1)) { | |
4222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4223 | } | |
4224 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4225 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4226 | if (!SWIG_IsOK(ecode2)) { | |
4227 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
4228 | } | |
4229 | arg2 = static_cast< long >(val2); | |
4230 | { | |
4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4232 | (arg1)->SetFlags(arg2); | |
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | resultobj = SWIG_Py_Void(); | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj = 0; | |
4245 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4246 | wxString *arg2 = 0 ; | |
4247 | void *argp1 = 0 ; | |
4248 | int res1 = 0 ; | |
4249 | bool temp2 = false ; | |
4250 | PyObject * obj0 = 0 ; | |
4251 | PyObject * obj1 = 0 ; | |
4252 | char * kwnames[] = { | |
4253 | (char *) "self",(char *) "name", NULL | |
4254 | }; | |
4255 | ||
4256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4258 | if (!SWIG_IsOK(res1)) { | |
4259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4260 | } | |
4261 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4262 | { | |
4263 | arg2 = wxString_in_helper(obj1); | |
4264 | if (arg2 == NULL) SWIG_fail; | |
4265 | temp2 = true; | |
4266 | } | |
4267 | { | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | (arg1)->SetCharacterStyleName((wxString const &)*arg2); | |
4270 | wxPyEndAllowThreads(__tstate); | |
4271 | if (PyErr_Occurred()) SWIG_fail; | |
4272 | } | |
4273 | resultobj = SWIG_Py_Void(); | |
4274 | { | |
4275 | if (temp2) | |
4276 | delete arg2; | |
4277 | } | |
4278 | return resultobj; | |
4279 | fail: | |
4280 | { | |
4281 | if (temp2) | |
4282 | delete arg2; | |
4283 | } | |
4284 | return NULL; | |
4285 | } | |
4286 | ||
4287 | ||
4288 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4289 | PyObject *resultobj = 0; | |
4290 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4291 | wxString *arg2 = 0 ; | |
4292 | void *argp1 = 0 ; | |
4293 | int res1 = 0 ; | |
4294 | bool temp2 = false ; | |
4295 | PyObject * obj0 = 0 ; | |
4296 | PyObject * obj1 = 0 ; | |
4297 | char * kwnames[] = { | |
4298 | (char *) "self",(char *) "name", NULL | |
4299 | }; | |
4300 | ||
4301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4303 | if (!SWIG_IsOK(res1)) { | |
4304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4305 | } | |
4306 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4307 | { | |
4308 | arg2 = wxString_in_helper(obj1); | |
4309 | if (arg2 == NULL) SWIG_fail; | |
4310 | temp2 = true; | |
4311 | } | |
4312 | { | |
4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4314 | (arg1)->SetParagraphStyleName((wxString const &)*arg2); | |
4315 | wxPyEndAllowThreads(__tstate); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4318 | resultobj = SWIG_Py_Void(); | |
4319 | { | |
4320 | if (temp2) | |
4321 | delete arg2; | |
4322 | } | |
4323 | return resultobj; | |
4324 | fail: | |
4325 | { | |
4326 | if (temp2) | |
4327 | delete arg2; | |
4328 | } | |
4329 | return NULL; | |
4330 | } | |
4331 | ||
4332 | ||
4333 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4334 | PyObject *resultobj = 0; | |
4335 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4336 | int arg2 ; | |
4337 | void *argp1 = 0 ; | |
4338 | int res1 = 0 ; | |
4339 | int val2 ; | |
4340 | int ecode2 = 0 ; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | PyObject * obj1 = 0 ; | |
4343 | char * kwnames[] = { | |
4344 | (char *) "self",(char *) "spacing", NULL | |
4345 | }; | |
4346 | ||
4347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail; | |
4348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4349 | if (!SWIG_IsOK(res1)) { | |
4350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4351 | } | |
4352 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4353 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4354 | if (!SWIG_IsOK(ecode2)) { | |
4355 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'"); | |
4356 | } | |
4357 | arg2 = static_cast< int >(val2); | |
4358 | { | |
4359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4360 | (arg1)->SetParagraphSpacingAfter(arg2); | |
4361 | wxPyEndAllowThreads(__tstate); | |
4362 | if (PyErr_Occurred()) SWIG_fail; | |
4363 | } | |
4364 | resultobj = SWIG_Py_Void(); | |
4365 | return resultobj; | |
4366 | fail: | |
4367 | return NULL; | |
4368 | } | |
4369 | ||
4370 | ||
4371 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4372 | PyObject *resultobj = 0; | |
4373 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4374 | int arg2 ; | |
4375 | void *argp1 = 0 ; | |
4376 | int res1 = 0 ; | |
4377 | int val2 ; | |
4378 | int ecode2 = 0 ; | |
4379 | PyObject * obj0 = 0 ; | |
4380 | PyObject * obj1 = 0 ; | |
4381 | char * kwnames[] = { | |
4382 | (char *) "self",(char *) "spacing", NULL | |
4383 | }; | |
4384 | ||
4385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail; | |
4386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4387 | if (!SWIG_IsOK(res1)) { | |
4388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4389 | } | |
4390 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4391 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4392 | if (!SWIG_IsOK(ecode2)) { | |
4393 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'"); | |
4394 | } | |
4395 | arg2 = static_cast< int >(val2); | |
4396 | { | |
4397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4398 | (arg1)->SetParagraphSpacingBefore(arg2); | |
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
4402 | resultobj = SWIG_Py_Void(); | |
4403 | return resultobj; | |
4404 | fail: | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
4409 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4410 | PyObject *resultobj = 0; | |
4411 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4412 | int arg2 ; | |
4413 | void *argp1 = 0 ; | |
4414 | int res1 = 0 ; | |
4415 | int val2 ; | |
4416 | int ecode2 = 0 ; | |
4417 | PyObject * obj0 = 0 ; | |
4418 | PyObject * obj1 = 0 ; | |
4419 | char * kwnames[] = { | |
4420 | (char *) "self",(char *) "spacing", NULL | |
4421 | }; | |
4422 | ||
4423 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
4424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4425 | if (!SWIG_IsOK(res1)) { | |
4426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4427 | } | |
4428 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4429 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4430 | if (!SWIG_IsOK(ecode2)) { | |
4431 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
4432 | } | |
4433 | arg2 = static_cast< int >(val2); | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | (arg1)->SetLineSpacing(arg2); | |
4437 | wxPyEndAllowThreads(__tstate); | |
4438 | if (PyErr_Occurred()) SWIG_fail; | |
4439 | } | |
4440 | resultobj = SWIG_Py_Void(); | |
4441 | return resultobj; | |
4442 | fail: | |
4443 | return NULL; | |
4444 | } | |
4445 | ||
4446 | ||
4447 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4448 | PyObject *resultobj = 0; | |
4449 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4450 | int arg2 ; | |
4451 | void *argp1 = 0 ; | |
4452 | int res1 = 0 ; | |
4453 | int val2 ; | |
4454 | int ecode2 = 0 ; | |
4455 | PyObject * obj0 = 0 ; | |
4456 | PyObject * obj1 = 0 ; | |
4457 | char * kwnames[] = { | |
4458 | (char *) "self",(char *) "style", NULL | |
4459 | }; | |
4460 | ||
4461 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4463 | if (!SWIG_IsOK(res1)) { | |
4464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4465 | } | |
4466 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4467 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4468 | if (!SWIG_IsOK(ecode2)) { | |
4469 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'"); | |
4470 | } | |
4471 | arg2 = static_cast< int >(val2); | |
4472 | { | |
4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4474 | (arg1)->SetBulletStyle(arg2); | |
4475 | wxPyEndAllowThreads(__tstate); | |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
4477 | } | |
4478 | resultobj = SWIG_Py_Void(); | |
4479 | return resultobj; | |
4480 | fail: | |
4481 | return NULL; | |
4482 | } | |
4483 | ||
4484 | ||
4485 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4486 | PyObject *resultobj = 0; | |
4487 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4488 | int arg2 ; | |
4489 | void *argp1 = 0 ; | |
4490 | int res1 = 0 ; | |
4491 | int val2 ; | |
4492 | int ecode2 = 0 ; | |
4493 | PyObject * obj0 = 0 ; | |
4494 | PyObject * obj1 = 0 ; | |
4495 | char * kwnames[] = { | |
4496 | (char *) "self",(char *) "n", NULL | |
4497 | }; | |
4498 | ||
4499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail; | |
4500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4501 | if (!SWIG_IsOK(res1)) { | |
4502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4503 | } | |
4504 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4505 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4506 | if (!SWIG_IsOK(ecode2)) { | |
4507 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'"); | |
4508 | } | |
4509 | arg2 = static_cast< int >(val2); | |
4510 | { | |
4511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4512 | (arg1)->SetBulletNumber(arg2); | |
4513 | wxPyEndAllowThreads(__tstate); | |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
4515 | } | |
4516 | resultobj = SWIG_Py_Void(); | |
4517 | return resultobj; | |
4518 | fail: | |
4519 | return NULL; | |
4520 | } | |
4521 | ||
4522 | ||
4523 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4524 | PyObject *resultobj = 0; | |
4525 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4526 | wxChar arg2 ; | |
4527 | void *argp1 = 0 ; | |
4528 | int res1 = 0 ; | |
4529 | void *argp2 ; | |
4530 | int res2 = 0 ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | char * kwnames[] = { | |
4534 | (char *) "self",(char *) "symbol", NULL | |
4535 | }; | |
4536 | ||
4537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletSymbol",kwnames,&obj0,&obj1)) SWIG_fail; | |
4538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4539 | if (!SWIG_IsOK(res1)) { | |
4540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4541 | } | |
4542 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4543 | { | |
4544 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0); | |
4545 | if (!SWIG_IsOK(res2)) { | |
4546 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'"); | |
4547 | } | |
4548 | if (!argp2) { | |
4549 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'"); | |
4550 | } else { | |
4551 | wxChar * temp = reinterpret_cast< wxChar * >(argp2); | |
4552 | arg2 = *temp; | |
4553 | if (SWIG_IsNewObj(res2)) delete temp; | |
4554 | } | |
4555 | } | |
4556 | { | |
4557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4558 | (arg1)->SetBulletSymbol(arg2); | |
4559 | wxPyEndAllowThreads(__tstate); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
4561 | } | |
4562 | resultobj = SWIG_Py_Void(); | |
4563 | return resultobj; | |
4564 | fail: | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
4569 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4570 | PyObject *resultobj = 0; | |
4571 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4572 | wxColour *result = 0 ; | |
4573 | void *argp1 = 0 ; | |
4574 | int res1 = 0 ; | |
4575 | PyObject *swig_obj[1] ; | |
4576 | ||
4577 | if (!args) SWIG_fail; | |
4578 | swig_obj[0] = args; | |
4579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4580 | if (!SWIG_IsOK(res1)) { | |
4581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4582 | } | |
4583 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | { | |
4587 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour(); | |
4588 | result = (wxColour *) &_result_ref; | |
4589 | } | |
4590 | wxPyEndAllowThreads(__tstate); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4594 | return resultobj; | |
4595 | fail: | |
4596 | return NULL; | |
4597 | } | |
4598 | ||
4599 | ||
4600 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4601 | PyObject *resultobj = 0; | |
4602 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4603 | wxColour *result = 0 ; | |
4604 | void *argp1 = 0 ; | |
4605 | int res1 = 0 ; | |
4606 | PyObject *swig_obj[1] ; | |
4607 | ||
4608 | if (!args) SWIG_fail; | |
4609 | swig_obj[0] = args; | |
4610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4611 | if (!SWIG_IsOK(res1)) { | |
4612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4613 | } | |
4614 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4615 | { | |
4616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4617 | { | |
4618 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour(); | |
4619 | result = (wxColour *) &_result_ref; | |
4620 | } | |
4621 | wxPyEndAllowThreads(__tstate); | |
4622 | if (PyErr_Occurred()) SWIG_fail; | |
4623 | } | |
4624 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4625 | return resultobj; | |
4626 | fail: | |
4627 | return NULL; | |
4628 | } | |
4629 | ||
4630 | ||
4631 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4632 | PyObject *resultobj = 0; | |
4633 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4634 | wxTextAttrAlignment result; | |
4635 | void *argp1 = 0 ; | |
4636 | int res1 = 0 ; | |
4637 | PyObject *swig_obj[1] ; | |
4638 | ||
4639 | if (!args) SWIG_fail; | |
4640 | swig_obj[0] = args; | |
4641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4642 | if (!SWIG_IsOK(res1)) { | |
4643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4644 | } | |
4645 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4646 | { | |
4647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4648 | result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment(); | |
4649 | wxPyEndAllowThreads(__tstate); | |
4650 | if (PyErr_Occurred()) SWIG_fail; | |
4651 | } | |
4652 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4653 | return resultobj; | |
4654 | fail: | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
4659 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4660 | PyObject *resultobj = 0; | |
4661 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4662 | wxArrayInt *result = 0 ; | |
4663 | void *argp1 = 0 ; | |
4664 | int res1 = 0 ; | |
4665 | PyObject *swig_obj[1] ; | |
4666 | ||
4667 | if (!args) SWIG_fail; | |
4668 | swig_obj[0] = args; | |
4669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4670 | if (!SWIG_IsOK(res1)) { | |
4671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4672 | } | |
4673 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4674 | { | |
4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4676 | { | |
4677 | wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs(); | |
4678 | result = (wxArrayInt *) &_result_ref; | |
4679 | } | |
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | { | |
4684 | resultobj = PyList_New(0); | |
4685 | size_t idx; | |
4686 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
4687 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
4688 | PyList_Append(resultobj, val); | |
4689 | Py_DECREF(val); | |
4690 | } | |
4691 | } | |
4692 | return resultobj; | |
4693 | fail: | |
4694 | return NULL; | |
4695 | } | |
4696 | ||
4697 | ||
4698 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4699 | PyObject *resultobj = 0; | |
4700 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4701 | long result; | |
4702 | void *argp1 = 0 ; | |
4703 | int res1 = 0 ; | |
4704 | PyObject *swig_obj[1] ; | |
4705 | ||
4706 | if (!args) SWIG_fail; | |
4707 | swig_obj[0] = args; | |
4708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4709 | if (!SWIG_IsOK(res1)) { | |
4710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4711 | } | |
4712 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4713 | { | |
4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4715 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent(); | |
4716 | wxPyEndAllowThreads(__tstate); | |
4717 | if (PyErr_Occurred()) SWIG_fail; | |
4718 | } | |
4719 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4720 | return resultobj; | |
4721 | fail: | |
4722 | return NULL; | |
4723 | } | |
4724 | ||
4725 | ||
4726 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4727 | PyObject *resultobj = 0; | |
4728 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4729 | long result; | |
4730 | void *argp1 = 0 ; | |
4731 | int res1 = 0 ; | |
4732 | PyObject *swig_obj[1] ; | |
4733 | ||
4734 | if (!args) SWIG_fail; | |
4735 | swig_obj[0] = args; | |
4736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4737 | if (!SWIG_IsOK(res1)) { | |
4738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4739 | } | |
4740 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4741 | { | |
4742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4743 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent(); | |
4744 | wxPyEndAllowThreads(__tstate); | |
4745 | if (PyErr_Occurred()) SWIG_fail; | |
4746 | } | |
4747 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4748 | return resultobj; | |
4749 | fail: | |
4750 | return NULL; | |
4751 | } | |
4752 | ||
4753 | ||
4754 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4755 | PyObject *resultobj = 0; | |
4756 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4757 | long result; | |
4758 | void *argp1 = 0 ; | |
4759 | int res1 = 0 ; | |
4760 | PyObject *swig_obj[1] ; | |
4761 | ||
4762 | if (!args) SWIG_fail; | |
4763 | swig_obj[0] = args; | |
4764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4765 | if (!SWIG_IsOK(res1)) { | |
4766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4767 | } | |
4768 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4769 | { | |
4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4771 | result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent(); | |
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4783 | PyObject *resultobj = 0; | |
4784 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4785 | long result; | |
4786 | void *argp1 = 0 ; | |
4787 | int res1 = 0 ; | |
4788 | PyObject *swig_obj[1] ; | |
4789 | ||
4790 | if (!args) SWIG_fail; | |
4791 | swig_obj[0] = args; | |
4792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4793 | if (!SWIG_IsOK(res1)) { | |
4794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4795 | } | |
4796 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (long)((wxRichTextAttr const *)arg1)->GetFlags(); | |
4800 | wxPyEndAllowThreads(__tstate); | |
4801 | if (PyErr_Occurred()) SWIG_fail; | |
4802 | } | |
4803 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4804 | return resultobj; | |
4805 | fail: | |
4806 | return NULL; | |
4807 | } | |
4808 | ||
4809 | ||
4810 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4811 | PyObject *resultobj = 0; | |
4812 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4813 | int result; | |
4814 | void *argp1 = 0 ; | |
4815 | int res1 = 0 ; | |
4816 | PyObject *swig_obj[1] ; | |
4817 | ||
4818 | if (!args) SWIG_fail; | |
4819 | swig_obj[0] = args; | |
4820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4821 | if (!SWIG_IsOK(res1)) { | |
4822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4823 | } | |
4824 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4825 | { | |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | result = (int)((wxRichTextAttr const *)arg1)->GetFontSize(); | |
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4831 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4832 | return resultobj; | |
4833 | fail: | |
4834 | return NULL; | |
4835 | } | |
4836 | ||
4837 | ||
4838 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4839 | PyObject *resultobj = 0; | |
4840 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4841 | int result; | |
4842 | void *argp1 = 0 ; | |
4843 | int res1 = 0 ; | |
4844 | PyObject *swig_obj[1] ; | |
4845 | ||
4846 | if (!args) SWIG_fail; | |
4847 | swig_obj[0] = args; | |
4848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4849 | if (!SWIG_IsOK(res1)) { | |
4850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4851 | } | |
4852 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4853 | { | |
4854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4855 | result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle(); | |
4856 | wxPyEndAllowThreads(__tstate); | |
4857 | if (PyErr_Occurred()) SWIG_fail; | |
4858 | } | |
4859 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4860 | return resultobj; | |
4861 | fail: | |
4862 | return NULL; | |
4863 | } | |
4864 | ||
4865 | ||
4866 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4867 | PyObject *resultobj = 0; | |
4868 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4869 | int result; | |
4870 | void *argp1 = 0 ; | |
4871 | int res1 = 0 ; | |
4872 | PyObject *swig_obj[1] ; | |
4873 | ||
4874 | if (!args) SWIG_fail; | |
4875 | swig_obj[0] = args; | |
4876 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4877 | if (!SWIG_IsOK(res1)) { | |
4878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4879 | } | |
4880 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4881 | { | |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight(); | |
4884 | wxPyEndAllowThreads(__tstate); | |
4885 | if (PyErr_Occurred()) SWIG_fail; | |
4886 | } | |
4887 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4888 | return resultobj; | |
4889 | fail: | |
4890 | return NULL; | |
4891 | } | |
4892 | ||
4893 | ||
4894 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4895 | PyObject *resultobj = 0; | |
4896 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4897 | bool result; | |
4898 | void *argp1 = 0 ; | |
4899 | int res1 = 0 ; | |
4900 | PyObject *swig_obj[1] ; | |
4901 | ||
4902 | if (!args) SWIG_fail; | |
4903 | swig_obj[0] = args; | |
4904 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4905 | if (!SWIG_IsOK(res1)) { | |
4906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4907 | } | |
4908 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined(); | |
4912 | wxPyEndAllowThreads(__tstate); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | } | |
4915 | { | |
4916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4917 | } | |
4918 | return resultobj; | |
4919 | fail: | |
4920 | return NULL; | |
4921 | } | |
4922 | ||
4923 | ||
4924 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4925 | PyObject *resultobj = 0; | |
4926 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4927 | wxString *result = 0 ; | |
4928 | void *argp1 = 0 ; | |
4929 | int res1 = 0 ; | |
4930 | PyObject *swig_obj[1] ; | |
4931 | ||
4932 | if (!args) SWIG_fail; | |
4933 | swig_obj[0] = args; | |
4934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4935 | if (!SWIG_IsOK(res1)) { | |
4936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4937 | } | |
4938 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | { | |
4942 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName(); | |
4943 | result = (wxString *) &_result_ref; | |
4944 | } | |
4945 | wxPyEndAllowThreads(__tstate); | |
4946 | if (PyErr_Occurred()) SWIG_fail; | |
4947 | } | |
4948 | { | |
4949 | #if wxUSE_UNICODE | |
4950 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4951 | #else | |
4952 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4953 | #endif | |
4954 | } | |
4955 | return resultobj; | |
4956 | fail: | |
4957 | return NULL; | |
4958 | } | |
4959 | ||
4960 | ||
4961 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4962 | PyObject *resultobj = 0; | |
4963 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4964 | wxString *result = 0 ; | |
4965 | void *argp1 = 0 ; | |
4966 | int res1 = 0 ; | |
4967 | PyObject *swig_obj[1] ; | |
4968 | ||
4969 | if (!args) SWIG_fail; | |
4970 | swig_obj[0] = args; | |
4971 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4972 | if (!SWIG_IsOK(res1)) { | |
4973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4974 | } | |
4975 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4978 | { | |
4979 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName(); | |
4980 | result = (wxString *) &_result_ref; | |
4981 | } | |
4982 | wxPyEndAllowThreads(__tstate); | |
4983 | if (PyErr_Occurred()) SWIG_fail; | |
4984 | } | |
4985 | { | |
4986 | #if wxUSE_UNICODE | |
4987 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4988 | #else | |
4989 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4990 | #endif | |
4991 | } | |
4992 | return resultobj; | |
4993 | fail: | |
4994 | return NULL; | |
4995 | } | |
4996 | ||
4997 | ||
4998 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4999 | PyObject *resultobj = 0; | |
5000 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5001 | wxString *result = 0 ; | |
5002 | void *argp1 = 0 ; | |
5003 | int res1 = 0 ; | |
5004 | PyObject *swig_obj[1] ; | |
5005 | ||
5006 | if (!args) SWIG_fail; | |
5007 | swig_obj[0] = args; | |
5008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5009 | if (!SWIG_IsOK(res1)) { | |
5010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5011 | } | |
5012 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | { | |
5016 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName(); | |
5017 | result = (wxString *) &_result_ref; | |
5018 | } | |
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | { | |
5023 | #if wxUSE_UNICODE | |
5024 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5025 | #else | |
5026 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5027 | #endif | |
5028 | } | |
5029 | return resultobj; | |
5030 | fail: | |
5031 | return NULL; | |
5032 | } | |
5033 | ||
5034 | ||
5035 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5036 | PyObject *resultobj = 0; | |
5037 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5038 | int result; | |
5039 | void *argp1 = 0 ; | |
5040 | int res1 = 0 ; | |
5041 | PyObject *swig_obj[1] ; | |
5042 | ||
5043 | if (!args) SWIG_fail; | |
5044 | swig_obj[0] = args; | |
5045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5046 | if (!SWIG_IsOK(res1)) { | |
5047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5048 | } | |
5049 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5050 | { | |
5051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5052 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter(); | |
5053 | wxPyEndAllowThreads(__tstate); | |
5054 | if (PyErr_Occurred()) SWIG_fail; | |
5055 | } | |
5056 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5057 | return resultobj; | |
5058 | fail: | |
5059 | return NULL; | |
5060 | } | |
5061 | ||
5062 | ||
5063 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5064 | PyObject *resultobj = 0; | |
5065 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5066 | int result; | |
5067 | void *argp1 = 0 ; | |
5068 | int res1 = 0 ; | |
5069 | PyObject *swig_obj[1] ; | |
5070 | ||
5071 | if (!args) SWIG_fail; | |
5072 | swig_obj[0] = args; | |
5073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5074 | if (!SWIG_IsOK(res1)) { | |
5075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5076 | } | |
5077 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5078 | { | |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5080 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore(); | |
5081 | wxPyEndAllowThreads(__tstate); | |
5082 | if (PyErr_Occurred()) SWIG_fail; | |
5083 | } | |
5084 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5085 | return resultobj; | |
5086 | fail: | |
5087 | return NULL; | |
5088 | } | |
5089 | ||
5090 | ||
5091 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5092 | PyObject *resultobj = 0; | |
5093 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5094 | int result; | |
5095 | void *argp1 = 0 ; | |
5096 | int res1 = 0 ; | |
5097 | PyObject *swig_obj[1] ; | |
5098 | ||
5099 | if (!args) SWIG_fail; | |
5100 | swig_obj[0] = args; | |
5101 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5102 | if (!SWIG_IsOK(res1)) { | |
5103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5104 | } | |
5105 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5106 | { | |
5107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5108 | result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing(); | |
5109 | wxPyEndAllowThreads(__tstate); | |
5110 | if (PyErr_Occurred()) SWIG_fail; | |
5111 | } | |
5112 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5113 | return resultobj; | |
5114 | fail: | |
5115 | return NULL; | |
5116 | } | |
5117 | ||
5118 | ||
5119 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5120 | PyObject *resultobj = 0; | |
5121 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5122 | int result; | |
5123 | void *argp1 = 0 ; | |
5124 | int res1 = 0 ; | |
5125 | PyObject *swig_obj[1] ; | |
5126 | ||
5127 | if (!args) SWIG_fail; | |
5128 | swig_obj[0] = args; | |
5129 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5130 | if (!SWIG_IsOK(res1)) { | |
5131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5132 | } | |
5133 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5134 | { | |
5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5136 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle(); | |
5137 | wxPyEndAllowThreads(__tstate); | |
5138 | if (PyErr_Occurred()) SWIG_fail; | |
5139 | } | |
5140 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5141 | return resultobj; | |
5142 | fail: | |
5143 | return NULL; | |
5144 | } | |
5145 | ||
5146 | ||
5147 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5148 | PyObject *resultobj = 0; | |
5149 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5150 | int result; | |
5151 | void *argp1 = 0 ; | |
5152 | int res1 = 0 ; | |
5153 | PyObject *swig_obj[1] ; | |
5154 | ||
5155 | if (!args) SWIG_fail; | |
5156 | swig_obj[0] = args; | |
5157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5158 | if (!SWIG_IsOK(res1)) { | |
5159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5160 | } | |
5161 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5162 | { | |
5163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5164 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber(); | |
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
5175 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5176 | PyObject *resultobj = 0; | |
5177 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5178 | wxChar result; | |
5179 | void *argp1 = 0 ; | |
5180 | int res1 = 0 ; | |
5181 | PyObject *swig_obj[1] ; | |
5182 | ||
5183 | if (!args) SWIG_fail; | |
5184 | swig_obj[0] = args; | |
5185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5186 | if (!SWIG_IsOK(res1)) { | |
5187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5188 | } | |
5189 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5190 | { | |
5191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5192 | result = ((wxRichTextAttr const *)arg1)->GetBulletSymbol(); | |
5193 | wxPyEndAllowThreads(__tstate); | |
5194 | if (PyErr_Occurred()) SWIG_fail; | |
5195 | } | |
5196 | resultobj = SWIG_NewPointerObj((new wxChar(static_cast< const wxChar& >(result))), SWIGTYPE_p_wxChar, SWIG_POINTER_OWN | 0 ); | |
5197 | return resultobj; | |
5198 | fail: | |
5199 | return NULL; | |
5200 | } | |
5201 | ||
5202 | ||
5203 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5204 | PyObject *resultobj = 0; | |
5205 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5206 | bool result; | |
5207 | void *argp1 = 0 ; | |
5208 | int res1 = 0 ; | |
5209 | PyObject *swig_obj[1] ; | |
5210 | ||
5211 | if (!args) SWIG_fail; | |
5212 | swig_obj[0] = args; | |
5213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5214 | if (!SWIG_IsOK(res1)) { | |
5215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5216 | } | |
5217 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5218 | { | |
5219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5220 | result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour(); | |
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
5224 | { | |
5225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5226 | } | |
5227 | return resultobj; | |
5228 | fail: | |
5229 | return NULL; | |
5230 | } | |
5231 | ||
5232 | ||
5233 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5234 | PyObject *resultobj = 0; | |
5235 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5236 | bool result; | |
5237 | void *argp1 = 0 ; | |
5238 | int res1 = 0 ; | |
5239 | PyObject *swig_obj[1] ; | |
5240 | ||
5241 | if (!args) SWIG_fail; | |
5242 | swig_obj[0] = args; | |
5243 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5244 | if (!SWIG_IsOK(res1)) { | |
5245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5246 | } | |
5247 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5248 | { | |
5249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5250 | result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour(); | |
5251 | wxPyEndAllowThreads(__tstate); | |
5252 | if (PyErr_Occurred()) SWIG_fail; | |
5253 | } | |
5254 | { | |
5255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5256 | } | |
5257 | return resultobj; | |
5258 | fail: | |
5259 | return NULL; | |
5260 | } | |
5261 | ||
5262 | ||
5263 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5264 | PyObject *resultobj = 0; | |
5265 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5266 | bool result; | |
5267 | void *argp1 = 0 ; | |
5268 | int res1 = 0 ; | |
5269 | PyObject *swig_obj[1] ; | |
5270 | ||
5271 | if (!args) SWIG_fail; | |
5272 | swig_obj[0] = args; | |
5273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5274 | if (!SWIG_IsOK(res1)) { | |
5275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5276 | } | |
5277 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5278 | { | |
5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5280 | result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment(); | |
5281 | wxPyEndAllowThreads(__tstate); | |
5282 | if (PyErr_Occurred()) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5286 | } | |
5287 | return resultobj; | |
5288 | fail: | |
5289 | return NULL; | |
5290 | } | |
5291 | ||
5292 | ||
5293 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5294 | PyObject *resultobj = 0; | |
5295 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5296 | bool result; | |
5297 | void *argp1 = 0 ; | |
5298 | int res1 = 0 ; | |
5299 | PyObject *swig_obj[1] ; | |
5300 | ||
5301 | if (!args) SWIG_fail; | |
5302 | swig_obj[0] = args; | |
5303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5304 | if (!SWIG_IsOK(res1)) { | |
5305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5306 | } | |
5307 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5308 | { | |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | result = (bool)((wxRichTextAttr const *)arg1)->HasTabs(); | |
5311 | wxPyEndAllowThreads(__tstate); | |
5312 | if (PyErr_Occurred()) SWIG_fail; | |
5313 | } | |
5314 | { | |
5315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5316 | } | |
5317 | return resultobj; | |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
5323 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5324 | PyObject *resultobj = 0; | |
5325 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5326 | bool result; | |
5327 | void *argp1 = 0 ; | |
5328 | int res1 = 0 ; | |
5329 | PyObject *swig_obj[1] ; | |
5330 | ||
5331 | if (!args) SWIG_fail; | |
5332 | swig_obj[0] = args; | |
5333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5334 | if (!SWIG_IsOK(res1)) { | |
5335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5336 | } | |
5337 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5338 | { | |
5339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5340 | result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent(); | |
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
5344 | { | |
5345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5346 | } | |
5347 | return resultobj; | |
5348 | fail: | |
5349 | return NULL; | |
5350 | } | |
5351 | ||
5352 | ||
5353 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5354 | PyObject *resultobj = 0; | |
5355 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5356 | bool result; | |
5357 | void *argp1 = 0 ; | |
5358 | int res1 = 0 ; | |
5359 | PyObject *swig_obj[1] ; | |
5360 | ||
5361 | if (!args) SWIG_fail; | |
5362 | swig_obj[0] = args; | |
5363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5364 | if (!SWIG_IsOK(res1)) { | |
5365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5366 | } | |
5367 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5368 | { | |
5369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5370 | result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent(); | |
5371 | wxPyEndAllowThreads(__tstate); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
5373 | } | |
5374 | { | |
5375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5376 | } | |
5377 | return resultobj; | |
5378 | fail: | |
5379 | return NULL; | |
5380 | } | |
5381 | ||
5382 | ||
5383 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5384 | PyObject *resultobj = 0; | |
5385 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5386 | bool result; | |
5387 | void *argp1 = 0 ; | |
5388 | int res1 = 0 ; | |
5389 | PyObject *swig_obj[1] ; | |
5390 | ||
5391 | if (!args) SWIG_fail; | |
5392 | swig_obj[0] = args; | |
5393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5394 | if (!SWIG_IsOK(res1)) { | |
5395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5396 | } | |
5397 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5398 | { | |
5399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5400 | result = (bool)((wxRichTextAttr const *)arg1)->HasWeight(); | |
5401 | wxPyEndAllowThreads(__tstate); | |
5402 | if (PyErr_Occurred()) SWIG_fail; | |
5403 | } | |
5404 | { | |
5405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5406 | } | |
5407 | return resultobj; | |
5408 | fail: | |
5409 | return NULL; | |
5410 | } | |
5411 | ||
5412 | ||
5413 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5414 | PyObject *resultobj = 0; | |
5415 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5416 | bool result; | |
5417 | void *argp1 = 0 ; | |
5418 | int res1 = 0 ; | |
5419 | PyObject *swig_obj[1] ; | |
5420 | ||
5421 | if (!args) SWIG_fail; | |
5422 | swig_obj[0] = args; | |
5423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5424 | if (!SWIG_IsOK(res1)) { | |
5425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5426 | } | |
5427 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5428 | { | |
5429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5430 | result = (bool)((wxRichTextAttr const *)arg1)->HasSize(); | |
5431 | wxPyEndAllowThreads(__tstate); | |
5432 | if (PyErr_Occurred()) SWIG_fail; | |
5433 | } | |
5434 | { | |
5435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5436 | } | |
5437 | return resultobj; | |
5438 | fail: | |
5439 | return NULL; | |
5440 | } | |
5441 | ||
5442 | ||
5443 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5444 | PyObject *resultobj = 0; | |
5445 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5446 | bool result; | |
5447 | void *argp1 = 0 ; | |
5448 | int res1 = 0 ; | |
5449 | PyObject *swig_obj[1] ; | |
5450 | ||
5451 | if (!args) SWIG_fail; | |
5452 | swig_obj[0] = args; | |
5453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5454 | if (!SWIG_IsOK(res1)) { | |
5455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5456 | } | |
5457 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5458 | { | |
5459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5460 | result = (bool)((wxRichTextAttr const *)arg1)->HasItalic(); | |
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | { | |
5465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5466 | } | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5474 | PyObject *resultobj = 0; | |
5475 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5476 | bool result; | |
5477 | void *argp1 = 0 ; | |
5478 | int res1 = 0 ; | |
5479 | PyObject *swig_obj[1] ; | |
5480 | ||
5481 | if (!args) SWIG_fail; | |
5482 | swig_obj[0] = args; | |
5483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5484 | if (!SWIG_IsOK(res1)) { | |
5485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5486 | } | |
5487 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5488 | { | |
5489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5490 | result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined(); | |
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) SWIG_fail; | |
5493 | } | |
5494 | { | |
5495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5496 | } | |
5497 | return resultobj; | |
5498 | fail: | |
5499 | return NULL; | |
5500 | } | |
5501 | ||
5502 | ||
5503 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5504 | PyObject *resultobj = 0; | |
5505 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5506 | bool result; | |
5507 | void *argp1 = 0 ; | |
5508 | int res1 = 0 ; | |
5509 | PyObject *swig_obj[1] ; | |
5510 | ||
5511 | if (!args) SWIG_fail; | |
5512 | swig_obj[0] = args; | |
5513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5514 | if (!SWIG_IsOK(res1)) { | |
5515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5516 | } | |
5517 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5518 | { | |
5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5520 | result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName(); | |
5521 | wxPyEndAllowThreads(__tstate); | |
5522 | if (PyErr_Occurred()) SWIG_fail; | |
5523 | } | |
5524 | { | |
5525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5526 | } | |
5527 | return resultobj; | |
5528 | fail: | |
5529 | return NULL; | |
5530 | } | |
5531 | ||
5532 | ||
5533 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5534 | PyObject *resultobj = 0; | |
5535 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5536 | bool result; | |
5537 | void *argp1 = 0 ; | |
5538 | int res1 = 0 ; | |
5539 | PyObject *swig_obj[1] ; | |
5540 | ||
5541 | if (!args) SWIG_fail; | |
5542 | swig_obj[0] = args; | |
5543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5544 | if (!SWIG_IsOK(res1)) { | |
5545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5546 | } | |
5547 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5548 | { | |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | result = (bool)((wxRichTextAttr const *)arg1)->HasFont(); | |
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | { | |
5555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5556 | } | |
5557 | return resultobj; | |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5564 | PyObject *resultobj = 0; | |
5565 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5566 | bool result; | |
5567 | void *argp1 = 0 ; | |
5568 | int res1 = 0 ; | |
5569 | PyObject *swig_obj[1] ; | |
5570 | ||
5571 | if (!args) SWIG_fail; | |
5572 | swig_obj[0] = args; | |
5573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5574 | if (!SWIG_IsOK(res1)) { | |
5575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5576 | } | |
5577 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5578 | { | |
5579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5580 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter(); | |
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | { | |
5585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5586 | } | |
5587 | return resultobj; | |
5588 | fail: | |
5589 | return NULL; | |
5590 | } | |
5591 | ||
5592 | ||
5593 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5594 | PyObject *resultobj = 0; | |
5595 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5596 | bool result; | |
5597 | void *argp1 = 0 ; | |
5598 | int res1 = 0 ; | |
5599 | PyObject *swig_obj[1] ; | |
5600 | ||
5601 | if (!args) SWIG_fail; | |
5602 | swig_obj[0] = args; | |
5603 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5604 | if (!SWIG_IsOK(res1)) { | |
5605 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5606 | } | |
5607 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5608 | { | |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5610 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore(); | |
5611 | wxPyEndAllowThreads(__tstate); | |
5612 | if (PyErr_Occurred()) SWIG_fail; | |
5613 | } | |
5614 | { | |
5615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5616 | } | |
5617 | return resultobj; | |
5618 | fail: | |
5619 | return NULL; | |
5620 | } | |
5621 | ||
5622 | ||
5623 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5624 | PyObject *resultobj = 0; | |
5625 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5626 | bool result; | |
5627 | void *argp1 = 0 ; | |
5628 | int res1 = 0 ; | |
5629 | PyObject *swig_obj[1] ; | |
5630 | ||
5631 | if (!args) SWIG_fail; | |
5632 | swig_obj[0] = args; | |
5633 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5634 | if (!SWIG_IsOK(res1)) { | |
5635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5636 | } | |
5637 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5638 | { | |
5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5640 | result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing(); | |
5641 | wxPyEndAllowThreads(__tstate); | |
5642 | if (PyErr_Occurred()) SWIG_fail; | |
5643 | } | |
5644 | { | |
5645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5646 | } | |
5647 | return resultobj; | |
5648 | fail: | |
5649 | return NULL; | |
5650 | } | |
5651 | ||
5652 | ||
5653 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5654 | PyObject *resultobj = 0; | |
5655 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5656 | bool result; | |
5657 | void *argp1 = 0 ; | |
5658 | int res1 = 0 ; | |
5659 | PyObject *swig_obj[1] ; | |
5660 | ||
5661 | if (!args) SWIG_fail; | |
5662 | swig_obj[0] = args; | |
5663 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5664 | if (!SWIG_IsOK(res1)) { | |
5665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5666 | } | |
5667 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5668 | { | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName(); | |
5671 | wxPyEndAllowThreads(__tstate); | |
5672 | if (PyErr_Occurred()) SWIG_fail; | |
5673 | } | |
5674 | { | |
5675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5676 | } | |
5677 | return resultobj; | |
5678 | fail: | |
5679 | return NULL; | |
5680 | } | |
5681 | ||
5682 | ||
5683 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5684 | PyObject *resultobj = 0; | |
5685 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5686 | bool result; | |
5687 | void *argp1 = 0 ; | |
5688 | int res1 = 0 ; | |
5689 | PyObject *swig_obj[1] ; | |
5690 | ||
5691 | if (!args) SWIG_fail; | |
5692 | swig_obj[0] = args; | |
5693 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5694 | if (!SWIG_IsOK(res1)) { | |
5695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5696 | } | |
5697 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5698 | { | |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5700 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName(); | |
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) SWIG_fail; | |
5703 | } | |
5704 | { | |
5705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5706 | } | |
5707 | return resultobj; | |
5708 | fail: | |
5709 | return NULL; | |
5710 | } | |
5711 | ||
5712 | ||
5713 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5714 | PyObject *resultobj = 0; | |
5715 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5716 | bool result; | |
5717 | void *argp1 = 0 ; | |
5718 | int res1 = 0 ; | |
5719 | PyObject *swig_obj[1] ; | |
5720 | ||
5721 | if (!args) SWIG_fail; | |
5722 | swig_obj[0] = args; | |
5723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5724 | if (!SWIG_IsOK(res1)) { | |
5725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5726 | } | |
5727 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5728 | { | |
5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5730 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle(); | |
5731 | wxPyEndAllowThreads(__tstate); | |
5732 | if (PyErr_Occurred()) SWIG_fail; | |
5733 | } | |
5734 | { | |
5735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5736 | } | |
5737 | return resultobj; | |
5738 | fail: | |
5739 | return NULL; | |
5740 | } | |
5741 | ||
5742 | ||
5743 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5744 | PyObject *resultobj = 0; | |
5745 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5746 | bool result; | |
5747 | void *argp1 = 0 ; | |
5748 | int res1 = 0 ; | |
5749 | PyObject *swig_obj[1] ; | |
5750 | ||
5751 | if (!args) SWIG_fail; | |
5752 | swig_obj[0] = args; | |
5753 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5754 | if (!SWIG_IsOK(res1)) { | |
5755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5756 | } | |
5757 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5758 | { | |
5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5760 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber(); | |
5761 | wxPyEndAllowThreads(__tstate); | |
5762 | if (PyErr_Occurred()) SWIG_fail; | |
5763 | } | |
5764 | { | |
5765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5766 | } | |
5767 | return resultobj; | |
5768 | fail: | |
5769 | return NULL; | |
5770 | } | |
5771 | ||
5772 | ||
5773 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5774 | PyObject *resultobj = 0; | |
5775 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5776 | bool result; | |
5777 | void *argp1 = 0 ; | |
5778 | int res1 = 0 ; | |
5779 | PyObject *swig_obj[1] ; | |
5780 | ||
5781 | if (!args) SWIG_fail; | |
5782 | swig_obj[0] = args; | |
5783 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5784 | if (!SWIG_IsOK(res1)) { | |
5785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5786 | } | |
5787 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5788 | { | |
5789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5790 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletSymbol(); | |
5791 | wxPyEndAllowThreads(__tstate); | |
5792 | if (PyErr_Occurred()) SWIG_fail; | |
5793 | } | |
5794 | { | |
5795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5796 | } | |
5797 | return resultobj; | |
5798 | fail: | |
5799 | return NULL; | |
5800 | } | |
5801 | ||
5802 | ||
5803 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5804 | PyObject *resultobj = 0; | |
5805 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5806 | long arg2 ; | |
5807 | bool result; | |
5808 | void *argp1 = 0 ; | |
5809 | int res1 = 0 ; | |
5810 | long val2 ; | |
5811 | int ecode2 = 0 ; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | PyObject * obj1 = 0 ; | |
5814 | char * kwnames[] = { | |
5815 | (char *) "self",(char *) "flag", NULL | |
5816 | }; | |
5817 | ||
5818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
5819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5820 | if (!SWIG_IsOK(res1)) { | |
5821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5822 | } | |
5823 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5824 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5825 | if (!SWIG_IsOK(ecode2)) { | |
5826 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
5827 | } | |
5828 | arg2 = static_cast< long >(val2); | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2); | |
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
5835 | { | |
5836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5837 | } | |
5838 | return resultobj; | |
5839 | fail: | |
5840 | return NULL; | |
5841 | } | |
5842 | ||
5843 | ||
5844 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5845 | PyObject *resultobj = 0; | |
5846 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5847 | bool result; | |
5848 | void *argp1 = 0 ; | |
5849 | int res1 = 0 ; | |
5850 | PyObject *swig_obj[1] ; | |
5851 | ||
5852 | if (!args) SWIG_fail; | |
5853 | swig_obj[0] = args; | |
5854 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5855 | if (!SWIG_IsOK(res1)) { | |
5856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5857 | } | |
5858 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5859 | { | |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle(); | |
5862 | wxPyEndAllowThreads(__tstate); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | } | |
5865 | { | |
5866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5867 | } | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | return NULL; | |
5871 | } | |
5872 | ||
5873 | ||
5874 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5875 | PyObject *resultobj = 0; | |
5876 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5877 | bool result; | |
5878 | void *argp1 = 0 ; | |
5879 | int res1 = 0 ; | |
5880 | PyObject *swig_obj[1] ; | |
5881 | ||
5882 | if (!args) SWIG_fail; | |
5883 | swig_obj[0] = args; | |
5884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5885 | if (!SWIG_IsOK(res1)) { | |
5886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5887 | } | |
5888 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle(); | |
5892 | wxPyEndAllowThreads(__tstate); | |
5893 | if (PyErr_Occurred()) SWIG_fail; | |
5894 | } | |
5895 | { | |
5896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5897 | } | |
5898 | return resultobj; | |
5899 | fail: | |
5900 | return NULL; | |
5901 | } | |
5902 | ||
5903 | ||
5904 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5905 | PyObject *resultobj = 0; | |
5906 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5907 | bool result; | |
5908 | void *argp1 = 0 ; | |
5909 | int res1 = 0 ; | |
5910 | PyObject *swig_obj[1] ; | |
5911 | ||
5912 | if (!args) SWIG_fail; | |
5913 | swig_obj[0] = args; | |
5914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5915 | if (!SWIG_IsOK(res1)) { | |
5916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5917 | } | |
5918 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5919 | { | |
5920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5921 | result = (bool)((wxRichTextAttr const *)arg1)->IsDefault(); | |
5922 | wxPyEndAllowThreads(__tstate); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | } | |
5925 | { | |
5926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5927 | } | |
5928 | return resultobj; | |
5929 | fail: | |
5930 | return NULL; | |
5931 | } | |
5932 | ||
5933 | ||
5934 | SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5935 | PyObject *obj; | |
5936 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5937 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj)); | |
5938 | return SWIG_Py_Void(); | |
5939 | } | |
5940 | ||
5941 | SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5942 | return SWIG_Python_InitShadowInstance(args); | |
5943 | } | |
5944 | ||
5945 | SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5946 | PyObject *resultobj = 0; | |
5947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5948 | int arg2 = (int) -1 ; | |
0ef86618 RD |
5949 | wxString const &arg3_defvalue = wxPyEmptyString ; |
5950 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5951 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5952 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5953 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5954 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5955 | long arg6 = (long) wxRE_MULTILINE ; | |
06810ecf RD |
5956 | wxRichTextCtrl *result = 0 ; |
5957 | void *argp1 = 0 ; | |
5958 | int res1 = 0 ; | |
5959 | int val2 ; | |
5960 | int ecode2 = 0 ; | |
0ef86618 RD |
5961 | bool temp3 = false ; |
5962 | wxPoint temp4 ; | |
5963 | wxSize temp5 ; | |
5964 | long val6 ; | |
5965 | int ecode6 = 0 ; | |
06810ecf RD |
5966 | PyObject * obj0 = 0 ; |
5967 | PyObject * obj1 = 0 ; | |
5968 | PyObject * obj2 = 0 ; | |
5969 | PyObject * obj3 = 0 ; | |
5970 | PyObject * obj4 = 0 ; | |
0ef86618 | 5971 | PyObject * obj5 = 0 ; |
06810ecf | 5972 | char * kwnames[] = { |
0ef86618 | 5973 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL |
06810ecf RD |
5974 | }; |
5975 | ||
0ef86618 | 5976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
06810ecf RD |
5977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
5978 | if (!SWIG_IsOK(res1)) { | |
5979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5980 | } | |
5981 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5982 | if (obj1) { | |
5983 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5984 | if (!SWIG_IsOK(ecode2)) { | |
5985 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
5986 | } | |
5987 | arg2 = static_cast< int >(val2); | |
5988 | } | |
5989 | if (obj2) { | |
5990 | { | |
0ef86618 RD |
5991 | arg3 = wxString_in_helper(obj2); |
5992 | if (arg3 == NULL) SWIG_fail; | |
5993 | temp3 = true; | |
06810ecf RD |
5994 | } |
5995 | } | |
5996 | if (obj3) { | |
5997 | { | |
5998 | arg4 = &temp4; | |
0ef86618 | 5999 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; |
06810ecf RD |
6000 | } |
6001 | } | |
6002 | if (obj4) { | |
0ef86618 RD |
6003 | { |
6004 | arg5 = &temp5; | |
6005 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6006 | } | |
6007 | } | |
6008 | if (obj5) { | |
6009 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
6010 | if (!SWIG_IsOK(ecode6)) { | |
6011 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RichTextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
06810ecf | 6012 | } |
0ef86618 | 6013 | arg6 = static_cast< long >(val6); |
06810ecf RD |
6014 | } |
6015 | { | |
6016 | if (!wxPyCheckForApp()) SWIG_fail; | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ef86618 | 6018 | result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); |
06810ecf RD |
6019 | wxPyEndAllowThreads(__tstate); |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | } | |
6022 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 ); | |
0ef86618 RD |
6023 | { |
6024 | if (temp3) | |
6025 | delete arg3; | |
6026 | } | |
06810ecf RD |
6027 | return resultobj; |
6028 | fail: | |
0ef86618 RD |
6029 | { |
6030 | if (temp3) | |
6031 | delete arg3; | |
6032 | } | |
06810ecf RD |
6033 | return NULL; |
6034 | } | |
6035 | ||
6036 | ||
6037 | SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6038 | PyObject *resultobj = 0; | |
6039 | wxRichTextCtrl *result = 0 ; | |
6040 | ||
6041 | if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail; | |
6042 | { | |
6043 | if (!wxPyCheckForApp()) SWIG_fail; | |
6044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6045 | result = (wxRichTextCtrl *)new wxRichTextCtrl(); | |
6046 | wxPyEndAllowThreads(__tstate); | |
6047 | if (PyErr_Occurred()) SWIG_fail; | |
6048 | } | |
6049 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 ); | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
6056 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6057 | PyObject *resultobj = 0; | |
6058 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6060 | int arg3 = (int) -1 ; | |
0ef86618 RD |
6061 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6062 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6063 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6064 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6065 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6066 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6067 | long arg7 = (long) wxRE_MULTILINE ; | |
06810ecf RD |
6068 | bool result; |
6069 | void *argp1 = 0 ; | |
6070 | int res1 = 0 ; | |
6071 | void *argp2 = 0 ; | |
6072 | int res2 = 0 ; | |
6073 | int val3 ; | |
6074 | int ecode3 = 0 ; | |
0ef86618 RD |
6075 | bool temp4 = false ; |
6076 | wxPoint temp5 ; | |
6077 | wxSize temp6 ; | |
6078 | long val7 ; | |
6079 | int ecode7 = 0 ; | |
06810ecf RD |
6080 | PyObject * obj0 = 0 ; |
6081 | PyObject * obj1 = 0 ; | |
6082 | PyObject * obj2 = 0 ; | |
6083 | PyObject * obj3 = 0 ; | |
6084 | PyObject * obj4 = 0 ; | |
6085 | PyObject * obj5 = 0 ; | |
0ef86618 | 6086 | PyObject * obj6 = 0 ; |
06810ecf | 6087 | char * kwnames[] = { |
0ef86618 | 6088 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL |
06810ecf RD |
6089 | }; |
6090 | ||
0ef86618 | 6091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
06810ecf RD |
6092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); |
6093 | if (!SWIG_IsOK(res1)) { | |
6094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6095 | } | |
6096 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6097 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6098 | if (!SWIG_IsOK(res2)) { | |
6099 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6100 | } | |
6101 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6102 | if (obj2) { | |
6103 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6104 | if (!SWIG_IsOK(ecode3)) { | |
6105 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
6106 | } | |
6107 | arg3 = static_cast< int >(val3); | |
6108 | } | |
6109 | if (obj3) { | |
6110 | { | |
0ef86618 RD |
6111 | arg4 = wxString_in_helper(obj3); |
6112 | if (arg4 == NULL) SWIG_fail; | |
6113 | temp4 = true; | |
06810ecf RD |
6114 | } |
6115 | } | |
6116 | if (obj4) { | |
6117 | { | |
6118 | arg5 = &temp5; | |
0ef86618 | 6119 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; |
06810ecf RD |
6120 | } |
6121 | } | |
6122 | if (obj5) { | |
0ef86618 RD |
6123 | { |
6124 | arg6 = &temp6; | |
6125 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6126 | } | |
6127 | } | |
6128 | if (obj6) { | |
6129 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6130 | if (!SWIG_IsOK(ecode7)) { | |
6131 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RichTextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
06810ecf | 6132 | } |
0ef86618 | 6133 | arg7 = static_cast< long >(val7); |
06810ecf RD |
6134 | } |
6135 | { | |
6136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ef86618 | 6137 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7); |
06810ecf RD |
6138 | wxPyEndAllowThreads(__tstate); |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | { | |
6142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6143 | } | |
0ef86618 RD |
6144 | { |
6145 | if (temp4) | |
6146 | delete arg4; | |
6147 | } | |
06810ecf RD |
6148 | return resultobj; |
6149 | fail: | |
0ef86618 RD |
6150 | { |
6151 | if (temp4) | |
6152 | delete arg4; | |
6153 | } | |
06810ecf RD |
6154 | return NULL; |
6155 | } | |
6156 | ||
6157 | ||
6158 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6159 | PyObject *resultobj = 0; | |
6160 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6161 | wxString result; | |
6162 | void *argp1 = 0 ; | |
6163 | int res1 = 0 ; | |
6164 | PyObject *swig_obj[1] ; | |
6165 | ||
6166 | if (!args) SWIG_fail; | |
6167 | swig_obj[0] = args; | |
6168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6169 | if (!SWIG_IsOK(res1)) { | |
6170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6171 | } | |
6172 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6173 | { | |
6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6175 | result = ((wxRichTextCtrl const *)arg1)->GetValue(); | |
6176 | wxPyEndAllowThreads(__tstate); | |
6177 | if (PyErr_Occurred()) SWIG_fail; | |
6178 | } | |
6179 | { | |
6180 | #if wxUSE_UNICODE | |
6181 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6182 | #else | |
6183 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6184 | #endif | |
6185 | } | |
6186 | return resultobj; | |
6187 | fail: | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
6192 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6193 | PyObject *resultobj = 0; | |
6194 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6195 | wxString *arg2 = 0 ; | |
6196 | void *argp1 = 0 ; | |
6197 | int res1 = 0 ; | |
6198 | bool temp2 = false ; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | PyObject * obj1 = 0 ; | |
6201 | char * kwnames[] = { | |
6202 | (char *) "self",(char *) "value", NULL | |
6203 | }; | |
6204 | ||
6205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
6206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6207 | if (!SWIG_IsOK(res1)) { | |
6208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6209 | } | |
6210 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6211 | { | |
6212 | arg2 = wxString_in_helper(obj1); | |
6213 | if (arg2 == NULL) SWIG_fail; | |
6214 | temp2 = true; | |
6215 | } | |
6216 | { | |
6217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6218 | (arg1)->SetValue((wxString const &)*arg2); | |
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | resultobj = SWIG_Py_Void(); | |
6223 | { | |
6224 | if (temp2) | |
6225 | delete arg2; | |
6226 | } | |
6227 | return resultobj; | |
6228 | fail: | |
6229 | { | |
6230 | if (temp2) | |
6231 | delete arg2; | |
6232 | } | |
6233 | return NULL; | |
6234 | } | |
6235 | ||
6236 | ||
6237 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6238 | PyObject *resultobj = 0; | |
6239 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6240 | long arg2 ; | |
6241 | long arg3 ; | |
6242 | wxString result; | |
6243 | void *argp1 = 0 ; | |
6244 | int res1 = 0 ; | |
6245 | long val2 ; | |
6246 | int ecode2 = 0 ; | |
6247 | long val3 ; | |
6248 | int ecode3 = 0 ; | |
6249 | PyObject * obj0 = 0 ; | |
6250 | PyObject * obj1 = 0 ; | |
6251 | PyObject * obj2 = 0 ; | |
6252 | char * kwnames[] = { | |
6253 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6254 | }; | |
6255 | ||
6256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6258 | if (!SWIG_IsOK(res1)) { | |
6259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6260 | } | |
6261 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6262 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6263 | if (!SWIG_IsOK(ecode2)) { | |
6264 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
6265 | } | |
6266 | arg2 = static_cast< long >(val2); | |
6267 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6268 | if (!SWIG_IsOK(ecode3)) { | |
6269 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
6270 | } | |
6271 | arg3 = static_cast< long >(val3); | |
6272 | { | |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6275 | wxPyEndAllowThreads(__tstate); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | } | |
6278 | { | |
6279 | #if wxUSE_UNICODE | |
6280 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6281 | #else | |
6282 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6283 | #endif | |
6284 | } | |
6285 | return resultobj; | |
6286 | fail: | |
6287 | return NULL; | |
6288 | } | |
6289 | ||
6290 | ||
6291 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6292 | PyObject *resultobj = 0; | |
6293 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6294 | long arg2 ; | |
6295 | int result; | |
6296 | void *argp1 = 0 ; | |
6297 | int res1 = 0 ; | |
6298 | long val2 ; | |
6299 | int ecode2 = 0 ; | |
6300 | PyObject * obj0 = 0 ; | |
6301 | PyObject * obj1 = 0 ; | |
6302 | char * kwnames[] = { | |
6303 | (char *) "self",(char *) "lineNo", NULL | |
6304 | }; | |
6305 | ||
6306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
6307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6308 | if (!SWIG_IsOK(res1)) { | |
6309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6310 | } | |
6311 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6312 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6313 | if (!SWIG_IsOK(ecode2)) { | |
6314 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
6315 | } | |
6316 | arg2 = static_cast< long >(val2); | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2); | |
6320 | wxPyEndAllowThreads(__tstate); | |
6321 | if (PyErr_Occurred()) SWIG_fail; | |
6322 | } | |
6323 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6324 | return resultobj; | |
6325 | fail: | |
6326 | return NULL; | |
6327 | } | |
6328 | ||
6329 | ||
6330 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6331 | PyObject *resultobj = 0; | |
6332 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6333 | long arg2 ; | |
6334 | wxString result; | |
6335 | void *argp1 = 0 ; | |
6336 | int res1 = 0 ; | |
6337 | long val2 ; | |
6338 | int ecode2 = 0 ; | |
6339 | PyObject * obj0 = 0 ; | |
6340 | PyObject * obj1 = 0 ; | |
6341 | char * kwnames[] = { | |
6342 | (char *) "self",(char *) "lineNo", NULL | |
6343 | }; | |
6344 | ||
6345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6347 | if (!SWIG_IsOK(res1)) { | |
6348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6349 | } | |
6350 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6351 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6352 | if (!SWIG_IsOK(ecode2)) { | |
6353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
6354 | } | |
6355 | arg2 = static_cast< long >(val2); | |
6356 | { | |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2); | |
6359 | wxPyEndAllowThreads(__tstate); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
6362 | { | |
6363 | #if wxUSE_UNICODE | |
6364 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6365 | #else | |
6366 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6367 | #endif | |
6368 | } | |
6369 | return resultobj; | |
6370 | fail: | |
6371 | return NULL; | |
6372 | } | |
6373 | ||
6374 | ||
6375 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6376 | PyObject *resultobj = 0; | |
6377 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6378 | int result; | |
6379 | void *argp1 = 0 ; | |
6380 | int res1 = 0 ; | |
6381 | PyObject *swig_obj[1] ; | |
6382 | ||
6383 | if (!args) SWIG_fail; | |
6384 | swig_obj[0] = args; | |
6385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6386 | if (!SWIG_IsOK(res1)) { | |
6387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6388 | } | |
6389 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6390 | { | |
6391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6392 | result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines(); | |
6393 | wxPyEndAllowThreads(__tstate); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
6396 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6397 | return resultobj; | |
6398 | fail: | |
6399 | return NULL; | |
6400 | } | |
6401 | ||
6402 | ||
6403 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6404 | PyObject *resultobj = 0; | |
6405 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6406 | bool result; | |
6407 | void *argp1 = 0 ; | |
6408 | int res1 = 0 ; | |
6409 | PyObject *swig_obj[1] ; | |
6410 | ||
6411 | if (!args) SWIG_fail; | |
6412 | swig_obj[0] = args; | |
6413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6414 | if (!SWIG_IsOK(res1)) { | |
6415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6416 | } | |
6417 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6418 | { | |
6419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6420 | result = (bool)((wxRichTextCtrl const *)arg1)->IsModified(); | |
6421 | wxPyEndAllowThreads(__tstate); | |
6422 | if (PyErr_Occurred()) SWIG_fail; | |
6423 | } | |
6424 | { | |
6425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6426 | } | |
6427 | return resultobj; | |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
6433 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6434 | PyObject *resultobj = 0; | |
6435 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6436 | bool result; | |
6437 | void *argp1 = 0 ; | |
6438 | int res1 = 0 ; | |
6439 | PyObject *swig_obj[1] ; | |
6440 | ||
6441 | if (!args) SWIG_fail; | |
6442 | swig_obj[0] = args; | |
6443 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6444 | if (!SWIG_IsOK(res1)) { | |
6445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6446 | } | |
6447 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6448 | { | |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6450 | result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable(); | |
6451 | wxPyEndAllowThreads(__tstate); | |
6452 | if (PyErr_Occurred()) SWIG_fail; | |
6453 | } | |
6454 | { | |
6455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6456 | } | |
6457 | return resultobj; | |
6458 | fail: | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
6463 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6464 | PyObject *resultobj = 0; | |
6465 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6466 | bool result; | |
6467 | void *argp1 = 0 ; | |
6468 | int res1 = 0 ; | |
6469 | PyObject *swig_obj[1] ; | |
6470 | ||
6471 | if (!args) SWIG_fail; | |
6472 | swig_obj[0] = args; | |
6473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6474 | if (!SWIG_IsOK(res1)) { | |
6475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6476 | } | |
6477 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6478 | { | |
6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6480 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine(); | |
6481 | wxPyEndAllowThreads(__tstate); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
6484 | { | |
6485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6486 | } | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | return NULL; | |
6490 | } | |
6491 | ||
6492 | ||
6493 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6494 | PyObject *resultobj = 0; | |
6495 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6496 | bool result; | |
6497 | void *argp1 = 0 ; | |
6498 | int res1 = 0 ; | |
6499 | PyObject *swig_obj[1] ; | |
6500 | ||
6501 | if (!args) SWIG_fail; | |
6502 | swig_obj[0] = args; | |
6503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6504 | if (!SWIG_IsOK(res1)) { | |
6505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6506 | } | |
6507 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6508 | { | |
6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6510 | result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine(); | |
6511 | wxPyEndAllowThreads(__tstate); | |
6512 | if (PyErr_Occurred()) SWIG_fail; | |
6513 | } | |
6514 | { | |
6515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6516 | } | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6524 | PyObject *resultobj = 0; | |
6525 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6526 | long *arg2 = (long *) 0 ; | |
6527 | long *arg3 = (long *) 0 ; | |
6528 | void *argp1 = 0 ; | |
6529 | int res1 = 0 ; | |
6530 | long temp2 ; | |
6531 | int res2 = SWIG_TMPOBJ ; | |
6532 | long temp3 ; | |
6533 | int res3 = SWIG_TMPOBJ ; | |
6534 | PyObject *swig_obj[1] ; | |
6535 | ||
6536 | arg2 = &temp2; | |
6537 | arg3 = &temp3; | |
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_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6543 | } | |
6544 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | resultobj = SWIG_Py_Void(); | |
6552 | if (SWIG_IsTmpObj(res2)) { | |
6553 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6554 | } else { | |
6555 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6556 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6557 | } | |
6558 | if (SWIG_IsTmpObj(res3)) { | |
6559 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6560 | } else { | |
6561 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6562 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6563 | } | |
6564 | return resultobj; | |
6565 | fail: | |
6566 | return NULL; | |
6567 | } | |
6568 | ||
6569 | ||
6570 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6571 | PyObject *resultobj = 0; | |
6572 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6573 | wxString result; | |
6574 | void *argp1 = 0 ; | |
6575 | int res1 = 0 ; | |
6576 | PyObject *swig_obj[1] ; | |
6577 | ||
6578 | if (!args) SWIG_fail; | |
6579 | swig_obj[0] = args; | |
6580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6581 | if (!SWIG_IsOK(res1)) { | |
6582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6583 | } | |
6584 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | result = ((wxRichTextCtrl const *)arg1)->GetStringSelection(); | |
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | #if wxUSE_UNICODE | |
6593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6594 | #else | |
6595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6596 | #endif | |
6597 | } | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6605 | PyObject *resultobj = 0; | |
6606 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6607 | wxString result; | |
6608 | void *argp1 = 0 ; | |
6609 | int res1 = 0 ; | |
6610 | PyObject *swig_obj[1] ; | |
6611 | ||
6612 | if (!args) SWIG_fail; | |
6613 | swig_obj[0] = args; | |
6614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6615 | if (!SWIG_IsOK(res1)) { | |
6616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6617 | } | |
6618 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6619 | { | |
6620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6621 | result = ((wxRichTextCtrl const *)arg1)->GetFilename(); | |
6622 | wxPyEndAllowThreads(__tstate); | |
6623 | if (PyErr_Occurred()) SWIG_fail; | |
6624 | } | |
6625 | { | |
6626 | #if wxUSE_UNICODE | |
6627 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6628 | #else | |
6629 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6630 | #endif | |
6631 | } | |
6632 | return resultobj; | |
6633 | fail: | |
6634 | return NULL; | |
6635 | } | |
6636 | ||
6637 | ||
6638 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6639 | PyObject *resultobj = 0; | |
6640 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6641 | wxString *arg2 = 0 ; | |
6642 | void *argp1 = 0 ; | |
6643 | int res1 = 0 ; | |
6644 | bool temp2 = false ; | |
6645 | PyObject * obj0 = 0 ; | |
6646 | PyObject * obj1 = 0 ; | |
6647 | char * kwnames[] = { | |
6648 | (char *) "self",(char *) "filename", NULL | |
6649 | }; | |
6650 | ||
6651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
6652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6653 | if (!SWIG_IsOK(res1)) { | |
6654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6655 | } | |
6656 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6657 | { | |
6658 | arg2 = wxString_in_helper(obj1); | |
6659 | if (arg2 == NULL) SWIG_fail; | |
6660 | temp2 = true; | |
6661 | } | |
6662 | { | |
6663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6664 | (arg1)->SetFilename((wxString const &)*arg2); | |
6665 | wxPyEndAllowThreads(__tstate); | |
6666 | if (PyErr_Occurred()) SWIG_fail; | |
6667 | } | |
6668 | resultobj = SWIG_Py_Void(); | |
6669 | { | |
6670 | if (temp2) | |
6671 | delete arg2; | |
6672 | } | |
6673 | return resultobj; | |
6674 | fail: | |
6675 | { | |
6676 | if (temp2) | |
6677 | delete arg2; | |
6678 | } | |
6679 | return NULL; | |
6680 | } | |
6681 | ||
6682 | ||
6683 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6684 | PyObject *resultobj = 0; | |
6685 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6686 | long arg2 ; | |
6687 | void *argp1 = 0 ; | |
6688 | int res1 = 0 ; | |
6689 | long val2 ; | |
6690 | int ecode2 = 0 ; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | PyObject * obj1 = 0 ; | |
6693 | char * kwnames[] = { | |
6694 | (char *) "self",(char *) "threshold", NULL | |
6695 | }; | |
6696 | ||
6697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail; | |
6698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6699 | if (!SWIG_IsOK(res1)) { | |
6700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6701 | } | |
6702 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6703 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6704 | if (!SWIG_IsOK(ecode2)) { | |
6705 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'"); | |
6706 | } | |
6707 | arg2 = static_cast< long >(val2); | |
6708 | { | |
6709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6710 | (arg1)->SetDelayedLayoutThreshold(arg2); | |
6711 | wxPyEndAllowThreads(__tstate); | |
6712 | if (PyErr_Occurred()) SWIG_fail; | |
6713 | } | |
6714 | resultobj = SWIG_Py_Void(); | |
6715 | return resultobj; | |
6716 | fail: | |
6717 | return NULL; | |
6718 | } | |
6719 | ||
6720 | ||
6721 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6722 | PyObject *resultobj = 0; | |
6723 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6724 | long result; | |
6725 | void *argp1 = 0 ; | |
6726 | int res1 = 0 ; | |
6727 | PyObject *swig_obj[1] ; | |
6728 | ||
6729 | if (!args) SWIG_fail; | |
6730 | swig_obj[0] = args; | |
6731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6732 | if (!SWIG_IsOK(res1)) { | |
6733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6734 | } | |
6735 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6736 | { | |
6737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6738 | result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold(); | |
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
6742 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6743 | return resultobj; | |
6744 | fail: | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6750 | PyObject *resultobj = 0; | |
6751 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6752 | void *argp1 = 0 ; | |
6753 | int res1 = 0 ; | |
6754 | PyObject *swig_obj[1] ; | |
6755 | ||
6756 | if (!args) SWIG_fail; | |
6757 | swig_obj[0] = args; | |
6758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6759 | if (!SWIG_IsOK(res1)) { | |
6760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6761 | } | |
6762 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6763 | { | |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | (arg1)->Clear(); | |
6766 | wxPyEndAllowThreads(__tstate); | |
6767 | if (PyErr_Occurred()) SWIG_fail; | |
6768 | } | |
6769 | resultobj = SWIG_Py_Void(); | |
6770 | return resultobj; | |
6771 | fail: | |
6772 | return NULL; | |
6773 | } | |
6774 | ||
6775 | ||
6776 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6777 | PyObject *resultobj = 0; | |
6778 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6779 | long arg2 ; | |
6780 | long arg3 ; | |
6781 | wxString *arg4 = 0 ; | |
6782 | void *argp1 = 0 ; | |
6783 | int res1 = 0 ; | |
6784 | long val2 ; | |
6785 | int ecode2 = 0 ; | |
6786 | long val3 ; | |
6787 | int ecode3 = 0 ; | |
6788 | bool temp4 = false ; | |
6789 | PyObject * obj0 = 0 ; | |
6790 | PyObject * obj1 = 0 ; | |
6791 | PyObject * obj2 = 0 ; | |
6792 | PyObject * obj3 = 0 ; | |
6793 | char * kwnames[] = { | |
6794 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6795 | }; | |
6796 | ||
6797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6799 | if (!SWIG_IsOK(res1)) { | |
6800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6801 | } | |
6802 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6803 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6804 | if (!SWIG_IsOK(ecode2)) { | |
6805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6806 | } | |
6807 | arg2 = static_cast< long >(val2); | |
6808 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6809 | if (!SWIG_IsOK(ecode3)) { | |
6810 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6811 | } | |
6812 | arg3 = static_cast< long >(val3); | |
6813 | { | |
6814 | arg4 = wxString_in_helper(obj3); | |
6815 | if (arg4 == NULL) SWIG_fail; | |
6816 | temp4 = true; | |
6817 | } | |
6818 | { | |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6820 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6821 | wxPyEndAllowThreads(__tstate); | |
6822 | if (PyErr_Occurred()) SWIG_fail; | |
6823 | } | |
6824 | resultobj = SWIG_Py_Void(); | |
6825 | { | |
6826 | if (temp4) | |
6827 | delete arg4; | |
6828 | } | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | { | |
6832 | if (temp4) | |
6833 | delete arg4; | |
6834 | } | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
6839 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6840 | PyObject *resultobj = 0; | |
6841 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6842 | long arg2 ; | |
6843 | long arg3 ; | |
6844 | void *argp1 = 0 ; | |
6845 | int res1 = 0 ; | |
6846 | long val2 ; | |
6847 | int ecode2 = 0 ; | |
6848 | long val3 ; | |
6849 | int ecode3 = 0 ; | |
6850 | PyObject * obj0 = 0 ; | |
6851 | PyObject * obj1 = 0 ; | |
6852 | PyObject * obj2 = 0 ; | |
6853 | char * kwnames[] = { | |
6854 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6855 | }; | |
6856 | ||
6857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6859 | if (!SWIG_IsOK(res1)) { | |
6860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6861 | } | |
6862 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6863 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6864 | if (!SWIG_IsOK(ecode2)) { | |
6865 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6866 | } | |
6867 | arg2 = static_cast< long >(val2); | |
6868 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6869 | if (!SWIG_IsOK(ecode3)) { | |
6870 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6871 | } | |
6872 | arg3 = static_cast< long >(val3); | |
6873 | { | |
6874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6875 | (arg1)->Remove(arg2,arg3); | |
6876 | wxPyEndAllowThreads(__tstate); | |
6877 | if (PyErr_Occurred()) SWIG_fail; | |
6878 | } | |
6879 | resultobj = SWIG_Py_Void(); | |
6880 | return resultobj; | |
6881 | fail: | |
6882 | return NULL; | |
6883 | } | |
6884 | ||
6885 | ||
6886 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6887 | PyObject *resultobj = 0; | |
6888 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6889 | wxString *arg2 = 0 ; | |
6890 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6891 | bool result; | |
6892 | void *argp1 = 0 ; | |
6893 | int res1 = 0 ; | |
6894 | bool temp2 = false ; | |
6895 | int val3 ; | |
6896 | int ecode3 = 0 ; | |
6897 | PyObject * obj0 = 0 ; | |
6898 | PyObject * obj1 = 0 ; | |
6899 | PyObject * obj2 = 0 ; | |
6900 | char * kwnames[] = { | |
6901 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6902 | }; | |
6903 | ||
6904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6906 | if (!SWIG_IsOK(res1)) { | |
6907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6908 | } | |
6909 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6910 | { | |
6911 | arg2 = wxString_in_helper(obj1); | |
6912 | if (arg2 == NULL) SWIG_fail; | |
6913 | temp2 = true; | |
6914 | } | |
6915 | if (obj2) { | |
6916 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6917 | if (!SWIG_IsOK(ecode3)) { | |
6918 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
6919 | } | |
6920 | arg3 = static_cast< int >(val3); | |
6921 | } | |
6922 | { | |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6924 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6925 | wxPyEndAllowThreads(__tstate); | |
6926 | if (PyErr_Occurred()) SWIG_fail; | |
6927 | } | |
6928 | { | |
6929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6930 | } | |
6931 | { | |
6932 | if (temp2) | |
6933 | delete arg2; | |
6934 | } | |
6935 | return resultobj; | |
6936 | fail: | |
6937 | { | |
6938 | if (temp2) | |
6939 | delete arg2; | |
6940 | } | |
6941 | return NULL; | |
6942 | } | |
6943 | ||
6944 | ||
6945 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6946 | PyObject *resultobj = 0; | |
6947 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6948 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6949 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6950 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6951 | bool result; | |
6952 | void *argp1 = 0 ; | |
6953 | int res1 = 0 ; | |
6954 | bool temp2 = false ; | |
6955 | int val3 ; | |
6956 | int ecode3 = 0 ; | |
6957 | PyObject * obj0 = 0 ; | |
6958 | PyObject * obj1 = 0 ; | |
6959 | PyObject * obj2 = 0 ; | |
6960 | char * kwnames[] = { | |
6961 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6962 | }; | |
6963 | ||
6964 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6966 | if (!SWIG_IsOK(res1)) { | |
6967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6968 | } | |
6969 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6970 | if (obj1) { | |
6971 | { | |
6972 | arg2 = wxString_in_helper(obj1); | |
6973 | if (arg2 == NULL) SWIG_fail; | |
6974 | temp2 = true; | |
6975 | } | |
6976 | } | |
6977 | if (obj2) { | |
6978 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6979 | if (!SWIG_IsOK(ecode3)) { | |
6980 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
6981 | } | |
6982 | arg3 = static_cast< int >(val3); | |
6983 | } | |
6984 | { | |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
6987 | wxPyEndAllowThreads(__tstate); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
6990 | { | |
6991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6992 | } | |
6993 | { | |
6994 | if (temp2) | |
6995 | delete arg2; | |
6996 | } | |
6997 | return resultobj; | |
6998 | fail: | |
6999 | { | |
7000 | if (temp2) | |
7001 | delete arg2; | |
7002 | } | |
7003 | return NULL; | |
7004 | } | |
7005 | ||
7006 | ||
7007 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7008 | PyObject *resultobj = 0; | |
7009 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7010 | void *argp1 = 0 ; | |
7011 | int res1 = 0 ; | |
7012 | PyObject *swig_obj[1] ; | |
7013 | ||
7014 | if (!args) SWIG_fail; | |
7015 | swig_obj[0] = args; | |
7016 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7017 | if (!SWIG_IsOK(res1)) { | |
7018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7019 | } | |
7020 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7021 | { | |
7022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7023 | (arg1)->MarkDirty(); | |
7024 | wxPyEndAllowThreads(__tstate); | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | } | |
7027 | resultobj = SWIG_Py_Void(); | |
7028 | return resultobj; | |
7029 | fail: | |
7030 | return NULL; | |
7031 | } | |
7032 | ||
7033 | ||
7034 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7035 | PyObject *resultobj = 0; | |
7036 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7037 | void *argp1 = 0 ; | |
7038 | int res1 = 0 ; | |
7039 | PyObject *swig_obj[1] ; | |
7040 | ||
7041 | if (!args) SWIG_fail; | |
7042 | swig_obj[0] = args; | |
7043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7044 | if (!SWIG_IsOK(res1)) { | |
7045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7046 | } | |
7047 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7048 | { | |
7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7050 | (arg1)->DiscardEdits(); | |
7051 | wxPyEndAllowThreads(__tstate); | |
7052 | if (PyErr_Occurred()) SWIG_fail; | |
7053 | } | |
7054 | resultobj = SWIG_Py_Void(); | |
7055 | return resultobj; | |
7056 | fail: | |
7057 | return NULL; | |
7058 | } | |
7059 | ||
7060 | ||
7061 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7062 | PyObject *resultobj = 0; | |
7063 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7064 | unsigned long arg2 ; | |
7065 | void *argp1 = 0 ; | |
7066 | int res1 = 0 ; | |
7067 | unsigned long val2 ; | |
7068 | int ecode2 = 0 ; | |
7069 | PyObject * obj0 = 0 ; | |
7070 | PyObject * obj1 = 0 ; | |
7071 | char * kwnames[] = { | |
7072 | (char *) "self",(char *) "len", NULL | |
7073 | }; | |
7074 | ||
7075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
7076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7077 | if (!SWIG_IsOK(res1)) { | |
7078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7079 | } | |
7080 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7081 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
7082 | if (!SWIG_IsOK(ecode2)) { | |
7083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
7084 | } | |
7085 | arg2 = static_cast< unsigned long >(val2); | |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | (arg1)->SetMaxLength(arg2); | |
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
7092 | resultobj = SWIG_Py_Void(); | |
7093 | return resultobj; | |
7094 | fail: | |
7095 | return NULL; | |
7096 | } | |
7097 | ||
7098 | ||
7099 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7100 | PyObject *resultobj = 0; | |
7101 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7102 | wxString *arg2 = 0 ; | |
7103 | void *argp1 = 0 ; | |
7104 | int res1 = 0 ; | |
7105 | bool temp2 = false ; | |
7106 | PyObject * obj0 = 0 ; | |
7107 | PyObject * obj1 = 0 ; | |
7108 | char * kwnames[] = { | |
7109 | (char *) "self",(char *) "text", NULL | |
7110 | }; | |
7111 | ||
7112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7114 | if (!SWIG_IsOK(res1)) { | |
7115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7116 | } | |
7117 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7118 | { | |
7119 | arg2 = wxString_in_helper(obj1); | |
7120 | if (arg2 == NULL) SWIG_fail; | |
7121 | temp2 = true; | |
7122 | } | |
7123 | { | |
7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7125 | (arg1)->WriteText((wxString const &)*arg2); | |
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) SWIG_fail; | |
7128 | } | |
7129 | resultobj = SWIG_Py_Void(); | |
7130 | { | |
7131 | if (temp2) | |
7132 | delete arg2; | |
7133 | } | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | { | |
7137 | if (temp2) | |
7138 | delete arg2; | |
7139 | } | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
7144 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7145 | PyObject *resultobj = 0; | |
7146 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7147 | wxString *arg2 = 0 ; | |
7148 | void *argp1 = 0 ; | |
7149 | int res1 = 0 ; | |
7150 | bool temp2 = false ; | |
7151 | PyObject * obj0 = 0 ; | |
7152 | PyObject * obj1 = 0 ; | |
7153 | char * kwnames[] = { | |
7154 | (char *) "self",(char *) "text", NULL | |
7155 | }; | |
7156 | ||
7157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7159 | if (!SWIG_IsOK(res1)) { | |
7160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7161 | } | |
7162 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7163 | { | |
7164 | arg2 = wxString_in_helper(obj1); | |
7165 | if (arg2 == NULL) SWIG_fail; | |
7166 | temp2 = true; | |
7167 | } | |
7168 | { | |
7169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7170 | (arg1)->AppendText((wxString const &)*arg2); | |
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | resultobj = SWIG_Py_Void(); | |
7175 | { | |
7176 | if (temp2) | |
7177 | delete arg2; | |
7178 | } | |
7179 | return resultobj; | |
7180 | fail: | |
7181 | { | |
7182 | if (temp2) | |
7183 | delete arg2; | |
7184 | } | |
7185 | return NULL; | |
7186 | } | |
7187 | ||
7188 | ||
7189 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7190 | PyObject *resultobj = 0; | |
7191 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7192 | wxRichTextRange *arg2 = 0 ; | |
7193 | wxRichTextAttr *arg3 = 0 ; | |
7194 | bool result; | |
7195 | void *argp1 = 0 ; | |
7196 | int res1 = 0 ; | |
7197 | wxRichTextRange temp2 ; | |
7198 | void *argp3 = 0 ; | |
7199 | int res3 = 0 ; | |
7200 | PyObject * obj0 = 0 ; | |
7201 | PyObject * obj1 = 0 ; | |
7202 | PyObject * obj2 = 0 ; | |
7203 | char * kwnames[] = { | |
7204 | (char *) "self",(char *) "range",(char *) "style", NULL | |
7205 | }; | |
7206 | ||
7207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7209 | if (!SWIG_IsOK(res1)) { | |
7210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7211 | } | |
7212 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7213 | { | |
7214 | arg2 = &temp2; | |
7215 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
7216 | } | |
7217 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7218 | if (!SWIG_IsOK(res3)) { | |
7219 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7220 | } | |
7221 | if (!argp3) { | |
7222 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7223 | } | |
7224 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7225 | { | |
7226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7227 | result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
7228 | wxPyEndAllowThreads(__tstate); | |
7229 | if (PyErr_Occurred()) SWIG_fail; | |
7230 | } | |
7231 | { | |
7232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7233 | } | |
7234 | return resultobj; | |
7235 | fail: | |
7236 | return NULL; | |
7237 | } | |
7238 | ||
7239 | ||
7240 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7241 | PyObject *resultobj = 0; | |
7242 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7243 | long arg2 ; | |
7244 | wxRichTextAttr *arg3 = 0 ; | |
7245 | bool result; | |
7246 | void *argp1 = 0 ; | |
7247 | int res1 = 0 ; | |
7248 | long val2 ; | |
7249 | int ecode2 = 0 ; | |
7250 | void *argp3 = 0 ; | |
7251 | int res3 = 0 ; | |
7252 | PyObject * obj0 = 0 ; | |
7253 | PyObject * obj1 = 0 ; | |
7254 | PyObject * obj2 = 0 ; | |
7255 | char * kwnames[] = { | |
7256 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7257 | }; | |
7258 | ||
7259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7261 | if (!SWIG_IsOK(res1)) { | |
79df624a | 7262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
7263 | } |
7264 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7265 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7266 | if (!SWIG_IsOK(ecode2)) { | |
7267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
7268 | } | |
7269 | arg2 = static_cast< long >(val2); | |
7270 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7271 | if (!SWIG_IsOK(res3)) { | |
7272 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7273 | } | |
7274 | if (!argp3) { | |
7275 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7276 | } | |
7277 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7278 | { | |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 7280 | result = (bool)(arg1)->GetStyle(arg2,*arg3); |
06810ecf RD |
7281 | wxPyEndAllowThreads(__tstate); |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
7284 | { | |
7285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7286 | } | |
7287 | return resultobj; | |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
c2829a8f RD |
7293 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetUncombinedStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7294 | PyObject *resultobj = 0; | |
7295 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7296 | long arg2 ; | |
7297 | wxRichTextAttr *arg3 = 0 ; | |
7298 | bool result; | |
7299 | void *argp1 = 0 ; | |
7300 | int res1 = 0 ; | |
7301 | long val2 ; | |
7302 | int ecode2 = 0 ; | |
7303 | void *argp3 = 0 ; | |
7304 | int res3 = 0 ; | |
7305 | PyObject * obj0 = 0 ; | |
7306 | PyObject * obj1 = 0 ; | |
7307 | PyObject * obj2 = 0 ; | |
7308 | char * kwnames[] = { | |
7309 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7310 | }; | |
7311 | ||
7312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetUncombinedStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7314 | if (!SWIG_IsOK(res1)) { | |
7315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7316 | } | |
7317 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7318 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7319 | if (!SWIG_IsOK(ecode2)) { | |
7320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "2"" of type '" "long""'"); | |
7321 | } | |
7322 | arg2 = static_cast< long >(val2); | |
7323 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7324 | if (!SWIG_IsOK(res3)) { | |
7325 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7326 | } | |
7327 | if (!argp3) { | |
7328 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7329 | } | |
7330 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7331 | { | |
7332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7333 | result = (bool)(arg1)->GetUncombinedStyle(arg2,*arg3); | |
7334 | wxPyEndAllowThreads(__tstate); | |
7335 | if (PyErr_Occurred()) SWIG_fail; | |
7336 | } | |
7337 | { | |
7338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7339 | } | |
7340 | return resultobj; | |
7341 | fail: | |
7342 | return NULL; | |
7343 | } | |
7344 | ||
7345 | ||
06810ecf RD |
7346 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7347 | PyObject *resultobj = 0; | |
7348 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7349 | wxRichTextAttr *arg2 = 0 ; | |
7350 | bool result; | |
7351 | void *argp1 = 0 ; | |
7352 | int res1 = 0 ; | |
7353 | void *argp2 = 0 ; | |
7354 | int res2 = 0 ; | |
7355 | PyObject * obj0 = 0 ; | |
7356 | PyObject * obj1 = 0 ; | |
7357 | char * kwnames[] = { | |
7358 | (char *) "self",(char *) "style", NULL | |
7359 | }; | |
7360 | ||
7361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
7362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7363 | if (!SWIG_IsOK(res1)) { | |
7364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7365 | } | |
7366 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7367 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7368 | if (!SWIG_IsOK(res2)) { | |
7369 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7370 | } | |
7371 | if (!argp2) { | |
7372 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7373 | } | |
7374 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
7375 | { | |
7376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7377 | result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2); | |
7378 | wxPyEndAllowThreads(__tstate); | |
7379 | if (PyErr_Occurred()) SWIG_fail; | |
7380 | } | |
7381 | { | |
7382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7383 | } | |
7384 | return resultobj; | |
7385 | fail: | |
7386 | return NULL; | |
7387 | } | |
7388 | ||
7389 | ||
7390 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7391 | PyObject *resultobj = 0; | |
7392 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7393 | wxRichTextAttr result; | |
7394 | void *argp1 = 0 ; | |
7395 | int res1 = 0 ; | |
7396 | PyObject *swig_obj[1] ; | |
7397 | ||
7398 | if (!args) SWIG_fail; | |
7399 | swig_obj[0] = args; | |
7400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7401 | if (!SWIG_IsOK(res1)) { | |
7402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7403 | } | |
7404 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7405 | { | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx(); | |
7408 | wxPyEndAllowThreads(__tstate); | |
7409 | if (PyErr_Occurred()) SWIG_fail; | |
7410 | } | |
7411 | resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 ); | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | return NULL; | |
7415 | } | |
7416 | ||
7417 | ||
7418 | SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7419 | PyObject *resultobj = 0; | |
7420 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7421 | long arg2 ; | |
7422 | long arg3 ; | |
7423 | long result; | |
7424 | void *argp1 = 0 ; | |
7425 | int res1 = 0 ; | |
7426 | long val2 ; | |
7427 | int ecode2 = 0 ; | |
7428 | long val3 ; | |
7429 | int ecode3 = 0 ; | |
7430 | PyObject * obj0 = 0 ; | |
7431 | PyObject * obj1 = 0 ; | |
7432 | PyObject * obj2 = 0 ; | |
7433 | char * kwnames[] = { | |
7434 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7435 | }; | |
7436 | ||
7437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7439 | if (!SWIG_IsOK(res1)) { | |
7440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7441 | } | |
7442 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7443 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7444 | if (!SWIG_IsOK(ecode2)) { | |
7445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
7446 | } | |
7447 | arg2 = static_cast< long >(val2); | |
7448 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7449 | if (!SWIG_IsOK(ecode3)) { | |
7450 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
7451 | } | |
7452 | arg3 = static_cast< long >(val3); | |
7453 | { | |
7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7455 | result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
7459 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7460 | return resultobj; | |
7461 | fail: | |
7462 | return NULL; | |
7463 | } | |
7464 | ||
7465 | ||
7466 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7467 | PyObject *resultobj = 0; | |
7468 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7469 | long arg2 ; | |
7470 | long *arg3 = (long *) 0 ; | |
7471 | long *arg4 = (long *) 0 ; | |
7472 | void *argp1 = 0 ; | |
7473 | int res1 = 0 ; | |
7474 | long val2 ; | |
7475 | int ecode2 = 0 ; | |
7476 | long temp3 ; | |
7477 | int res3 = SWIG_TMPOBJ ; | |
7478 | long temp4 ; | |
7479 | int res4 = SWIG_TMPOBJ ; | |
7480 | PyObject * obj0 = 0 ; | |
7481 | PyObject * obj1 = 0 ; | |
7482 | char * kwnames[] = { | |
7483 | (char *) "self",(char *) "pos", NULL | |
7484 | }; | |
7485 | ||
7486 | arg3 = &temp3; | |
7487 | arg4 = &temp4; | |
7488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
7489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7490 | if (!SWIG_IsOK(res1)) { | |
7491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7492 | } | |
7493 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7494 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7495 | if (!SWIG_IsOK(ecode2)) { | |
7496 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
7497 | } | |
7498 | arg2 = static_cast< long >(val2); | |
7499 | { | |
7500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7501 | ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7502 | wxPyEndAllowThreads(__tstate); | |
7503 | if (PyErr_Occurred()) SWIG_fail; | |
7504 | } | |
7505 | resultobj = SWIG_Py_Void(); | |
7506 | if (SWIG_IsTmpObj(res3)) { | |
7507 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7508 | } else { | |
7509 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7510 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7511 | } | |
7512 | if (SWIG_IsTmpObj(res4)) { | |
7513 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
7514 | } else { | |
7515 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7516 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
7517 | } | |
7518 | return resultobj; | |
7519 | fail: | |
7520 | return NULL; | |
7521 | } | |
7522 | ||
7523 | ||
7524 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7525 | PyObject *resultobj = 0; | |
7526 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7527 | long arg2 ; | |
7528 | void *argp1 = 0 ; | |
7529 | int res1 = 0 ; | |
7530 | long val2 ; | |
7531 | int ecode2 = 0 ; | |
7532 | PyObject * obj0 = 0 ; | |
7533 | PyObject * obj1 = 0 ; | |
7534 | char * kwnames[] = { | |
7535 | (char *) "self",(char *) "position", NULL | |
7536 | }; | |
7537 | ||
7538 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) 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_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7542 | } | |
7543 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7544 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7545 | if (!SWIG_IsOK(ecode2)) { | |
7546 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
7547 | } | |
7548 | arg2 = static_cast< long >(val2); | |
7549 | { | |
7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7551 | (arg1)->ShowPosition(arg2); | |
7552 | wxPyEndAllowThreads(__tstate); | |
7553 | if (PyErr_Occurred()) SWIG_fail; | |
7554 | } | |
7555 | resultobj = SWIG_Py_Void(); | |
7556 | return resultobj; | |
7557 | fail: | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7563 | PyObject *resultobj = 0; | |
7564 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7565 | wxPoint *arg2 = 0 ; | |
7566 | long *arg3 = (long *) 0 ; | |
7567 | wxTextCtrlHitTestResult result; | |
7568 | void *argp1 = 0 ; | |
7569 | int res1 = 0 ; | |
7570 | wxPoint temp2 ; | |
7571 | long temp3 ; | |
7572 | int res3 = SWIG_TMPOBJ ; | |
7573 | PyObject * obj0 = 0 ; | |
7574 | PyObject * obj1 = 0 ; | |
7575 | char * kwnames[] = { | |
7576 | (char *) "self",(char *) "pt", NULL | |
7577 | }; | |
7578 | ||
7579 | arg3 = &temp3; | |
7580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
7581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7582 | if (!SWIG_IsOK(res1)) { | |
7583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7584 | } | |
7585 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7586 | { | |
7587 | arg2 = &temp2; | |
7588 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7589 | } | |
7590 | { | |
7591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7592 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) SWIG_fail; | |
7595 | } | |
7596 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7597 | if (SWIG_IsTmpObj(res3)) { | |
7598 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7599 | } else { | |
7600 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7601 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7602 | } | |
7603 | return resultobj; | |
7604 | fail: | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
7609 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7610 | PyObject *resultobj = 0; | |
7611 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7612 | wxPoint *arg2 = 0 ; | |
7613 | wxTextCoord *arg3 = (wxTextCoord *) 0 ; | |
7614 | wxTextCoord *arg4 = (wxTextCoord *) 0 ; | |
7615 | wxTextCtrlHitTestResult result; | |
7616 | void *argp1 = 0 ; | |
7617 | int res1 = 0 ; | |
7618 | wxPoint temp2 ; | |
7619 | void *argp3 = 0 ; | |
7620 | int res3 = 0 ; | |
7621 | void *argp4 = 0 ; | |
7622 | int res4 = 0 ; | |
7623 | PyObject * obj0 = 0 ; | |
7624 | PyObject * obj1 = 0 ; | |
7625 | PyObject * obj2 = 0 ; | |
7626 | PyObject * obj3 = 0 ; | |
7627 | char * kwnames[] = { | |
7628 | (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL | |
7629 | }; | |
7630 | ||
7631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7633 | if (!SWIG_IsOK(res1)) { | |
7634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7635 | } | |
7636 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7637 | { | |
7638 | arg2 = &temp2; | |
7639 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7640 | } | |
7641 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7642 | if (!SWIG_IsOK(res3)) { | |
7643 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'"); | |
7644 | } | |
7645 | arg3 = reinterpret_cast< wxTextCoord * >(argp3); | |
7646 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7647 | if (!SWIG_IsOK(res4)) { | |
7648 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'"); | |
7649 | } | |
7650 | arg4 = reinterpret_cast< wxTextCoord * >(argp4); | |
7651 | { | |
7652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7653 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7658 | return resultobj; | |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7665 | PyObject *resultobj = 0; | |
7666 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7667 | void *argp1 = 0 ; | |
7668 | int res1 = 0 ; | |
7669 | PyObject *swig_obj[1] ; | |
7670 | ||
7671 | if (!args) SWIG_fail; | |
7672 | swig_obj[0] = args; | |
7673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7674 | if (!SWIG_IsOK(res1)) { | |
7675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7676 | } | |
7677 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7678 | { | |
7679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7680 | (arg1)->Copy(); | |
7681 | wxPyEndAllowThreads(__tstate); | |
7682 | if (PyErr_Occurred()) SWIG_fail; | |
7683 | } | |
7684 | resultobj = SWIG_Py_Void(); | |
7685 | return resultobj; | |
7686 | fail: | |
7687 | return NULL; | |
7688 | } | |
7689 | ||
7690 | ||
7691 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7692 | PyObject *resultobj = 0; | |
7693 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7694 | void *argp1 = 0 ; | |
7695 | int res1 = 0 ; | |
7696 | PyObject *swig_obj[1] ; | |
7697 | ||
7698 | if (!args) SWIG_fail; | |
7699 | swig_obj[0] = args; | |
7700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7701 | if (!SWIG_IsOK(res1)) { | |
7702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7703 | } | |
7704 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7705 | { | |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | (arg1)->Cut(); | |
7708 | wxPyEndAllowThreads(__tstate); | |
7709 | if (PyErr_Occurred()) SWIG_fail; | |
7710 | } | |
7711 | resultobj = SWIG_Py_Void(); | |
7712 | return resultobj; | |
7713 | fail: | |
7714 | return NULL; | |
7715 | } | |
7716 | ||
7717 | ||
7718 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7719 | PyObject *resultobj = 0; | |
7720 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7721 | void *argp1 = 0 ; | |
7722 | int res1 = 0 ; | |
7723 | PyObject *swig_obj[1] ; | |
7724 | ||
7725 | if (!args) SWIG_fail; | |
7726 | swig_obj[0] = args; | |
7727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7728 | if (!SWIG_IsOK(res1)) { | |
7729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7730 | } | |
7731 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | (arg1)->Paste(); | |
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | resultobj = SWIG_Py_Void(); | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
7745 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7746 | PyObject *resultobj = 0; | |
7747 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7748 | void *argp1 = 0 ; | |
7749 | int res1 = 0 ; | |
7750 | PyObject *swig_obj[1] ; | |
7751 | ||
7752 | if (!args) SWIG_fail; | |
7753 | swig_obj[0] = args; | |
7754 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7755 | if (!SWIG_IsOK(res1)) { | |
7756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7757 | } | |
7758 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7759 | { | |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7761 | (arg1)->DeleteSelection(); | |
7762 | wxPyEndAllowThreads(__tstate); | |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
7764 | } | |
7765 | resultobj = SWIG_Py_Void(); | |
7766 | return resultobj; | |
7767 | fail: | |
7768 | return NULL; | |
7769 | } | |
7770 | ||
7771 | ||
7772 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7773 | PyObject *resultobj = 0; | |
7774 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7775 | bool result; | |
7776 | void *argp1 = 0 ; | |
7777 | int res1 = 0 ; | |
7778 | PyObject *swig_obj[1] ; | |
7779 | ||
7780 | if (!args) SWIG_fail; | |
7781 | swig_obj[0] = args; | |
7782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7783 | if (!SWIG_IsOK(res1)) { | |
7784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7785 | } | |
7786 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7787 | { | |
7788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7789 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy(); | |
7790 | wxPyEndAllowThreads(__tstate); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | { | |
7794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7795 | } | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | return NULL; | |
7799 | } | |
7800 | ||
7801 | ||
7802 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7803 | PyObject *resultobj = 0; | |
7804 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7805 | bool result; | |
7806 | void *argp1 = 0 ; | |
7807 | int res1 = 0 ; | |
7808 | PyObject *swig_obj[1] ; | |
7809 | ||
7810 | if (!args) SWIG_fail; | |
7811 | swig_obj[0] = args; | |
7812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7813 | if (!SWIG_IsOK(res1)) { | |
7814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7815 | } | |
7816 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7817 | { | |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCut(); | |
7820 | wxPyEndAllowThreads(__tstate); | |
7821 | if (PyErr_Occurred()) SWIG_fail; | |
7822 | } | |
7823 | { | |
7824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7825 | } | |
7826 | return resultobj; | |
7827 | fail: | |
7828 | return NULL; | |
7829 | } | |
7830 | ||
7831 | ||
7832 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7833 | PyObject *resultobj = 0; | |
7834 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7835 | bool result; | |
7836 | void *argp1 = 0 ; | |
7837 | int res1 = 0 ; | |
7838 | PyObject *swig_obj[1] ; | |
7839 | ||
7840 | if (!args) SWIG_fail; | |
7841 | swig_obj[0] = args; | |
7842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7843 | if (!SWIG_IsOK(res1)) { | |
7844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7845 | } | |
7846 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7847 | { | |
7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7849 | result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste(); | |
7850 | wxPyEndAllowThreads(__tstate); | |
7851 | if (PyErr_Occurred()) SWIG_fail; | |
7852 | } | |
7853 | { | |
7854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7855 | } | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | return NULL; | |
7859 | } | |
7860 | ||
7861 | ||
7862 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7863 | PyObject *resultobj = 0; | |
7864 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7865 | bool result; | |
7866 | void *argp1 = 0 ; | |
7867 | int res1 = 0 ; | |
7868 | PyObject *swig_obj[1] ; | |
7869 | ||
7870 | if (!args) SWIG_fail; | |
7871 | swig_obj[0] = args; | |
7872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7873 | if (!SWIG_IsOK(res1)) { | |
7874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7875 | } | |
7876 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7877 | { | |
7878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7879 | result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection(); | |
7880 | wxPyEndAllowThreads(__tstate); | |
7881 | if (PyErr_Occurred()) SWIG_fail; | |
7882 | } | |
7883 | { | |
7884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7885 | } | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | return NULL; | |
7889 | } | |
7890 | ||
7891 | ||
7892 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7893 | PyObject *resultobj = 0; | |
7894 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7895 | void *argp1 = 0 ; | |
7896 | int res1 = 0 ; | |
7897 | PyObject *swig_obj[1] ; | |
7898 | ||
7899 | if (!args) SWIG_fail; | |
7900 | swig_obj[0] = args; | |
7901 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7902 | if (!SWIG_IsOK(res1)) { | |
7903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7904 | } | |
7905 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7906 | { | |
7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7908 | (arg1)->Undo(); | |
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
7912 | resultobj = SWIG_Py_Void(); | |
7913 | return resultobj; | |
7914 | fail: | |
7915 | return NULL; | |
7916 | } | |
7917 | ||
7918 | ||
7919 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7920 | PyObject *resultobj = 0; | |
7921 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7922 | void *argp1 = 0 ; | |
7923 | int res1 = 0 ; | |
7924 | PyObject *swig_obj[1] ; | |
7925 | ||
7926 | if (!args) SWIG_fail; | |
7927 | swig_obj[0] = args; | |
7928 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7929 | if (!SWIG_IsOK(res1)) { | |
7930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7931 | } | |
7932 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7933 | { | |
7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7935 | (arg1)->Redo(); | |
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | resultobj = SWIG_Py_Void(); | |
7940 | return resultobj; | |
7941 | fail: | |
7942 | return NULL; | |
7943 | } | |
7944 | ||
7945 | ||
7946 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7947 | PyObject *resultobj = 0; | |
7948 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7949 | bool result; | |
7950 | void *argp1 = 0 ; | |
7951 | int res1 = 0 ; | |
7952 | PyObject *swig_obj[1] ; | |
7953 | ||
7954 | if (!args) SWIG_fail; | |
7955 | swig_obj[0] = args; | |
7956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7957 | if (!SWIG_IsOK(res1)) { | |
7958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7959 | } | |
7960 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7961 | { | |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo(); | |
7964 | wxPyEndAllowThreads(__tstate); | |
7965 | if (PyErr_Occurred()) SWIG_fail; | |
7966 | } | |
7967 | { | |
7968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7969 | } | |
7970 | return resultobj; | |
7971 | fail: | |
7972 | return NULL; | |
7973 | } | |
7974 | ||
7975 | ||
7976 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7977 | PyObject *resultobj = 0; | |
7978 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7979 | bool result; | |
7980 | void *argp1 = 0 ; | |
7981 | int res1 = 0 ; | |
7982 | PyObject *swig_obj[1] ; | |
7983 | ||
7984 | if (!args) SWIG_fail; | |
7985 | swig_obj[0] = args; | |
7986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7987 | if (!SWIG_IsOK(res1)) { | |
7988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7989 | } | |
7990 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7991 | { | |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo(); | |
7994 | wxPyEndAllowThreads(__tstate); | |
7995 | if (PyErr_Occurred()) SWIG_fail; | |
7996 | } | |
7997 | { | |
7998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7999 | } | |
8000 | return resultobj; | |
8001 | fail: | |
8002 | return NULL; | |
8003 | } | |
8004 | ||
8005 | ||
8006 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8007 | PyObject *resultobj = 0; | |
8008 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8009 | long arg2 ; | |
8010 | void *argp1 = 0 ; | |
8011 | int res1 = 0 ; | |
8012 | long val2 ; | |
8013 | int ecode2 = 0 ; | |
8014 | PyObject * obj0 = 0 ; | |
8015 | PyObject * obj1 = 0 ; | |
8016 | char * kwnames[] = { | |
8017 | (char *) "self",(char *) "pos", NULL | |
8018 | }; | |
8019 | ||
8020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
8021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8022 | if (!SWIG_IsOK(res1)) { | |
8023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8024 | } | |
8025 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8026 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8027 | if (!SWIG_IsOK(ecode2)) { | |
8028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
8029 | } | |
8030 | arg2 = static_cast< long >(val2); | |
8031 | { | |
8032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8033 | (arg1)->SetInsertionPoint(arg2); | |
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | resultobj = SWIG_Py_Void(); | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8045 | PyObject *resultobj = 0; | |
8046 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8047 | void *argp1 = 0 ; | |
8048 | int res1 = 0 ; | |
8049 | PyObject *swig_obj[1] ; | |
8050 | ||
8051 | if (!args) SWIG_fail; | |
8052 | swig_obj[0] = args; | |
8053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8054 | if (!SWIG_IsOK(res1)) { | |
8055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8056 | } | |
8057 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8058 | { | |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | (arg1)->SetInsertionPointEnd(); | |
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | resultobj = SWIG_Py_Void(); | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
8071 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8072 | PyObject *resultobj = 0; | |
8073 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8074 | long result; | |
8075 | void *argp1 = 0 ; | |
8076 | int res1 = 0 ; | |
8077 | PyObject *swig_obj[1] ; | |
8078 | ||
8079 | if (!args) SWIG_fail; | |
8080 | swig_obj[0] = args; | |
8081 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8082 | if (!SWIG_IsOK(res1)) { | |
8083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8084 | } | |
8085 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8086 | { | |
8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8088 | result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint(); | |
8089 | wxPyEndAllowThreads(__tstate); | |
8090 | if (PyErr_Occurred()) SWIG_fail; | |
8091 | } | |
8092 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8093 | return resultobj; | |
8094 | fail: | |
8095 | return NULL; | |
8096 | } | |
8097 | ||
8098 | ||
8099 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8100 | PyObject *resultobj = 0; | |
8101 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8102 | long result; | |
8103 | void *argp1 = 0 ; | |
8104 | int res1 = 0 ; | |
8105 | PyObject *swig_obj[1] ; | |
8106 | ||
8107 | if (!args) SWIG_fail; | |
8108 | swig_obj[0] = args; | |
8109 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8110 | if (!SWIG_IsOK(res1)) { | |
8111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8112 | } | |
8113 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8114 | { | |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8116 | result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition(); | |
8117 | wxPyEndAllowThreads(__tstate); | |
8118 | if (PyErr_Occurred()) SWIG_fail; | |
8119 | } | |
8120 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8121 | return resultobj; | |
8122 | fail: | |
8123 | return NULL; | |
8124 | } | |
8125 | ||
8126 | ||
8127 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8128 | PyObject *resultobj = 0; | |
8129 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8130 | long arg2 ; | |
8131 | long arg3 ; | |
8132 | void *argp1 = 0 ; | |
8133 | int res1 = 0 ; | |
8134 | long val2 ; | |
8135 | int ecode2 = 0 ; | |
8136 | long val3 ; | |
8137 | int ecode3 = 0 ; | |
8138 | PyObject * obj0 = 0 ; | |
8139 | PyObject * obj1 = 0 ; | |
8140 | PyObject * obj2 = 0 ; | |
8141 | char * kwnames[] = { | |
8142 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8143 | }; | |
8144 | ||
8145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8147 | if (!SWIG_IsOK(res1)) { | |
8148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8149 | } | |
8150 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8151 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8152 | if (!SWIG_IsOK(ecode2)) { | |
8153 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
8154 | } | |
8155 | arg2 = static_cast< long >(val2); | |
8156 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8157 | if (!SWIG_IsOK(ecode3)) { | |
8158 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
8159 | } | |
8160 | arg3 = static_cast< long >(val3); | |
8161 | { | |
8162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8163 | (arg1)->SetSelection(arg2,arg3); | |
8164 | wxPyEndAllowThreads(__tstate); | |
8165 | if (PyErr_Occurred()) SWIG_fail; | |
8166 | } | |
8167 | resultobj = SWIG_Py_Void(); | |
8168 | return resultobj; | |
8169 | fail: | |
8170 | return NULL; | |
8171 | } | |
8172 | ||
8173 | ||
8174 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8175 | PyObject *resultobj = 0; | |
8176 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8177 | void *argp1 = 0 ; | |
8178 | int res1 = 0 ; | |
8179 | PyObject *swig_obj[1] ; | |
8180 | ||
8181 | if (!args) SWIG_fail; | |
8182 | swig_obj[0] = args; | |
8183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8184 | if (!SWIG_IsOK(res1)) { | |
8185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8186 | } | |
8187 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8188 | { | |
8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8190 | (arg1)->SelectAll(); | |
8191 | wxPyEndAllowThreads(__tstate); | |
8192 | if (PyErr_Occurred()) SWIG_fail; | |
8193 | } | |
8194 | resultobj = SWIG_Py_Void(); | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | return NULL; | |
8198 | } | |
8199 | ||
8200 | ||
8201 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8202 | PyObject *resultobj = 0; | |
8203 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8204 | bool arg2 ; | |
8205 | void *argp1 = 0 ; | |
8206 | int res1 = 0 ; | |
8207 | bool val2 ; | |
8208 | int ecode2 = 0 ; | |
8209 | PyObject * obj0 = 0 ; | |
8210 | PyObject * obj1 = 0 ; | |
8211 | char * kwnames[] = { | |
8212 | (char *) "self",(char *) "editable", NULL | |
8213 | }; | |
8214 | ||
8215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
8216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8217 | if (!SWIG_IsOK(res1)) { | |
8218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8219 | } | |
8220 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8221 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
8222 | if (!SWIG_IsOK(ecode2)) { | |
8223 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
8224 | } | |
8225 | arg2 = static_cast< bool >(val2); | |
8226 | { | |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | (arg1)->SetEditable(arg2); | |
8229 | wxPyEndAllowThreads(__tstate); | |
8230 | if (PyErr_Occurred()) SWIG_fail; | |
8231 | } | |
8232 | resultobj = SWIG_Py_Void(); | |
8233 | return resultobj; | |
8234 | fail: | |
8235 | return NULL; | |
8236 | } | |
8237 | ||
8238 | ||
8239 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8240 | PyObject *resultobj = 0; | |
8241 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8242 | bool result; | |
8243 | void *argp1 = 0 ; | |
8244 | int res1 = 0 ; | |
8245 | PyObject *swig_obj[1] ; | |
8246 | ||
8247 | if (!args) SWIG_fail; | |
8248 | swig_obj[0] = args; | |
8249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8250 | if (!SWIG_IsOK(res1)) { | |
8251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8252 | } | |
8253 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8254 | { | |
8255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8256 | result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection(); | |
8257 | wxPyEndAllowThreads(__tstate); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | } | |
8260 | { | |
8261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8262 | } | |
8263 | return resultobj; | |
8264 | fail: | |
8265 | return NULL; | |
8266 | } | |
8267 | ||
8268 | ||
8269 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8270 | PyObject *resultobj = 0; | |
8271 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8272 | wxImage *arg2 = 0 ; | |
8273 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8274 | bool result; | |
8275 | void *argp1 = 0 ; | |
8276 | int res1 = 0 ; | |
8277 | void *argp2 = 0 ; | |
8278 | int res2 = 0 ; | |
8279 | int val3 ; | |
8280 | int ecode3 = 0 ; | |
8281 | PyObject * obj0 = 0 ; | |
8282 | PyObject * obj1 = 0 ; | |
8283 | PyObject * obj2 = 0 ; | |
8284 | char * kwnames[] = { | |
8285 | (char *) "self",(char *) "image",(char *) "bitmapType", NULL | |
8286 | }; | |
8287 | ||
8288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8289 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8290 | if (!SWIG_IsOK(res1)) { | |
8291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8292 | } | |
8293 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8294 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
8295 | if (!SWIG_IsOK(res2)) { | |
8296 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8297 | } | |
8298 | if (!argp2) { | |
8299 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8300 | } | |
8301 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
8302 | if (obj2) { | |
8303 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8304 | if (!SWIG_IsOK(ecode3)) { | |
8305 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'"); | |
8306 | } | |
8307 | arg3 = static_cast< int >(val3); | |
8308 | } | |
8309 | { | |
8310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8311 | result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3); | |
8312 | wxPyEndAllowThreads(__tstate); | |
8313 | if (PyErr_Occurred()) SWIG_fail; | |
8314 | } | |
8315 | { | |
8316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8317 | } | |
8318 | return resultobj; | |
8319 | fail: | |
8320 | return NULL; | |
8321 | } | |
8322 | ||
8323 | ||
8324 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8325 | PyObject *resultobj = 0; | |
8326 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8327 | wxBitmap *arg2 = 0 ; | |
8328 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8329 | bool result; | |
8330 | void *argp1 = 0 ; | |
8331 | int res1 = 0 ; | |
8332 | void *argp2 = 0 ; | |
8333 | int res2 = 0 ; | |
8334 | int val3 ; | |
8335 | int ecode3 = 0 ; | |
8336 | PyObject * obj0 = 0 ; | |
8337 | PyObject * obj1 = 0 ; | |
8338 | PyObject * obj2 = 0 ; | |
8339 | char * kwnames[] = { | |
8340 | (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL | |
8341 | }; | |
8342 | ||
8343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8345 | if (!SWIG_IsOK(res1)) { | |
8346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8347 | } | |
8348 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8349 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8350 | if (!SWIG_IsOK(res2)) { | |
8351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8352 | } | |
8353 | if (!argp2) { | |
8354 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8355 | } | |
8356 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8357 | if (obj2) { | |
8358 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8359 | if (!SWIG_IsOK(ecode3)) { | |
8360 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'"); | |
8361 | } | |
8362 | arg3 = static_cast< int >(val3); | |
8363 | } | |
8364 | { | |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3); | |
8367 | wxPyEndAllowThreads(__tstate); | |
8368 | if (PyErr_Occurred()) SWIG_fail; | |
8369 | } | |
8370 | { | |
8371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8372 | } | |
8373 | return resultobj; | |
8374 | fail: | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj = 0; | |
8381 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8382 | wxString *arg2 = 0 ; | |
8383 | int arg3 ; | |
8384 | bool result; | |
8385 | void *argp1 = 0 ; | |
8386 | int res1 = 0 ; | |
8387 | bool temp2 = false ; | |
8388 | int val3 ; | |
8389 | int ecode3 = 0 ; | |
8390 | PyObject * obj0 = 0 ; | |
8391 | PyObject * obj1 = 0 ; | |
8392 | PyObject * obj2 = 0 ; | |
8393 | char * kwnames[] = { | |
8394 | (char *) "self",(char *) "filename",(char *) "bitmapType", NULL | |
8395 | }; | |
8396 | ||
8397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8399 | if (!SWIG_IsOK(res1)) { | |
8400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8401 | } | |
8402 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8403 | { | |
8404 | arg2 = wxString_in_helper(obj1); | |
8405 | if (arg2 == NULL) SWIG_fail; | |
8406 | temp2 = true; | |
8407 | } | |
8408 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8409 | if (!SWIG_IsOK(ecode3)) { | |
8410 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'"); | |
8411 | } | |
8412 | arg3 = static_cast< int >(val3); | |
8413 | { | |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3); | |
8416 | wxPyEndAllowThreads(__tstate); | |
8417 | if (PyErr_Occurred()) SWIG_fail; | |
8418 | } | |
8419 | { | |
8420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8421 | } | |
8422 | { | |
8423 | if (temp2) | |
8424 | delete arg2; | |
8425 | } | |
8426 | return resultobj; | |
8427 | fail: | |
8428 | { | |
8429 | if (temp2) | |
8430 | delete arg2; | |
8431 | } | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
8436 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8437 | PyObject *resultobj = 0; | |
8438 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8439 | wxRichTextImageBlock *arg2 = 0 ; | |
8440 | bool result; | |
8441 | void *argp1 = 0 ; | |
8442 | int res1 = 0 ; | |
8443 | void *argp2 = 0 ; | |
8444 | int res2 = 0 ; | |
8445 | PyObject * obj0 = 0 ; | |
8446 | PyObject * obj1 = 0 ; | |
8447 | char * kwnames[] = { | |
8448 | (char *) "self",(char *) "imageBlock", NULL | |
8449 | }; | |
8450 | ||
8451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail; | |
8452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8453 | if (!SWIG_IsOK(res1)) { | |
8454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8455 | } | |
8456 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8457 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0); | |
8458 | if (!SWIG_IsOK(res2)) { | |
8459 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8460 | } | |
8461 | if (!argp2) { | |
8462 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8463 | } | |
8464 | arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2); | |
8465 | { | |
8466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8467 | result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2); | |
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
8471 | { | |
8472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8473 | } | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
8480 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8481 | PyObject *resultobj = 0; | |
8482 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8483 | bool result; | |
8484 | void *argp1 = 0 ; | |
8485 | int res1 = 0 ; | |
8486 | PyObject *swig_obj[1] ; | |
8487 | ||
8488 | if (!args) SWIG_fail; | |
8489 | swig_obj[0] = args; | |
8490 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8491 | if (!SWIG_IsOK(res1)) { | |
8492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8493 | } | |
8494 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8495 | { | |
8496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8497 | result = (bool)(arg1)->Newline(); | |
8498 | wxPyEndAllowThreads(__tstate); | |
8499 | if (PyErr_Occurred()) SWIG_fail; | |
8500 | } | |
8501 | { | |
8502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8503 | } | |
8504 | return resultobj; | |
8505 | fail: | |
8506 | return NULL; | |
8507 | } | |
8508 | ||
8509 | ||
8510 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8511 | PyObject *resultobj = 0; | |
8512 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8513 | wxRichTextAttr *arg2 = 0 ; | |
8514 | void *argp1 = 0 ; | |
8515 | int res1 = 0 ; | |
8516 | void *argp2 = 0 ; | |
8517 | int res2 = 0 ; | |
8518 | PyObject * obj0 = 0 ; | |
8519 | PyObject * obj1 = 0 ; | |
8520 | char * kwnames[] = { | |
8521 | (char *) "self",(char *) "style", NULL | |
8522 | }; | |
8523 | ||
8524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
8525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8526 | if (!SWIG_IsOK(res1)) { | |
8527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8528 | } | |
8529 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8530 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
8531 | if (!SWIG_IsOK(res2)) { | |
8532 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8533 | } | |
8534 | if (!argp2) { | |
8535 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8536 | } | |
8537 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
8538 | { | |
8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8540 | (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2); | |
8541 | wxPyEndAllowThreads(__tstate); | |
8542 | if (PyErr_Occurred()) SWIG_fail; | |
8543 | } | |
8544 | resultobj = SWIG_Py_Void(); | |
8545 | return resultobj; | |
8546 | fail: | |
8547 | return NULL; | |
8548 | } | |
8549 | ||
8550 | ||
8551 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8552 | PyObject *resultobj = 0; | |
8553 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8554 | bool result; | |
8555 | void *argp1 = 0 ; | |
8556 | int res1 = 0 ; | |
8557 | PyObject *swig_obj[1] ; | |
8558 | ||
8559 | if (!args) SWIG_fail; | |
8560 | swig_obj[0] = args; | |
8561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8562 | if (!SWIG_IsOK(res1)) { | |
8563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8564 | } | |
8565 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | result = (bool)(arg1)->EndStyle(); | |
8569 | wxPyEndAllowThreads(__tstate); | |
8570 | if (PyErr_Occurred()) SWIG_fail; | |
8571 | } | |
8572 | { | |
8573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8574 | } | |
8575 | return resultobj; | |
8576 | fail: | |
8577 | return NULL; | |
8578 | } | |
8579 | ||
8580 | ||
8581 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8582 | PyObject *resultobj = 0; | |
8583 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8584 | bool result; | |
8585 | void *argp1 = 0 ; | |
8586 | int res1 = 0 ; | |
8587 | PyObject *swig_obj[1] ; | |
8588 | ||
8589 | if (!args) SWIG_fail; | |
8590 | swig_obj[0] = args; | |
8591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8592 | if (!SWIG_IsOK(res1)) { | |
8593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8594 | } | |
8595 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8596 | { | |
8597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8598 | result = (bool)(arg1)->EndAllStyles(); | |
8599 | wxPyEndAllowThreads(__tstate); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | } | |
8602 | { | |
8603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8604 | } | |
8605 | return resultobj; | |
8606 | fail: | |
8607 | return NULL; | |
8608 | } | |
8609 | ||
8610 | ||
8611 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8612 | PyObject *resultobj = 0; | |
8613 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8614 | bool result; | |
8615 | void *argp1 = 0 ; | |
8616 | int res1 = 0 ; | |
8617 | PyObject *swig_obj[1] ; | |
8618 | ||
8619 | if (!args) SWIG_fail; | |
8620 | swig_obj[0] = args; | |
8621 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8622 | if (!SWIG_IsOK(res1)) { | |
8623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8624 | } | |
8625 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | result = (bool)(arg1)->BeginBold(); | |
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
8632 | { | |
8633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8634 | } | |
8635 | return resultobj; | |
8636 | fail: | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
8641 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8642 | PyObject *resultobj = 0; | |
8643 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8644 | bool result; | |
8645 | void *argp1 = 0 ; | |
8646 | int res1 = 0 ; | |
8647 | PyObject *swig_obj[1] ; | |
8648 | ||
8649 | if (!args) SWIG_fail; | |
8650 | swig_obj[0] = args; | |
8651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8652 | if (!SWIG_IsOK(res1)) { | |
8653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8654 | } | |
8655 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8656 | { | |
8657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8658 | result = (bool)(arg1)->EndBold(); | |
8659 | wxPyEndAllowThreads(__tstate); | |
8660 | if (PyErr_Occurred()) SWIG_fail; | |
8661 | } | |
8662 | { | |
8663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8664 | } | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
8671 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8672 | PyObject *resultobj = 0; | |
8673 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8674 | bool result; | |
8675 | void *argp1 = 0 ; | |
8676 | int res1 = 0 ; | |
8677 | PyObject *swig_obj[1] ; | |
8678 | ||
8679 | if (!args) SWIG_fail; | |
8680 | swig_obj[0] = args; | |
8681 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8682 | if (!SWIG_IsOK(res1)) { | |
8683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8684 | } | |
8685 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8686 | { | |
8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8688 | result = (bool)(arg1)->BeginItalic(); | |
8689 | wxPyEndAllowThreads(__tstate); | |
8690 | if (PyErr_Occurred()) SWIG_fail; | |
8691 | } | |
8692 | { | |
8693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8694 | } | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8702 | PyObject *resultobj = 0; | |
8703 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8704 | bool result; | |
8705 | void *argp1 = 0 ; | |
8706 | int res1 = 0 ; | |
8707 | PyObject *swig_obj[1] ; | |
8708 | ||
8709 | if (!args) SWIG_fail; | |
8710 | swig_obj[0] = args; | |
8711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8712 | if (!SWIG_IsOK(res1)) { | |
8713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8714 | } | |
8715 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8716 | { | |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | result = (bool)(arg1)->EndItalic(); | |
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | { | |
8723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8724 | } | |
8725 | return resultobj; | |
8726 | fail: | |
8727 | return NULL; | |
8728 | } | |
8729 | ||
8730 | ||
8731 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8732 | PyObject *resultobj = 0; | |
8733 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8734 | bool result; | |
8735 | void *argp1 = 0 ; | |
8736 | int res1 = 0 ; | |
8737 | PyObject *swig_obj[1] ; | |
8738 | ||
8739 | if (!args) SWIG_fail; | |
8740 | swig_obj[0] = args; | |
8741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8742 | if (!SWIG_IsOK(res1)) { | |
8743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8744 | } | |
8745 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8746 | { | |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | result = (bool)(arg1)->BeginUnderline(); | |
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | { | |
8753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8754 | } | |
8755 | return resultobj; | |
8756 | fail: | |
8757 | return NULL; | |
8758 | } | |
8759 | ||
8760 | ||
8761 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8762 | PyObject *resultobj = 0; | |
8763 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8764 | bool result; | |
8765 | void *argp1 = 0 ; | |
8766 | int res1 = 0 ; | |
8767 | PyObject *swig_obj[1] ; | |
8768 | ||
8769 | if (!args) SWIG_fail; | |
8770 | swig_obj[0] = args; | |
8771 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8772 | if (!SWIG_IsOK(res1)) { | |
8773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8774 | } | |
8775 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8776 | { | |
8777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8778 | result = (bool)(arg1)->EndUnderline(); | |
8779 | wxPyEndAllowThreads(__tstate); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | { | |
8783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8784 | } | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | return NULL; | |
8788 | } | |
8789 | ||
8790 | ||
8791 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8792 | PyObject *resultobj = 0; | |
8793 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8794 | int arg2 ; | |
8795 | bool result; | |
8796 | void *argp1 = 0 ; | |
8797 | int res1 = 0 ; | |
8798 | int val2 ; | |
8799 | int ecode2 = 0 ; | |
8800 | PyObject * obj0 = 0 ; | |
8801 | PyObject * obj1 = 0 ; | |
8802 | char * kwnames[] = { | |
8803 | (char *) "self",(char *) "pointSize", NULL | |
8804 | }; | |
8805 | ||
8806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8808 | if (!SWIG_IsOK(res1)) { | |
8809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8810 | } | |
8811 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8812 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8813 | if (!SWIG_IsOK(ecode2)) { | |
8814 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'"); | |
8815 | } | |
8816 | arg2 = static_cast< int >(val2); | |
8817 | { | |
8818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8819 | result = (bool)(arg1)->BeginFontSize(arg2); | |
8820 | wxPyEndAllowThreads(__tstate); | |
8821 | if (PyErr_Occurred()) SWIG_fail; | |
8822 | } | |
8823 | { | |
8824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8825 | } | |
8826 | return resultobj; | |
8827 | fail: | |
8828 | return NULL; | |
8829 | } | |
8830 | ||
8831 | ||
8832 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8833 | PyObject *resultobj = 0; | |
8834 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8835 | bool result; | |
8836 | void *argp1 = 0 ; | |
8837 | int res1 = 0 ; | |
8838 | PyObject *swig_obj[1] ; | |
8839 | ||
8840 | if (!args) SWIG_fail; | |
8841 | swig_obj[0] = args; | |
8842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8843 | if (!SWIG_IsOK(res1)) { | |
8844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8845 | } | |
8846 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8847 | { | |
8848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8849 | result = (bool)(arg1)->EndFontSize(); | |
8850 | wxPyEndAllowThreads(__tstate); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | { | |
8854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8855 | } | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
8862 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8863 | PyObject *resultobj = 0; | |
8864 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8865 | wxFont *arg2 = 0 ; | |
8866 | bool result; | |
8867 | void *argp1 = 0 ; | |
8868 | int res1 = 0 ; | |
8869 | void *argp2 = 0 ; | |
8870 | int res2 = 0 ; | |
8871 | PyObject * obj0 = 0 ; | |
8872 | PyObject * obj1 = 0 ; | |
8873 | char * kwnames[] = { | |
8874 | (char *) "self",(char *) "font", NULL | |
8875 | }; | |
8876 | ||
8877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8879 | if (!SWIG_IsOK(res1)) { | |
8880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8881 | } | |
8882 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8883 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
8884 | if (!SWIG_IsOK(res2)) { | |
8885 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8886 | } | |
8887 | if (!argp2) { | |
8888 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8889 | } | |
8890 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
8891 | { | |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | result = (bool)(arg1)->BeginFont((wxFont const &)*arg2); | |
8894 | wxPyEndAllowThreads(__tstate); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | } | |
8897 | { | |
8898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8899 | } | |
8900 | return resultobj; | |
8901 | fail: | |
8902 | return NULL; | |
8903 | } | |
8904 | ||
8905 | ||
8906 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8907 | PyObject *resultobj = 0; | |
8908 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8909 | bool result; | |
8910 | void *argp1 = 0 ; | |
8911 | int res1 = 0 ; | |
8912 | PyObject *swig_obj[1] ; | |
8913 | ||
8914 | if (!args) SWIG_fail; | |
8915 | swig_obj[0] = args; | |
8916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8917 | if (!SWIG_IsOK(res1)) { | |
8918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8919 | } | |
8920 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8921 | { | |
8922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8923 | result = (bool)(arg1)->EndFont(); | |
8924 | wxPyEndAllowThreads(__tstate); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | } | |
8927 | { | |
8928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8929 | } | |
8930 | return resultobj; | |
8931 | fail: | |
8932 | return NULL; | |
8933 | } | |
8934 | ||
8935 | ||
8936 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8937 | PyObject *resultobj = 0; | |
8938 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8939 | wxColour *arg2 = 0 ; | |
8940 | bool result; | |
8941 | void *argp1 = 0 ; | |
8942 | int res1 = 0 ; | |
8943 | wxColour temp2 ; | |
8944 | PyObject * obj0 = 0 ; | |
8945 | PyObject * obj1 = 0 ; | |
8946 | char * kwnames[] = { | |
8947 | (char *) "self",(char *) "colour", NULL | |
8948 | }; | |
8949 | ||
8950 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
8951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8952 | if (!SWIG_IsOK(res1)) { | |
8953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8954 | } | |
8955 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8956 | { | |
8957 | arg2 = &temp2; | |
8958 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8959 | } | |
8960 | { | |
8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8962 | result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2); | |
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | { | |
8967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8968 | } | |
8969 | return resultobj; | |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8976 | PyObject *resultobj = 0; | |
8977 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8978 | bool result; | |
8979 | void *argp1 = 0 ; | |
8980 | int res1 = 0 ; | |
8981 | PyObject *swig_obj[1] ; | |
8982 | ||
8983 | if (!args) SWIG_fail; | |
8984 | swig_obj[0] = args; | |
8985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8986 | if (!SWIG_IsOK(res1)) { | |
8987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8988 | } | |
8989 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8990 | { | |
8991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8992 | result = (bool)(arg1)->EndTextColour(); | |
8993 | wxPyEndAllowThreads(__tstate); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | } | |
8996 | { | |
8997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8998 | } | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj = 0; | |
9007 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9008 | wxTextAttrAlignment arg2 ; | |
9009 | bool result; | |
9010 | void *argp1 = 0 ; | |
9011 | int res1 = 0 ; | |
9012 | int val2 ; | |
9013 | int ecode2 = 0 ; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | PyObject * obj1 = 0 ; | |
9016 | char * kwnames[] = { | |
9017 | (char *) "self",(char *) "alignment", NULL | |
9018 | }; | |
9019 | ||
9020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
9021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9022 | if (!SWIG_IsOK(res1)) { | |
9023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9024 | } | |
9025 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9026 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9027 | if (!SWIG_IsOK(ecode2)) { | |
9028 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
9029 | } | |
9030 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
9031 | { | |
9032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9033 | result = (bool)(arg1)->BeginAlignment(arg2); | |
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | { | |
9038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9039 | } | |
9040 | return resultobj; | |
9041 | fail: | |
9042 | return NULL; | |
9043 | } | |
9044 | ||
9045 | ||
9046 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9047 | PyObject *resultobj = 0; | |
9048 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9049 | bool result; | |
9050 | void *argp1 = 0 ; | |
9051 | int res1 = 0 ; | |
9052 | PyObject *swig_obj[1] ; | |
9053 | ||
9054 | if (!args) SWIG_fail; | |
9055 | swig_obj[0] = args; | |
9056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9057 | if (!SWIG_IsOK(res1)) { | |
9058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9059 | } | |
9060 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9061 | { | |
9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9063 | result = (bool)(arg1)->EndAlignment(); | |
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | { | |
9068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9069 | } | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | return NULL; | |
9073 | } | |
9074 | ||
9075 | ||
9076 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9077 | PyObject *resultobj = 0; | |
9078 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9079 | int arg2 ; | |
9080 | int arg3 = (int) 0 ; | |
9081 | bool result; | |
9082 | void *argp1 = 0 ; | |
9083 | int res1 = 0 ; | |
9084 | int val2 ; | |
9085 | int ecode2 = 0 ; | |
9086 | int val3 ; | |
9087 | int ecode3 = 0 ; | |
9088 | PyObject * obj0 = 0 ; | |
9089 | PyObject * obj1 = 0 ; | |
9090 | PyObject * obj2 = 0 ; | |
9091 | char * kwnames[] = { | |
9092 | (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL | |
9093 | }; | |
9094 | ||
9095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9097 | if (!SWIG_IsOK(res1)) { | |
9098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9099 | } | |
9100 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9101 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9102 | if (!SWIG_IsOK(ecode2)) { | |
9103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
9104 | } | |
9105 | arg2 = static_cast< int >(val2); | |
9106 | if (obj2) { | |
9107 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9108 | if (!SWIG_IsOK(ecode3)) { | |
9109 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
9110 | } | |
9111 | arg3 = static_cast< int >(val3); | |
9112 | } | |
9113 | { | |
9114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9115 | result = (bool)(arg1)->BeginLeftIndent(arg2,arg3); | |
9116 | wxPyEndAllowThreads(__tstate); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | } | |
9119 | { | |
9120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9121 | } | |
9122 | return resultobj; | |
9123 | fail: | |
9124 | return NULL; | |
9125 | } | |
9126 | ||
9127 | ||
9128 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9129 | PyObject *resultobj = 0; | |
9130 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9131 | bool result; | |
9132 | void *argp1 = 0 ; | |
9133 | int res1 = 0 ; | |
9134 | PyObject *swig_obj[1] ; | |
9135 | ||
9136 | if (!args) SWIG_fail; | |
9137 | swig_obj[0] = args; | |
9138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9139 | if (!SWIG_IsOK(res1)) { | |
9140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9141 | } | |
9142 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9143 | { | |
9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9145 | result = (bool)(arg1)->EndLeftIndent(); | |
9146 | wxPyEndAllowThreads(__tstate); | |
9147 | if (PyErr_Occurred()) SWIG_fail; | |
9148 | } | |
9149 | { | |
9150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9151 | } | |
9152 | return resultobj; | |
9153 | fail: | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
9158 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9159 | PyObject *resultobj = 0; | |
9160 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9161 | int arg2 ; | |
9162 | bool result; | |
9163 | void *argp1 = 0 ; | |
9164 | int res1 = 0 ; | |
9165 | int val2 ; | |
9166 | int ecode2 = 0 ; | |
9167 | PyObject * obj0 = 0 ; | |
9168 | PyObject * obj1 = 0 ; | |
9169 | char * kwnames[] = { | |
9170 | (char *) "self",(char *) "rightIndent", NULL | |
9171 | }; | |
9172 | ||
9173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
9174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9175 | if (!SWIG_IsOK(res1)) { | |
9176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9177 | } | |
9178 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9180 | if (!SWIG_IsOK(ecode2)) { | |
9181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
9182 | } | |
9183 | arg2 = static_cast< int >(val2); | |
9184 | { | |
9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9186 | result = (bool)(arg1)->BeginRightIndent(arg2); | |
9187 | wxPyEndAllowThreads(__tstate); | |
9188 | if (PyErr_Occurred()) SWIG_fail; | |
9189 | } | |
9190 | { | |
9191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9192 | } | |
9193 | return resultobj; | |
9194 | fail: | |
9195 | return NULL; | |
9196 | } | |
9197 | ||
9198 | ||
9199 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9200 | PyObject *resultobj = 0; | |
9201 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9202 | bool result; | |
9203 | void *argp1 = 0 ; | |
9204 | int res1 = 0 ; | |
9205 | PyObject *swig_obj[1] ; | |
9206 | ||
9207 | if (!args) SWIG_fail; | |
9208 | swig_obj[0] = args; | |
9209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9210 | if (!SWIG_IsOK(res1)) { | |
9211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9212 | } | |
9213 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9214 | { | |
9215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9216 | result = (bool)(arg1)->EndRightIndent(); | |
9217 | wxPyEndAllowThreads(__tstate); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
9220 | { | |
9221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9222 | } | |
9223 | return resultobj; | |
9224 | fail: | |
9225 | return NULL; | |
9226 | } | |
9227 | ||
9228 | ||
9229 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9230 | PyObject *resultobj = 0; | |
9231 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9232 | int arg2 ; | |
9233 | int arg3 ; | |
9234 | bool result; | |
9235 | void *argp1 = 0 ; | |
9236 | int res1 = 0 ; | |
9237 | int val2 ; | |
9238 | int ecode2 = 0 ; | |
9239 | int val3 ; | |
9240 | int ecode3 = 0 ; | |
9241 | PyObject * obj0 = 0 ; | |
9242 | PyObject * obj1 = 0 ; | |
9243 | PyObject * obj2 = 0 ; | |
9244 | char * kwnames[] = { | |
9245 | (char *) "self",(char *) "before",(char *) "after", NULL | |
9246 | }; | |
9247 | ||
9248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9250 | if (!SWIG_IsOK(res1)) { | |
9251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9252 | } | |
9253 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9255 | if (!SWIG_IsOK(ecode2)) { | |
9256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9257 | } | |
9258 | arg2 = static_cast< int >(val2); | |
9259 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9260 | if (!SWIG_IsOK(ecode3)) { | |
9261 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'"); | |
9262 | } | |
9263 | arg3 = static_cast< int >(val3); | |
9264 | { | |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3); | |
9267 | wxPyEndAllowThreads(__tstate); | |
9268 | if (PyErr_Occurred()) SWIG_fail; | |
9269 | } | |
9270 | { | |
9271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9272 | } | |
9273 | return resultobj; | |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
9279 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9280 | PyObject *resultobj = 0; | |
9281 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9282 | bool result; | |
9283 | void *argp1 = 0 ; | |
9284 | int res1 = 0 ; | |
9285 | PyObject *swig_obj[1] ; | |
9286 | ||
9287 | if (!args) SWIG_fail; | |
9288 | swig_obj[0] = args; | |
9289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9290 | if (!SWIG_IsOK(res1)) { | |
9291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9292 | } | |
9293 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9294 | { | |
9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9296 | result = (bool)(arg1)->EndParagraphSpacing(); | |
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | { | |
9301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9302 | } | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
9309 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9310 | PyObject *resultobj = 0; | |
9311 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9312 | int arg2 ; | |
9313 | bool result; | |
9314 | void *argp1 = 0 ; | |
9315 | int res1 = 0 ; | |
9316 | int val2 ; | |
9317 | int ecode2 = 0 ; | |
9318 | PyObject * obj0 = 0 ; | |
9319 | PyObject * obj1 = 0 ; | |
9320 | char * kwnames[] = { | |
9321 | (char *) "self",(char *) "lineSpacing", NULL | |
9322 | }; | |
9323 | ||
9324 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
9325 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9326 | if (!SWIG_IsOK(res1)) { | |
9327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9328 | } | |
9329 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9330 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9331 | if (!SWIG_IsOK(ecode2)) { | |
9332 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9333 | } | |
9334 | arg2 = static_cast< int >(val2); | |
9335 | { | |
9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9337 | result = (bool)(arg1)->BeginLineSpacing(arg2); | |
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
9341 | { | |
9342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9343 | } | |
9344 | return resultobj; | |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9351 | PyObject *resultobj = 0; | |
9352 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9353 | bool result; | |
9354 | void *argp1 = 0 ; | |
9355 | int res1 = 0 ; | |
9356 | PyObject *swig_obj[1] ; | |
9357 | ||
9358 | if (!args) SWIG_fail; | |
9359 | swig_obj[0] = args; | |
9360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9361 | if (!SWIG_IsOK(res1)) { | |
9362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9363 | } | |
9364 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9365 | { | |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9367 | result = (bool)(arg1)->EndLineSpacing(); | |
9368 | wxPyEndAllowThreads(__tstate); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
9370 | } | |
9371 | { | |
9372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9373 | } | |
9374 | return resultobj; | |
9375 | fail: | |
9376 | return NULL; | |
9377 | } | |
9378 | ||
9379 | ||
9380 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9381 | PyObject *resultobj = 0; | |
9382 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9383 | int arg2 ; | |
9384 | int arg3 ; | |
9385 | int arg4 ; | |
9386 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ; | |
9387 | bool result; | |
9388 | void *argp1 = 0 ; | |
9389 | int res1 = 0 ; | |
9390 | int val2 ; | |
9391 | int ecode2 = 0 ; | |
9392 | int val3 ; | |
9393 | int ecode3 = 0 ; | |
9394 | int val4 ; | |
9395 | int ecode4 = 0 ; | |
9396 | int val5 ; | |
9397 | int ecode5 = 0 ; | |
9398 | PyObject * obj0 = 0 ; | |
9399 | PyObject * obj1 = 0 ; | |
9400 | PyObject * obj2 = 0 ; | |
9401 | PyObject * obj3 = 0 ; | |
9402 | PyObject * obj4 = 0 ; | |
9403 | char * kwnames[] = { | |
9404 | (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9405 | }; | |
9406 | ||
9407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9409 | if (!SWIG_IsOK(res1)) { | |
9410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9411 | } | |
9412 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9413 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9414 | if (!SWIG_IsOK(ecode2)) { | |
9415 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'"); | |
9416 | } | |
9417 | arg2 = static_cast< int >(val2); | |
9418 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9419 | if (!SWIG_IsOK(ecode3)) { | |
9420 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'"); | |
9421 | } | |
9422 | arg3 = static_cast< int >(val3); | |
9423 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9424 | if (!SWIG_IsOK(ecode4)) { | |
9425 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'"); | |
9426 | } | |
9427 | arg4 = static_cast< int >(val4); | |
9428 | if (obj4) { | |
9429 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9430 | if (!SWIG_IsOK(ecode5)) { | |
9431 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'"); | |
9432 | } | |
9433 | arg5 = static_cast< int >(val5); | |
9434 | } | |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5); | |
9438 | wxPyEndAllowThreads(__tstate); | |
9439 | if (PyErr_Occurred()) SWIG_fail; | |
9440 | } | |
9441 | { | |
9442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9443 | } | |
9444 | return resultobj; | |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
9450 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9451 | PyObject *resultobj = 0; | |
9452 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9453 | bool result; | |
9454 | void *argp1 = 0 ; | |
9455 | int res1 = 0 ; | |
9456 | PyObject *swig_obj[1] ; | |
9457 | ||
9458 | if (!args) SWIG_fail; | |
9459 | swig_obj[0] = args; | |
9460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9461 | if (!SWIG_IsOK(res1)) { | |
9462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9463 | } | |
9464 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9465 | { | |
9466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9467 | result = (bool)(arg1)->EndNumberedBullet(); | |
9468 | wxPyEndAllowThreads(__tstate); | |
9469 | if (PyErr_Occurred()) SWIG_fail; | |
9470 | } | |
9471 | { | |
9472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9473 | } | |
9474 | return resultobj; | |
9475 | fail: | |
9476 | return NULL; | |
9477 | } | |
9478 | ||
9479 | ||
9480 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9481 | PyObject *resultobj = 0; | |
9482 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9483 | char arg2 ; | |
9484 | int arg3 ; | |
9485 | int arg4 ; | |
9486 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ; | |
9487 | bool result; | |
9488 | void *argp1 = 0 ; | |
9489 | int res1 = 0 ; | |
9490 | char val2 ; | |
9491 | int ecode2 = 0 ; | |
9492 | int val3 ; | |
9493 | int ecode3 = 0 ; | |
9494 | int val4 ; | |
9495 | int ecode4 = 0 ; | |
9496 | int val5 ; | |
9497 | int ecode5 = 0 ; | |
9498 | PyObject * obj0 = 0 ; | |
9499 | PyObject * obj1 = 0 ; | |
9500 | PyObject * obj2 = 0 ; | |
9501 | PyObject * obj3 = 0 ; | |
9502 | PyObject * obj4 = 0 ; | |
9503 | char * kwnames[] = { | |
9504 | (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9505 | }; | |
9506 | ||
9507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9509 | if (!SWIG_IsOK(res1)) { | |
9510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9511 | } | |
9512 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9513 | ecode2 = SWIG_AsVal_char(obj1, &val2); | |
9514 | if (!SWIG_IsOK(ecode2)) { | |
9515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "2"" of type '" "char""'"); | |
9516 | } | |
9517 | arg2 = static_cast< char >(val2); | |
9518 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9519 | if (!SWIG_IsOK(ecode3)) { | |
9520 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'"); | |
9521 | } | |
9522 | arg3 = static_cast< int >(val3); | |
9523 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9524 | if (!SWIG_IsOK(ecode4)) { | |
9525 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'"); | |
9526 | } | |
9527 | arg4 = static_cast< int >(val4); | |
9528 | if (obj4) { | |
9529 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9530 | if (!SWIG_IsOK(ecode5)) { | |
9531 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'"); | |
9532 | } | |
9533 | arg5 = static_cast< int >(val5); | |
9534 | } | |
9535 | { | |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | result = (bool)(arg1)->BeginSymbolBullet(arg2,arg3,arg4,arg5); | |
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
9541 | { | |
9542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9543 | } | |
9544 | return resultobj; | |
9545 | fail: | |
9546 | return NULL; | |
9547 | } | |
9548 | ||
9549 | ||
9550 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9551 | PyObject *resultobj = 0; | |
9552 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9553 | bool result; | |
9554 | void *argp1 = 0 ; | |
9555 | int res1 = 0 ; | |
9556 | PyObject *swig_obj[1] ; | |
9557 | ||
9558 | if (!args) SWIG_fail; | |
9559 | swig_obj[0] = args; | |
9560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9561 | if (!SWIG_IsOK(res1)) { | |
9562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9563 | } | |
9564 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | result = (bool)(arg1)->EndSymbolBullet(); | |
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | { | |
9572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9573 | } | |
9574 | return resultobj; | |
9575 | fail: | |
9576 | return NULL; | |
9577 | } | |
9578 | ||
9579 | ||
9580 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9581 | PyObject *resultobj = 0; | |
9582 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9583 | wxString *arg2 = 0 ; | |
9584 | bool result; | |
9585 | void *argp1 = 0 ; | |
9586 | int res1 = 0 ; | |
9587 | bool temp2 = false ; | |
9588 | PyObject * obj0 = 0 ; | |
9589 | PyObject * obj1 = 0 ; | |
9590 | char * kwnames[] = { | |
9591 | (char *) "self",(char *) "characterStyle", NULL | |
9592 | }; | |
9593 | ||
9594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9596 | if (!SWIG_IsOK(res1)) { | |
9597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9598 | } | |
9599 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9600 | { | |
9601 | arg2 = wxString_in_helper(obj1); | |
9602 | if (arg2 == NULL) SWIG_fail; | |
9603 | temp2 = true; | |
9604 | } | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2); | |
9608 | wxPyEndAllowThreads(__tstate); | |
9609 | if (PyErr_Occurred()) SWIG_fail; | |
9610 | } | |
9611 | { | |
9612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9613 | } | |
9614 | { | |
9615 | if (temp2) | |
9616 | delete arg2; | |
9617 | } | |
9618 | return resultobj; | |
9619 | fail: | |
9620 | { | |
9621 | if (temp2) | |
9622 | delete arg2; | |
9623 | } | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9629 | PyObject *resultobj = 0; | |
9630 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9631 | bool result; | |
9632 | void *argp1 = 0 ; | |
9633 | int res1 = 0 ; | |
9634 | PyObject *swig_obj[1] ; | |
9635 | ||
9636 | if (!args) SWIG_fail; | |
9637 | swig_obj[0] = args; | |
9638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9639 | if (!SWIG_IsOK(res1)) { | |
9640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9641 | } | |
9642 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9643 | { | |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | result = (bool)(arg1)->EndCharacterStyle(); | |
9646 | wxPyEndAllowThreads(__tstate); | |
9647 | if (PyErr_Occurred()) SWIG_fail; | |
9648 | } | |
9649 | { | |
9650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9651 | } | |
9652 | return resultobj; | |
9653 | fail: | |
9654 | return NULL; | |
9655 | } | |
9656 | ||
9657 | ||
9658 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9659 | PyObject *resultobj = 0; | |
9660 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9661 | wxString *arg2 = 0 ; | |
9662 | bool result; | |
9663 | void *argp1 = 0 ; | |
9664 | int res1 = 0 ; | |
9665 | bool temp2 = false ; | |
9666 | PyObject * obj0 = 0 ; | |
9667 | PyObject * obj1 = 0 ; | |
9668 | char * kwnames[] = { | |
9669 | (char *) "self",(char *) "paragraphStyle", NULL | |
9670 | }; | |
9671 | ||
9672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9674 | if (!SWIG_IsOK(res1)) { | |
9675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9676 | } | |
9677 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9678 | { | |
9679 | arg2 = wxString_in_helper(obj1); | |
9680 | if (arg2 == NULL) SWIG_fail; | |
9681 | temp2 = true; | |
9682 | } | |
9683 | { | |
9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9685 | result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2); | |
9686 | wxPyEndAllowThreads(__tstate); | |
9687 | if (PyErr_Occurred()) SWIG_fail; | |
9688 | } | |
9689 | { | |
9690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9691 | } | |
9692 | { | |
9693 | if (temp2) | |
9694 | delete arg2; | |
9695 | } | |
9696 | return resultobj; | |
9697 | fail: | |
9698 | { | |
9699 | if (temp2) | |
9700 | delete arg2; | |
9701 | } | |
9702 | return NULL; | |
9703 | } | |
9704 | ||
9705 | ||
9706 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9707 | PyObject *resultobj = 0; | |
9708 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9709 | bool result; | |
9710 | void *argp1 = 0 ; | |
9711 | int res1 = 0 ; | |
9712 | PyObject *swig_obj[1] ; | |
9713 | ||
9714 | if (!args) SWIG_fail; | |
9715 | swig_obj[0] = args; | |
9716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9717 | if (!SWIG_IsOK(res1)) { | |
9718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9719 | } | |
9720 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9721 | { | |
9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9723 | result = (bool)(arg1)->EndParagraphStyle(); | |
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
9727 | { | |
9728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9729 | } | |
9730 | return resultobj; | |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9737 | PyObject *resultobj = 0; | |
9738 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9739 | bool result; | |
9740 | void *argp1 = 0 ; | |
9741 | int res1 = 0 ; | |
9742 | PyObject *swig_obj[1] ; | |
9743 | ||
9744 | if (!args) SWIG_fail; | |
9745 | swig_obj[0] = args; | |
9746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9747 | if (!SWIG_IsOK(res1)) { | |
9748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9749 | } | |
9750 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9751 | { | |
9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9753 | result = (bool)(arg1)->SetDefaultStyleToCursorStyle(); | |
9754 | wxPyEndAllowThreads(__tstate); | |
9755 | if (PyErr_Occurred()) SWIG_fail; | |
9756 | } | |
9757 | { | |
9758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9759 | } | |
9760 | return resultobj; | |
9761 | fail: | |
9762 | return NULL; | |
9763 | } | |
9764 | ||
9765 | ||
9766 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9767 | PyObject *resultobj = 0; | |
9768 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9769 | void *argp1 = 0 ; | |
9770 | int res1 = 0 ; | |
9771 | PyObject *swig_obj[1] ; | |
9772 | ||
9773 | if (!args) SWIG_fail; | |
9774 | swig_obj[0] = args; | |
9775 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9776 | if (!SWIG_IsOK(res1)) { | |
9777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9778 | } | |
9779 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9780 | { | |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | (arg1)->SelectNone(); | |
9783 | wxPyEndAllowThreads(__tstate); | |
9784 | if (PyErr_Occurred()) SWIG_fail; | |
9785 | } | |
9786 | resultobj = SWIG_Py_Void(); | |
9787 | return resultobj; | |
9788 | fail: | |
9789 | return NULL; | |
9790 | } | |
9791 | ||
9792 | ||
c2829a8f RD |
9793 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectWord(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9794 | PyObject *resultobj = 0; | |
9795 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9796 | long arg2 ; | |
9797 | bool result; | |
9798 | void *argp1 = 0 ; | |
9799 | int res1 = 0 ; | |
9800 | long val2 ; | |
9801 | int ecode2 = 0 ; | |
9802 | PyObject * obj0 = 0 ; | |
9803 | PyObject * obj1 = 0 ; | |
9804 | char * kwnames[] = { | |
9805 | (char *) "self",(char *) "position", NULL | |
9806 | }; | |
9807 | ||
9808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SelectWord",kwnames,&obj0,&obj1)) SWIG_fail; | |
9809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9810 | if (!SWIG_IsOK(res1)) { | |
9811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9812 | } | |
9813 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9814 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9815 | if (!SWIG_IsOK(ecode2)) { | |
9816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "2"" of type '" "long""'"); | |
9817 | } | |
9818 | arg2 = static_cast< long >(val2); | |
9819 | { | |
9820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9821 | result = (bool)(arg1)->SelectWord(arg2); | |
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | { | |
9826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9827 | } | |
9828 | return resultobj; | |
9829 | fail: | |
9830 | return NULL; | |
9831 | } | |
9832 | ||
9833 | ||
06810ecf RD |
9834 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9835 | PyObject *resultobj = 0; | |
9836 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
79df624a | 9837 | wxRichTextRange result; |
06810ecf RD |
9838 | void *argp1 = 0 ; |
9839 | int res1 = 0 ; | |
9840 | PyObject *swig_obj[1] ; | |
9841 | ||
9842 | if (!args) SWIG_fail; | |
9843 | swig_obj[0] = args; | |
9844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9845 | if (!SWIG_IsOK(res1)) { | |
9846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
9847 | } | |
9848 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9849 | { | |
9850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 9851 | result = ((wxRichTextCtrl const *)arg1)->GetSelectionRange(); |
06810ecf RD |
9852 | wxPyEndAllowThreads(__tstate); |
9853 | if (PyErr_Occurred()) SWIG_fail; | |
9854 | } | |
79df624a | 9855 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); |
06810ecf RD |
9856 | return resultobj; |
9857 | fail: | |
9858 | return NULL; | |
9859 | } | |
9860 | ||
9861 | ||
9862 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9863 | PyObject *resultobj = 0; | |
9864 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9865 | wxRichTextRange *arg2 = 0 ; | |
9866 | void *argp1 = 0 ; | |
9867 | int res1 = 0 ; | |
9868 | wxRichTextRange temp2 ; | |
9869 | PyObject * obj0 = 0 ; | |
9870 | PyObject * obj1 = 0 ; | |
9871 | char * kwnames[] = { | |
9872 | (char *) "self",(char *) "range", NULL | |
9873 | }; | |
9874 | ||
9875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
9876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9877 | if (!SWIG_IsOK(res1)) { | |
9878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9879 | } | |
9880 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9881 | { | |
9882 | arg2 = &temp2; | |
9883 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
9884 | } | |
9885 | { | |
9886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9887 | (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2); | |
9888 | wxPyEndAllowThreads(__tstate); | |
9889 | if (PyErr_Occurred()) SWIG_fail; | |
9890 | } | |
9891 | resultobj = SWIG_Py_Void(); | |
9892 | return resultobj; | |
9893 | fail: | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
79df624a RD |
9898 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9899 | PyObject *resultobj = 0; | |
9900 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9901 | wxRichTextRange *result = 0 ; | |
9902 | void *argp1 = 0 ; | |
9903 | int res1 = 0 ; | |
9904 | PyObject *swig_obj[1] ; | |
9905 | ||
9906 | if (!args) SWIG_fail; | |
9907 | swig_obj[0] = args; | |
9908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9909 | if (!SWIG_IsOK(res1)) { | |
9910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
9911 | } | |
9912 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9913 | { | |
9914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9915 | { | |
9916 | wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetInternalSelectionRange(); | |
9917 | result = (wxRichTextRange *) &_result_ref; | |
9918 | } | |
9919 | wxPyEndAllowThreads(__tstate); | |
9920 | if (PyErr_Occurred()) SWIG_fail; | |
9921 | } | |
9922 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
9923 | return resultobj; | |
9924 | fail: | |
9925 | return NULL; | |
9926 | } | |
9927 | ||
9928 | ||
9929 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9930 | PyObject *resultobj = 0; | |
9931 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9932 | wxRichTextRange *arg2 = 0 ; | |
9933 | void *argp1 = 0 ; | |
9934 | int res1 = 0 ; | |
9935 | wxRichTextRange temp2 ; | |
9936 | PyObject * obj0 = 0 ; | |
9937 | PyObject * obj1 = 0 ; | |
9938 | char * kwnames[] = { | |
9939 | (char *) "self",(char *) "range", NULL | |
9940 | }; | |
9941 | ||
9942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInternalSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
9943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9944 | if (!SWIG_IsOK(res1)) { | |
9945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9946 | } | |
9947 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9948 | { | |
9949 | arg2 = &temp2; | |
9950 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
9951 | } | |
9952 | { | |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | (arg1)->SetInternalSelectionRange((wxRichTextRange const &)*arg2); | |
9955 | wxPyEndAllowThreads(__tstate); | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | } | |
9958 | resultobj = SWIG_Py_Void(); | |
9959 | return resultobj; | |
9960 | fail: | |
9961 | return NULL; | |
9962 | } | |
9963 | ||
9964 | ||
06810ecf RD |
9965 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9966 | PyObject *resultobj = 0; | |
9967 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9968 | wxString *arg2 = 0 ; | |
9969 | wxRichTextRange result; | |
9970 | void *argp1 = 0 ; | |
9971 | int res1 = 0 ; | |
9972 | bool temp2 = false ; | |
9973 | PyObject * obj0 = 0 ; | |
9974 | PyObject * obj1 = 0 ; | |
9975 | char * kwnames[] = { | |
9976 | (char *) "self",(char *) "text", NULL | |
9977 | }; | |
9978 | ||
9979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail; | |
9980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9981 | if (!SWIG_IsOK(res1)) { | |
9982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9983 | } | |
9984 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9985 | { | |
9986 | arg2 = wxString_in_helper(obj1); | |
9987 | if (arg2 == NULL) SWIG_fail; | |
9988 | temp2 = true; | |
9989 | } | |
9990 | { | |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9992 | result = (arg1)->AddParagraph((wxString const &)*arg2); | |
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
9997 | { | |
9998 | if (temp2) | |
9999 | delete arg2; | |
10000 | } | |
10001 | return resultobj; | |
10002 | fail: | |
10003 | { | |
10004 | if (temp2) | |
10005 | delete arg2; | |
10006 | } | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj = 0; | |
10013 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10014 | wxImage *arg2 = 0 ; | |
10015 | wxRichTextRange result; | |
10016 | void *argp1 = 0 ; | |
10017 | int res1 = 0 ; | |
10018 | void *argp2 = 0 ; | |
10019 | int res2 = 0 ; | |
10020 | PyObject * obj0 = 0 ; | |
10021 | PyObject * obj1 = 0 ; | |
10022 | char * kwnames[] = { | |
10023 | (char *) "self",(char *) "image", NULL | |
10024 | }; | |
10025 | ||
10026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
10027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10028 | if (!SWIG_IsOK(res1)) { | |
10029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10030 | } | |
10031 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10032 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
10033 | if (!SWIG_IsOK(res2)) { | |
10034 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
10035 | } | |
10036 | if (!argp2) { | |
10037 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
10038 | } | |
10039 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
10040 | { | |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | result = (arg1)->AddImage((wxImage const &)*arg2); | |
10043 | wxPyEndAllowThreads(__tstate); | |
10044 | if (PyErr_Occurred()) SWIG_fail; | |
10045 | } | |
10046 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
10047 | return resultobj; | |
10048 | fail: | |
10049 | return NULL; | |
10050 | } | |
10051 | ||
10052 | ||
10053 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10054 | PyObject *resultobj = 0; | |
10055 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10056 | bool arg2 = (bool) false ; | |
10057 | bool result; | |
10058 | void *argp1 = 0 ; | |
10059 | int res1 = 0 ; | |
10060 | bool val2 ; | |
10061 | int ecode2 = 0 ; | |
10062 | PyObject * obj0 = 0 ; | |
10063 | PyObject * obj1 = 0 ; | |
10064 | char * kwnames[] = { | |
10065 | (char *) "self",(char *) "onlyVisibleRect", NULL | |
10066 | }; | |
10067 | ||
10068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10070 | if (!SWIG_IsOK(res1)) { | |
10071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10072 | } | |
10073 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10074 | if (obj1) { | |
10075 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10076 | if (!SWIG_IsOK(ecode2)) { | |
10077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'"); | |
10078 | } | |
10079 | arg2 = static_cast< bool >(val2); | |
10080 | } | |
10081 | { | |
10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10083 | result = (bool)(arg1)->LayoutContent(arg2); | |
10084 | wxPyEndAllowThreads(__tstate); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | } | |
10087 | { | |
10088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10089 | } | |
10090 | return resultobj; | |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
10096 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10097 | PyObject *resultobj = 0; | |
10098 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10099 | long arg2 ; | |
10100 | bool arg3 = (bool) false ; | |
10101 | bool result; | |
10102 | void *argp1 = 0 ; | |
10103 | int res1 = 0 ; | |
10104 | long val2 ; | |
10105 | int ecode2 = 0 ; | |
10106 | bool val3 ; | |
10107 | int ecode3 = 0 ; | |
10108 | PyObject * obj0 = 0 ; | |
10109 | PyObject * obj1 = 0 ; | |
10110 | PyObject * obj2 = 0 ; | |
10111 | char * kwnames[] = { | |
10112 | (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL | |
10113 | }; | |
10114 | ||
10115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10117 | if (!SWIG_IsOK(res1)) { | |
10118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10119 | } | |
10120 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10121 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10122 | if (!SWIG_IsOK(ecode2)) { | |
10123 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'"); | |
10124 | } | |
10125 | arg2 = static_cast< long >(val2); | |
10126 | if (obj2) { | |
10127 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10128 | if (!SWIG_IsOK(ecode3)) { | |
10129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'"); | |
10130 | } | |
10131 | arg3 = static_cast< bool >(val3); | |
10132 | } | |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10135 | result = (bool)(arg1)->MoveCaret(arg2,arg3); | |
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | { | |
10140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10141 | } | |
10142 | return resultobj; | |
10143 | fail: | |
10144 | return NULL; | |
10145 | } | |
10146 | ||
10147 | ||
10148 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10149 | PyObject *resultobj = 0; | |
10150 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10151 | int arg2 = (int) 1 ; | |
10152 | int arg3 = (int) 0 ; | |
10153 | bool result; | |
10154 | void *argp1 = 0 ; | |
10155 | int res1 = 0 ; | |
10156 | int val2 ; | |
10157 | int ecode2 = 0 ; | |
10158 | int val3 ; | |
10159 | int ecode3 = 0 ; | |
10160 | PyObject * obj0 = 0 ; | |
10161 | PyObject * obj1 = 0 ; | |
10162 | PyObject * obj2 = 0 ; | |
10163 | char * kwnames[] = { | |
10164 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10165 | }; | |
10166 | ||
10167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10169 | if (!SWIG_IsOK(res1)) { | |
10170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10171 | } | |
10172 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10173 | if (obj1) { | |
10174 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10175 | if (!SWIG_IsOK(ecode2)) { | |
10176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'"); | |
10177 | } | |
10178 | arg2 = static_cast< int >(val2); | |
10179 | } | |
10180 | if (obj2) { | |
10181 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10182 | if (!SWIG_IsOK(ecode3)) { | |
10183 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'"); | |
10184 | } | |
10185 | arg3 = static_cast< int >(val3); | |
10186 | } | |
10187 | { | |
10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10189 | result = (bool)(arg1)->MoveRight(arg2,arg3); | |
10190 | wxPyEndAllowThreads(__tstate); | |
10191 | if (PyErr_Occurred()) SWIG_fail; | |
10192 | } | |
10193 | { | |
10194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10195 | } | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj = 0; | |
10204 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10205 | int arg2 = (int) 1 ; | |
10206 | int arg3 = (int) 0 ; | |
10207 | bool result; | |
10208 | void *argp1 = 0 ; | |
10209 | int res1 = 0 ; | |
10210 | int val2 ; | |
10211 | int ecode2 = 0 ; | |
10212 | int val3 ; | |
10213 | int ecode3 = 0 ; | |
10214 | PyObject * obj0 = 0 ; | |
10215 | PyObject * obj1 = 0 ; | |
10216 | PyObject * obj2 = 0 ; | |
10217 | char * kwnames[] = { | |
10218 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10219 | }; | |
10220 | ||
10221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10223 | if (!SWIG_IsOK(res1)) { | |
10224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10225 | } | |
10226 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10227 | if (obj1) { | |
10228 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10229 | if (!SWIG_IsOK(ecode2)) { | |
10230 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'"); | |
10231 | } | |
10232 | arg2 = static_cast< int >(val2); | |
10233 | } | |
10234 | if (obj2) { | |
10235 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10236 | if (!SWIG_IsOK(ecode3)) { | |
10237 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'"); | |
10238 | } | |
10239 | arg3 = static_cast< int >(val3); | |
10240 | } | |
10241 | { | |
10242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10243 | result = (bool)(arg1)->MoveLeft(arg2,arg3); | |
10244 | wxPyEndAllowThreads(__tstate); | |
10245 | if (PyErr_Occurred()) SWIG_fail; | |
10246 | } | |
10247 | { | |
10248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10249 | } | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
10256 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10257 | PyObject *resultobj = 0; | |
10258 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10259 | int arg2 = (int) 1 ; | |
10260 | int arg3 = (int) 0 ; | |
10261 | bool result; | |
10262 | void *argp1 = 0 ; | |
10263 | int res1 = 0 ; | |
10264 | int val2 ; | |
10265 | int ecode2 = 0 ; | |
10266 | int val3 ; | |
10267 | int ecode3 = 0 ; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | PyObject * obj1 = 0 ; | |
10270 | PyObject * obj2 = 0 ; | |
10271 | char * kwnames[] = { | |
10272 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10273 | }; | |
10274 | ||
10275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10277 | if (!SWIG_IsOK(res1)) { | |
10278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10279 | } | |
10280 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10281 | if (obj1) { | |
10282 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10283 | if (!SWIG_IsOK(ecode2)) { | |
10284 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'"); | |
10285 | } | |
10286 | arg2 = static_cast< int >(val2); | |
10287 | } | |
10288 | if (obj2) { | |
10289 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10290 | if (!SWIG_IsOK(ecode3)) { | |
10291 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'"); | |
10292 | } | |
10293 | arg3 = static_cast< int >(val3); | |
10294 | } | |
10295 | { | |
10296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10297 | result = (bool)(arg1)->MoveUp(arg2,arg3); | |
10298 | wxPyEndAllowThreads(__tstate); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | { | |
10302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10303 | } | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj = 0; | |
10312 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10313 | int arg2 = (int) 1 ; | |
10314 | int arg3 = (int) 0 ; | |
10315 | bool result; | |
10316 | void *argp1 = 0 ; | |
10317 | int res1 = 0 ; | |
10318 | int val2 ; | |
10319 | int ecode2 = 0 ; | |
10320 | int val3 ; | |
10321 | int ecode3 = 0 ; | |
10322 | PyObject * obj0 = 0 ; | |
10323 | PyObject * obj1 = 0 ; | |
10324 | PyObject * obj2 = 0 ; | |
10325 | char * kwnames[] = { | |
10326 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10327 | }; | |
10328 | ||
10329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10331 | if (!SWIG_IsOK(res1)) { | |
10332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10333 | } | |
10334 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10335 | if (obj1) { | |
10336 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10337 | if (!SWIG_IsOK(ecode2)) { | |
10338 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'"); | |
10339 | } | |
10340 | arg2 = static_cast< int >(val2); | |
10341 | } | |
10342 | if (obj2) { | |
10343 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10344 | if (!SWIG_IsOK(ecode3)) { | |
10345 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'"); | |
10346 | } | |
10347 | arg3 = static_cast< int >(val3); | |
10348 | } | |
10349 | { | |
10350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10351 | result = (bool)(arg1)->MoveDown(arg2,arg3); | |
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | { | |
10356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10357 | } | |
10358 | return resultobj; | |
10359 | fail: | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
10364 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10365 | PyObject *resultobj = 0; | |
10366 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10367 | int arg2 = (int) 0 ; | |
10368 | bool result; | |
10369 | void *argp1 = 0 ; | |
10370 | int res1 = 0 ; | |
10371 | int val2 ; | |
10372 | int ecode2 = 0 ; | |
10373 | PyObject * obj0 = 0 ; | |
10374 | PyObject * obj1 = 0 ; | |
10375 | char * kwnames[] = { | |
10376 | (char *) "self",(char *) "flags", NULL | |
10377 | }; | |
10378 | ||
10379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10381 | if (!SWIG_IsOK(res1)) { | |
10382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10383 | } | |
10384 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10385 | if (obj1) { | |
10386 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10387 | if (!SWIG_IsOK(ecode2)) { | |
10388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'"); | |
10389 | } | |
10390 | arg2 = static_cast< int >(val2); | |
10391 | } | |
10392 | { | |
10393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10394 | result = (bool)(arg1)->MoveToLineEnd(arg2); | |
10395 | wxPyEndAllowThreads(__tstate); | |
10396 | if (PyErr_Occurred()) SWIG_fail; | |
10397 | } | |
10398 | { | |
10399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10400 | } | |
10401 | return resultobj; | |
10402 | fail: | |
10403 | return NULL; | |
10404 | } | |
10405 | ||
10406 | ||
10407 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10408 | PyObject *resultobj = 0; | |
10409 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10410 | int arg2 = (int) 0 ; | |
10411 | bool result; | |
10412 | void *argp1 = 0 ; | |
10413 | int res1 = 0 ; | |
10414 | int val2 ; | |
10415 | int ecode2 = 0 ; | |
10416 | PyObject * obj0 = 0 ; | |
10417 | PyObject * obj1 = 0 ; | |
10418 | char * kwnames[] = { | |
10419 | (char *) "self",(char *) "flags", NULL | |
10420 | }; | |
10421 | ||
10422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10424 | if (!SWIG_IsOK(res1)) { | |
10425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10426 | } | |
10427 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10428 | if (obj1) { | |
10429 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10430 | if (!SWIG_IsOK(ecode2)) { | |
10431 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'"); | |
10432 | } | |
10433 | arg2 = static_cast< int >(val2); | |
10434 | } | |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | result = (bool)(arg1)->MoveToLineStart(arg2); | |
10438 | wxPyEndAllowThreads(__tstate); | |
10439 | if (PyErr_Occurred()) SWIG_fail; | |
10440 | } | |
10441 | { | |
10442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10443 | } | |
10444 | return resultobj; | |
10445 | fail: | |
10446 | return NULL; | |
10447 | } | |
10448 | ||
10449 | ||
10450 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10451 | PyObject *resultobj = 0; | |
10452 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10453 | int arg2 = (int) 0 ; | |
10454 | bool result; | |
10455 | void *argp1 = 0 ; | |
10456 | int res1 = 0 ; | |
10457 | int val2 ; | |
10458 | int ecode2 = 0 ; | |
10459 | PyObject * obj0 = 0 ; | |
10460 | PyObject * obj1 = 0 ; | |
10461 | char * kwnames[] = { | |
10462 | (char *) "self",(char *) "flags", NULL | |
10463 | }; | |
10464 | ||
10465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10467 | if (!SWIG_IsOK(res1)) { | |
10468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10469 | } | |
10470 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10471 | if (obj1) { | |
10472 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10473 | if (!SWIG_IsOK(ecode2)) { | |
10474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'"); | |
10475 | } | |
10476 | arg2 = static_cast< int >(val2); | |
10477 | } | |
10478 | { | |
10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10480 | result = (bool)(arg1)->MoveToParagraphEnd(arg2); | |
10481 | wxPyEndAllowThreads(__tstate); | |
10482 | if (PyErr_Occurred()) SWIG_fail; | |
10483 | } | |
10484 | { | |
10485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10486 | } | |
10487 | return resultobj; | |
10488 | fail: | |
10489 | return NULL; | |
10490 | } | |
10491 | ||
10492 | ||
10493 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10494 | PyObject *resultobj = 0; | |
10495 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10496 | int arg2 = (int) 0 ; | |
10497 | bool result; | |
10498 | void *argp1 = 0 ; | |
10499 | int res1 = 0 ; | |
10500 | int val2 ; | |
10501 | int ecode2 = 0 ; | |
10502 | PyObject * obj0 = 0 ; | |
10503 | PyObject * obj1 = 0 ; | |
10504 | char * kwnames[] = { | |
10505 | (char *) "self",(char *) "flags", NULL | |
10506 | }; | |
10507 | ||
10508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10510 | if (!SWIG_IsOK(res1)) { | |
10511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10512 | } | |
10513 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10514 | if (obj1) { | |
10515 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10516 | if (!SWIG_IsOK(ecode2)) { | |
10517 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'"); | |
10518 | } | |
10519 | arg2 = static_cast< int >(val2); | |
10520 | } | |
10521 | { | |
10522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10523 | result = (bool)(arg1)->MoveToParagraphStart(arg2); | |
10524 | wxPyEndAllowThreads(__tstate); | |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
10526 | } | |
10527 | { | |
10528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10529 | } | |
10530 | return resultobj; | |
10531 | fail: | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
10536 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10537 | PyObject *resultobj = 0; | |
10538 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10539 | int arg2 = (int) 0 ; | |
10540 | bool result; | |
10541 | void *argp1 = 0 ; | |
10542 | int res1 = 0 ; | |
10543 | int val2 ; | |
10544 | int ecode2 = 0 ; | |
10545 | PyObject * obj0 = 0 ; | |
10546 | PyObject * obj1 = 0 ; | |
10547 | char * kwnames[] = { | |
10548 | (char *) "self",(char *) "flags", NULL | |
10549 | }; | |
10550 | ||
10551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) 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_MoveHome" "', 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_MoveHome" "', expected argument " "2"" of type '" "int""'"); | |
10561 | } | |
10562 | arg2 = static_cast< int >(val2); | |
10563 | } | |
10564 | { | |
10565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10566 | result = (bool)(arg1)->MoveHome(arg2); | |
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | { | |
10571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10572 | } | |
10573 | return resultobj; | |
10574 | fail: | |
10575 | return NULL; | |
10576 | } | |
10577 | ||
10578 | ||
10579 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10580 | PyObject *resultobj = 0; | |
10581 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10582 | int arg2 = (int) 0 ; | |
10583 | bool result; | |
10584 | void *argp1 = 0 ; | |
10585 | int res1 = 0 ; | |
10586 | int val2 ; | |
10587 | int ecode2 = 0 ; | |
10588 | PyObject * obj0 = 0 ; | |
10589 | PyObject * obj1 = 0 ; | |
10590 | char * kwnames[] = { | |
10591 | (char *) "self",(char *) "flags", NULL | |
10592 | }; | |
10593 | ||
10594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10596 | if (!SWIG_IsOK(res1)) { | |
10597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10598 | } | |
10599 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10600 | if (obj1) { | |
10601 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10602 | if (!SWIG_IsOK(ecode2)) { | |
10603 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'"); | |
10604 | } | |
10605 | arg2 = static_cast< int >(val2); | |
10606 | } | |
10607 | { | |
10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10609 | result = (bool)(arg1)->MoveEnd(arg2); | |
10610 | wxPyEndAllowThreads(__tstate); | |
10611 | if (PyErr_Occurred()) SWIG_fail; | |
10612 | } | |
10613 | { | |
10614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10615 | } | |
10616 | return resultobj; | |
10617 | fail: | |
10618 | return NULL; | |
10619 | } | |
10620 | ||
10621 | ||
10622 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10623 | PyObject *resultobj = 0; | |
10624 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10625 | int arg2 = (int) 1 ; | |
10626 | int arg3 = (int) 0 ; | |
10627 | bool result; | |
10628 | void *argp1 = 0 ; | |
10629 | int res1 = 0 ; | |
10630 | int val2 ; | |
10631 | int ecode2 = 0 ; | |
10632 | int val3 ; | |
10633 | int ecode3 = 0 ; | |
10634 | PyObject * obj0 = 0 ; | |
10635 | PyObject * obj1 = 0 ; | |
10636 | PyObject * obj2 = 0 ; | |
10637 | char * kwnames[] = { | |
10638 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10639 | }; | |
10640 | ||
10641 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10643 | if (!SWIG_IsOK(res1)) { | |
10644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10645 | } | |
10646 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10647 | if (obj1) { | |
10648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10649 | if (!SWIG_IsOK(ecode2)) { | |
10650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'"); | |
10651 | } | |
10652 | arg2 = static_cast< int >(val2); | |
10653 | } | |
10654 | if (obj2) { | |
10655 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10656 | if (!SWIG_IsOK(ecode3)) { | |
10657 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'"); | |
10658 | } | |
10659 | arg3 = static_cast< int >(val3); | |
10660 | } | |
10661 | { | |
10662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10663 | result = (bool)(arg1)->PageUp(arg2,arg3); | |
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | { | |
10668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10669 | } | |
10670 | return resultobj; | |
10671 | fail: | |
10672 | return NULL; | |
10673 | } | |
10674 | ||
10675 | ||
10676 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10677 | PyObject *resultobj = 0; | |
10678 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10679 | int arg2 = (int) 1 ; | |
10680 | int arg3 = (int) 0 ; | |
10681 | bool result; | |
10682 | void *argp1 = 0 ; | |
10683 | int res1 = 0 ; | |
10684 | int val2 ; | |
10685 | int ecode2 = 0 ; | |
10686 | int val3 ; | |
10687 | int ecode3 = 0 ; | |
10688 | PyObject * obj0 = 0 ; | |
10689 | PyObject * obj1 = 0 ; | |
10690 | PyObject * obj2 = 0 ; | |
10691 | char * kwnames[] = { | |
10692 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10693 | }; | |
10694 | ||
10695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10697 | if (!SWIG_IsOK(res1)) { | |
10698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10699 | } | |
10700 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10701 | if (obj1) { | |
10702 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10703 | if (!SWIG_IsOK(ecode2)) { | |
10704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'"); | |
10705 | } | |
10706 | arg2 = static_cast< int >(val2); | |
10707 | } | |
10708 | if (obj2) { | |
10709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10710 | if (!SWIG_IsOK(ecode3)) { | |
10711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'"); | |
10712 | } | |
10713 | arg3 = static_cast< int >(val3); | |
10714 | } | |
10715 | { | |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | result = (bool)(arg1)->PageDown(arg2,arg3); | |
10718 | wxPyEndAllowThreads(__tstate); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | } | |
10721 | { | |
10722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10723 | } | |
10724 | return resultobj; | |
10725 | fail: | |
10726 | return NULL; | |
10727 | } | |
10728 | ||
10729 | ||
10730 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10731 | PyObject *resultobj = 0; | |
10732 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10733 | int arg2 = (int) 1 ; | |
10734 | int arg3 = (int) 0 ; | |
10735 | bool result; | |
10736 | void *argp1 = 0 ; | |
10737 | int res1 = 0 ; | |
10738 | int val2 ; | |
10739 | int ecode2 = 0 ; | |
10740 | int val3 ; | |
10741 | int ecode3 = 0 ; | |
10742 | PyObject * obj0 = 0 ; | |
10743 | PyObject * obj1 = 0 ; | |
10744 | PyObject * obj2 = 0 ; | |
10745 | char * kwnames[] = { | |
10746 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10747 | }; | |
10748 | ||
10749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10751 | if (!SWIG_IsOK(res1)) { | |
10752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10753 | } | |
10754 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10755 | if (obj1) { | |
10756 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10757 | if (!SWIG_IsOK(ecode2)) { | |
10758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'"); | |
10759 | } | |
10760 | arg2 = static_cast< int >(val2); | |
10761 | } | |
10762 | if (obj2) { | |
10763 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10764 | if (!SWIG_IsOK(ecode3)) { | |
10765 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'"); | |
10766 | } | |
10767 | arg3 = static_cast< int >(val3); | |
10768 | } | |
10769 | { | |
10770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10771 | result = (bool)(arg1)->WordLeft(arg2,arg3); | |
10772 | wxPyEndAllowThreads(__tstate); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | } | |
10775 | { | |
10776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10777 | } | |
10778 | return resultobj; | |
10779 | fail: | |
10780 | return NULL; | |
10781 | } | |
10782 | ||
10783 | ||
10784 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10785 | PyObject *resultobj = 0; | |
10786 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10787 | int arg2 = (int) 1 ; | |
10788 | int arg3 = (int) 0 ; | |
10789 | bool result; | |
10790 | void *argp1 = 0 ; | |
10791 | int res1 = 0 ; | |
10792 | int val2 ; | |
10793 | int ecode2 = 0 ; | |
10794 | int val3 ; | |
10795 | int ecode3 = 0 ; | |
10796 | PyObject * obj0 = 0 ; | |
10797 | PyObject * obj1 = 0 ; | |
10798 | PyObject * obj2 = 0 ; | |
10799 | char * kwnames[] = { | |
10800 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10801 | }; | |
10802 | ||
10803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10805 | if (!SWIG_IsOK(res1)) { | |
10806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10807 | } | |
10808 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10809 | if (obj1) { | |
10810 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10811 | if (!SWIG_IsOK(ecode2)) { | |
10812 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'"); | |
10813 | } | |
10814 | arg2 = static_cast< int >(val2); | |
10815 | } | |
10816 | if (obj2) { | |
10817 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10818 | if (!SWIG_IsOK(ecode3)) { | |
10819 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'"); | |
10820 | } | |
10821 | arg3 = static_cast< int >(val3); | |
10822 | } | |
10823 | { | |
10824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10825 | result = (bool)(arg1)->WordRight(arg2,arg3); | |
10826 | wxPyEndAllowThreads(__tstate); | |
10827 | if (PyErr_Occurred()) SWIG_fail; | |
10828 | } | |
10829 | { | |
10830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10831 | } | |
10832 | return resultobj; | |
10833 | fail: | |
10834 | return NULL; | |
10835 | } | |
10836 | ||
10837 | ||
10838 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10839 | PyObject *resultobj = 0; | |
10840 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10841 | wxRichTextBuffer *result = 0 ; | |
10842 | void *argp1 = 0 ; | |
10843 | int res1 = 0 ; | |
10844 | PyObject *swig_obj[1] ; | |
10845 | ||
10846 | if (!args) SWIG_fail; | |
10847 | swig_obj[0] = args; | |
10848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10849 | if (!SWIG_IsOK(res1)) { | |
10850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10851 | } | |
10852 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10853 | { | |
10854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10855 | { | |
10856 | wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer(); | |
10857 | result = (wxRichTextBuffer *) &_result_ref; | |
10858 | } | |
10859 | wxPyEndAllowThreads(__tstate); | |
10860 | if (PyErr_Occurred()) SWIG_fail; | |
10861 | } | |
10862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 ); | |
10863 | return resultobj; | |
10864 | fail: | |
10865 | return NULL; | |
10866 | } | |
10867 | ||
10868 | ||
10869 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10870 | PyObject *resultobj = 0; | |
10871 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10872 | wxString *arg2 = 0 ; | |
10873 | bool result; | |
10874 | void *argp1 = 0 ; | |
10875 | int res1 = 0 ; | |
10876 | bool temp2 = false ; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | PyObject * obj1 = 0 ; | |
10879 | char * kwnames[] = { | |
10880 | (char *) "self",(char *) "cmdName", NULL | |
10881 | }; | |
10882 | ||
10883 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail; | |
10884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10885 | if (!SWIG_IsOK(res1)) { | |
10886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10887 | } | |
10888 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10889 | { | |
10890 | arg2 = wxString_in_helper(obj1); | |
10891 | if (arg2 == NULL) SWIG_fail; | |
10892 | temp2 = true; | |
10893 | } | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2); | |
10897 | wxPyEndAllowThreads(__tstate); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
10899 | } | |
10900 | { | |
10901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10902 | } | |
10903 | { | |
10904 | if (temp2) | |
10905 | delete arg2; | |
10906 | } | |
10907 | return resultobj; | |
10908 | fail: | |
10909 | { | |
10910 | if (temp2) | |
10911 | delete arg2; | |
10912 | } | |
10913 | return NULL; | |
10914 | } | |
10915 | ||
10916 | ||
10917 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10918 | PyObject *resultobj = 0; | |
10919 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10920 | bool result; | |
10921 | void *argp1 = 0 ; | |
10922 | int res1 = 0 ; | |
10923 | PyObject *swig_obj[1] ; | |
10924 | ||
10925 | if (!args) SWIG_fail; | |
10926 | swig_obj[0] = args; | |
10927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10928 | if (!SWIG_IsOK(res1)) { | |
10929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10930 | } | |
10931 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10934 | result = (bool)(arg1)->EndBatchUndo(); | |
10935 | wxPyEndAllowThreads(__tstate); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | } | |
10938 | { | |
10939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10940 | } | |
10941 | return resultobj; | |
10942 | fail: | |
10943 | return NULL; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10948 | PyObject *resultobj = 0; | |
10949 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10950 | bool result; | |
10951 | void *argp1 = 0 ; | |
10952 | int res1 = 0 ; | |
10953 | PyObject *swig_obj[1] ; | |
10954 | ||
10955 | if (!args) SWIG_fail; | |
10956 | swig_obj[0] = args; | |
10957 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10958 | if (!SWIG_IsOK(res1)) { | |
10959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10960 | } | |
10961 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10962 | { | |
10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10964 | result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo(); | |
10965 | wxPyEndAllowThreads(__tstate); | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | } | |
10968 | { | |
10969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10970 | } | |
10971 | return resultobj; | |
10972 | fail: | |
10973 | return NULL; | |
10974 | } | |
10975 | ||
10976 | ||
10977 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10978 | PyObject *resultobj = 0; | |
10979 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10980 | bool result; | |
10981 | void *argp1 = 0 ; | |
10982 | int res1 = 0 ; | |
10983 | PyObject *swig_obj[1] ; | |
10984 | ||
10985 | if (!args) SWIG_fail; | |
10986 | swig_obj[0] = args; | |
10987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10988 | if (!SWIG_IsOK(res1)) { | |
10989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10990 | } | |
10991 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | result = (bool)(arg1)->BeginSuppressUndo(); | |
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
10998 | { | |
10999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11000 | } | |
11001 | return resultobj; | |
11002 | fail: | |
11003 | return NULL; | |
11004 | } | |
11005 | ||
11006 | ||
11007 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11008 | PyObject *resultobj = 0; | |
11009 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11010 | bool result; | |
11011 | void *argp1 = 0 ; | |
11012 | int res1 = 0 ; | |
11013 | PyObject *swig_obj[1] ; | |
11014 | ||
11015 | if (!args) SWIG_fail; | |
11016 | swig_obj[0] = args; | |
11017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11018 | if (!SWIG_IsOK(res1)) { | |
11019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11020 | } | |
11021 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11022 | { | |
11023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11024 | result = (bool)(arg1)->EndSuppressUndo(); | |
11025 | wxPyEndAllowThreads(__tstate); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | { | |
11029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11030 | } | |
11031 | return resultobj; | |
11032 | fail: | |
11033 | return NULL; | |
11034 | } | |
11035 | ||
11036 | ||
11037 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11038 | PyObject *resultobj = 0; | |
11039 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11040 | bool result; | |
11041 | void *argp1 = 0 ; | |
11042 | int res1 = 0 ; | |
11043 | PyObject *swig_obj[1] ; | |
11044 | ||
11045 | if (!args) SWIG_fail; | |
11046 | swig_obj[0] = args; | |
11047 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11048 | if (!SWIG_IsOK(res1)) { | |
11049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11050 | } | |
11051 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11052 | { | |
11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11054 | result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo(); | |
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | { | |
11059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11060 | } | |
11061 | return resultobj; | |
11062 | fail: | |
11063 | return NULL; | |
11064 | } | |
11065 | ||
11066 | ||
11067 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11068 | PyObject *resultobj = 0; | |
11069 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11070 | wxRichTextRange *arg2 = 0 ; | |
11071 | wxRichTextAttr *arg3 = 0 ; | |
11072 | bool result; | |
11073 | void *argp1 = 0 ; | |
11074 | int res1 = 0 ; | |
11075 | wxRichTextRange temp2 ; | |
11076 | void *argp3 = 0 ; | |
11077 | int res3 = 0 ; | |
11078 | PyObject * obj0 = 0 ; | |
11079 | PyObject * obj1 = 0 ; | |
11080 | PyObject * obj2 = 0 ; | |
11081 | char * kwnames[] = { | |
11082 | (char *) "self",(char *) "range",(char *) "style", NULL | |
11083 | }; | |
11084 | ||
11085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11087 | if (!SWIG_IsOK(res1)) { | |
11088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11089 | } | |
11090 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11091 | { | |
11092 | arg2 = &temp2; | |
11093 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
11094 | } | |
11095 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
11096 | if (!SWIG_IsOK(res3)) { | |
11097 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11098 | } | |
11099 | if (!argp3) { | |
11100 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11101 | } | |
11102 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
11103 | { | |
11104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11105 | result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
11106 | wxPyEndAllowThreads(__tstate); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | } | |
11109 | { | |
11110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11111 | } | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
11118 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11119 | PyObject *resultobj = 0; | |
11120 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11121 | wxRichTextRange *arg2 = 0 ; | |
11122 | wxRichTextAttr *arg3 = 0 ; | |
11123 | bool result; | |
11124 | void *argp1 = 0 ; | |
11125 | int res1 = 0 ; | |
11126 | wxRichTextRange temp2 ; | |
11127 | void *argp3 = 0 ; | |
11128 | int res3 = 0 ; | |
11129 | PyObject * obj0 = 0 ; | |
11130 | PyObject * obj1 = 0 ; | |
11131 | PyObject * obj2 = 0 ; | |
11132 | char * kwnames[] = { | |
11133 | (char *) "self",(char *) "range",(char *) "style", NULL | |
11134 | }; | |
11135 | ||
11136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11138 | if (!SWIG_IsOK(res1)) { | |
11139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11140 | } | |
11141 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11142 | { | |
11143 | arg2 = &temp2; | |
11144 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
11145 | } | |
11146 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
11147 | if (!SWIG_IsOK(res3)) { | |
11148 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11149 | } | |
11150 | if (!argp3) { | |
11151 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11152 | } | |
11153 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
11154 | { | |
11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11156 | result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | { | |
11161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11162 | } | |
11163 | return resultobj; | |
11164 | fail: | |
11165 | return NULL; | |
11166 | } | |
11167 | ||
11168 | ||
11169 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11170 | PyObject *resultobj = 0; | |
11171 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11172 | bool result; | |
11173 | void *argp1 = 0 ; | |
11174 | int res1 = 0 ; | |
11175 | PyObject *swig_obj[1] ; | |
11176 | ||
11177 | if (!args) SWIG_fail; | |
11178 | swig_obj[0] = args; | |
11179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11180 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11182 | } |
11183 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11184 | { | |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11186 | result = (bool)(arg1)->IsSelectionBold(); |
06810ecf RD |
11187 | wxPyEndAllowThreads(__tstate); |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | { | |
11191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11192 | } | |
11193 | return resultobj; | |
11194 | fail: | |
11195 | return NULL; | |
11196 | } | |
11197 | ||
11198 | ||
11199 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11200 | PyObject *resultobj = 0; | |
11201 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11202 | bool result; | |
11203 | void *argp1 = 0 ; | |
11204 | int res1 = 0 ; | |
11205 | PyObject *swig_obj[1] ; | |
11206 | ||
11207 | if (!args) SWIG_fail; | |
11208 | swig_obj[0] = args; | |
11209 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11210 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11212 | } |
11213 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11216 | result = (bool)(arg1)->IsSelectionItalics(); |
06810ecf RD |
11217 | wxPyEndAllowThreads(__tstate); |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | { | |
11221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11222 | } | |
11223 | return resultobj; | |
11224 | fail: | |
11225 | return NULL; | |
11226 | } | |
11227 | ||
11228 | ||
11229 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11230 | PyObject *resultobj = 0; | |
11231 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11232 | bool result; | |
11233 | void *argp1 = 0 ; | |
11234 | int res1 = 0 ; | |
11235 | PyObject *swig_obj[1] ; | |
11236 | ||
11237 | if (!args) SWIG_fail; | |
11238 | swig_obj[0] = args; | |
11239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11240 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11242 | } |
11243 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11244 | { | |
11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11246 | result = (bool)(arg1)->IsSelectionUnderlined(); |
06810ecf RD |
11247 | wxPyEndAllowThreads(__tstate); |
11248 | if (PyErr_Occurred()) SWIG_fail; | |
11249 | } | |
11250 | { | |
11251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11252 | } | |
11253 | return resultobj; | |
11254 | fail: | |
11255 | return NULL; | |
11256 | } | |
11257 | ||
11258 | ||
11259 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11260 | PyObject *resultobj = 0; | |
11261 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11262 | wxTextAttrAlignment arg2 ; | |
11263 | bool result; | |
11264 | void *argp1 = 0 ; | |
11265 | int res1 = 0 ; | |
11266 | int val2 ; | |
11267 | int ecode2 = 0 ; | |
11268 | PyObject * obj0 = 0 ; | |
11269 | PyObject * obj1 = 0 ; | |
11270 | char * kwnames[] = { | |
11271 | (char *) "self",(char *) "alignment", NULL | |
11272 | }; | |
11273 | ||
11274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail; | |
11275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11276 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11278 | } |
11279 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11281 | if (!SWIG_IsOK(ecode2)) { | |
11282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11283 | } | |
11284 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11285 | { | |
11286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11287 | result = (bool)(arg1)->IsSelectionAligned(arg2); |
06810ecf RD |
11288 | wxPyEndAllowThreads(__tstate); |
11289 | if (PyErr_Occurred()) SWIG_fail; | |
11290 | } | |
11291 | { | |
11292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11293 | } | |
11294 | return resultobj; | |
11295 | fail: | |
11296 | return NULL; | |
11297 | } | |
11298 | ||
11299 | ||
11300 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11301 | PyObject *resultobj = 0; | |
11302 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11303 | bool result; | |
11304 | void *argp1 = 0 ; | |
11305 | int res1 = 0 ; | |
11306 | PyObject *swig_obj[1] ; | |
11307 | ||
11308 | if (!args) SWIG_fail; | |
11309 | swig_obj[0] = args; | |
11310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11311 | if (!SWIG_IsOK(res1)) { | |
11312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11313 | } | |
11314 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11315 | { | |
11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11317 | result = (bool)(arg1)->ApplyBoldToSelection(); | |
11318 | wxPyEndAllowThreads(__tstate); | |
11319 | if (PyErr_Occurred()) SWIG_fail; | |
11320 | } | |
11321 | { | |
11322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11323 | } | |
11324 | return resultobj; | |
11325 | fail: | |
11326 | return NULL; | |
11327 | } | |
11328 | ||
11329 | ||
11330 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11331 | PyObject *resultobj = 0; | |
11332 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11333 | bool result; | |
11334 | void *argp1 = 0 ; | |
11335 | int res1 = 0 ; | |
11336 | PyObject *swig_obj[1] ; | |
11337 | ||
11338 | if (!args) SWIG_fail; | |
11339 | swig_obj[0] = args; | |
11340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11341 | if (!SWIG_IsOK(res1)) { | |
11342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11343 | } | |
11344 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11345 | { | |
11346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11347 | result = (bool)(arg1)->ApplyItalicToSelection(); | |
11348 | wxPyEndAllowThreads(__tstate); | |
11349 | if (PyErr_Occurred()) SWIG_fail; | |
11350 | } | |
11351 | { | |
11352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11353 | } | |
11354 | return resultobj; | |
11355 | fail: | |
11356 | return NULL; | |
11357 | } | |
11358 | ||
11359 | ||
11360 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11361 | PyObject *resultobj = 0; | |
11362 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11363 | bool result; | |
11364 | void *argp1 = 0 ; | |
11365 | int res1 = 0 ; | |
11366 | PyObject *swig_obj[1] ; | |
11367 | ||
11368 | if (!args) SWIG_fail; | |
11369 | swig_obj[0] = args; | |
11370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11371 | if (!SWIG_IsOK(res1)) { | |
11372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11373 | } | |
11374 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11375 | { | |
11376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11377 | result = (bool)(arg1)->ApplyUnderlineToSelection(); | |
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
11381 | { | |
11382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11383 | } | |
11384 | return resultobj; | |
11385 | fail: | |
11386 | return NULL; | |
11387 | } | |
11388 | ||
11389 | ||
11390 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj = 0; | |
11392 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11393 | wxTextAttrAlignment arg2 ; | |
11394 | bool result; | |
11395 | void *argp1 = 0 ; | |
11396 | int res1 = 0 ; | |
11397 | int val2 ; | |
11398 | int ecode2 = 0 ; | |
11399 | PyObject * obj0 = 0 ; | |
11400 | PyObject * obj1 = 0 ; | |
11401 | char * kwnames[] = { | |
11402 | (char *) "self",(char *) "alignment", NULL | |
11403 | }; | |
11404 | ||
11405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
11406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11407 | if (!SWIG_IsOK(res1)) { | |
11408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11409 | } | |
11410 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11411 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11412 | if (!SWIG_IsOK(ecode2)) { | |
11413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11414 | } | |
11415 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11416 | { | |
11417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11418 | result = (bool)(arg1)->ApplyAlignmentToSelection(arg2); | |
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | { | |
11423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11424 | } | |
11425 | return resultobj; | |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
11431 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11432 | PyObject *resultobj = 0; | |
11433 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11434 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ; | |
11435 | void *argp1 = 0 ; | |
11436 | int res1 = 0 ; | |
11437 | void *argp2 = 0 ; | |
11438 | int res2 = 0 ; | |
11439 | PyObject * obj0 = 0 ; | |
11440 | PyObject * obj1 = 0 ; | |
11441 | char * kwnames[] = { | |
11442 | (char *) "self",(char *) "styleSheet", NULL | |
11443 | }; | |
11444 | ||
11445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11447 | if (!SWIG_IsOK(res1)) { | |
11448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11449 | } | |
11450 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11451 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11452 | if (!SWIG_IsOK(res2)) { | |
11453 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11454 | } | |
11455 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | (arg1)->SetStyleSheet(arg2); | |
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) SWIG_fail; | |
11461 | } | |
11462 | resultobj = SWIG_Py_Void(); | |
11463 | return resultobj; | |
11464 | fail: | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
11469 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11470 | PyObject *resultobj = 0; | |
11471 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11472 | wxRichTextStyleSheet *result = 0 ; | |
11473 | void *argp1 = 0 ; | |
11474 | int res1 = 0 ; | |
11475 | PyObject *swig_obj[1] ; | |
11476 | ||
11477 | if (!args) SWIG_fail; | |
11478 | swig_obj[0] = args; | |
11479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11480 | if (!SWIG_IsOK(res1)) { | |
11481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11482 | } | |
11483 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11484 | { | |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11486 | result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet(); | |
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
11490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11491 | return resultobj; | |
11492 | fail: | |
11493 | return NULL; | |
11494 | } | |
11495 | ||
11496 | ||
c2829a8f RD |
11497 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11498 | PyObject *resultobj = 0; | |
11499 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11500 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) NULL ; | |
11501 | bool result; | |
11502 | void *argp1 = 0 ; | |
11503 | int res1 = 0 ; | |
11504 | void *argp2 = 0 ; | |
11505 | int res2 = 0 ; | |
11506 | PyObject * obj0 = 0 ; | |
11507 | PyObject * obj1 = 0 ; | |
11508 | char * kwnames[] = { | |
11509 | (char *) "self",(char *) "styleSheet", NULL | |
11510 | }; | |
11511 | ||
11512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_ApplyStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11514 | if (!SWIG_IsOK(res1)) { | |
11515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11516 | } | |
11517 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11518 | if (obj1) { | |
11519 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11520 | if (!SWIG_IsOK(res2)) { | |
11521 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11522 | } | |
11523 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11524 | } | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | result = (bool)(arg1)->ApplyStyleSheet(arg2); | |
11528 | wxPyEndAllowThreads(__tstate); | |
11529 | if (PyErr_Occurred()) SWIG_fail; | |
11530 | } | |
11531 | { | |
11532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11533 | } | |
11534 | return resultobj; | |
11535 | fail: | |
11536 | return NULL; | |
11537 | } | |
11538 | ||
11539 | ||
06810ecf RD |
11540 | SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11541 | PyObject *obj; | |
11542 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11543 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj)); | |
11544 | return SWIG_Py_Void(); | |
11545 | } | |
11546 | ||
11547 | SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11548 | return SWIG_Python_InitShadowInstance(args); | |
11549 | } | |
11550 | ||
11551 | SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11552 | PyObject *resultobj = 0; | |
11553 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11554 | int arg2 = (int) 0 ; | |
11555 | wxRichTextEvent *result = 0 ; | |
11556 | int val1 ; | |
11557 | int ecode1 = 0 ; | |
11558 | int val2 ; | |
11559 | int ecode2 = 0 ; | |
11560 | PyObject * obj0 = 0 ; | |
11561 | PyObject * obj1 = 0 ; | |
11562 | char * kwnames[] = { | |
11563 | (char *) "commandType",(char *) "winid", NULL | |
11564 | }; | |
11565 | ||
11566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11567 | if (obj0) { | |
11568 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11569 | if (!SWIG_IsOK(ecode1)) { | |
11570 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
11571 | } | |
11572 | arg1 = static_cast< wxEventType >(val1); | |
11573 | } | |
11574 | if (obj1) { | |
11575 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11576 | if (!SWIG_IsOK(ecode2)) { | |
11577 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'"); | |
11578 | } | |
11579 | arg2 = static_cast< int >(val2); | |
11580 | } | |
11581 | { | |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2); | |
11584 | wxPyEndAllowThreads(__tstate); | |
11585 | if (PyErr_Occurred()) SWIG_fail; | |
11586 | } | |
11587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 ); | |
11588 | return resultobj; | |
11589 | fail: | |
11590 | return NULL; | |
11591 | } | |
11592 | ||
11593 | ||
11594 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11595 | PyObject *resultobj = 0; | |
11596 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11597 | int result; | |
11598 | void *argp1 = 0 ; | |
11599 | int res1 = 0 ; | |
11600 | PyObject *swig_obj[1] ; | |
11601 | ||
11602 | if (!args) SWIG_fail; | |
11603 | swig_obj[0] = args; | |
11604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11605 | if (!SWIG_IsOK(res1)) { | |
11606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11607 | } | |
11608 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | result = (int)((wxRichTextEvent const *)arg1)->GetIndex(); | |
11612 | wxPyEndAllowThreads(__tstate); | |
11613 | if (PyErr_Occurred()) SWIG_fail; | |
11614 | } | |
11615 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11616 | return resultobj; | |
11617 | fail: | |
11618 | return NULL; | |
11619 | } | |
11620 | ||
11621 | ||
11622 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11623 | PyObject *resultobj = 0; | |
11624 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11625 | int arg2 ; | |
11626 | void *argp1 = 0 ; | |
11627 | int res1 = 0 ; | |
11628 | int val2 ; | |
11629 | int ecode2 = 0 ; | |
11630 | PyObject * obj0 = 0 ; | |
11631 | PyObject * obj1 = 0 ; | |
11632 | char * kwnames[] = { | |
11633 | (char *) "self",(char *) "n", NULL | |
11634 | }; | |
11635 | ||
11636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
11637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11638 | if (!SWIG_IsOK(res1)) { | |
11639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
11640 | } | |
11641 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11642 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11643 | if (!SWIG_IsOK(ecode2)) { | |
11644 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
11645 | } | |
11646 | arg2 = static_cast< int >(val2); | |
11647 | { | |
11648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11649 | (arg1)->SetIndex(arg2); | |
11650 | wxPyEndAllowThreads(__tstate); | |
11651 | if (PyErr_Occurred()) SWIG_fail; | |
11652 | } | |
11653 | resultobj = SWIG_Py_Void(); | |
11654 | return resultobj; | |
11655 | fail: | |
11656 | return NULL; | |
11657 | } | |
11658 | ||
11659 | ||
11660 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11661 | PyObject *resultobj = 0; | |
11662 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11663 | int result; | |
11664 | void *argp1 = 0 ; | |
11665 | int res1 = 0 ; | |
11666 | PyObject *swig_obj[1] ; | |
11667 | ||
11668 | if (!args) SWIG_fail; | |
11669 | swig_obj[0] = args; | |
11670 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11671 | if (!SWIG_IsOK(res1)) { | |
11672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11673 | } | |
11674 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (int)((wxRichTextEvent const *)arg1)->GetFlags(); | |
11678 | wxPyEndAllowThreads(__tstate); | |
11679 | if (PyErr_Occurred()) SWIG_fail; | |
11680 | } | |
11681 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11682 | return resultobj; | |
11683 | fail: | |
11684 | return NULL; | |
11685 | } | |
11686 | ||
11687 | ||
11688 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11689 | PyObject *resultobj = 0; | |
11690 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11691 | int arg2 ; | |
11692 | void *argp1 = 0 ; | |
11693 | int res1 = 0 ; | |
11694 | int val2 ; | |
11695 | int ecode2 = 0 ; | |
11696 | PyObject * obj0 = 0 ; | |
11697 | PyObject * obj1 = 0 ; | |
11698 | char * kwnames[] = { | |
11699 | (char *) "self",(char *) "flags", NULL | |
11700 | }; | |
11701 | ||
11702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
11703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11704 | if (!SWIG_IsOK(res1)) { | |
11705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
11706 | } | |
11707 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11708 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11709 | if (!SWIG_IsOK(ecode2)) { | |
11710 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
11711 | } | |
11712 | arg2 = static_cast< int >(val2); | |
11713 | { | |
11714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11715 | (arg1)->SetFlags(arg2); | |
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
11719 | resultobj = SWIG_Py_Void(); | |
11720 | return resultobj; | |
11721 | fail: | |
11722 | return NULL; | |
11723 | } | |
11724 | ||
11725 | ||
11726 | SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11727 | PyObject *obj; | |
11728 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11729 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj)); | |
11730 | return SWIG_Py_Void(); | |
11731 | } | |
11732 | ||
11733 | SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11734 | return SWIG_Python_InitShadowInstance(args); | |
11735 | } | |
11736 | ||
11737 | static PyMethodDef SwigMethods[] = { | |
11738 | { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11739 | { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL}, | |
11740 | { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11741 | { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11742 | { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11743 | { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11744 | { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11745 | { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL}, | |
11746 | { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11747 | { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL}, | |
11748 | { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11749 | { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11750 | { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11751 | { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11752 | { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL}, | |
11753 | { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL}, | |
11754 | { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL}, | |
11755 | { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL}, | |
11756 | { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL}, | |
11757 | { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11758 | { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL}, | |
11759 | { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL}, | |
11760 | { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11761 | { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11762 | { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11763 | { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11764 | { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11765 | { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11766 | { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11767 | { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11768 | { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11769 | { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11770 | { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11771 | { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11772 | { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11773 | { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11774 | { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11775 | { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11776 | { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11777 | { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11778 | { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11779 | { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11780 | { (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11781 | { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL}, | |
11782 | { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL}, | |
11783 | { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL}, | |
11784 | { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL}, | |
11785 | { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL}, | |
11786 | { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL}, | |
11787 | { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL}, | |
11788 | { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL}, | |
11789 | { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL}, | |
11790 | { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL}, | |
11791 | { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL}, | |
11792 | { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL}, | |
11793 | { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL}, | |
11794 | { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL}, | |
11795 | { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL}, | |
11796 | { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL}, | |
11797 | { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL}, | |
11798 | { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL}, | |
11799 | { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL}, | |
11800 | { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL}, | |
11801 | { (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL}, | |
11802 | { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL}, | |
11803 | { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL}, | |
11804 | { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL}, | |
11805 | { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL}, | |
11806 | { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL}, | |
11807 | { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL}, | |
11808 | { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL}, | |
11809 | { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL}, | |
11810 | { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL}, | |
11811 | { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL}, | |
11812 | { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL}, | |
11813 | { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL}, | |
11814 | { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL}, | |
11815 | { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL}, | |
11816 | { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL}, | |
11817 | { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL}, | |
11818 | { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL}, | |
11819 | { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL}, | |
11820 | { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL}, | |
11821 | { (char *)"RichTextAttr_HasBulletSymbol", (PyCFunction)_wrap_RichTextAttr_HasBulletSymbol, METH_O, NULL}, | |
11822 | { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11823 | { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL}, | |
11824 | { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL}, | |
11825 | { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL}, | |
11826 | { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL}, | |
11827 | { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL}, | |
11828 | { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11829 | { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL}, | |
11830 | { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11831 | { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL}, | |
11832 | { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11833 | { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11834 | { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11835 | { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11836 | { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL}, | |
11837 | { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL}, | |
11838 | { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL}, | |
11839 | { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL}, | |
11840 | { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL}, | |
11841 | { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL}, | |
11842 | { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL}, | |
11843 | { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL}, | |
11844 | { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11845 | { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11846 | { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL}, | |
11847 | { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL}, | |
11848 | { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11849 | { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11850 | { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11851 | { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11852 | { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL}, | |
11853 | { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL}, | |
11854 | { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11855 | { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11856 | { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11857 | { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11858 | { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c2829a8f | 11859 | { (char *)"RichTextCtrl_GetUncombinedStyle", (PyCFunction) _wrap_RichTextCtrl_GetUncombinedStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
11860 | { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
11861 | { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL}, | |
11862 | { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11863 | { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11864 | { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11865 | { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11866 | { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11867 | { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL}, | |
11868 | { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL}, | |
11869 | { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL}, | |
11870 | { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL}, | |
11871 | { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL}, | |
11872 | { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL}, | |
11873 | { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL}, | |
11874 | { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL}, | |
11875 | { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL}, | |
11876 | { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL}, | |
11877 | { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL}, | |
11878 | { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL}, | |
11879 | { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11880 | { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
11881 | { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL}, | |
11882 | { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL}, | |
11883 | { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11884 | { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL}, | |
11885 | { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11886 | { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL}, | |
11887 | { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11888 | { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11889 | { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11890 | { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11891 | { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL}, | |
11892 | { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11893 | { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL}, | |
11894 | { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL}, | |
11895 | { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL}, | |
11896 | { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL}, | |
11897 | { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL}, | |
11898 | { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL}, | |
11899 | { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL}, | |
11900 | { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL}, | |
11901 | { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11902 | { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL}, | |
11903 | { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11904 | { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL}, | |
11905 | { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11906 | { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL}, | |
11907 | { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11908 | { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL}, | |
11909 | { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11910 | { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL}, | |
11911 | { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11912 | { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL}, | |
11913 | { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11914 | { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL}, | |
11915 | { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11916 | { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL}, | |
11917 | { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11918 | { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL}, | |
11919 | { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11920 | { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL}, | |
11921 | { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11922 | { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL}, | |
11923 | { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11924 | { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL}, | |
11925 | { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL}, | |
11926 | { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL}, | |
c2829a8f | 11927 | { (char *)"RichTextCtrl_SelectWord", (PyCFunction) _wrap_RichTextCtrl_SelectWord, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
11928 | { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL}, |
11929 | { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
79df624a RD |
11930 | { (char *)"RichTextCtrl_GetInternalSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetInternalSelectionRange, METH_O, NULL}, |
11931 | { (char *)"RichTextCtrl_SetInternalSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetInternalSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
06810ecf RD |
11932 | { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL}, |
11933 | { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11934 | { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11935 | { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11936 | { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11937 | { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11938 | { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11939 | { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11940 | { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11941 | { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11942 | { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11943 | { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11944 | { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11945 | { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11946 | { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11947 | { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11948 | { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11949 | { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11950 | { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL}, | |
11951 | { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11952 | { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL}, | |
11953 | { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL}, | |
11954 | { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL}, | |
11955 | { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL}, | |
11956 | { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL}, | |
11957 | { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11958 | { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11959 | { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL}, | |
11960 | { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL}, | |
11961 | { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL}, | |
11962 | { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11963 | { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL}, | |
11964 | { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL}, | |
11965 | { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL}, | |
11966 | { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11967 | { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11968 | { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL}, | |
c2829a8f | 11969 | { (char *)"RichTextCtrl_ApplyStyleSheet", (PyCFunction) _wrap_RichTextCtrl_ApplyStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
11970 | { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL}, |
11971 | { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL}, | |
11972 | { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11973 | { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL}, | |
11974 | { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11975 | { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL}, | |
11976 | { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
11977 | { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL}, | |
11978 | { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL}, | |
11979 | { NULL, NULL, 0, NULL } | |
11980 | }; | |
11981 | ||
11982 | ||
11983 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
11984 | ||
11985 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
11986 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
11987 | } | |
11988 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
11989 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
11990 | } | |
11991 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
11992 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
11993 | } | |
11994 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
11995 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
11996 | } | |
11997 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
11998 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
11999 | } | |
12000 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
12001 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
12002 | } | |
12003 | static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) { | |
12004 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12005 | } | |
12006 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
12007 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12008 | } | |
12009 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
12010 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
12011 | } | |
12012 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
12013 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12014 | } | |
12015 | static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) { | |
12016 | return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12017 | } | |
12018 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
12019 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12020 | } | |
12021 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
12022 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12023 | } | |
12024 | static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) { | |
12025 | return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12026 | } | |
12027 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
12028 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12029 | } | |
12030 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
12031 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12032 | } | |
12033 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
12034 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
12035 | } | |
12036 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
12037 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
12038 | } | |
12039 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
12040 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
12041 | } | |
12042 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
12043 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
12044 | } | |
12045 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
12046 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
12047 | } | |
12048 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
12049 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
12050 | } | |
27e45892 RD |
12051 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { |
12052 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12053 | } | |
06810ecf RD |
12054 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
12055 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
12056 | } | |
12057 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
12058 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
12059 | } | |
12060 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
12061 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
12062 | } | |
12063 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
12064 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
12065 | } | |
12066 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
12067 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
12068 | } | |
12069 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
12070 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
12071 | } | |
12072 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
12073 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
12074 | } | |
12075 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
12076 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12077 | } | |
12078 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
12079 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
12080 | } | |
12081 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
12082 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
12083 | } | |
12084 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
12085 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
12086 | } | |
12087 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
12088 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
12089 | } | |
12090 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
12091 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
12092 | } | |
12093 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
12094 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
12095 | } | |
12096 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
12097 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
12098 | } | |
12099 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
12100 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
12101 | } | |
12102 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
12103 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
12104 | } | |
12105 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
12106 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
12107 | } | |
12108 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
12109 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12110 | } | |
12111 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
12112 | return (void *)((wxWindow *) ((wxControl *) x)); | |
12113 | } | |
12114 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
12115 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12116 | } | |
12117 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
12118 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
12119 | } | |
12120 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
12121 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12122 | } | |
12123 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
12124 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
12125 | } | |
12126 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
12127 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
12128 | } | |
12129 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
12130 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12131 | } | |
12132 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
12133 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12134 | } | |
12135 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
12136 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12137 | } | |
12138 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
12139 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
12140 | } | |
12141 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
12142 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12143 | } | |
12144 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
12145 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
12146 | } | |
12147 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
12148 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
12149 | } | |
12150 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
12151 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
12152 | } | |
12153 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
12154 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
12155 | } | |
12156 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
12157 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
12158 | } | |
12159 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
12160 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
12161 | } | |
12162 | static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) { | |
12163 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12164 | } | |
12165 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
12166 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
12167 | } | |
12168 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
12169 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
12170 | } | |
12171 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
12172 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
12173 | } | |
12174 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
12175 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
12176 | } | |
12177 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
12178 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
12179 | } | |
12180 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
12181 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
12182 | } | |
12183 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
12184 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12185 | } | |
12186 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
12187 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
12188 | } | |
12189 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
12190 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
12191 | } | |
12192 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
12193 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
12194 | } | |
12195 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
12196 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
12197 | } | |
34e0a3bb RD |
12198 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
12199 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
12200 | } | |
06810ecf RD |
12201 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
12202 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
12203 | } | |
12204 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
12205 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
12206 | } | |
12207 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
12208 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
12209 | } | |
12210 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
12211 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
12212 | } | |
12213 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
12214 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
12215 | } | |
12216 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
12217 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
12218 | } | |
12219 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
12220 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
12221 | } | |
12222 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
12223 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
12224 | } | |
12225 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
12226 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
12227 | } | |
12228 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
12229 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
12230 | } | |
12231 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
12232 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
12233 | } | |
06810ecf RD |
12234 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
12235 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
12236 | } | |
12237 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
12238 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
12239 | } | |
34e0a3bb RD |
12240 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
12241 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
12242 | } | |
06810ecf RD |
12243 | static void *_p_wxRichTextEventTo_p_wxEvent(void *x) { |
12244 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12245 | } | |
12246 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
12247 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
12248 | } | |
12249 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
12250 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
12251 | } | |
12252 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
12253 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
12254 | } | |
12255 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
12256 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
12257 | } | |
12258 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
12259 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
12260 | } | |
12261 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
12262 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
12263 | } | |
12264 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
12265 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
12266 | } | |
12267 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
12268 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
12269 | } | |
12270 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
12271 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
12272 | } | |
12273 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
12274 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
12275 | } | |
12276 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
12277 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
12278 | } | |
12279 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
12280 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
12281 | } | |
12282 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
12283 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
12284 | } | |
12285 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
12286 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12287 | } | |
12288 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
12289 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
12290 | } | |
12291 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
12292 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
12293 | } | |
12294 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
12295 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
12296 | } | |
12297 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
12298 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
12299 | } | |
92515dfc RD |
12300 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
12301 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
06810ecf | 12302 | } |
92515dfc RD |
12303 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { |
12304 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
06810ecf RD |
12305 | } |
12306 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
12307 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12308 | } | |
92515dfc RD |
12309 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { |
12310 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
06810ecf | 12311 | } |
92515dfc RD |
12312 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
12313 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
06810ecf | 12314 | } |
34e0a3bb RD |
12315 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
12316 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
12317 | } | |
92515dfc RD |
12318 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
12319 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
06810ecf | 12320 | } |
92515dfc RD |
12321 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
12322 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
06810ecf | 12323 | } |
92515dfc RD |
12324 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
12325 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
06810ecf | 12326 | } |
92515dfc RD |
12327 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
12328 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
06810ecf | 12329 | } |
92515dfc RD |
12330 | static void *_p_wxSizerTo_p_wxObject(void *x) { |
12331 | return (void *)((wxObject *) ((wxSizer *) x)); | |
06810ecf | 12332 | } |
92515dfc RD |
12333 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
12334 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
06810ecf | 12335 | } |
92515dfc RD |
12336 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
12337 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
06810ecf | 12338 | } |
92515dfc RD |
12339 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { |
12340 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
06810ecf | 12341 | } |
92515dfc RD |
12342 | static void *_p_wxEventTo_p_wxObject(void *x) { |
12343 | return (void *)((wxObject *) ((wxEvent *) x)); | |
06810ecf | 12344 | } |
92515dfc RD |
12345 | static void *_p_wxFontDataTo_p_wxObject(void *x) { |
12346 | return (void *)((wxObject *) ((wxFontData *) x)); | |
06810ecf | 12347 | } |
92515dfc RD |
12348 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { |
12349 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
06810ecf | 12350 | } |
92515dfc RD |
12351 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
12352 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
06810ecf | 12353 | } |
92515dfc RD |
12354 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
12355 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
06810ecf | 12356 | } |
92515dfc RD |
12357 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
12358 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
06810ecf | 12359 | } |
92515dfc RD |
12360 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { |
12361 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
06810ecf | 12362 | } |
92515dfc RD |
12363 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
12364 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
06810ecf | 12365 | } |
92515dfc RD |
12366 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { |
12367 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
06810ecf | 12368 | } |
92515dfc RD |
12369 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
12370 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
06810ecf | 12371 | } |
92515dfc RD |
12372 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
12373 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
06810ecf | 12374 | } |
92515dfc RD |
12375 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
12376 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
06810ecf | 12377 | } |
92515dfc RD |
12378 | static void *_p_wxRichTextEventTo_p_wxObject(void *x) { |
12379 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
06810ecf | 12380 | } |
92515dfc RD |
12381 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
12382 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
06810ecf | 12383 | } |
92515dfc RD |
12384 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
12385 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
06810ecf | 12386 | } |
92515dfc RD |
12387 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
12388 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
06810ecf | 12389 | } |
92515dfc RD |
12390 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { |
12391 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
06810ecf | 12392 | } |
92515dfc RD |
12393 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { |
12394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
06810ecf RD |
12395 | } |
12396 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
12397 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
12398 | } | |
92515dfc RD |
12399 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
12400 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
06810ecf | 12401 | } |
92515dfc RD |
12402 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { |
12403 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
06810ecf | 12404 | } |
92515dfc RD |
12405 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
12406 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
06810ecf | 12407 | } |
92515dfc RD |
12408 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { |
12409 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
06810ecf | 12410 | } |
92515dfc RD |
12411 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
12412 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
06810ecf RD |
12413 | } |
12414 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
12415 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12416 | } | |
92515dfc RD |
12417 | static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) { |
12418 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
06810ecf | 12419 | } |
92515dfc RD |
12420 | static void *_p_wxColourDataTo_p_wxObject(void *x) { |
12421 | return (void *)((wxObject *) ((wxColourData *) x)); | |
06810ecf | 12422 | } |
92515dfc RD |
12423 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
12424 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
06810ecf | 12425 | } |
92515dfc RD |
12426 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
12427 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
06810ecf | 12428 | } |
92515dfc RD |
12429 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { |
12430 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
06810ecf RD |
12431 | } |
12432 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
12433 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12434 | } | |
92515dfc RD |
12435 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { |
12436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
06810ecf | 12437 | } |
92515dfc RD |
12438 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { |
12439 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
06810ecf | 12440 | } |
92515dfc RD |
12441 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { |
12442 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
06810ecf | 12443 | } |
92515dfc RD |
12444 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { |
12445 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
06810ecf | 12446 | } |
92515dfc RD |
12447 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
12448 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
06810ecf | 12449 | } |
27e45892 RD |
12450 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { |
12451 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12452 | } | |
92515dfc RD |
12453 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
12454 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
06810ecf | 12455 | } |
92515dfc RD |
12456 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { |
12457 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
06810ecf | 12458 | } |
92515dfc RD |
12459 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { |
12460 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
06810ecf | 12461 | } |
92515dfc RD |
12462 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
12463 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
06810ecf | 12464 | } |
92515dfc RD |
12465 | static void *_p_wxPrinterTo_p_wxObject(void *x) { |
12466 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
06810ecf | 12467 | } |
92515dfc RD |
12468 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
12469 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
06810ecf | 12470 | } |
92515dfc RD |
12471 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
12472 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
06810ecf | 12473 | } |
92515dfc RD |
12474 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
12475 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
06810ecf | 12476 | } |
92515dfc RD |
12477 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
12478 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
06810ecf | 12479 | } |
92515dfc RD |
12480 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { |
12481 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
06810ecf | 12482 | } |
92515dfc RD |
12483 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { |
12484 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
06810ecf | 12485 | } |
92515dfc RD |
12486 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
12487 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
06810ecf | 12488 | } |
92515dfc RD |
12489 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
12490 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
06810ecf | 12491 | } |
92515dfc RD |
12492 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
12493 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
06810ecf | 12494 | } |
92515dfc RD |
12495 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
12496 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
06810ecf | 12497 | } |
92515dfc RD |
12498 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
12499 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
06810ecf | 12500 | } |
92515dfc RD |
12501 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
12502 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
06810ecf | 12503 | } |
92515dfc RD |
12504 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
12505 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
06810ecf | 12506 | } |
92515dfc RD |
12507 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
12508 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
06810ecf | 12509 | } |
92515dfc RD |
12510 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
12511 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
06810ecf | 12512 | } |
92515dfc RD |
12513 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { |
12514 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
06810ecf | 12515 | } |
92515dfc RD |
12516 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
12517 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
06810ecf | 12518 | } |
92515dfc RD |
12519 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
12520 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
06810ecf | 12521 | } |
92515dfc RD |
12522 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
12523 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
06810ecf | 12524 | } |
92515dfc RD |
12525 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
12526 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
06810ecf | 12527 | } |
92515dfc RD |
12528 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
12529 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
06810ecf RD |
12530 | } |
12531 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
12532 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
12533 | } | |
92515dfc RD |
12534 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
12535 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
06810ecf | 12536 | } |
92515dfc RD |
12537 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
12538 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
06810ecf | 12539 | } |
34e0a3bb RD |
12540 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
12541 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
12542 | } | |
92515dfc RD |
12543 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
12544 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
06810ecf | 12545 | } |
92515dfc RD |
12546 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { |
12547 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
06810ecf | 12548 | } |
92515dfc RD |
12549 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { |
12550 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
06810ecf | 12551 | } |
92515dfc RD |
12552 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
12553 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
06810ecf | 12554 | } |
92515dfc RD |
12555 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
12556 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
06810ecf | 12557 | } |
92515dfc RD |
12558 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { |
12559 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
06810ecf | 12560 | } |
92515dfc RD |
12561 | static void *_p_wxImageTo_p_wxObject(void *x) { |
12562 | return (void *)((wxObject *) ((wxImage *) x)); | |
06810ecf | 12563 | } |
92515dfc RD |
12564 | static void *_p_wxFrameTo_p_wxObject(void *x) { |
12565 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
06810ecf | 12566 | } |
92515dfc RD |
12567 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { |
12568 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
06810ecf | 12569 | } |
92515dfc RD |
12570 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
12571 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
06810ecf | 12572 | } |
92515dfc RD |
12573 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { |
12574 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
06810ecf | 12575 | } |
92515dfc RD |
12576 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { |
12577 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
06810ecf | 12578 | } |
92515dfc RD |
12579 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { |
12580 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
06810ecf | 12581 | } |
92515dfc RD |
12582 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
12583 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
06810ecf | 12584 | } |
92515dfc RD |
12585 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
12586 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
06810ecf | 12587 | } |
92515dfc RD |
12588 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
12589 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
06810ecf | 12590 | } |
92515dfc RD |
12591 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
12592 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
06810ecf | 12593 | } |
92515dfc RD |
12594 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
12595 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
06810ecf | 12596 | } |
92515dfc RD |
12597 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
12598 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
12599 | } | |
12600 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
12601 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
06810ecf RD |
12602 | } |
12603 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
12604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
12605 | } | |
92515dfc RD |
12606 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { |
12607 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
06810ecf | 12608 | } |
92515dfc RD |
12609 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { |
12610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
06810ecf | 12611 | } |
92515dfc RD |
12612 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { |
12613 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
06810ecf | 12614 | } |
92515dfc RD |
12615 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { |
12616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
06810ecf | 12617 | } |
92515dfc RD |
12618 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { |
12619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
06810ecf | 12620 | } |
92515dfc RD |
12621 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { |
12622 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
06810ecf | 12623 | } |
92515dfc RD |
12624 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { |
12625 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
06810ecf | 12626 | } |
92515dfc RD |
12627 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { |
12628 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
06810ecf | 12629 | } |
92515dfc RD |
12630 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { |
12631 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
06810ecf | 12632 | } |
92515dfc RD |
12633 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
12634 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
06810ecf | 12635 | } |
92515dfc RD |
12636 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
12637 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
06810ecf | 12638 | } |
92515dfc RD |
12639 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { |
12640 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
06810ecf | 12641 | } |
92515dfc RD |
12642 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { |
12643 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
06810ecf | 12644 | } |
92515dfc RD |
12645 | static void *_p_wxPanelTo_p_wxObject(void *x) { |
12646 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
06810ecf | 12647 | } |
92515dfc RD |
12648 | static void *_p_wxDialogTo_p_wxObject(void *x) { |
12649 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
06810ecf | 12650 | } |
92515dfc RD |
12651 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { |
12652 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
06810ecf | 12653 | } |
92515dfc RD |
12654 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { |
12655 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
06810ecf | 12656 | } |
92515dfc RD |
12657 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { |
12658 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
06810ecf | 12659 | } |
92515dfc RD |
12660 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { |
12661 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); | |
06810ecf | 12662 | } |
92515dfc RD |
12663 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { |
12664 | return (void *)((wxObject *) ((wxPrintDialog *) x)); | |
06810ecf | 12665 | } |
92515dfc RD |
12666 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
12667 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
06810ecf | 12668 | } |
92515dfc RD |
12669 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
12670 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
06810ecf | 12671 | } |
92515dfc RD |
12672 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
12673 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
06810ecf | 12674 | } |
92515dfc RD |
12675 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
12676 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
06810ecf | 12677 | } |
92515dfc RD |
12678 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
12679 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
06810ecf | 12680 | } |
92515dfc RD |
12681 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
12682 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
06810ecf | 12683 | } |
92515dfc RD |
12684 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
12685 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
06810ecf | 12686 | } |
92515dfc RD |
12687 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { |
12688 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
06810ecf RD |
12689 | } |
12690 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
12691 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
12692 | } | |
92515dfc RD |
12693 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { |
12694 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
06810ecf | 12695 | } |
92515dfc RD |
12696 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { |
12697 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
06810ecf | 12698 | } |
92515dfc RD |
12699 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
12700 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
06810ecf RD |
12701 | } |
12702 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
12703 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
12704 | } | |
92515dfc RD |
12705 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
12706 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
06810ecf | 12707 | } |
92515dfc RD |
12708 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
12709 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
06810ecf | 12710 | } |
92515dfc RD |
12711 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { |
12712 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
12713 | } | |
12714 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
12715 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
12716 | } | |
12717 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
12718 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
12719 | } | |
12720 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
12721 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
06810ecf RD |
12722 | } |
12723 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
12724 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12725 | } | |
12726 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
12727 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
12728 | } | |
12729 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
12730 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
12731 | } | |
12732 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
12733 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
12734 | } | |
12735 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
12736 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
12737 | } | |
12738 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
12739 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
12740 | } | |
12741 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
12742 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
12743 | } | |
12744 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { | |
12745 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
12746 | } | |
12747 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
12748 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
12749 | } | |
12750 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
12751 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
12752 | } | |
12753 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
12754 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
12755 | } | |
12756 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
12757 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
12758 | } | |
27e45892 RD |
12759 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { |
12760 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12761 | } | |
06810ecf RD |
12762 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
12763 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
12764 | } | |
12765 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
12766 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
12767 | } | |
12768 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
12769 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
12770 | } | |
12771 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
12772 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
12773 | } | |
12774 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
12775 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
12776 | } | |
12777 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
12778 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12779 | } | |
12780 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
12781 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
12782 | } | |
12783 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
12784 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
12785 | } | |
12786 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
12787 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
12788 | } | |
12789 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
12790 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
12791 | } | |
12792 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
12793 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
12794 | } | |
12795 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
12796 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
12797 | } | |
12798 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
12799 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
12800 | } | |
12801 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
12802 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
12803 | } | |
12804 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
12805 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
12806 | } | |
12807 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
12808 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
12809 | } | |
12810 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
12811 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
12812 | } | |
12813 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
12814 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12815 | } | |
12816 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
12817 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
12818 | } | |
12819 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
12820 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12821 | } | |
12822 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
12823 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
12824 | } | |
12825 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
12826 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12827 | } | |
12828 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
12829 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
12830 | } | |
12831 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
12832 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
12833 | } | |
12834 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
12835 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
12836 | } | |
12837 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
12838 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12839 | } | |
12840 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
12841 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12842 | } | |
12843 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
12844 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12845 | } | |
12846 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
12847 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
12848 | } | |
12849 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
12850 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12851 | } | |
12852 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { | |
12853 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
12854 | } | |
12855 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
12856 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
12857 | } | |
12858 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
12859 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
12860 | } | |
12861 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
12862 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
12863 | } | |
12864 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
12865 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
12866 | } | |
12867 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
12868 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
12869 | } | |
12870 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
12871 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
12872 | } | |
12873 | static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) { | |
12874 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12875 | } | |
12876 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
12877 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
12878 | } | |
12879 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
12880 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12881 | } | |
12882 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
12883 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12884 | } | |
12885 | static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) { | |
12886 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12887 | } | |
12888 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { | |
12889 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
12890 | } | |
12891 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
12892 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
12893 | } | |
12894 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
12895 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
12896 | } | |
12897 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
12898 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
12899 | } | |
12900 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
12901 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
12902 | } | |
12903 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
12904 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
12905 | } | |
12906 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
12907 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
12908 | } | |
12909 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
12910 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
12911 | } | |
12912 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
12913 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
12914 | } | |
12915 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
12916 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
12917 | } | |
12918 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
12919 | 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}; | |
12920 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
12921 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
12922 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
12923 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
12924 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
12925 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
12926 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
12927 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; | |
12928 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
12929 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
12930 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0}; | |
12931 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
12932 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0}; | |
12933 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
12934 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
12935 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
12936 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
12937 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
12938 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
12939 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
12940 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0}; | |
12941 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
12942 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
12943 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
12944 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
12945 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
12946 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
12947 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
12948 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
12949 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
12950 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 12951 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
06810ecf RD |
12952 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0}; |
12953 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
12954 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
12955 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
12956 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
12957 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
12958 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
12959 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
12960 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
12961 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
12962 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
12963 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
12964 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
12965 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
12966 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
12967 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
12968 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0}; | |
12969 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
12970 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
12971 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
12972 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
12973 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0}; | |
12974 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
12975 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0}; | |
12976 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0}; | |
12977 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0}; | |
12978 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
12979 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
12980 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
27e45892 RD |
12981 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", 0, 0, 0, 0, 0}; |
12982 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0}; | |
06810ecf RD |
12983 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0}; |
12984 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0}; | |
27e45892 | 12985 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0}; |
06810ecf RD |
12986 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0}; |
12987 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0}; | |
12988 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0}; | |
12989 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0}; | |
06810ecf | 12990 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0}; |
06810ecf RD |
12991 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0}; |
12992 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0}; | |
12993 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0}; | |
12994 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0}; | |
12995 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0}; | |
12996 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0}; | |
12997 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0}; | |
12998 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0}; | |
27e45892 | 12999 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0}; |
06810ecf RD |
13000 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0}; |
13001 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0}; | |
13002 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0}; | |
13003 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0}; | |
13004 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
13005 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0}; | |
13006 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
13007 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
13008 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0}; | |
13009 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0}; | |
13010 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0}; | |
13011 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0}; | |
13012 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0}; | |
13013 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0}; | |
13014 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0}; | |
13015 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0}; | |
13016 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0}; | |
13017 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0}; | |
13018 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0}; | |
13019 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0}; | |
13020 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
13021 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0}; | |
13022 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
13023 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
13024 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
13025 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
06810ecf | 13026 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; |
92515dfc | 13027 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 13028 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
92515dfc | 13029 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
06810ecf | 13030 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
13031 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; |
13032 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
06810ecf | 13033 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
13034 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0}; |
13035 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0}; | |
13036 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
13037 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
13038 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0}; | |
06810ecf | 13039 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; |
92515dfc RD |
13040 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0}; |
13041 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
13042 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0}; | |
13043 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0}; | |
13044 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
06810ecf RD |
13045 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
13046 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
13047 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
13048 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
13049 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
13050 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
13051 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 13052 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; |
92515dfc RD |
13053 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
13054 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
13055 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
13056 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
13057 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
13058 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
13059 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
13060 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0}; | |
13061 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0}; | |
13062 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0}; | |
13063 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0}; | |
13064 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0}; | |
13065 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
13066 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0}; | |
13067 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0}; | |
06810ecf RD |
13068 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; |
13069 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
13070 | static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0}; | |
13071 | static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0}; | |
13072 | static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0}; | |
13073 | static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0}; | |
13074 | static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0}; | |
13075 | static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0}; | |
13076 | static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0}; | |
13077 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
13078 | static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0}; | |
13079 | static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0}; | |
13080 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
13081 | ||
13082 | static swig_type_info *swig_type_initial[] = { | |
13083 | &_swigt__p_char, | |
13084 | &_swigt__p_form_ops_t, | |
13085 | &_swigt__p_int, | |
13086 | &_swigt__p_long, | |
13087 | &_swigt__p_unsigned_char, | |
13088 | &_swigt__p_unsigned_int, | |
13089 | &_swigt__p_unsigned_long, | |
13090 | &_swigt__p_wxANIHandler, | |
13091 | &_swigt__p_wxAcceleratorTable, | |
13092 | &_swigt__p_wxActivateEvent, | |
13093 | &_swigt__p_wxArrayInt, | |
13094 | &_swigt__p_wxBMPHandler, | |
13095 | &_swigt__p_wxBitmap, | |
13096 | &_swigt__p_wxBoxSizer, | |
06810ecf RD |
13097 | &_swigt__p_wxCURHandler, |
13098 | &_swigt__p_wxCalculateLayoutEvent, | |
13099 | &_swigt__p_wxChar, | |
13100 | &_swigt__p_wxChildFocusEvent, | |
06810ecf RD |
13101 | &_swigt__p_wxClipboardTextEvent, |
13102 | &_swigt__p_wxCloseEvent, | |
13103 | &_swigt__p_wxColour, | |
13104 | &_swigt__p_wxColourData, | |
13105 | &_swigt__p_wxColourDialog, | |
13106 | &_swigt__p_wxCommandEvent, | |
13107 | &_swigt__p_wxContextMenuEvent, | |
13108 | &_swigt__p_wxControl, | |
13109 | &_swigt__p_wxControlWithItems, | |
06810ecf RD |
13110 | &_swigt__p_wxDateEvent, |
13111 | &_swigt__p_wxDialog, | |
13112 | &_swigt__p_wxDirDialog, | |
13113 | &_swigt__p_wxDisplayChangedEvent, | |
13114 | &_swigt__p_wxDropFilesEvent, | |
13115 | &_swigt__p_wxDuplexMode, | |
06810ecf RD |
13116 | &_swigt__p_wxEraseEvent, |
13117 | &_swigt__p_wxEvent, | |
13118 | &_swigt__p_wxEvtHandler, | |
13119 | &_swigt__p_wxFSFile, | |
13120 | &_swigt__p_wxFileDialog, | |
13121 | &_swigt__p_wxFileSystem, | |
13122 | &_swigt__p_wxFindDialogEvent, | |
13123 | &_swigt__p_wxFindReplaceData, | |
13124 | &_swigt__p_wxFindReplaceDialog, | |
13125 | &_swigt__p_wxFlexGridSizer, | |
13126 | &_swigt__p_wxFocusEvent, | |
13127 | &_swigt__p_wxFont, | |
13128 | &_swigt__p_wxFontData, | |
13129 | &_swigt__p_wxFontDialog, | |
13130 | &_swigt__p_wxFrame, | |
13131 | &_swigt__p_wxGBSizerItem, | |
06810ecf RD |
13132 | &_swigt__p_wxGIFHandler, |
13133 | &_swigt__p_wxGridBagSizer, | |
13134 | &_swigt__p_wxGridSizer, | |
13135 | &_swigt__p_wxICOHandler, | |
06810ecf RD |
13136 | &_swigt__p_wxIconizeEvent, |
13137 | &_swigt__p_wxIdleEvent, | |
13138 | &_swigt__p_wxImage, | |
13139 | &_swigt__p_wxImageHandler, | |
06810ecf RD |
13140 | &_swigt__p_wxIndividualLayoutConstraint, |
13141 | &_swigt__p_wxInitDialogEvent, | |
13142 | &_swigt__p_wxJPEGHandler, | |
13143 | &_swigt__p_wxKeyEvent, | |
13144 | &_swigt__p_wxLayoutAlgorithm, | |
13145 | &_swigt__p_wxLayoutConstraints, | |
13146 | &_swigt__p_wxMDIChildFrame, | |
13147 | &_swigt__p_wxMDIClientWindow, | |
13148 | &_swigt__p_wxMDIParentFrame, | |
06810ecf | 13149 | &_swigt__p_wxMaximizeEvent, |
06810ecf RD |
13150 | &_swigt__p_wxMenu, |
13151 | &_swigt__p_wxMenuBar, | |
13152 | &_swigt__p_wxMenuEvent, | |
13153 | &_swigt__p_wxMenuItem, | |
13154 | &_swigt__p_wxMessageDialog, | |
06810ecf | 13155 | &_swigt__p_wxMiniFrame, |
06810ecf | 13156 | &_swigt__p_wxMouseCaptureChangedEvent, |
34e0a3bb | 13157 | &_swigt__p_wxMouseCaptureLostEvent, |
06810ecf RD |
13158 | &_swigt__p_wxMouseEvent, |
13159 | &_swigt__p_wxMoveEvent, | |
13160 | &_swigt__p_wxMultiChoiceDialog, | |
13161 | &_swigt__p_wxNavigationKeyEvent, | |
13162 | &_swigt__p_wxNcPaintEvent, | |
13163 | &_swigt__p_wxNotifyEvent, | |
27e45892 | 13164 | &_swigt__p_wxNumberEntryDialog, |
06810ecf RD |
13165 | &_swigt__p_wxObject, |
13166 | &_swigt__p_wxPCXHandler, | |
13167 | &_swigt__p_wxPNGHandler, | |
13168 | &_swigt__p_wxPNMHandler, | |
13169 | &_swigt__p_wxPageSetupDialog, | |
13170 | &_swigt__p_wxPageSetupDialogData, | |
06810ecf | 13171 | &_swigt__p_wxPaintEvent, |
06810ecf RD |
13172 | &_swigt__p_wxPaletteChangedEvent, |
13173 | &_swigt__p_wxPanel, | |
13174 | &_swigt__p_wxPaperSize, | |
13175 | &_swigt__p_wxPasswordEntryDialog, | |
06810ecf | 13176 | &_swigt__p_wxPopupWindow, |
06810ecf RD |
13177 | &_swigt__p_wxPreviewCanvas, |
13178 | &_swigt__p_wxPreviewControlBar, | |
13179 | &_swigt__p_wxPreviewFrame, | |
13180 | &_swigt__p_wxPrintData, | |
13181 | &_swigt__p_wxPrintDialog, | |
13182 | &_swigt__p_wxPrintDialogData, | |
13183 | &_swigt__p_wxPrintPreview, | |
13184 | &_swigt__p_wxPrinter, | |
06810ecf RD |
13185 | &_swigt__p_wxProgressDialog, |
13186 | &_swigt__p_wxPyApp, | |
13187 | &_swigt__p_wxPyCommandEvent, | |
13188 | &_swigt__p_wxPyEvent, | |
13189 | &_swigt__p_wxPyHtmlListBox, | |
13190 | &_swigt__p_wxPyImageHandler, | |
13191 | &_swigt__p_wxPyPanel, | |
13192 | &_swigt__p_wxPyPopupTransientWindow, | |
13193 | &_swigt__p_wxPyPreviewControlBar, | |
13194 | &_swigt__p_wxPyPreviewFrame, | |
13195 | &_swigt__p_wxPyPrintPreview, | |
13196 | &_swigt__p_wxPyPrintout, | |
13197 | &_swigt__p_wxPyScrolledWindow, | |
13198 | &_swigt__p_wxPySizer, | |
13199 | &_swigt__p_wxPyTaskBarIcon, | |
13200 | &_swigt__p_wxPyVListBox, | |
13201 | &_swigt__p_wxPyVScrolledWindow, | |
13202 | &_swigt__p_wxPyValidator, | |
13203 | &_swigt__p_wxPyWindow, | |
13204 | &_swigt__p_wxQueryLayoutInfoEvent, | |
13205 | &_swigt__p_wxQueryNewPaletteEvent, | |
06810ecf RD |
13206 | &_swigt__p_wxRichTextAttr, |
13207 | &_swigt__p_wxRichTextBuffer, | |
13208 | &_swigt__p_wxRichTextCtrl, | |
13209 | &_swigt__p_wxRichTextEvent, | |
13210 | &_swigt__p_wxRichTextImageBlock, | |
13211 | &_swigt__p_wxRichTextRange, | |
13212 | &_swigt__p_wxRichTextStyleSheet, | |
13213 | &_swigt__p_wxSashEvent, | |
13214 | &_swigt__p_wxSashLayoutWindow, | |
13215 | &_swigt__p_wxSashWindow, | |
06810ecf RD |
13216 | &_swigt__p_wxScrollEvent, |
13217 | &_swigt__p_wxScrollWinEvent, | |
13218 | &_swigt__p_wxScrolledWindow, | |
13219 | &_swigt__p_wxSetCursorEvent, | |
13220 | &_swigt__p_wxShowEvent, | |
13221 | &_swigt__p_wxSingleChoiceDialog, | |
13222 | &_swigt__p_wxSizeEvent, | |
13223 | &_swigt__p_wxSizer, | |
13224 | &_swigt__p_wxSizerItem, | |
13225 | &_swigt__p_wxSplashScreen, | |
13226 | &_swigt__p_wxSplashScreenWindow, | |
13227 | &_swigt__p_wxSplitterEvent, | |
13228 | &_swigt__p_wxSplitterWindow, | |
13229 | &_swigt__p_wxStaticBoxSizer, | |
13230 | &_swigt__p_wxStatusBar, | |
13231 | &_swigt__p_wxStdDialogButtonSizer, | |
13232 | &_swigt__p_wxSysColourChangedEvent, | |
13233 | &_swigt__p_wxTIFFHandler, | |
13234 | &_swigt__p_wxTaskBarIconEvent, | |
13235 | &_swigt__p_wxTextCoord, | |
13236 | &_swigt__p_wxTextCtrlHitTestResult, | |
13237 | &_swigt__p_wxTextEntryDialog, | |
13238 | &_swigt__p_wxTipWindow, | |
13239 | &_swigt__p_wxTopLevelWindow, | |
13240 | &_swigt__p_wxUpdateUIEvent, | |
13241 | &_swigt__p_wxValidator, | |
13242 | &_swigt__p_wxWindow, | |
13243 | &_swigt__p_wxWindowCreateEvent, | |
06810ecf RD |
13244 | &_swigt__p_wxWindowDestroyEvent, |
13245 | &_swigt__p_wxXPMHandler, | |
13246 | }; | |
13247 | ||
13248 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
13249 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
13250 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
13251 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
13252 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
13253 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
13254 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
13255 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
13256 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
13257 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; | |
13258 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
13259 | static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13260 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13261 | static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13262 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13263 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13264 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13265 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13266 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13267 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13268 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13269 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13270 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13271 | 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}}; | |
13272 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
13273 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13274 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13275 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13276 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13277 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13278 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13279 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 13280 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13281 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; |
13282 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13283 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13284 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13285 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13286 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13287 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13288 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13289 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13290 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13291 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13292 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13293 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13294 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13295 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13296 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13297 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13298 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13299 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13300 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13301 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13302 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 13303 | 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_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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}}; |
06810ecf RD |
13304 | static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; |
13305 | static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13306 | static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
13307 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13308 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
13309 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 RD |
13310 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = {{&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
13311 | static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf RD |
13312 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; |
13313 | static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13314 | static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13315 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
13316 | static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13317 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13318 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13319 | static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13320 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; |
13321 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13322 | static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13323 | static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13324 | static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13325 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13326 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13327 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13328 | static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13329 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}}; |
13330 | static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13331 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13332 | static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13333 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
13334 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13335 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
13336 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
13337 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
13338 | static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13339 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13340 | static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13341 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13342 | static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13343 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
13344 | static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13345 | static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13346 | static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13347 | static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13348 | static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13349 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
13350 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13351 | 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_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_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_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_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_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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}}; |
06810ecf RD |
13352 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
13353 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
13354 | 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 | 13355 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc | 13356 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 13357 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc | 13358 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf | 13359 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13360 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; |
13361 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13362 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13363 | static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; |
13364 | static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
13365 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13366 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13367 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13368 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13369 | static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; |
13370 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13371 | static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
13372 | static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
13373 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf RD |
13374 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
13375 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13376 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13377 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13378 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13379 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13380 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13381 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13382 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
13383 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13384 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13385 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13386 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13387 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13388 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
13389 | static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
13390 | static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13391 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13392 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13393 | static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13394 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
13395 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
13396 | static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 13397 | 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_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_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_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_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_wxICOHandler, _p_wxICOHandlerTo_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_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_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 |
13398 | 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}}; |
13399 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
13400 | static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
13401 | static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}}; | |
13402 | static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
13403 | static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13404 | static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}}; | |
13405 | static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}}; | |
13406 | static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}}; | |
13407 | 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}}; | |
13408 | static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}}; | |
13409 | static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13410 | 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_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_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}}; |
06810ecf RD |
13411 | |
13412 | static swig_cast_info *swig_cast_initial[] = { | |
13413 | _swigc__p_char, | |
13414 | _swigc__p_form_ops_t, | |
13415 | _swigc__p_int, | |
13416 | _swigc__p_long, | |
13417 | _swigc__p_unsigned_char, | |
13418 | _swigc__p_unsigned_int, | |
13419 | _swigc__p_unsigned_long, | |
13420 | _swigc__p_wxANIHandler, | |
13421 | _swigc__p_wxAcceleratorTable, | |
13422 | _swigc__p_wxActivateEvent, | |
13423 | _swigc__p_wxArrayInt, | |
13424 | _swigc__p_wxBMPHandler, | |
13425 | _swigc__p_wxBitmap, | |
13426 | _swigc__p_wxBoxSizer, | |
06810ecf RD |
13427 | _swigc__p_wxCURHandler, |
13428 | _swigc__p_wxCalculateLayoutEvent, | |
13429 | _swigc__p_wxChar, | |
13430 | _swigc__p_wxChildFocusEvent, | |
06810ecf RD |
13431 | _swigc__p_wxClipboardTextEvent, |
13432 | _swigc__p_wxCloseEvent, | |
13433 | _swigc__p_wxColour, | |
13434 | _swigc__p_wxColourData, | |
13435 | _swigc__p_wxColourDialog, | |
13436 | _swigc__p_wxCommandEvent, | |
13437 | _swigc__p_wxContextMenuEvent, | |
13438 | _swigc__p_wxControl, | |
13439 | _swigc__p_wxControlWithItems, | |
06810ecf RD |
13440 | _swigc__p_wxDateEvent, |
13441 | _swigc__p_wxDialog, | |
13442 | _swigc__p_wxDirDialog, | |
13443 | _swigc__p_wxDisplayChangedEvent, | |
13444 | _swigc__p_wxDropFilesEvent, | |
13445 | _swigc__p_wxDuplexMode, | |
06810ecf RD |
13446 | _swigc__p_wxEraseEvent, |
13447 | _swigc__p_wxEvent, | |
13448 | _swigc__p_wxEvtHandler, | |
13449 | _swigc__p_wxFSFile, | |
13450 | _swigc__p_wxFileDialog, | |
13451 | _swigc__p_wxFileSystem, | |
13452 | _swigc__p_wxFindDialogEvent, | |
13453 | _swigc__p_wxFindReplaceData, | |
13454 | _swigc__p_wxFindReplaceDialog, | |
13455 | _swigc__p_wxFlexGridSizer, | |
13456 | _swigc__p_wxFocusEvent, | |
13457 | _swigc__p_wxFont, | |
13458 | _swigc__p_wxFontData, | |
13459 | _swigc__p_wxFontDialog, | |
13460 | _swigc__p_wxFrame, | |
13461 | _swigc__p_wxGBSizerItem, | |
06810ecf RD |
13462 | _swigc__p_wxGIFHandler, |
13463 | _swigc__p_wxGridBagSizer, | |
13464 | _swigc__p_wxGridSizer, | |
13465 | _swigc__p_wxICOHandler, | |
06810ecf RD |
13466 | _swigc__p_wxIconizeEvent, |
13467 | _swigc__p_wxIdleEvent, | |
13468 | _swigc__p_wxImage, | |
13469 | _swigc__p_wxImageHandler, | |
06810ecf RD |
13470 | _swigc__p_wxIndividualLayoutConstraint, |
13471 | _swigc__p_wxInitDialogEvent, | |
13472 | _swigc__p_wxJPEGHandler, | |
13473 | _swigc__p_wxKeyEvent, | |
13474 | _swigc__p_wxLayoutAlgorithm, | |
13475 | _swigc__p_wxLayoutConstraints, | |
13476 | _swigc__p_wxMDIChildFrame, | |
13477 | _swigc__p_wxMDIClientWindow, | |
13478 | _swigc__p_wxMDIParentFrame, | |
06810ecf | 13479 | _swigc__p_wxMaximizeEvent, |
06810ecf RD |
13480 | _swigc__p_wxMenu, |
13481 | _swigc__p_wxMenuBar, | |
13482 | _swigc__p_wxMenuEvent, | |
13483 | _swigc__p_wxMenuItem, | |
13484 | _swigc__p_wxMessageDialog, | |
06810ecf | 13485 | _swigc__p_wxMiniFrame, |
06810ecf | 13486 | _swigc__p_wxMouseCaptureChangedEvent, |
34e0a3bb | 13487 | _swigc__p_wxMouseCaptureLostEvent, |
06810ecf RD |
13488 | _swigc__p_wxMouseEvent, |
13489 | _swigc__p_wxMoveEvent, | |
13490 | _swigc__p_wxMultiChoiceDialog, | |
13491 | _swigc__p_wxNavigationKeyEvent, | |
13492 | _swigc__p_wxNcPaintEvent, | |
13493 | _swigc__p_wxNotifyEvent, | |
27e45892 | 13494 | _swigc__p_wxNumberEntryDialog, |
06810ecf RD |
13495 | _swigc__p_wxObject, |
13496 | _swigc__p_wxPCXHandler, | |
13497 | _swigc__p_wxPNGHandler, | |
13498 | _swigc__p_wxPNMHandler, | |
13499 | _swigc__p_wxPageSetupDialog, | |
13500 | _swigc__p_wxPageSetupDialogData, | |
06810ecf | 13501 | _swigc__p_wxPaintEvent, |
06810ecf RD |
13502 | _swigc__p_wxPaletteChangedEvent, |
13503 | _swigc__p_wxPanel, | |
13504 | _swigc__p_wxPaperSize, | |
13505 | _swigc__p_wxPasswordEntryDialog, | |
06810ecf | 13506 | _swigc__p_wxPopupWindow, |
06810ecf RD |
13507 | _swigc__p_wxPreviewCanvas, |
13508 | _swigc__p_wxPreviewControlBar, | |
13509 | _swigc__p_wxPreviewFrame, | |
13510 | _swigc__p_wxPrintData, | |
13511 | _swigc__p_wxPrintDialog, | |
13512 | _swigc__p_wxPrintDialogData, | |
13513 | _swigc__p_wxPrintPreview, | |
13514 | _swigc__p_wxPrinter, | |
06810ecf RD |
13515 | _swigc__p_wxProgressDialog, |
13516 | _swigc__p_wxPyApp, | |
13517 | _swigc__p_wxPyCommandEvent, | |
13518 | _swigc__p_wxPyEvent, | |
13519 | _swigc__p_wxPyHtmlListBox, | |
13520 | _swigc__p_wxPyImageHandler, | |
13521 | _swigc__p_wxPyPanel, | |
13522 | _swigc__p_wxPyPopupTransientWindow, | |
13523 | _swigc__p_wxPyPreviewControlBar, | |
13524 | _swigc__p_wxPyPreviewFrame, | |
13525 | _swigc__p_wxPyPrintPreview, | |
13526 | _swigc__p_wxPyPrintout, | |
13527 | _swigc__p_wxPyScrolledWindow, | |
13528 | _swigc__p_wxPySizer, | |
13529 | _swigc__p_wxPyTaskBarIcon, | |
13530 | _swigc__p_wxPyVListBox, | |
13531 | _swigc__p_wxPyVScrolledWindow, | |
13532 | _swigc__p_wxPyValidator, | |
13533 | _swigc__p_wxPyWindow, | |
13534 | _swigc__p_wxQueryLayoutInfoEvent, | |
13535 | _swigc__p_wxQueryNewPaletteEvent, | |
06810ecf RD |
13536 | _swigc__p_wxRichTextAttr, |
13537 | _swigc__p_wxRichTextBuffer, | |
13538 | _swigc__p_wxRichTextCtrl, | |
13539 | _swigc__p_wxRichTextEvent, | |
13540 | _swigc__p_wxRichTextImageBlock, | |
13541 | _swigc__p_wxRichTextRange, | |
13542 | _swigc__p_wxRichTextStyleSheet, | |
13543 | _swigc__p_wxSashEvent, | |
13544 | _swigc__p_wxSashLayoutWindow, | |
13545 | _swigc__p_wxSashWindow, | |
06810ecf RD |
13546 | _swigc__p_wxScrollEvent, |
13547 | _swigc__p_wxScrollWinEvent, | |
13548 | _swigc__p_wxScrolledWindow, | |
13549 | _swigc__p_wxSetCursorEvent, | |
13550 | _swigc__p_wxShowEvent, | |
13551 | _swigc__p_wxSingleChoiceDialog, | |
13552 | _swigc__p_wxSizeEvent, | |
13553 | _swigc__p_wxSizer, | |
13554 | _swigc__p_wxSizerItem, | |
13555 | _swigc__p_wxSplashScreen, | |
13556 | _swigc__p_wxSplashScreenWindow, | |
13557 | _swigc__p_wxSplitterEvent, | |
13558 | _swigc__p_wxSplitterWindow, | |
13559 | _swigc__p_wxStaticBoxSizer, | |
13560 | _swigc__p_wxStatusBar, | |
13561 | _swigc__p_wxStdDialogButtonSizer, | |
13562 | _swigc__p_wxSysColourChangedEvent, | |
13563 | _swigc__p_wxTIFFHandler, | |
13564 | _swigc__p_wxTaskBarIconEvent, | |
13565 | _swigc__p_wxTextCoord, | |
13566 | _swigc__p_wxTextCtrlHitTestResult, | |
13567 | _swigc__p_wxTextEntryDialog, | |
13568 | _swigc__p_wxTipWindow, | |
13569 | _swigc__p_wxTopLevelWindow, | |
13570 | _swigc__p_wxUpdateUIEvent, | |
13571 | _swigc__p_wxValidator, | |
13572 | _swigc__p_wxWindow, | |
13573 | _swigc__p_wxWindowCreateEvent, | |
06810ecf RD |
13574 | _swigc__p_wxWindowDestroyEvent, |
13575 | _swigc__p_wxXPMHandler, | |
13576 | }; | |
13577 | ||
13578 | ||
13579 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
13580 | ||
13581 | static swig_const_info swig_const_table[] = { | |
13582 | {0, 0, 0, 0.0, 0, 0}}; | |
13583 | ||
13584 | #ifdef __cplusplus | |
13585 | } | |
13586 | #endif | |
13587 | /* ----------------------------------------------------------------------------- | |
13588 | * Type initialization: | |
13589 | * This problem is tough by the requirement that no dynamic | |
13590 | * memory is used. Also, since swig_type_info structures store pointers to | |
13591 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
13592 | * to swig_type_info structures, we need some lookup code at initialization. | |
13593 | * The idea is that swig generates all the structures that are needed. | |
13594 | * The runtime then collects these partially filled structures. | |
13595 | * The SWIG_InitializeModule function takes these initial arrays out of | |
13596 | * swig_module, and does all the lookup, filling in the swig_module.types | |
13597 | * array with the correct data and linking the correct swig_cast_info | |
13598 | * structures together. | |
13599 | * | |
13600 | * The generated swig_type_info structures are assigned staticly to an initial | |
13601 | * array. We just loop though that array, and handle each type individually. | |
13602 | * First we lookup if this type has been already loaded, and if so, use the | |
13603 | * loaded structure instead of the generated one. Then we have to fill in the | |
13604 | * cast linked list. The cast data is initially stored in something like a | |
13605 | * two-dimensional array. Each row corresponds to a type (there are the same | |
13606 | * number of rows as there are in the swig_type_initial array). Each entry in | |
13607 | * a column is one of the swig_cast_info structures for that type. | |
13608 | * The cast_initial array is actually an array of arrays, because each row has | |
13609 | * a variable number of columns. So to actually build the cast linked list, | |
13610 | * we find the array of casts associated with the type, and loop through it | |
13611 | * adding the casts to the list. The one last trick we need to do is making | |
13612 | * sure the type pointer in the swig_cast_info struct is correct. | |
13613 | * | |
13614 | * First off, we lookup the cast->type name to see if it is already loaded. | |
13615 | * There are three cases to handle: | |
13616 | * 1) If the cast->type has already been loaded AND the type we are adding | |
13617 | * casting info to has not been loaded (it is in this module), THEN we | |
13618 | * replace the cast->type pointer with the type pointer that has already | |
13619 | * been loaded. | |
13620 | * 2) If BOTH types (the one we are adding casting info to, and the | |
13621 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
13622 | * the previous module so we just ignore it. | |
13623 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
13624 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
13625 | * be correct. | |
13626 | * ----------------------------------------------------------------------------- */ | |
13627 | ||
13628 | #ifdef __cplusplus | |
13629 | extern "C" { | |
13630 | #if 0 | |
13631 | } /* c-mode */ | |
13632 | #endif | |
13633 | #endif | |
13634 | ||
13635 | #if 0 | |
13636 | #define SWIGRUNTIME_DEBUG | |
13637 | #endif | |
13638 | ||
13639 | SWIGRUNTIME void | |
13640 | SWIG_InitializeModule(void *clientdata) { | |
13641 | size_t i; | |
13642 | swig_module_info *module_head; | |
13643 | static int init_run = 0; | |
13644 | ||
13645 | clientdata = clientdata; | |
13646 | ||
13647 | if (init_run) return; | |
13648 | init_run = 1; | |
13649 | ||
13650 | /* Initialize the swig_module */ | |
13651 | swig_module.type_initial = swig_type_initial; | |
13652 | swig_module.cast_initial = swig_cast_initial; | |
13653 | ||
13654 | /* Try and load any already created modules */ | |
13655 | module_head = SWIG_GetModule(clientdata); | |
13656 | if (module_head) { | |
13657 | swig_module.next = module_head->next; | |
13658 | module_head->next = &swig_module; | |
13659 | } else { | |
13660 | /* This is the first module loaded */ | |
13661 | swig_module.next = &swig_module; | |
13662 | SWIG_SetModule(clientdata, &swig_module); | |
13663 | } | |
13664 | ||
13665 | /* Now work on filling in swig_module.types */ | |
13666 | #ifdef SWIGRUNTIME_DEBUG | |
13667 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
13668 | #endif | |
13669 | for (i = 0; i < swig_module.size; ++i) { | |
13670 | swig_type_info *type = 0; | |
13671 | swig_type_info *ret; | |
13672 | swig_cast_info *cast; | |
13673 | ||
13674 | #ifdef SWIGRUNTIME_DEBUG | |
13675 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
13676 | #endif | |
13677 | ||
13678 | /* if there is another module already loaded */ | |
13679 | if (swig_module.next != &swig_module) { | |
13680 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
13681 | } | |
13682 | if (type) { | |
13683 | /* Overwrite clientdata field */ | |
13684 | #ifdef SWIGRUNTIME_DEBUG | |
13685 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
13686 | #endif | |
13687 | if (swig_module.type_initial[i]->clientdata) { | |
13688 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
13689 | #ifdef SWIGRUNTIME_DEBUG | |
13690 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
13691 | #endif | |
13692 | } | |
13693 | } else { | |
13694 | type = swig_module.type_initial[i]; | |
13695 | } | |
13696 | ||
13697 | /* Insert casting types */ | |
13698 | cast = swig_module.cast_initial[i]; | |
13699 | while (cast->type) { | |
13700 | /* Don't need to add information already in the list */ | |
13701 | ret = 0; | |
13702 | #ifdef SWIGRUNTIME_DEBUG | |
13703 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
13704 | #endif | |
13705 | if (swig_module.next != &swig_module) { | |
13706 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
13707 | #ifdef SWIGRUNTIME_DEBUG | |
13708 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
13709 | #endif | |
13710 | } | |
13711 | if (ret) { | |
13712 | if (type == swig_module.type_initial[i]) { | |
13713 | #ifdef SWIGRUNTIME_DEBUG | |
13714 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
13715 | #endif | |
13716 | cast->type = ret; | |
13717 | ret = 0; | |
13718 | } else { | |
13719 | /* Check for casting already in the list */ | |
13720 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
13721 | #ifdef SWIGRUNTIME_DEBUG | |
13722 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
13723 | #endif | |
13724 | if (!ocast) ret = 0; | |
13725 | } | |
13726 | } | |
13727 | ||
13728 | if (!ret) { | |
13729 | #ifdef SWIGRUNTIME_DEBUG | |
13730 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
13731 | #endif | |
13732 | if (type->cast) { | |
13733 | type->cast->prev = cast; | |
13734 | cast->next = type->cast; | |
13735 | } | |
13736 | type->cast = cast; | |
13737 | } | |
13738 | cast++; | |
13739 | } | |
13740 | /* Set entry in modules->types array equal to the type */ | |
13741 | swig_module.types[i] = type; | |
13742 | } | |
13743 | swig_module.types[i] = 0; | |
13744 | ||
13745 | #ifdef SWIGRUNTIME_DEBUG | |
13746 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
13747 | for (i = 0; i < swig_module.size; ++i) { | |
13748 | int j = 0; | |
13749 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
13750 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
13751 | while (cast->type) { | |
13752 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
13753 | cast++; | |
13754 | ++j; | |
13755 | } | |
13756 | printf("---- Total casts: %d\n",j); | |
13757 | } | |
13758 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
13759 | #endif | |
13760 | } | |
13761 | ||
13762 | /* This function will propagate the clientdata field of type to | |
13763 | * any new swig_type_info structures that have been added into the list | |
13764 | * of equivalent types. It is like calling | |
13765 | * SWIG_TypeClientData(type, clientdata) a second time. | |
13766 | */ | |
13767 | SWIGRUNTIME void | |
13768 | SWIG_PropagateClientData(void) { | |
13769 | size_t i; | |
13770 | swig_cast_info *equiv; | |
13771 | static int init_run = 0; | |
13772 | ||
13773 | if (init_run) return; | |
13774 | init_run = 1; | |
13775 | ||
13776 | for (i = 0; i < swig_module.size; i++) { | |
13777 | if (swig_module.types[i]->clientdata) { | |
13778 | equiv = swig_module.types[i]->cast; | |
13779 | while (equiv) { | |
13780 | if (!equiv->converter) { | |
13781 | if (equiv->type && !equiv->type->clientdata) | |
13782 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
13783 | } | |
13784 | equiv = equiv->next; | |
13785 | } | |
13786 | } | |
13787 | } | |
13788 | } | |
13789 | ||
13790 | #ifdef __cplusplus | |
13791 | #if 0 | |
13792 | { | |
13793 | /* c-mode */ | |
13794 | #endif | |
13795 | } | |
13796 | #endif | |
13797 | ||
13798 | ||
13799 | ||
13800 | #ifdef __cplusplus | |
13801 | extern "C" { | |
13802 | #endif | |
13803 | ||
13804 | /* Python-specific SWIG API */ | |
13805 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
13806 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
13807 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
13808 | ||
13809 | /* ----------------------------------------------------------------------------- | |
13810 | * global variable support code. | |
13811 | * ----------------------------------------------------------------------------- */ | |
13812 | ||
13813 | typedef struct swig_globalvar { | |
13814 | char *name; /* Name of global variable */ | |
13815 | PyObject *(*get_attr)(void); /* Return the current value */ | |
13816 | int (*set_attr)(PyObject *); /* Set the value */ | |
13817 | struct swig_globalvar *next; | |
13818 | } swig_globalvar; | |
13819 | ||
13820 | typedef struct swig_varlinkobject { | |
13821 | PyObject_HEAD | |
13822 | swig_globalvar *vars; | |
13823 | } swig_varlinkobject; | |
13824 | ||
13825 | SWIGINTERN PyObject * | |
13826 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
13827 | return PyString_FromString("<Swig global variables>"); | |
13828 | } | |
13829 | ||
13830 | SWIGINTERN PyObject * | |
13831 | swig_varlink_str(swig_varlinkobject *v) { | |
13832 | PyObject *str = PyString_FromString("("); | |
13833 | swig_globalvar *var; | |
13834 | for (var = v->vars; var; var=var->next) { | |
13835 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
13836 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
13837 | } | |
13838 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
13839 | return str; | |
13840 | } | |
13841 | ||
13842 | SWIGINTERN int | |
13843 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
13844 | PyObject *str = swig_varlink_str(v); | |
13845 | fprintf(fp,"Swig global variables "); | |
13846 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
13847 | Py_DECREF(str); | |
13848 | return 0; | |
13849 | } | |
13850 | ||
13851 | SWIGINTERN void | |
13852 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
13853 | swig_globalvar *var = v->vars; | |
13854 | while (var) { | |
13855 | swig_globalvar *n = var->next; | |
13856 | free(var->name); | |
13857 | free(var); | |
13858 | var = n; | |
13859 | } | |
13860 | } | |
13861 | ||
13862 | SWIGINTERN PyObject * | |
13863 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
13864 | PyObject *res = NULL; | |
13865 | swig_globalvar *var = v->vars; | |
13866 | while (var) { | |
13867 | if (strcmp(var->name,n) == 0) { | |
13868 | res = (*var->get_attr)(); | |
13869 | break; | |
13870 | } | |
13871 | var = var->next; | |
13872 | } | |
13873 | if (res == NULL && !PyErr_Occurred()) { | |
13874 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
13875 | } | |
13876 | return res; | |
13877 | } | |
13878 | ||
13879 | SWIGINTERN int | |
13880 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
13881 | int res = 1; | |
13882 | swig_globalvar *var = v->vars; | |
13883 | while (var) { | |
13884 | if (strcmp(var->name,n) == 0) { | |
13885 | res = (*var->set_attr)(p); | |
13886 | break; | |
13887 | } | |
13888 | var = var->next; | |
13889 | } | |
13890 | if (res == 1 && !PyErr_Occurred()) { | |
13891 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
13892 | } | |
13893 | return res; | |
13894 | } | |
13895 | ||
13896 | SWIGINTERN PyTypeObject* | |
13897 | swig_varlink_type(void) { | |
13898 | static char varlink__doc__[] = "Swig var link object"; | |
13899 | static PyTypeObject varlink_type; | |
13900 | static int type_init = 0; | |
13901 | if (!type_init) { | |
13902 | const PyTypeObject tmp | |
13903 | = { | |
13904 | PyObject_HEAD_INIT(NULL) | |
13905 | 0, /* Number of items in variable part (ob_size) */ | |
13906 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
13907 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
13908 | 0, /* Itemsize (tp_itemsize) */ | |
13909 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
13910 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
13911 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
13912 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
13913 | 0, /* tp_compare */ | |
13914 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
13915 | 0, /* tp_as_number */ | |
13916 | 0, /* tp_as_sequence */ | |
13917 | 0, /* tp_as_mapping */ | |
13918 | 0, /* tp_hash */ | |
13919 | 0, /* tp_call */ | |
13920 | (reprfunc)swig_varlink_str, /* tp_str */ | |
13921 | 0, /* tp_getattro */ | |
13922 | 0, /* tp_setattro */ | |
13923 | 0, /* tp_as_buffer */ | |
13924 | 0, /* tp_flags */ | |
13925 | varlink__doc__, /* tp_doc */ | |
13926 | 0, /* tp_traverse */ | |
13927 | 0, /* tp_clear */ | |
13928 | 0, /* tp_richcompare */ | |
13929 | 0, /* tp_weaklistoffset */ | |
13930 | #if PY_VERSION_HEX >= 0x02020000 | |
13931 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
13932 | #endif | |
13933 | #if PY_VERSION_HEX >= 0x02030000 | |
13934 | 0, /* tp_del */ | |
13935 | #endif | |
13936 | #ifdef COUNT_ALLOCS | |
13937 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
13938 | #endif | |
13939 | }; | |
13940 | varlink_type = tmp; | |
13941 | varlink_type.ob_type = &PyType_Type; | |
13942 | type_init = 1; | |
13943 | } | |
13944 | return &varlink_type; | |
13945 | } | |
13946 | ||
13947 | /* Create a variable linking object for use later */ | |
13948 | SWIGINTERN PyObject * | |
13949 | SWIG_Python_newvarlink(void) { | |
13950 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
13951 | if (result) { | |
13952 | result->vars = 0; | |
13953 | } | |
13954 | return ((PyObject*) result); | |
13955 | } | |
13956 | ||
13957 | SWIGINTERN void | |
13958 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
13959 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
13960 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
13961 | if (gv) { | |
13962 | size_t size = strlen(name)+1; | |
13963 | gv->name = (char *)malloc(size); | |
13964 | if (gv->name) { | |
13965 | strncpy(gv->name,name,size); | |
13966 | gv->get_attr = get_attr; | |
13967 | gv->set_attr = set_attr; | |
13968 | gv->next = v->vars; | |
13969 | } | |
13970 | } | |
13971 | v->vars = gv; | |
13972 | } | |
13973 | ||
13974 | SWIGINTERN PyObject * | |
13975 | SWIG_globals() { | |
13976 | static PyObject *_SWIG_globals = 0; | |
13977 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
13978 | return _SWIG_globals; | |
13979 | } | |
13980 | ||
13981 | /* ----------------------------------------------------------------------------- | |
13982 | * constants/methods manipulation | |
13983 | * ----------------------------------------------------------------------------- */ | |
13984 | ||
13985 | /* Install Constants */ | |
13986 | SWIGINTERN void | |
13987 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
13988 | PyObject *obj = 0; | |
13989 | size_t i; | |
13990 | for (i = 0; constants[i].type; ++i) { | |
13991 | switch(constants[i].type) { | |
13992 | case SWIG_PY_POINTER: | |
13993 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
13994 | break; | |
13995 | case SWIG_PY_BINARY: | |
13996 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
13997 | break; | |
13998 | default: | |
13999 | obj = 0; | |
14000 | break; | |
14001 | } | |
14002 | if (obj) { | |
14003 | PyDict_SetItemString(d, constants[i].name, obj); | |
14004 | Py_DECREF(obj); | |
14005 | } | |
14006 | } | |
14007 | } | |
14008 | ||
14009 | /* -----------------------------------------------------------------------------*/ | |
14010 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
14011 | /* -----------------------------------------------------------------------------*/ | |
14012 | ||
14013 | SWIGINTERN void | |
14014 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
14015 | swig_const_info *const_table, | |
14016 | swig_type_info **types, | |
14017 | swig_type_info **types_initial) { | |
14018 | size_t i; | |
14019 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 14020 | const char *c = methods[i].ml_doc; |
06810ecf RD |
14021 | if (c && (c = strstr(c, "swig_ptr: "))) { |
14022 | int j; | |
14023 | swig_const_info *ci = 0; | |
3d6c9062 | 14024 | const char *name = c + 10; |
06810ecf RD |
14025 | for (j = 0; const_table[j].type; ++j) { |
14026 | if (strncmp(const_table[j].name, name, | |
14027 | strlen(const_table[j].name)) == 0) { | |
14028 | ci = &(const_table[j]); | |
14029 | break; | |
14030 | } | |
14031 | } | |
14032 | if (ci) { | |
14033 | size_t shift = (ci->ptype) - types; | |
14034 | swig_type_info *ty = types_initial[shift]; | |
14035 | size_t ldoc = (c - methods[i].ml_doc); | |
14036 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
14037 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
14038 | if (ndoc) { | |
14039 | char *buff = ndoc; | |
14040 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
14041 | if (ptr) { | |
14042 | strncpy(buff, methods[i].ml_doc, ldoc); | |
14043 | buff += ldoc; | |
14044 | strncpy(buff, "swig_ptr: ", 10); | |
14045 | buff += 10; | |
14046 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
14047 | methods[i].ml_doc = ndoc; | |
14048 | } | |
14049 | } | |
14050 | } | |
14051 | } | |
14052 | } | |
14053 | } | |
14054 | ||
14055 | #ifdef __cplusplus | |
14056 | } | |
14057 | #endif | |
14058 | ||
14059 | /* -----------------------------------------------------------------------------* | |
14060 | * Partial Init method | |
14061 | * -----------------------------------------------------------------------------*/ | |
14062 | ||
14063 | #ifdef __cplusplus | |
14064 | extern "C" | |
14065 | #endif | |
14066 | SWIGEXPORT void SWIG_init(void) { | |
14067 | PyObject *m, *d; | |
14068 | ||
14069 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
14070 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
14071 | ||
14072 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
14073 | d = PyModule_GetDict(m); | |
14074 | ||
14075 | SWIG_InitializeModule(0); | |
14076 | SWIG_InstallConstants(d,swig_const_table); | |
14077 | ||
14078 | ||
14079 | SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0))); | |
14080 | SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY))); | |
14081 | SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE))); | |
14082 | SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN))); | |
14083 | SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN))); | |
14084 | SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN))); | |
14085 | SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED))); | |
14086 | SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED))); | |
14087 | SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED))); | |
14088 | SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS))); | |
14089 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY))); | |
14090 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT))); | |
14091 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML))); | |
14092 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML))); | |
14093 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF))); | |
14094 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF))); | |
14095 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH))); | |
14096 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT))); | |
14097 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH))); | |
14098 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT))); | |
14099 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE))); | |
14100 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE))); | |
14101 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER))); | |
14102 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON))); | |
14103 | SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED))); | |
14104 | SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED))); | |
c2829a8f RD |
14105 | SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_NONE))); |
14106 | SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE))); | |
06810ecf RD |
14107 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); |
14108 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
14109 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
14110 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
14111 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
14112 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
14113 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
14114 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
14115 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
14116 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
14117 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
14118 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
14119 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER))); | |
14120 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE))); | |
14121 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING))); | |
14122 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME))); | |
14123 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME))); | |
14124 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE))); | |
14125 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER))); | |
14126 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_SYMBOL))); | |
14127 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE))); | |
14128 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC))); | |
14129 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER))); | |
14130 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER))); | |
14131 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER))); | |
14132 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER))); | |
14133 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL))); | |
14134 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP))); | |
14135 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES))); | |
14136 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD))); | |
14137 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL))); | |
14138 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF))); | |
14139 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE))); | |
14140 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
14141 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
14142 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
14143 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
14144 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
14145 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
14146 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
14147 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set); | |
14148 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set); | |
14149 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER))); | |
14150 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH))); | |
14151 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL))); | |
14152 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED)); | |
14153 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED)); | |
14154 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK)); | |
14155 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK)); | |
14156 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK)); | |
14157 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK)); | |
14158 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN)); | |
14159 | ||
14160 | ||
14161 | } | |
14162 |