]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
0085ce49 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
0085ce49 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
0085ce49 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
0085ce49 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
0085ce49 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d14a1e28 RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d14a1e28 | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 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 | |
994141e6 | 1000 | |
0085ce49 RD |
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) | |
994141e6 | 1004 | |
0085ce49 RD |
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) | |
d14a1e28 | 1008 | |
0085ce49 RD |
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) | |
994141e6 | 1012 | |
0085ce49 RD |
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) | |
32fe5131 | 1016 | |
c32bde28 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
994141e6 | 1019 | |
0085ce49 RD |
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) | |
32fe5131 | 1023 | |
0085ce49 RD |
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 | |
32fe5131 | 1029 | |
994141e6 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
c32bde28 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
c32bde28 | 1034 | |
0085ce49 RD |
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; | |
c32bde28 | 1041 | } |
15afbcd0 | 1042 | |
0085ce49 RD |
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; | |
c32bde28 | 1048 | } |
15afbcd0 | 1049 | |
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
c32bde28 | 1053 | |
0085ce49 RD |
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); | |
15afbcd0 RD |
1058 | } |
1059 | ||
0085ce49 | 1060 | /* Append a value to the result obj */ |
69223c70 | 1061 | |
0085ce49 RD |
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; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
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); | |
15afbcd0 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 | 1103 | } |
15afbcd0 | 1104 | |
0085ce49 | 1105 | /* Unpack the argument tuple */ |
15afbcd0 | 1106 | |
0085ce49 RD |
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*/ | |
093d3ff1 RD |
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*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
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 */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
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 */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
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 */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1682 | type_init = 1; |
c32bde28 | 1683 | } |
32fe5131 | 1684 | return &pyswigobject_type; |
15afbcd0 RD |
1685 | } |
1686 | ||
093d3ff1 | 1687 | SWIGRUNTIME PyObject * |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
0085ce49 RD |
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; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
15afbcd0 RD |
1698 | } |
1699 | ||
093d3ff1 RD |
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; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
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 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
c32bde28 | 1724 | |
093d3ff1 RD |
1725 | SWIGRUNTIME PyObject * |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 1727 | { |
093d3ff1 RD |
1728 | char result[SWIG_BUFFER_SIZE]; |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
c32bde28 RD |
1734 | } |
1735 | ||
093d3ff1 RD |
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))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
c32bde28 | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
c32bde28 | 1749 | { |
0085ce49 RD |
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); | |
c32bde28 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
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 */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
c32bde28 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
994141e6 RD |
1867 | } |
1868 | ||
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
0085ce49 RD |
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 | } | |
093d3ff1 | 1880 | } |
15afbcd0 | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
093d3ff1 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
15afbcd0 | 1903 | { |
0085ce49 RD |
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); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
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; | |
15afbcd0 | 1947 | } |
15afbcd0 RD |
1948 | } |
1949 | ||
0085ce49 RD |
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 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
994141e6 RD |
1963 | } |
1964 | ||
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
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 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
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 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
994141e6 | 2044 | |
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
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); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 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; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
d14a1e28 | 2071 | |
0085ce49 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
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 | } | |
7e63a440 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
c32bde28 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d14a1e28 | 2096 | |
0085ce49 RD |
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 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
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); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
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; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
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; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
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 | |
093d3ff1 | 2158 | } |
d14a1e28 | 2159 | |
0085ce49 RD |
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 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d14a1e28 | 2180 | |
0085ce49 RD |
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]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
15afbcd0 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
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; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
c32bde28 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
994141e6 RD |
2224 | } |
2225 | ||
093d3ff1 RD |
2226 | /* -----------------------------------------------------------------------------* |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
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); | |
15afbcd0 | 2241 | #else |
093d3ff1 RD |
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 | } | |
15afbcd0 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
d14a1e28 | 2252 | |
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
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"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
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)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
d14a1e28 | 2284 | |
0085ce49 RD |
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 | ||
32fe5131 RD |
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); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
d14a1e28 | 2314 | |
0085ce49 RD |
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; | |
093d3ff1 | 2320 | } |
d14a1e28 | 2321 | |
0085ce49 RD |
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 | ||
fc46b7f3 RD |
2466 | #define SWIGTYPE_p_buffer swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_double swig_types[2] | |
2469 | #define SWIGTYPE_p_form_ops_t swig_types[3] | |
2470 | #define SWIGTYPE_p_int swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2473 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
0a27f394 RD |
2474 | #define SWIGTYPE_p_void swig_types[8] |
2475 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
2476 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
2477 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
2478 | #define SWIGTYPE_p_wxAlphaPixelData swig_types[12] | |
2479 | #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13] | |
2480 | #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14] | |
2481 | #define SWIGTYPE_p_wxBMPHandler swig_types[15] | |
2482 | #define SWIGTYPE_p_wxBitmap swig_types[16] | |
2483 | #define SWIGTYPE_p_wxBoxSizer swig_types[17] | |
2484 | #define SWIGTYPE_p_wxBrush swig_types[18] | |
2485 | #define SWIGTYPE_p_wxBrushList swig_types[19] | |
2486 | #define SWIGTYPE_p_wxBufferedDC swig_types[20] | |
2487 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCURHandler swig_types[22] | |
2489 | #define SWIGTYPE_p_wxChar swig_types[23] | |
2490 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxClientDC swig_types[25] | |
2492 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26] | |
2493 | #define SWIGTYPE_p_wxCloseEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxColor swig_types[28] | |
2495 | #define SWIGTYPE_p_wxColour swig_types[29] | |
2496 | #define SWIGTYPE_p_wxColourDatabase swig_types[30] | |
2497 | #define SWIGTYPE_p_wxCommandEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[32] | |
2499 | #define SWIGTYPE_p_wxControl swig_types[33] | |
2500 | #define SWIGTYPE_p_wxControlWithItems swig_types[34] | |
2501 | #define SWIGTYPE_p_wxCursor swig_types[35] | |
2502 | #define SWIGTYPE_p_wxDC swig_types[36] | |
70d7cb34 RD |
2503 | #define SWIGTYPE_p_wxDCBrushChanger swig_types[37] |
2504 | #define SWIGTYPE_p_wxDCClipper swig_types[38] | |
2505 | #define SWIGTYPE_p_wxDCOverlay swig_types[39] | |
2506 | #define SWIGTYPE_p_wxDCPenChanger swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDash swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDateEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[45] | |
2512 | #define SWIGTYPE_p_wxDuplexMode swig_types[46] | |
2513 | #define SWIGTYPE_p_wxEffects swig_types[47] | |
2514 | #define SWIGTYPE_p_wxEncodingConverter swig_types[48] | |
2515 | #define SWIGTYPE_p_wxEraseEvent swig_types[49] | |
2516 | #define SWIGTYPE_p_wxEvent swig_types[50] | |
2517 | #define SWIGTYPE_p_wxEvtHandler swig_types[51] | |
2518 | #define SWIGTYPE_p_wxFSFile swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFileSystem swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFocusEvent swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFont swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFontList swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFontMapper swig_types[58] | |
2525 | #define SWIGTYPE_p_wxGBSizerItem swig_types[59] | |
2526 | #define SWIGTYPE_p_wxGCDC swig_types[60] | |
2527 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGDIObject swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGIFHandler swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGraphicsBrush swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGraphicsContext swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGraphicsFont swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGraphicsObject swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGraphicsPath swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGraphicsPen swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxGridBagSizer swig_types[72] | |
2539 | #define SWIGTYPE_p_wxGridSizer swig_types[73] | |
2540 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74] | |
2541 | #define SWIGTYPE_p_wxICOHandler swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIcon swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIconBundle swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconLocation swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIconizeEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxIdleEvent swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImage swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageHandler swig_types[82] | |
2549 | #define SWIGTYPE_p_wxImageList swig_types[83] | |
2550 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84] | |
2551 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[85] | |
2552 | #define SWIGTYPE_p_wxJPEGHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxKeyEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLanguageInfo swig_types[88] | |
2555 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[89] | |
2556 | #define SWIGTYPE_p_wxLocale swig_types[90] | |
2557 | #define SWIGTYPE_p_wxMask swig_types[91] | |
2558 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMemoryDC swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMenu swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMenuBar swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMenuEvent swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMenuItem swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMetaFile swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMetaFileDC swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMirrorDC swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxMoveEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNativePixelData swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxNotifyEvent swig_types[111] | |
2578 | #define SWIGTYPE_p_wxObject swig_types[112] | |
2579 | #define SWIGTYPE_p_wxOverlay swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPCXHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPNGHandler swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPNMHandler swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaintDC swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPaintEvent swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPalette swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPaperSize swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPen swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPenList swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPixelDataBase swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPoint swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPoint2D swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPoint2DDouble swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPostScriptDC swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPrintData swig_types[129] | |
2596 | #define SWIGTYPE_p_wxPrinterDC swig_types[130] | |
2597 | #define SWIGTYPE_p_wxPseudoDC swig_types[131] | |
2598 | #define SWIGTYPE_p_wxPyApp swig_types[132] | |
2599 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxPyEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135] | |
2602 | #define SWIGTYPE_p_wxPyImageHandler swig_types[136] | |
2603 | #define SWIGTYPE_p_wxPyLocale swig_types[137] | |
2604 | #define SWIGTYPE_p_wxPySizer swig_types[138] | |
2605 | #define SWIGTYPE_p_wxPyValidator swig_types[139] | |
2606 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140] | |
2607 | #define SWIGTYPE_p_wxRect swig_types[141] | |
2608 | #define SWIGTYPE_p_wxRect2DDouble swig_types[142] | |
2609 | #define SWIGTYPE_p_wxRegion swig_types[143] | |
2610 | #define SWIGTYPE_p_wxRegionIterator swig_types[144] | |
2611 | #define SWIGTYPE_p_wxRendererNative swig_types[145] | |
2612 | #define SWIGTYPE_p_wxRendererVersion swig_types[146] | |
2613 | #define SWIGTYPE_p_wxScreenDC swig_types[147] | |
2614 | #define SWIGTYPE_p_wxScrollEvent swig_types[148] | |
2615 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxShowEvent swig_types[151] | |
2618 | #define SWIGTYPE_p_wxSize swig_types[152] | |
2619 | #define SWIGTYPE_p_wxSizeEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxSizer swig_types[154] | |
2621 | #define SWIGTYPE_p_wxSizerItem swig_types[155] | |
2622 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156] | |
2623 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157] | |
2624 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158] | |
2625 | #define SWIGTYPE_p_wxStockGDI swig_types[159] | |
2626 | #define SWIGTYPE_p_wxString swig_types[160] | |
2627 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161] | |
2628 | #define SWIGTYPE_p_wxTIFFHandler swig_types[162] | |
2629 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxValidator swig_types[164] | |
2631 | #define SWIGTYPE_p_wxWindow swig_types[165] | |
2632 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166] | |
2633 | #define SWIGTYPE_p_wxWindowDC swig_types[167] | |
2634 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168] | |
2635 | #define SWIGTYPE_p_wxXPMHandler swig_types[169] | |
2636 | static swig_type_info *swig_types[171]; | |
2637 | static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0}; | |
32fe5131 RD |
2638 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2639 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d14a1e28 | 2640 | |
093d3ff1 | 2641 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 2642 | |
0085ce49 RD |
2643 | #if (PY_VERSION_HEX <= 0x02000000) |
2644 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2645 | # error "This python version requires to use swig with the '-classic' option" | |
2646 | # endif | |
2647 | #endif | |
2648 | #if (PY_VERSION_HEX <= 0x02020000) | |
2649 | # error "This python version requires to use swig with the '-nomodern' option" | |
2650 | #endif | |
2651 | #if (PY_VERSION_HEX <= 0x02020000) | |
2652 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2653 | #endif | |
2654 | #ifndef METH_O | |
2655 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2656 | #endif | |
d14a1e28 | 2657 | |
093d3ff1 RD |
2658 | /*----------------------------------------------- |
2659 | @(target):= _gdi_.so | |
2660 | ------------------------------------------------*/ | |
2661 | #define SWIG_init init_gdi_ | |
d14a1e28 | 2662 | |
093d3ff1 | 2663 | #define SWIG_name "_gdi_" |
d14a1e28 | 2664 | |
0085ce49 | 2665 | #define SWIGVERSION 0x010329 |
d14a1e28 | 2666 | |
d14a1e28 | 2667 | |
0085ce49 RD |
2668 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2669 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d14a1e28 RD |
2670 | |
2671 | ||
0085ce49 RD |
2672 | #include <stdexcept> |
2673 | ||
2674 | ||
2675 | namespace swig { | |
2676 | class PyObject_ptr { | |
2677 | protected: | |
2678 | PyObject *_obj; | |
2679 | ||
2680 | public: | |
2681 | PyObject_ptr() :_obj(0) | |
2682 | { | |
093d3ff1 | 2683 | } |
0085ce49 RD |
2684 | |
2685 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2686 | { | |
2687 | Py_XINCREF(_obj); | |
093d3ff1 | 2688 | } |
0085ce49 RD |
2689 | |
2690 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2691 | { | |
2692 | if (initial_ref) Py_XINCREF(_obj); | |
2693 | } | |
2694 | ||
2695 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2696 | { | |
2697 | Py_XINCREF(item._obj); | |
2698 | Py_XDECREF(_obj); | |
2699 | _obj = item._obj; | |
2700 | return *this; | |
2701 | } | |
2702 | ||
2703 | ~PyObject_ptr() | |
2704 | { | |
2705 | Py_XDECREF(_obj); | |
2706 | } | |
2707 | ||
2708 | operator PyObject *() const | |
2709 | { | |
2710 | return _obj; | |
2711 | } | |
2712 | ||
2713 | PyObject *operator->() const | |
2714 | { | |
2715 | return _obj; | |
2716 | } | |
2717 | }; | |
093d3ff1 | 2718 | } |
d14a1e28 | 2719 | |
994141e6 | 2720 | |
0085ce49 RD |
2721 | namespace swig { |
2722 | struct PyObject_var : PyObject_ptr { | |
2723 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2724 | ||
2725 | PyObject_var & operator = (PyObject* obj) | |
2726 | { | |
2727 | Py_XDECREF(_obj); | |
2728 | _obj = obj; | |
2729 | return *this; | |
69223c70 | 2730 | } |
0085ce49 | 2731 | }; |
15afbcd0 RD |
2732 | } |
2733 | ||
2734 | ||
0085ce49 RD |
2735 | #include "wx/wxPython/wxPython.h" |
2736 | #include "wx/wxPython/pyclasses.h" | |
2737 | ||
2738 | ||
2739 | static const wxString wxPyEmptyString(wxEmptyString); | |
2740 | ||
01f6b6d3 RD |
2741 | #define SWIG_From_long PyInt_FromLong |
2742 | ||
2743 | ||
2744 | SWIGINTERNINLINE PyObject * | |
2745 | SWIG_From_int (int value) | |
2746 | { | |
2747 | return SWIG_From_long (value); | |
2748 | } | |
2749 | ||
2750 | ||
0085ce49 RD |
2751 | #include <limits.h> |
2752 | #ifndef LLONG_MIN | |
2753 | # define LLONG_MIN LONG_LONG_MIN | |
2754 | #endif | |
2755 | #ifndef LLONG_MAX | |
2756 | # define LLONG_MAX LONG_LONG_MAX | |
2757 | #endif | |
2758 | #ifndef ULLONG_MAX | |
2759 | # define ULLONG_MAX ULONG_LONG_MAX | |
2760 | #endif | |
b88bce5f | 2761 | |
b88bce5f | 2762 | |
50efceee RD |
2763 | SWIGINTERN int |
2764 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2765 | { | |
2766 | if (PyNumber_Check(obj)) { | |
2767 | if (val) *val = PyInt_AsLong(obj); | |
2768 | return SWIG_OK; | |
2769 | } | |
2770 | return SWIG_TypeError; | |
2771 | } | |
2772 | ||
2773 | ||
093d3ff1 | 2774 | SWIGINTERN int |
0085ce49 | 2775 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2776 | { |
2777 | long v = 0; | |
2778 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
0085ce49 | 2779 | return SWIG_TypeError; |
093d3ff1 RD |
2780 | } |
2781 | else if (val) | |
2782 | *val = (unsigned long)v; | |
0085ce49 | 2783 | return SWIG_OK; |
093d3ff1 | 2784 | } |
d14a1e28 RD |
2785 | |
2786 | ||
093d3ff1 | 2787 | SWIGINTERN int |
0085ce49 RD |
2788 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2789 | { | |
093d3ff1 | 2790 | unsigned long v; |
0085ce49 RD |
2791 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2792 | if (SWIG_IsOK(res)) { | |
2793 | if ((v > UCHAR_MAX)) { | |
2794 | return SWIG_OverflowError; | |
093d3ff1 | 2795 | } else { |
0085ce49 | 2796 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2797 | } |
0085ce49 RD |
2798 | } |
2799 | return res; | |
093d3ff1 | 2800 | } |
33b885b9 | 2801 | |
d14a1e28 | 2802 | |
0085ce49 RD |
2803 | SWIGINTERNINLINE PyObject* |
2804 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2805 | { |
0085ce49 RD |
2806 | return (value > LONG_MAX) ? |
2807 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2808 | } |
d14a1e28 | 2809 | |
d14a1e28 | 2810 | |
0085ce49 RD |
2811 | SWIGINTERNINLINE PyObject * |
2812 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2813 | { | |
2814 | return SWIG_From_unsigned_SS_long (value); | |
2815 | } | |
d14a1e28 | 2816 | |
e9d6f3a4 RD |
2817 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2818 | wxColour temp, *obj = &temp; | |
2819 | if ( other == Py_None ) return false; | |
2820 | if ( ! wxColour_helper(other, &obj) ) { | |
2821 | PyErr_Clear(); | |
2822 | return false; | |
2823 | } | |
2824 | return self->operator==(*obj); | |
2825 | } | |
2826 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2827 | wxColour temp, *obj = &temp; | |
2828 | if ( other == Py_None ) return true; | |
2829 | if ( ! wxColour_helper(other, &obj)) { | |
2830 | PyErr_Clear(); | |
2831 | return true; | |
2832 | } | |
2833 | return self->operator!=(*obj); | |
2834 | } | |
fc46b7f3 RD |
2835 | |
2836 | SWIGINTERN int | |
2837 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2838 | { | |
2839 | if (obj == Py_True) { | |
2840 | if (val) *val = true; | |
2841 | return SWIG_OK; | |
2842 | } else if (obj == Py_False) { | |
2843 | if (val) *val = false; | |
2844 | return SWIG_OK; | |
2845 | } else { | |
2846 | long v = 0; | |
2847 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2848 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2849 | return res; | |
2850 | } | |
2851 | } | |
2852 | ||
2853 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2854 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2855 | int red = -1; |
2856 | int green = -1; | |
2857 | int blue = -1; | |
fc46b7f3 | 2858 | int alpha = wxALPHA_OPAQUE; |
b39fe951 | 2859 | if (self->IsOk()) { |
093d3ff1 RD |
2860 | red = self->Red(); |
2861 | green = self->Green(); | |
2862 | blue = self->Blue(); | |
fc46b7f3 | 2863 | alpha = self->Alpha(); |
093d3ff1 RD |
2864 | } |
2865 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2866 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2867 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2868 | if (includeAlpha) |
2869 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2870 | return rv; |
2871 | } | |
0085ce49 | 2872 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2873 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2874 | } | |
d14a1e28 | 2875 | |
0085ce49 RD |
2876 | SWIGINTERN int |
2877 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2878 | { |
0085ce49 RD |
2879 | long v; |
2880 | int res = SWIG_AsVal_long (obj, &v); | |
2881 | if (SWIG_IsOK(res)) { | |
2882 | if ((v < INT_MIN || v > INT_MAX)) { | |
2883 | return SWIG_OverflowError; | |
2884 | } else { | |
2885 | if (val) *val = static_cast< int >(v); | |
2886 | } | |
2887 | } | |
2888 | return res; | |
d14a1e28 RD |
2889 | } |
2890 | ||
0085ce49 | 2891 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2892 | wxDash* dashes; |
2893 | int count = self->GetDashes(&dashes); | |
5a446332 | 2894 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2895 | PyObject* retval = PyList_New(0); |
2896 | for (int x=0; x<count; x++) { | |
2897 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2898 | PyList_Append(retval, pyint); | |
2899 | Py_DECREF(pyint); | |
2900 | } | |
2901 | wxPyEndBlockThreads(blocked); | |
2902 | return retval; | |
2903 | } | |
0085ce49 | 2904 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2905 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2906 | int size = PyList_Size(pyDashes); |
2907 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 2908 | |
093d3ff1 RD |
2909 | // black magic warning! The array of wxDashes needs to exist as |
2910 | // long as the pen does because wxPen does not copy the array. So | |
2911 | // stick a copy in a Python string object and attach it to _self, | |
2912 | // and then call SetDashes with a pointer to that array. Then | |
2913 | // when the Python pen object is destroyed the array will be | |
2914 | // cleaned up too. | |
2915 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2916 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2917 | ||
2918 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2919 | delete [] dashes; | |
2920 | Py_DECREF(strDashes); | |
2921 | wxPyEndBlockThreads(blocked); | |
2922 | } | |
0085ce49 RD |
2923 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2924 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 2925 | |
fc46b7f3 RD |
2926 | #include <wx/rawbmp.h> |
2927 | ||
2928 | ||
093d3ff1 | 2929 | #include <wx/image.h> |
b88bce5f | 2930 | |
093d3ff1 RD |
2931 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2932 | char** cArray = NULL; | |
2933 | int count; | |
2934 | ||
2935 | if (!PyList_Check(listOfStrings)) { | |
2936 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2937 | return NULL; | |
2938 | } | |
2939 | count = PyList_Size(listOfStrings); | |
2940 | cArray = new char*[count]; | |
2941 | ||
2942 | for(int x=0; x<count; x++) { | |
2943 | // TODO: Need some validation and error checking here | |
2944 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2945 | } | |
2946 | return cArray; | |
b88bce5f | 2947 | } |
b88bce5f RD |
2948 | |
2949 | ||
0085ce49 | 2950 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2951 | char** cArray = NULL; |
2952 | wxBitmap* bmp; | |
2953 | ||
2954 | cArray = ConvertListOfStrings(listOfStrings); | |
2955 | if (! cArray) | |
2956 | return NULL; | |
2957 | bmp = new wxBitmap(cArray); | |
2958 | delete [] cArray; | |
2959 | return bmp; | |
2960 | } | |
0085ce49 | 2961 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2962 | char* buf; |
2963 | Py_ssize_t length; | |
2964 | PyString_AsStringAndSize(bits, &buf, &length); | |
2965 | return new wxBitmap(buf, width, height, depth); | |
2966 | } | |
0085ce49 | 2967 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2968 | wxSize size(self->GetWidth(), self->GetHeight()); |
2969 | return size; | |
2970 | } | |
0085ce49 | 2971 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2972 | wxMask *mask = new wxMask(*self, colour); |
2973 | self->SetMask(mask); | |
2974 | } | |
0085ce49 | 2975 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2976 | self->SetWidth(size.x); |
2977 | self->SetHeight(size.y); | |
2978 | } | |
0085ce49 RD |
2979 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
2980 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
fc46b7f3 RD |
2981 | |
2982 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It | |
2983 | // appears to me that the other platforms are already doing it, so I'll just | |
2984 | // automatically do it for wxMSW here. | |
2985 | #ifdef __WXMSW__ | |
195a89b4 RD |
2986 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) |
2987 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
fc46b7f3 RD |
2988 | #else |
2989 | #define wxPy_premultiply(p, a) (p) | |
2990 | #define wxPy_unpremultiply(p, a) (p) | |
2991 | #endif | |
2992 | ||
2993 | ||
2994 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
2995 | buffer data, int DATASIZE, | |
2996 | buffer alpha, int ALPHASIZE) | |
2997 | { | |
2998 | if (DATASIZE != width*height*3) { | |
2999 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3000 | return NULL; | |
3001 | } | |
3002 | ||
3003 | if (ALPHASIZE != width*height) { | |
3004 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3005 | return NULL; | |
3006 | } | |
3007 | ||
3008 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3009 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3010 | if (! pixData) { | |
3011 | // raise an exception... | |
3012 | wxPyErr_SetString(PyExc_RuntimeError, | |
3013 | "Failed to gain raw access to bitmap data."); | |
3014 | return NULL; | |
3015 | } | |
3016 | ||
3017 | pixData.UseAlpha(); | |
3018 | wxAlphaPixelData::Iterator p(pixData); | |
3019 | for (int y=0; y<height; y++) { | |
3020 | wxAlphaPixelData::Iterator rowStart = p; | |
3021 | for (int x=0; x<width; x++) { | |
3022 | byte a = *(alpha++); | |
3023 | p.Red() = wxPy_premultiply(*(data++), a); | |
3024 | p.Green() = wxPy_premultiply(*(data++), a); | |
3025 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3026 | p.Alpha() = a; | |
3027 | ++p; | |
3028 | } | |
3029 | p = rowStart; | |
3030 | p.OffsetY(pixData, 1); | |
3031 | } | |
3032 | return bmp; | |
3033 | } | |
3034 | ||
3035 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3036 | { | |
3037 | if (DATASIZE != width*height*3) { | |
3038 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3043 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3044 | if (! pixData) { | |
3045 | // raise an exception... | |
3046 | wxPyErr_SetString(PyExc_RuntimeError, | |
3047 | "Failed to gain raw access to bitmap data."); | |
3048 | return NULL; | |
3049 | } | |
3050 | ||
3051 | wxNativePixelData::Iterator p(pixData); | |
3052 | for (int y=0; y<height; y++) { | |
3053 | wxNativePixelData::Iterator rowStart = p; | |
3054 | for (int x=0; x<width; x++) { | |
3055 | p.Red() = *(data++); | |
3056 | p.Green() = *(data++); | |
3057 | p.Blue() = *(data++); | |
3058 | ++p; | |
3059 | } | |
3060 | p = rowStart; | |
3061 | p.OffsetY(pixData, 1); | |
3062 | } | |
3063 | return bmp; | |
3064 | } | |
3065 | ||
3066 | ||
3067 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3068 | { | |
3069 | if (DATASIZE != width*height*4) { | |
3070 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3075 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3076 | if (! pixData) { | |
3077 | // raise an exception... | |
3078 | wxPyErr_SetString(PyExc_RuntimeError, | |
3079 | "Failed to gain raw access to bitmap data."); | |
3080 | return NULL; | |
3081 | } | |
3082 | ||
3083 | pixData.UseAlpha(); | |
3084 | wxAlphaPixelData::Iterator p(pixData); | |
3085 | for (int y=0; y<height; y++) { | |
3086 | wxAlphaPixelData::Iterator rowStart = p; | |
3087 | for (int x=0; x<width; x++) { | |
3088 | byte a = data[3]; | |
3089 | p.Red() = wxPy_premultiply(*(data++), a); | |
3090 | p.Green() = wxPy_premultiply(*(data++), a); | |
3091 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3092 | p.Alpha() = a; data++; | |
3093 | ++p; | |
3094 | } | |
3095 | p = rowStart; | |
3096 | p.OffsetY(pixData, 1); | |
3097 | } | |
3098 | return bmp; | |
3099 | } | |
3100 | ||
3101 | ||
3102 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3103 | ||
3104 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3105 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3106 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3107 | self->Red() = red; | |
3108 | self->Green() = green; | |
3109 | self->Blue() = blue; | |
3110 | } | |
3111 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3112 | PyObject* rv = PyTuple_New(3); | |
3113 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3114 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3115 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3116 | return rv; | |
3117 | } | |
3118 | ||
3119 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3120 | ||
3121 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3122 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3123 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3124 | self->Red() = wxPy_premultiply(red, alpha); | |
3125 | self->Green() = wxPy_premultiply(green, alpha); | |
3126 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3127 | self->Alpha() = alpha; | |
3128 | } | |
3129 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3130 | PyObject* rv = PyTuple_New(4); | |
3131 | int red = self->Red(); | |
3132 | int green = self->Green(); | |
3133 | int blue = self->Blue(); | |
3134 | int alpha = self->Alpha(); | |
3135 | ||
3136 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3137 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3138 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3139 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3140 | return rv; | |
3141 | } | |
0085ce49 | 3142 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3143 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3144 | return new wxMask(bitmap, *wxBLACK); |
3145 | else | |
3146 | return new wxMask(bitmap, colour); | |
3147 | } | |
d14a1e28 | 3148 | |
093d3ff1 | 3149 | #include <wx/iconbndl.h> |
d14a1e28 | 3150 | |
0085ce49 | 3151 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3152 | wxIcon* icon = new wxIcon(); |
3153 | icon->CopyFromBitmap(bmp); | |
3154 | return icon; | |
3155 | } | |
0085ce49 | 3156 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3157 | char** cArray = NULL; |
3158 | wxIcon* icon; | |
d14a1e28 | 3159 | |
093d3ff1 RD |
3160 | cArray = ConvertListOfStrings(listOfStrings); |
3161 | if (! cArray) | |
3162 | return NULL; | |
3163 | icon = new wxIcon(cArray); | |
3164 | delete [] cArray; | |
3165 | return icon; | |
3166 | } | |
0085ce49 | 3167 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3168 | |
3169 | ||
d14a1e28 | 3170 | |
093d3ff1 | 3171 | return new wxIconLocation(*filename); |
d14a1e28 | 3172 | |
093d3ff1 | 3173 | } |
0085ce49 | 3174 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3175 | |
3176 | ||
d14a1e28 | 3177 | |
093d3ff1 | 3178 | // do nothing |
d14a1e28 | 3179 | |
093d3ff1 | 3180 | } |
0085ce49 | 3181 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3182 | |
3183 | ||
093d3ff1 RD |
3184 | |
3185 | return -1; | |
3186 | ||
3187 | } | |
0085ce49 | 3188 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3189 | #ifdef __WXGTK__ |
7557b9b5 RD |
3190 | wxImage img(cursorName, type); |
3191 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3192 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3193 | return new wxCursor(img); | |
093d3ff1 | 3194 | #else |
7557b9b5 | 3195 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3196 | #endif |
3197 | } | |
3198 | ||
3199 | ||
0085ce49 | 3200 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3201 | (*self) ++; |
3202 | } | |
0085ce49 | 3203 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3204 | return self->operator bool(); |
3205 | } | |
3206 | ||
3207 | #include <wx/fontutil.h> | |
3208 | #include <wx/fontmap.h> | |
3209 | #include <wx/fontenum.h> | |
3210 | ||
0085ce49 | 3211 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3212 | return self->ToString(); |
3213 | } | |
3214 | ||
3215 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3216 | static wxNativeEncodingInfo info; | |
3217 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3218 | return &info; | |
3219 | else | |
3220 | return NULL; | |
3221 | } | |
3222 | ||
0085ce49 RD |
3223 | |
3224 | SWIGINTERNINLINE PyObject * | |
3225 | SWIG_From_size_t (size_t value) | |
3226 | { | |
3227 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3228 | } | |
3229 | ||
3230 | ||
3231 | SWIGINTERNINLINE int | |
3232 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3233 | { | |
3234 | unsigned long v; | |
3235 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3236 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3237 | return res; | |
3238 | } | |
3239 | ||
3240 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3241 | wxFontEncoding alt_enc; |
3242 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3243 | return PyInt_FromLong(alt_enc); | |
3244 | else { | |
3245 | Py_INCREF(Py_None); | |
3246 | return Py_None; | |
3247 | } | |
3248 | } | |
0085ce49 | 3249 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3250 | wxNativeFontInfo nfi; |
3251 | nfi.FromString(info); | |
3252 | return new wxFont(nfi); | |
3253 | } | |
0085ce49 | 3254 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3255 | return wxFont::New(pointSize, family, flags, face, encoding); |
3256 | } | |
0085ce49 | 3257 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3258 | return wxFontBase::New(pixelSize, family, |
3259 | style, weight, underlined, | |
3260 | face, encoding); | |
3261 | } | |
0085ce49 | 3262 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3263 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3264 | } | |
0085ce49 RD |
3265 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3266 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3267 | |
3268 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3269 | public: | |
3270 | wxPyFontEnumerator() {} | |
3271 | ~wxPyFontEnumerator() {} | |
3272 | ||
3273 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3274 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3275 | ||
3276 | PYPRIVATE; | |
3277 | }; | |
3278 | ||
3279 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3280 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3281 | ||
3282 | ||
704eda0c | 3283 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3284 | PyObject* ret; |
704eda0c | 3285 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3286 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3287 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3288 | wxPyEndBlockThreads(blocked); |
3289 | return ret; | |
093d3ff1 | 3290 | } |
704eda0c | 3291 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3292 | PyObject* ret; |
704eda0c | 3293 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3294 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3295 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3296 | wxPyEndBlockThreads(blocked); |
3297 | return ret; | |
093d3ff1 RD |
3298 | } |
3299 | ||
3300 | #include <locale.h> | |
3301 | ||
0085ce49 | 3302 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3303 | wxLocale* loc; |
3304 | if (language == -1) | |
3305 | loc = new wxLocale(); | |
3306 | else | |
3307 | loc = new wxLocale(language, flags); | |
3308 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3309 | // for the floating point conversions and such to work right. | |
3310 | #if PY_VERSION_HEX < 0x02040000 | |
3311 | setlocale(LC_NUMERIC, "C"); | |
3312 | #endif | |
3313 | return loc; | |
3314 | } | |
0085ce49 | 3315 | SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ |
093d3ff1 RD |
3316 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3317 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3318 | // for the floating point conversions and such to work right. | |
3319 | #if PY_VERSION_HEX < 0x02040000 | |
3320 | setlocale(LC_NUMERIC, "C"); | |
3321 | #endif | |
3322 | return rc; | |
3323 | } | |
0085ce49 | 3324 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3325 | bool rc = self->Init(language, flags); |
3326 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3327 | // for the floating point conversions and such to work right. | |
3328 | #if PY_VERSION_HEX < 0x02040000 | |
3329 | setlocale(LC_NUMERIC, "C"); | |
3330 | #endif | |
3331 | return rc; | |
3332 | } | |
3333 | ||
fc46b7f3 RD |
3334 | class wxPyLocale : public wxLocale |
3335 | { | |
3336 | public: | |
3337 | wxPyLocale(); | |
3338 | ||
3339 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3340 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3341 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3342 | bool bLoadDefault = true, // preload wxstd.mo? | |
3343 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3344 | ||
3345 | wxPyLocale(int language, // wxLanguage id or custom language | |
3346 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3347 | ||
3348 | ~wxPyLocale(); | |
3349 | ||
3350 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3351 | const wxChar *szDomain = NULL) const; | |
3352 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3353 | const wxChar *szOrigString2, size_t n, | |
3354 | const wxChar *szDomain = NULL) const; | |
3355 | ||
3356 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3357 | const wxChar *szDomain = NULL) const; | |
3358 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3359 | const wxChar *szOrigString2, size_t n, | |
3360 | const wxChar *szDomain = NULL) const; | |
3361 | ||
3362 | PYPRIVATE; | |
3363 | private: | |
3364 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3365 | }; | |
3366 | ||
3367 | wxPyLocale::wxPyLocale() : wxLocale() | |
3368 | { | |
3369 | } | |
3370 | ||
3371 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3372 | const wxChar *szShort, // dir prefix (for msg files) | |
3373 | const wxChar *szLocale, // locale (for setlocale) | |
3374 | bool bLoadDefault, // preload wxstd.mo? | |
3375 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3376 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3377 | { | |
3378 | } | |
3379 | ||
3380 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3381 | int flags) : wxLocale(language, flags) | |
3382 | { | |
3383 | } | |
3384 | ||
3385 | wxPyLocale::~wxPyLocale() | |
3386 | { | |
3387 | } | |
3388 | ||
3389 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3390 | const wxChar *szDomain) const | |
3391 | { | |
3392 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3393 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3394 | } | |
3395 | ||
3396 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3397 | const wxChar *szOrigString2, size_t n, | |
3398 | const wxChar *szDomain) const | |
3399 | { | |
3400 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3401 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3402 | } | |
3403 | ||
3404 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3405 | const wxChar *szDomain) const | |
3406 | { | |
3407 | bool found; | |
3408 | static wxString str; | |
3409 | str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string. | |
3410 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3411 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3412 | PyObject* param1 = wx2PyString(szOrigString); | |
3413 | PyObject* param2 = wx2PyString(szDomain); | |
3414 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3415 | Py_DECREF(param1); | |
3416 | Py_DECREF(param2); | |
3417 | if (ret) { | |
3418 | str = Py2wxString(ret); | |
3419 | Py_DECREF(ret); | |
3420 | } | |
3421 | } | |
3422 | wxPyEndBlockThreads(blocked); | |
3423 | return (found ? (wxChar*)str.c_str() : NULL); | |
3424 | } | |
3425 | ||
3426 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3427 | const wxChar *szOrigString2, size_t n, | |
3428 | const wxChar *szDomain) const | |
3429 | { | |
3430 | bool found; | |
3431 | static wxString str; | |
3432 | str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string. | |
3433 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3434 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3435 | PyObject* param1 = wx2PyString(szOrigString); | |
3436 | PyObject* param2 = wx2PyString(szOrigString2); | |
3437 | PyObject* param4 = wx2PyString(szDomain); | |
3438 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3439 | Py_DECREF(param1); | |
3440 | Py_DECREF(param2); | |
3441 | Py_DECREF(param4); | |
3442 | if( ret) { | |
3443 | str = Py2wxString(ret); | |
3444 | Py_DECREF(ret); | |
3445 | } | |
3446 | } | |
3447 | wxPyEndBlockThreads(blocked); | |
3448 | return (found ? (wxChar*)str.c_str() : NULL); | |
3449 | } | |
3450 | ||
3451 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3452 | wxPyLocale* loc; | |
3453 | if (language == -1) | |
3454 | loc = new wxPyLocale(); | |
3455 | else | |
3456 | loc = new wxPyLocale(language, flags); | |
3457 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3458 | // for the floating point conversions and such to work right. | |
3459 | #if PY_VERSION_HEX < 0x02040000 | |
3460 | setlocale(LC_NUMERIC, "C"); | |
3461 | #endif | |
3462 | return loc; | |
3463 | } | |
3464 | ||
093d3ff1 RD |
3465 | #include "wx/wxPython/pydrawxxx.h" |
3466 | ||
0085ce49 | 3467 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3468 | wxColour col; |
3469 | self->GetPixel(x, y, &col); | |
3470 | return col; | |
3471 | } | |
0085ce49 | 3472 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3473 | wxColour col; |
3474 | self->GetPixel(pt, &col); | |
3475 | return col; | |
3476 | } | |
3477 | ||
3478 | SWIGINTERN int | |
0085ce49 | 3479 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3480 | { |
3481 | if (PyNumber_Check(obj)) { | |
3482 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3483 | return SWIG_OK; |
093d3ff1 | 3484 | } |
0085ce49 | 3485 | return SWIG_TypeError; |
093d3ff1 RD |
3486 | } |
3487 | ||
0085ce49 | 3488 | SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ |
093d3ff1 RD |
3489 | wxRect rv; |
3490 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3491 | return rv; | |
3492 | } | |
0085ce49 | 3493 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3494 | wxRect rect; |
3495 | self->GetClippingBox(rect); | |
3496 | return rect; | |
3497 | } | |
0085ce49 | 3498 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3499 | wxArrayInt widths; |
3500 | self->GetPartialTextExtents(text, widths); | |
3501 | return widths; | |
3502 | } | |
3503 | ||
0085ce49 | 3504 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3505 | |
0085ce49 | 3506 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3507 | self->SetLogicalOrigin(point.x, point.y); |
3508 | } | |
0085ce49 | 3509 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3510 | self->SetDeviceOrigin(point.x, point.y); |
3511 | } | |
0085ce49 | 3512 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3513 | self->CalcBoundingBox(point.x, point.y); |
3514 | } | |
0085ce49 | 3515 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3516 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3517 | } | |
0085ce49 | 3518 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3519 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3520 | } | |
0085ce49 | 3521 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3522 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3523 | } | |
0085ce49 | 3524 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3525 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3526 | } | |
0085ce49 | 3527 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3528 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3529 | } | |
0085ce49 | 3530 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3531 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3532 | } | |
3533 | ||
3534 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3535 | *x1 = dc->MinX(); | |
3536 | *y1 = dc->MinY(); | |
3537 | *x2 = dc->MaxX(); | |
3538 | *y2 = dc->MaxY(); | |
3539 | } | |
3540 | ||
3541 | ||
3542 | #include <wx/dcbuffer.h> | |
3543 | ||
3544 | ||
3545 | #include <wx/dcps.h> | |
3546 | ||
3547 | ||
3548 | class wxMetaFile : public wxObject { | |
3549 | public: | |
3550 | wxMetaFile(const wxString&) | |
3551 | { wxPyRaiseNotImplemented(); } | |
3552 | }; | |
3553 | ||
3554 | class wxMetaFileDC : public wxClientDC { | |
3555 | public: | |
3556 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3557 | { wxPyRaiseNotImplemented(); } | |
3558 | }; | |
3559 | ||
3560 | ||
3561 | ||
3562 | class wxPrinterDC : public wxClientDC { | |
3563 | public: | |
3564 | wxPrinterDC(const wxPrintData&) | |
3565 | { wxPyRaiseNotImplemented(); } | |
3566 | ||
3567 | }; | |
3568 | ||
3569 | ||
72ef6efb RD |
3570 | #include <wx/graphics.h> |
3571 | ||
3572 | ||
3573 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3574 | // C++ stub classes for platforms or build configurations that don't have |
3575 | // wxGraphicsContext yet. | |
72ef6efb | 3576 | |
70d7cb34 RD |
3577 | |
3578 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3579 | { |
3580 | public : | |
70d7cb34 | 3581 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3582 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3583 | "wx.GraphicsObject is not available on this platform."); |
3584 | } | |
3585 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3586 | virtual ~wxGraphicsObject() {} | |
3587 | bool IsNull() const { return false; } | |
3588 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3589 | } ; | |
3590 | ||
3591 | ||
3592 | ||
3593 | class wxGraphicsPen : public wxGraphicsObject | |
3594 | { | |
3595 | wxGraphicsPen() {} | |
3596 | virtual ~wxGraphicsPen() {} | |
3597 | } ; | |
3598 | wxGraphicsPen wxNullGraphicsPen; | |
3599 | ||
3600 | ||
3601 | ||
3602 | class wxGraphicsBrush : public wxGraphicsObject | |
3603 | { | |
3604 | public : | |
3605 | wxGraphicsBrush() {} | |
3606 | virtual ~wxGraphicsBrush() {} | |
3607 | } ; | |
3608 | wxGraphicsBrush wxNullGraphicsBrush; | |
3609 | ||
3610 | ||
3611 | ||
3612 | class wxGraphicsFont : public wxGraphicsObject | |
3613 | { | |
3614 | public : | |
3615 | wxGraphicsFont() {} | |
3616 | virtual ~wxGraphicsFont() {} | |
3617 | } ; | |
3618 | wxGraphicsFont wxNullGraphicsFont; | |
3619 | ||
3620 | ||
3621 | ||
3622 | class wxGraphicsPath : public wxGraphicsObject | |
3623 | { | |
3624 | public : | |
3625 | wxGraphicsPath(wxGraphicsRenderer* ) { | |
3626 | PyErr_SetString(PyExc_NotImplementedError, | |
3627 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3628 | } |
3629 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3630 | |
72ef6efb | 3631 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3632 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3633 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3634 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3635 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 RD |
3636 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
3637 | void AddPath( const wxGraphicsPath* ) {} | |
72ef6efb RD |
3638 | void CloseSubpath() {} |
3639 | void GetCurrentPoint( wxDouble&, wxDouble&) {} | |
70d7cb34 | 3640 | wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); } |
72ef6efb | 3641 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3642 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3643 | |
3644 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3645 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3646 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3647 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3648 | ||
70d7cb34 RD |
3649 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3650 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3651 | void * GetNativePath() const { return NULL; } | |
3652 | void UnGetNativePath(void *) {} | |
3653 | void Transform( wxGraphicsMatrix* ) {} | |
3654 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {} | |
3655 | wxRect2D GetBox() { return wxRect2D(0,0,0,0); } | |
3656 | ||
3657 | bool Contains( wxDouble , wxDouble , int ) { return false; } | |
3658 | bool Contains( const wxPoint2DDouble& , int ) { return false; } | |
3659 | }; | |
5c8c7dd3 | 3660 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3661 | |
3662 | ||
3663 | class wxGraphicsMatrix : public wxGraphicsObject | |
3664 | { | |
3665 | public : | |
3666 | wxGraphicsMatrix(wxGraphicsRenderer* ) { | |
3667 | PyErr_SetString(PyExc_NotImplementedError, | |
3668 | "wx.GraphicsMatrix is not available on this platform."); | |
3669 | } | |
3670 | virtual ~wxGraphicsMatrix() {} | |
70d7cb34 RD |
3671 | virtual void Concat( const wxGraphicsMatrix * ) {} |
3672 | virtual void Copy( const wxGraphicsMatrix * ) {} | |
3673 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , | |
3674 | wxDouble , wxDouble ) {} | |
3675 | virtual void Invert() {} | |
3676 | virtual bool IsEqual( const wxGraphicsMatrix* t) const {} | |
3677 | virtual bool IsIdentity() { return false; } | |
3678 | virtual void Translate( wxDouble , wxDouble ) {} | |
3679 | virtual void Scale( wxDouble , wxDouble ) {} | |
3680 | virtual void Rotate( wxDouble ) {} | |
3681 | virtual void TransformPoint( wxDouble *, wxDouble * ) {} | |
3682 | virtual void TransformDistance( wxDouble *, wxDouble * ) {} | |
3683 | virtual void * GetNativeMatrix() const { return NULL; } | |
72ef6efb | 3684 | }; |
5c8c7dd3 | 3685 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3686 | |
70d7cb34 RD |
3687 | |
3688 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3689 | { |
3690 | public: | |
70d7cb34 RD |
3691 | |
3692 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3693 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3694 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3695 | } |
70d7cb34 | 3696 | |
72ef6efb | 3697 | virtual ~wxGraphicsContext() {} |
70d7cb34 RD |
3698 | |
3699 | static wxGraphicsContext* Create( const wxWindowDC& ) { | |
72ef6efb | 3700 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3701 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3702 | } |
b876c1e4 | 3703 | |
70d7cb34 | 3704 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3705 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3706 | "wx.GraphicsContext is not available on this platform."); |
3707 | } | |
b876c1e4 | 3708 | |
70d7cb34 RD |
3709 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3710 | PyErr_SetString(PyExc_NotImplementedError, | |
3711 | "wx.GraphicsContext is not available on this platform."); | |
3712 | } | |
3713 | ||
3714 | static wxGraphicsContext* Create( wxWindow* ) { | |
3715 | PyErr_SetString(PyExc_NotImplementedError, | |
3716 | "wx.GraphicsContext is not available on this platform."); | |
3717 | } | |
3718 | ||
3719 | wxGraphicsPath * CreatePath() { return NULL; } | |
3720 | ||
3721 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; } | |
3722 | ||
3723 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; } | |
3724 | ||
3725 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
3726 | const wxColour&, const wxColour&) { return NULL; } | |
3727 | ||
3728 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3729 | wxDouble xc, wxDouble yc, wxDouble radius, | |
3730 | const wxColour &oColor, const wxColour &cColor) { return NULL; } | |
3731 | ||
3732 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; } | |
3733 | ||
3734 | virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, | |
3735 | wxDouble, wxDouble) { return NULL; } | |
3736 | ||
3737 | virtual void PushState() {} | |
3738 | virtual void PopState() {} | |
3739 | virtual void Clip( const wxRegion & ) {} | |
3740 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3741 | virtual void ResetClip() {} | |
3742 | virtual void * GetNativeContext() { return NULL; } | |
3743 | virtual void Translate( wxDouble , wxDouble ) {} | |
3744 | virtual void Scale( wxDouble , wxDouble ) {} | |
3745 | virtual void Rotate( wxDouble ) {} | |
3746 | virtual void ConcatTransform( const wxGraphicsMatrix* ) {} | |
3747 | virtual void SetTransform( const wxGraphicsMatrix* ) {} | |
3748 | virtual void GetTransform( wxGraphicsMatrix* ) {} | |
3749 | ||
3750 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3751 | void SetPen( const wxPen& ) {} | |
3752 | ||
3753 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3754 | void SetBrush( const wxBrush& ) {} | |
3755 | ||
3756 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3757 | void SetFont( const wxFont&, const wxColour& ) {} | |
3758 | ||
3759 | virtual void StrokePath( const wxGraphicsPath * ) {} | |
3760 | virtual void FillPath( const wxGraphicsPath *, int ) {} | |
3761 | virtual void DrawPath( const wxGraphicsPath *, int ) {} | |
3762 | ||
3763 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3764 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
3765 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, | |
3766 | wxDouble *, wxDouble * ) const {} | |
3767 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3768 | ||
3769 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3770 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3771 | ||
3772 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3773 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3774 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3775 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3776 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3777 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3778 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3779 | virtual bool ShouldOffset() const { return false; } | |
3780 | }; | |
3781 | ||
3782 | ||
3783 | class wxGraphicsRenderer : public wxObject | |
3784 | { | |
3785 | public : | |
3786 | wxGraphicsRenderer() { | |
3787 | PyErr_SetString(PyExc_NotImplementedError, | |
3788 | "wx.GraphicsRenderer is not available on this platform."); | |
3789 | } | |
3790 | ||
3791 | virtual ~wxGraphicsRenderer() {} | |
3792 | ||
3793 | static wxGraphicsRenderer* GetDefaultRenderer( | |
3794 | PyErr_SetString(PyExc_NotImplementedError, | |
3795 | "wx.GraphicsRenderer is not available on this platform."); | |
3796 | ); | |
3797 | ||
3798 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3799 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3800 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3801 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
3802 | ||
3803 | virtual wxGraphicsPath * CreatePath() { return NULL; } | |
3804 | ||
3805 | virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , | |
3806 | wxDouble , wxDouble ) { return NULL; } | |
3807 | ||
3808 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; } | |
3809 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; } | |
3810 | virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble , | |
3811 | const wxColour&, const wxColour&) { return wxNullGaphicsBrush; } | |
3812 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , | |
3813 | const wxColour &, const wxColour &) { return wxNullGaphicsBrush; } | |
3814 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; } | |
72ef6efb RD |
3815 | }; |
3816 | ||
3817 | ||
70d7cb34 | 3818 | |
72ef6efb RD |
3819 | class wxGCDC: public wxWindowDC |
3820 | { | |
3821 | public: | |
3822 | wxGCDC(const wxWindowDC&) { | |
3823 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3824 | PyErr_SetString(PyExc_NotImplementedError, | |
3825 | "wxGCDC is not available on this platform."); | |
3826 | wxPyEndBlockThreads(blocked); | |
3827 | } | |
70d7cb34 | 3828 | |
72ef6efb RD |
3829 | wxGCDC() { |
3830 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3831 | PyErr_SetString(PyExc_NotImplementedError, | |
3832 | "wxGCDC is not available on this platform."); | |
3833 | wxPyEndBlockThreads(blocked); | |
3834 | } | |
70d7cb34 | 3835 | |
72ef6efb RD |
3836 | virtual ~wxGCDC() {} |
3837 | ||
b876c1e4 RD |
3838 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3839 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3840 | }; |
3841 | ||
3842 | #endif | |
3843 | ||
5c8c7dd3 RD |
3844 | SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){ |
3845 | *self = t; | |
3846 | } | |
be68621e RD |
3847 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3848 | wxDouble width = 0.0, | |
3849 | height = 0.0; | |
3850 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3851 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3852 | PyObject* rv = PyTuple_New(2); | |
3853 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3854 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3855 | return rv; | |
3856 | } | |
b39fe951 RD |
3857 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3858 | wxArrayDouble widths; | |
3859 | self->GetPartialTextExtents(text, widths); | |
3860 | return widths; | |
3861 | } | |
f8eb59b9 | 3862 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3863 | size_t c1, c2, count; |
3864 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3865 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3866 | ||
3867 | if ( beginP != NULL && endP != NULL ) | |
3868 | { | |
3869 | count = wxMin(c1, c2); | |
3870 | self->StrokeLines(count, beginP, endP); | |
3871 | } | |
3872 | delete [] beginP; | |
3873 | delete [] endP; | |
3874 | } | |
72ef6efb | 3875 | |
0a27f394 RD |
3876 | #include "wx/dcgraph.h" |
3877 | ||
3878 | ||
66493fc7 RD |
3879 | #include <wx/overlay.h> |
3880 | ||
3881 | ||
093d3ff1 | 3882 | |
0085ce49 | 3883 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3884 | self->AddColour(name, wxColour(red, green, blue)); |
3885 | } | |
3886 | ||
50efceee RD |
3887 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3888 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3889 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3890 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3891 | ||
3892 | ||
093d3ff1 RD |
3893 | #include <wx/effects.h> |
3894 | ||
8d38bd1d RD |
3895 | |
3896 | #include "wx/renderer.h" | |
3897 | ||
3898 | ||
32fe5131 | 3899 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3900 | SWIG_From_bool (bool value) |
8d38bd1d | 3901 | { |
0085ce49 | 3902 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
3903 | } |
3904 | ||
27e45892 RD |
3905 | |
3906 | #include "wx/wxPython/pseudodc.h" | |
3907 | ||
3908 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3909 | wxRect rect; | |
3910 | self->GetIdBounds(id, rect); | |
3911 | return rect; | |
3912 | } | |
093d3ff1 RD |
3913 | #ifdef __cplusplus |
3914 | extern "C" { | |
3915 | #endif | |
0085ce49 RD |
3916 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3917 | PyObject *resultobj = 0; | |
3918 | wxGDIObject *result = 0 ; | |
3919 | ||
3920 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3921 | { | |
3922 | if (!wxPyCheckForApp()) SWIG_fail; | |
3923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3924 | result = (wxGDIObject *)new wxGDIObject(); | |
3925 | wxPyEndAllowThreads(__tstate); | |
3926 | if (PyErr_Occurred()) SWIG_fail; | |
3927 | } | |
3928 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3929 | return resultobj; | |
3930 | fail: | |
3931 | return NULL; | |
093d3ff1 RD |
3932 | } |
3933 | ||
3934 | ||
0085ce49 RD |
3935 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3936 | PyObject *resultobj = 0; | |
3937 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3938 | void *argp1 = 0 ; | |
3939 | int res1 = 0 ; | |
3940 | PyObject *swig_obj[1] ; | |
3941 | ||
3942 | if (!args) SWIG_fail; | |
3943 | swig_obj[0] = args; | |
3944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3945 | if (!SWIG_IsOK(res1)) { | |
3946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3947 | } | |
3948 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3949 | { | |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | delete arg1; | |
093d3ff1 | 3952 | |
0085ce49 RD |
3953 | wxPyEndAllowThreads(__tstate); |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | resultobj = SWIG_Py_Void(); | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
d14a1e28 RD |
3960 | } |
3961 | ||
3962 | ||
0085ce49 RD |
3963 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3964 | PyObject *resultobj = 0; | |
3965 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3966 | bool result; | |
3967 | void *argp1 = 0 ; | |
3968 | int res1 = 0 ; | |
3969 | PyObject *swig_obj[1] ; | |
3970 | ||
3971 | if (!args) SWIG_fail; | |
3972 | swig_obj[0] = args; | |
3973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3974 | if (!SWIG_IsOK(res1)) { | |
3975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3976 | } | |
3977 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3978 | { | |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | result = (bool)(arg1)->IsNull(); | |
3981 | wxPyEndAllowThreads(__tstate); | |
3982 | if (PyErr_Occurred()) SWIG_fail; | |
3983 | } | |
3984 | { | |
3985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3986 | } | |
3987 | return resultobj; | |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3994 | PyObject *obj; | |
3995 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3996 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
3997 | return SWIG_Py_Void(); | |
3998 | } | |
3999 | ||
4000 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4001 | return SWIG_Python_InitShadowInstance(args); | |
4002 | } | |
4003 | ||
4004 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4005 | PyObject *resultobj = 0; | |
4006 | byte arg1 = (byte) 0 ; | |
4007 | byte arg2 = (byte) 0 ; | |
4008 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4009 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4010 | wxColour *result = 0 ; |
4011 | unsigned char val1 ; | |
4012 | int ecode1 = 0 ; | |
4013 | unsigned char val2 ; | |
4014 | int ecode2 = 0 ; | |
4015 | unsigned char val3 ; | |
4016 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4017 | unsigned char val4 ; |
4018 | int ecode4 = 0 ; | |
0085ce49 RD |
4019 | PyObject * obj0 = 0 ; |
4020 | PyObject * obj1 = 0 ; | |
4021 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4022 | PyObject * obj3 = 0 ; |
0085ce49 | 4023 | char * kwnames[] = { |
fc46b7f3 | 4024 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4025 | }; |
4026 | ||
fc46b7f3 | 4027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
4028 | if (obj0) { |
4029 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4030 | if (!SWIG_IsOK(ecode1)) { | |
4031 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4032 | } | |
4033 | arg1 = static_cast< byte >(val1); | |
4034 | } | |
4035 | if (obj1) { | |
4036 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4037 | if (!SWIG_IsOK(ecode2)) { | |
4038 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4039 | } | |
4040 | arg2 = static_cast< byte >(val2); | |
4041 | } | |
4042 | if (obj2) { | |
4043 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4044 | if (!SWIG_IsOK(ecode3)) { | |
4045 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4046 | } | |
4047 | arg3 = static_cast< byte >(val3); | |
4048 | } | |
fc46b7f3 RD |
4049 | if (obj3) { |
4050 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4051 | if (!SWIG_IsOK(ecode4)) { | |
4052 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4053 | } | |
4054 | arg4 = static_cast< byte >(val4); | |
4055 | } | |
0085ce49 RD |
4056 | { |
4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4058 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
4059 | wxPyEndAllowThreads(__tstate); |
4060 | if (PyErr_Occurred()) SWIG_fail; | |
4061 | } | |
4062 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4063 | return resultobj; | |
4064 | fail: | |
4065 | return NULL; | |
d14a1e28 RD |
4066 | } |
4067 | ||
4068 | ||
0085ce49 RD |
4069 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4070 | PyObject *resultobj = 0; | |
4071 | wxString *arg1 = 0 ; | |
4072 | wxColour *result = 0 ; | |
4073 | bool temp1 = false ; | |
4074 | PyObject * obj0 = 0 ; | |
4075 | char * kwnames[] = { | |
4076 | (char *) "colorName", NULL | |
4077 | }; | |
4078 | ||
4079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4080 | { | |
4081 | arg1 = wxString_in_helper(obj0); | |
4082 | if (arg1 == NULL) SWIG_fail; | |
4083 | temp1 = true; | |
4084 | } | |
4085 | { | |
4086 | if (!wxPyCheckForApp()) SWIG_fail; | |
4087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4088 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4093 | { | |
4094 | if (temp1) | |
4095 | delete arg1; | |
4096 | } | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | { | |
4100 | if (temp1) | |
4101 | delete arg1; | |
4102 | } | |
4103 | return NULL; | |
d14a1e28 RD |
4104 | } |
4105 | ||
4106 | ||
0085ce49 RD |
4107 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4108 | PyObject *resultobj = 0; | |
4109 | unsigned long arg1 ; | |
4110 | wxColour *result = 0 ; | |
4111 | unsigned long val1 ; | |
4112 | int ecode1 = 0 ; | |
4113 | PyObject * obj0 = 0 ; | |
4114 | char * kwnames[] = { | |
4115 | (char *) "colRGB", NULL | |
4116 | }; | |
4117 | ||
4118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4119 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4120 | if (!SWIG_IsOK(ecode1)) { | |
4121 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4122 | } | |
4123 | arg1 = static_cast< unsigned long >(val1); | |
4124 | { | |
4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4126 | result = (wxColour *)new wxColour(arg1); | |
4127 | wxPyEndAllowThreads(__tstate); | |
4128 | if (PyErr_Occurred()) SWIG_fail; | |
4129 | } | |
4130 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4131 | return resultobj; | |
4132 | fail: | |
4133 | return NULL; | |
d14a1e28 RD |
4134 | } |
4135 | ||
4136 | ||
0085ce49 RD |
4137 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4138 | PyObject *resultobj = 0; | |
4139 | wxColour *arg1 = (wxColour *) 0 ; | |
4140 | void *argp1 = 0 ; | |
4141 | int res1 = 0 ; | |
4142 | PyObject *swig_obj[1] ; | |
4143 | ||
4144 | if (!args) SWIG_fail; | |
4145 | swig_obj[0] = args; | |
4146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4147 | if (!SWIG_IsOK(res1)) { | |
4148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4149 | } | |
4150 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4151 | { | |
4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4153 | delete arg1; | |
d14a1e28 | 4154 | |
0085ce49 RD |
4155 | wxPyEndAllowThreads(__tstate); |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
4158 | resultobj = SWIG_Py_Void(); | |
4159 | return resultobj; | |
4160 | fail: | |
4161 | return NULL; | |
d14a1e28 RD |
4162 | } |
4163 | ||
4164 | ||
0085ce49 RD |
4165 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4166 | PyObject *resultobj = 0; | |
4167 | wxColour *arg1 = (wxColour *) 0 ; | |
4168 | byte result; | |
4169 | void *argp1 = 0 ; | |
4170 | int res1 = 0 ; | |
4171 | PyObject *swig_obj[1] ; | |
4172 | ||
4173 | if (!args) SWIG_fail; | |
4174 | swig_obj[0] = args; | |
4175 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4176 | if (!SWIG_IsOK(res1)) { | |
4177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4178 | } | |
4179 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4180 | { | |
4181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4182 | result = (byte)(arg1)->Red(); | |
4183 | wxPyEndAllowThreads(__tstate); | |
4184 | if (PyErr_Occurred()) SWIG_fail; | |
4185 | } | |
4186 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4187 | return resultobj; | |
4188 | fail: | |
4189 | return NULL; | |
d14a1e28 RD |
4190 | } |
4191 | ||
4192 | ||
0085ce49 RD |
4193 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4194 | PyObject *resultobj = 0; | |
4195 | wxColour *arg1 = (wxColour *) 0 ; | |
4196 | byte result; | |
4197 | void *argp1 = 0 ; | |
4198 | int res1 = 0 ; | |
4199 | PyObject *swig_obj[1] ; | |
4200 | ||
4201 | if (!args) SWIG_fail; | |
4202 | swig_obj[0] = args; | |
4203 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4204 | if (!SWIG_IsOK(res1)) { | |
4205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4206 | } | |
4207 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4208 | { | |
4209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4210 | result = (byte)(arg1)->Green(); | |
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4215 | return resultobj; | |
4216 | fail: | |
4217 | return NULL; | |
5cbf236d RD |
4218 | } |
4219 | ||
4220 | ||
0085ce49 RD |
4221 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4222 | PyObject *resultobj = 0; | |
4223 | wxColour *arg1 = (wxColour *) 0 ; | |
4224 | byte result; | |
4225 | void *argp1 = 0 ; | |
4226 | int res1 = 0 ; | |
4227 | PyObject *swig_obj[1] ; | |
4228 | ||
4229 | if (!args) SWIG_fail; | |
4230 | swig_obj[0] = args; | |
4231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4232 | if (!SWIG_IsOK(res1)) { | |
4233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4234 | } | |
4235 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4236 | { | |
4237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4238 | result = (byte)(arg1)->Blue(); | |
4239 | wxPyEndAllowThreads(__tstate); | |
4240 | if (PyErr_Occurred()) SWIG_fail; | |
4241 | } | |
4242 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4243 | return resultobj; | |
4244 | fail: | |
4245 | return NULL; | |
d14a1e28 RD |
4246 | } |
4247 | ||
4248 | ||
fc46b7f3 RD |
4249 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4250 | PyObject *resultobj = 0; | |
4251 | wxColour *arg1 = (wxColour *) 0 ; | |
4252 | byte result; | |
4253 | void *argp1 = 0 ; | |
4254 | int res1 = 0 ; | |
4255 | PyObject *swig_obj[1] ; | |
4256 | ||
4257 | if (!args) SWIG_fail; | |
4258 | swig_obj[0] = args; | |
4259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4260 | if (!SWIG_IsOK(res1)) { | |
4261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4262 | } | |
4263 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4264 | { | |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | result = (byte)(arg1)->Alpha(); | |
4267 | wxPyEndAllowThreads(__tstate); | |
4268 | if (PyErr_Occurred()) SWIG_fail; | |
4269 | } | |
4270 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
b39fe951 | 4277 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4278 | PyObject *resultobj = 0; |
4279 | wxColour *arg1 = (wxColour *) 0 ; | |
4280 | bool result; | |
4281 | void *argp1 = 0 ; | |
4282 | int res1 = 0 ; | |
4283 | PyObject *swig_obj[1] ; | |
4284 | ||
4285 | if (!args) SWIG_fail; | |
4286 | swig_obj[0] = args; | |
4287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4288 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4290 | } |
4291 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4292 | { | |
4293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4294 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4295 | wxPyEndAllowThreads(__tstate); |
4296 | if (PyErr_Occurred()) SWIG_fail; | |
4297 | } | |
4298 | { | |
4299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4300 | } | |
4301 | return resultobj; | |
4302 | fail: | |
4303 | return NULL; | |
4304 | } | |
4305 | ||
4306 | ||
4307 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4308 | PyObject *resultobj = 0; | |
4309 | wxColour *arg1 = (wxColour *) 0 ; | |
4310 | byte arg2 ; | |
4311 | byte arg3 ; | |
4312 | byte arg4 ; | |
fc46b7f3 | 4313 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4314 | void *argp1 = 0 ; |
4315 | int res1 = 0 ; | |
4316 | unsigned char val2 ; | |
4317 | int ecode2 = 0 ; | |
4318 | unsigned char val3 ; | |
4319 | int ecode3 = 0 ; | |
4320 | unsigned char val4 ; | |
4321 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4322 | unsigned char val5 ; |
4323 | int ecode5 = 0 ; | |
0085ce49 RD |
4324 | PyObject * obj0 = 0 ; |
4325 | PyObject * obj1 = 0 ; | |
4326 | PyObject * obj2 = 0 ; | |
4327 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4328 | PyObject * obj4 = 0 ; |
0085ce49 | 4329 | char * kwnames[] = { |
fc46b7f3 | 4330 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4331 | }; |
4332 | ||
fc46b7f3 | 4333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4335 | if (!SWIG_IsOK(res1)) { | |
4336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4337 | } | |
4338 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4339 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4340 | if (!SWIG_IsOK(ecode2)) { | |
4341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4342 | } | |
4343 | arg2 = static_cast< byte >(val2); | |
4344 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4345 | if (!SWIG_IsOK(ecode3)) { | |
4346 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4347 | } | |
4348 | arg3 = static_cast< byte >(val3); | |
4349 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4350 | if (!SWIG_IsOK(ecode4)) { | |
4351 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4352 | } | |
4353 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4354 | if (obj4) { |
4355 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4356 | if (!SWIG_IsOK(ecode5)) { | |
4357 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4358 | } | |
4359 | arg5 = static_cast< byte >(val5); | |
4360 | } | |
0085ce49 RD |
4361 | { |
4362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4363 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4364 | wxPyEndAllowThreads(__tstate); |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
4366 | } | |
4367 | resultobj = SWIG_Py_Void(); | |
4368 | return resultobj; | |
4369 | fail: | |
4370 | return NULL; | |
4371 | } | |
4372 | ||
4373 | ||
4374 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4375 | PyObject *resultobj = 0; | |
4376 | wxColour *arg1 = (wxColour *) 0 ; | |
4377 | unsigned long arg2 ; | |
4378 | void *argp1 = 0 ; | |
4379 | int res1 = 0 ; | |
4380 | unsigned long val2 ; | |
4381 | int ecode2 = 0 ; | |
4382 | PyObject * obj0 = 0 ; | |
4383 | PyObject * obj1 = 0 ; | |
4384 | char * kwnames[] = { | |
4385 | (char *) "self",(char *) "colRGB", NULL | |
4386 | }; | |
4387 | ||
4388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4390 | if (!SWIG_IsOK(res1)) { | |
4391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4392 | } | |
4393 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4394 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4395 | if (!SWIG_IsOK(ecode2)) { | |
4396 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4397 | } | |
4398 | arg2 = static_cast< unsigned long >(val2); | |
4399 | { | |
4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4401 | (arg1)->Set(arg2); | |
4402 | wxPyEndAllowThreads(__tstate); | |
4403 | if (PyErr_Occurred()) SWIG_fail; | |
4404 | } | |
4405 | resultobj = SWIG_Py_Void(); | |
4406 | return resultobj; | |
4407 | fail: | |
4408 | return NULL; | |
4409 | } | |
4410 | ||
4411 | ||
4412 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4413 | PyObject *resultobj = 0; | |
4414 | wxColour *arg1 = (wxColour *) 0 ; | |
4415 | wxString *arg2 = 0 ; | |
4416 | void *argp1 = 0 ; | |
4417 | int res1 = 0 ; | |
4418 | bool temp2 = false ; | |
4419 | PyObject * obj0 = 0 ; | |
4420 | PyObject * obj1 = 0 ; | |
4421 | char * kwnames[] = { | |
4422 | (char *) "self",(char *) "colourName", NULL | |
4423 | }; | |
4424 | ||
4425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4427 | if (!SWIG_IsOK(res1)) { | |
4428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4429 | } | |
4430 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4431 | { | |
4432 | arg2 = wxString_in_helper(obj1); | |
4433 | if (arg2 == NULL) SWIG_fail; | |
4434 | temp2 = true; | |
4435 | } | |
4436 | { | |
4437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4438 | (arg1)->Set((wxString const &)*arg2); |
0085ce49 RD |
4439 | wxPyEndAllowThreads(__tstate); |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
4441 | } | |
4442 | resultobj = SWIG_Py_Void(); | |
4443 | { | |
4444 | if (temp2) | |
4445 | delete arg2; | |
4446 | } | |
4447 | return resultobj; | |
4448 | fail: | |
4449 | { | |
4450 | if (temp2) | |
4451 | delete arg2; | |
4452 | } | |
4453 | return NULL; | |
d14a1e28 RD |
4454 | } |
4455 | ||
4456 | ||
01f6b6d3 RD |
4457 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4458 | PyObject *resultobj = 0; | |
4459 | wxColour *arg1 = (wxColour *) 0 ; | |
4460 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4461 | wxString result; | |
4462 | void *argp1 = 0 ; | |
4463 | int res1 = 0 ; | |
4464 | long val2 ; | |
4465 | int ecode2 = 0 ; | |
4466 | PyObject * obj0 = 0 ; | |
4467 | PyObject * obj1 = 0 ; | |
4468 | char * kwnames[] = { | |
4469 | (char *) "self",(char *) "flags", NULL | |
4470 | }; | |
4471 | ||
4472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4474 | if (!SWIG_IsOK(res1)) { | |
4475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4476 | } | |
4477 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4478 | if (obj1) { | |
4479 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4480 | if (!SWIG_IsOK(ecode2)) { | |
4481 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4482 | } | |
4483 | arg2 = static_cast< long >(val2); | |
4484 | } | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | { | |
4492 | #if wxUSE_UNICODE | |
4493 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4494 | #else | |
4495 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4496 | #endif | |
4497 | } | |
4498 | return resultobj; | |
4499 | fail: | |
4500 | return NULL; | |
4501 | } | |
4502 | ||
4503 | ||
0085ce49 RD |
4504 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4505 | PyObject *resultobj = 0; | |
4506 | wxColour *arg1 = (wxColour *) 0 ; | |
4507 | long result; | |
4508 | void *argp1 = 0 ; | |
4509 | int res1 = 0 ; | |
4510 | PyObject *swig_obj[1] ; | |
4511 | ||
4512 | if (!args) SWIG_fail; | |
4513 | swig_obj[0] = args; | |
4514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4515 | if (!SWIG_IsOK(res1)) { | |
4516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4517 | } | |
4518 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4519 | { | |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4522 | wxPyEndAllowThreads(__tstate); | |
4523 | if (PyErr_Occurred()) SWIG_fail; | |
4524 | } | |
4525 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4526 | return resultobj; | |
4527 | fail: | |
4528 | return NULL; | |
4529 | } | |
4530 | ||
4531 | ||
4532 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4533 | PyObject *resultobj = 0; | |
4534 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4535 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4536 | bool result; |
4537 | void *argp1 = 0 ; | |
4538 | int res1 = 0 ; | |
0085ce49 RD |
4539 | PyObject * obj0 = 0 ; |
4540 | PyObject * obj1 = 0 ; | |
4541 | char * kwnames[] = { | |
e9d6f3a4 | 4542 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4543 | }; |
4544 | ||
4545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4547 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4549 | } |
4550 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4551 | arg2 = obj1; |
0085ce49 | 4552 | { |
e9d6f3a4 | 4553 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4554 | if (PyErr_Occurred()) SWIG_fail; |
4555 | } | |
4556 | { | |
4557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4558 | } | |
4559 | return resultobj; | |
4560 | fail: | |
4561 | return NULL; | |
4562 | } | |
4563 | ||
4564 | ||
4565 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4566 | PyObject *resultobj = 0; | |
4567 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4568 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4569 | bool result; |
4570 | void *argp1 = 0 ; | |
4571 | int res1 = 0 ; | |
0085ce49 RD |
4572 | PyObject * obj0 = 0 ; |
4573 | PyObject * obj1 = 0 ; | |
4574 | char * kwnames[] = { | |
e9d6f3a4 | 4575 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4576 | }; |
4577 | ||
4578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4580 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4582 | } |
4583 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4584 | arg2 = obj1; |
0085ce49 | 4585 | { |
e9d6f3a4 | 4586 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4587 | if (PyErr_Occurred()) SWIG_fail; |
4588 | } | |
4589 | { | |
4590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4591 | } | |
4592 | return resultobj; | |
4593 | fail: | |
4594 | return NULL; | |
d14a1e28 RD |
4595 | } |
4596 | ||
4597 | ||
fc46b7f3 | 4598 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4599 | PyObject *resultobj = 0; |
4600 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4601 | bool arg2 = (bool) false ; |
0085ce49 RD |
4602 | PyObject *result = 0 ; |
4603 | void *argp1 = 0 ; | |
4604 | int res1 = 0 ; | |
fc46b7f3 RD |
4605 | bool val2 ; |
4606 | int ecode2 = 0 ; | |
4607 | PyObject * obj0 = 0 ; | |
4608 | PyObject * obj1 = 0 ; | |
4609 | char * kwnames[] = { | |
4610 | (char *) "self",(char *) "includeAlpha", NULL | |
4611 | }; | |
0085ce49 | 4612 | |
fc46b7f3 RD |
4613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4615 | if (!SWIG_IsOK(res1)) { |
4616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4617 | } | |
4618 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4619 | if (obj1) { |
4620 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4621 | if (!SWIG_IsOK(ecode2)) { | |
4622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4623 | } | |
4624 | arg2 = static_cast< bool >(val2); | |
4625 | } | |
0085ce49 | 4626 | { |
fc46b7f3 | 4627 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4628 | if (PyErr_Occurred()) SWIG_fail; |
4629 | } | |
4630 | resultobj = result; | |
4631 | return resultobj; | |
4632 | fail: | |
4633 | return NULL; | |
d14a1e28 RD |
4634 | } |
4635 | ||
4636 | ||
0085ce49 RD |
4637 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4638 | PyObject *resultobj = 0; | |
4639 | wxColour *arg1 = (wxColour *) 0 ; | |
4640 | unsigned long result; | |
4641 | void *argp1 = 0 ; | |
4642 | int res1 = 0 ; | |
4643 | PyObject *swig_obj[1] ; | |
4644 | ||
4645 | if (!args) SWIG_fail; | |
4646 | swig_obj[0] = args; | |
4647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4648 | if (!SWIG_IsOK(res1)) { | |
4649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4650 | } | |
4651 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4652 | { | |
0085ce49 | 4653 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4654 | if (PyErr_Occurred()) SWIG_fail; |
4655 | } | |
4656 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4657 | return resultobj; | |
4658 | fail: | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4664 | PyObject *obj; | |
4665 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4666 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4667 | return SWIG_Py_Void(); | |
4668 | } | |
4669 | ||
4670 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4671 | return SWIG_Python_InitShadowInstance(args); | |
4672 | } | |
4673 | ||
4674 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj = 0; | |
4676 | int arg1 ; | |
4677 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4678 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4679 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4680 | wxPalette *result = 0 ; | |
4681 | int val1 ; | |
4682 | int ecode1 = 0 ; | |
4683 | void *argp2 = 0 ; | |
4684 | int res2 = 0 ; | |
4685 | void *argp3 = 0 ; | |
4686 | int res3 = 0 ; | |
4687 | void *argp4 = 0 ; | |
4688 | int res4 = 0 ; | |
4689 | PyObject * obj0 = 0 ; | |
4690 | PyObject * obj1 = 0 ; | |
4691 | PyObject * obj2 = 0 ; | |
4692 | PyObject * obj3 = 0 ; | |
4693 | char * kwnames[] = { | |
4694 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4695 | }; | |
4696 | ||
4697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4698 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4699 | if (!SWIG_IsOK(ecode1)) { | |
4700 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4701 | } | |
4702 | arg1 = static_cast< int >(val1); | |
4703 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4704 | if (!SWIG_IsOK(res2)) { | |
4705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4706 | } | |
4707 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4708 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4709 | if (!SWIG_IsOK(res3)) { | |
4710 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4711 | } | |
4712 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4713 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4714 | if (!SWIG_IsOK(res4)) { | |
4715 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4716 | } | |
4717 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4718 | { | |
4719 | if (!wxPyCheckForApp()) SWIG_fail; | |
4720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4721 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4722 | wxPyEndAllowThreads(__tstate); | |
4723 | if (PyErr_Occurred()) SWIG_fail; | |
4724 | } | |
4725 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4726 | return resultobj; | |
4727 | fail: | |
4728 | return NULL; | |
d14a1e28 RD |
4729 | } |
4730 | ||
4731 | ||
0085ce49 RD |
4732 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4733 | PyObject *resultobj = 0; | |
4734 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4735 | void *argp1 = 0 ; | |
4736 | int res1 = 0 ; | |
4737 | PyObject *swig_obj[1] ; | |
4738 | ||
4739 | if (!args) SWIG_fail; | |
4740 | swig_obj[0] = args; | |
4741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4742 | if (!SWIG_IsOK(res1)) { | |
4743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4744 | } | |
4745 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | delete arg1; | |
d14a1e28 | 4749 | |
0085ce49 RD |
4750 | wxPyEndAllowThreads(__tstate); |
4751 | if (PyErr_Occurred()) SWIG_fail; | |
4752 | } | |
4753 | resultobj = SWIG_Py_Void(); | |
4754 | return resultobj; | |
4755 | fail: | |
4756 | return NULL; | |
4757 | } | |
4758 | ||
4759 | ||
4760 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4761 | PyObject *resultobj = 0; | |
4762 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4763 | byte arg2 ; | |
4764 | byte arg3 ; | |
4765 | byte arg4 ; | |
4766 | int result; | |
4767 | void *argp1 = 0 ; | |
4768 | int res1 = 0 ; | |
4769 | unsigned char val2 ; | |
4770 | int ecode2 = 0 ; | |
4771 | unsigned char val3 ; | |
4772 | int ecode3 = 0 ; | |
4773 | unsigned char val4 ; | |
4774 | int ecode4 = 0 ; | |
4775 | PyObject * obj0 = 0 ; | |
4776 | PyObject * obj1 = 0 ; | |
4777 | PyObject * obj2 = 0 ; | |
4778 | PyObject * obj3 = 0 ; | |
4779 | char * kwnames[] = { | |
4780 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4781 | }; | |
4782 | ||
4783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4785 | if (!SWIG_IsOK(res1)) { | |
4786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4787 | } | |
4788 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4789 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4790 | if (!SWIG_IsOK(ecode2)) { | |
4791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4792 | } | |
4793 | arg2 = static_cast< byte >(val2); | |
4794 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4795 | if (!SWIG_IsOK(ecode3)) { | |
4796 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4797 | } | |
4798 | arg3 = static_cast< byte >(val3); | |
4799 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4800 | if (!SWIG_IsOK(ecode4)) { | |
4801 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4802 | } | |
4803 | arg4 = static_cast< byte >(val4); | |
4804 | { | |
4805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4806 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4807 | wxPyEndAllowThreads(__tstate); | |
4808 | if (PyErr_Occurred()) SWIG_fail; | |
4809 | } | |
4810 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4811 | return resultobj; | |
4812 | fail: | |
4813 | return NULL; | |
4814 | } | |
4815 | ||
4816 | ||
4817 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4818 | PyObject *resultobj = 0; | |
4819 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4820 | int arg2 ; | |
4821 | byte *arg3 = (byte *) 0 ; | |
4822 | byte *arg4 = (byte *) 0 ; | |
4823 | byte *arg5 = (byte *) 0 ; | |
4824 | bool result; | |
4825 | void *argp1 = 0 ; | |
4826 | int res1 = 0 ; | |
4827 | int val2 ; | |
4828 | int ecode2 = 0 ; | |
4829 | byte temp3 ; | |
4830 | int res3 = SWIG_TMPOBJ ; | |
4831 | byte temp4 ; | |
4832 | int res4 = SWIG_TMPOBJ ; | |
4833 | byte temp5 ; | |
4834 | int res5 = SWIG_TMPOBJ ; | |
4835 | PyObject * obj0 = 0 ; | |
4836 | PyObject * obj1 = 0 ; | |
4837 | char * kwnames[] = { | |
4838 | (char *) "self",(char *) "pixel", NULL | |
4839 | }; | |
4840 | ||
4841 | arg3 = &temp3; | |
4842 | arg4 = &temp4; | |
4843 | arg5 = &temp5; | |
4844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4846 | if (!SWIG_IsOK(res1)) { | |
4847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4848 | } | |
4849 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4851 | if (!SWIG_IsOK(ecode2)) { | |
4852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4853 | } | |
4854 | arg2 = static_cast< int >(val2); | |
4855 | { | |
4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4857 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | { | |
4862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4863 | } | |
4864 | if (SWIG_IsTmpObj(res3)) { | |
4865 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4866 | } else { | |
4867 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4868 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4869 | } | |
4870 | if (SWIG_IsTmpObj(res4)) { | |
4871 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4872 | } else { | |
4873 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4874 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4875 | } | |
4876 | if (SWIG_IsTmpObj(res5)) { | |
4877 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4878 | } else { | |
4879 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4880 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4881 | } | |
4882 | return resultobj; | |
4883 | fail: | |
4884 | return NULL; | |
d14a1e28 RD |
4885 | } |
4886 | ||
4887 | ||
0085ce49 RD |
4888 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4889 | PyObject *resultobj = 0; | |
4890 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4891 | int result; | |
4892 | void *argp1 = 0 ; | |
4893 | int res1 = 0 ; | |
4894 | PyObject *swig_obj[1] ; | |
4895 | ||
4896 | if (!args) SWIG_fail; | |
4897 | swig_obj[0] = args; | |
4898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4899 | if (!SWIG_IsOK(res1)) { | |
4900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4901 | } | |
4902 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4910 | return resultobj; | |
4911 | fail: | |
4912 | return NULL; | |
d14a1e28 RD |
4913 | } |
4914 | ||
4915 | ||
b39fe951 | 4916 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4917 | PyObject *resultobj = 0; |
4918 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4919 | bool result; | |
4920 | void *argp1 = 0 ; | |
4921 | int res1 = 0 ; | |
4922 | PyObject *swig_obj[1] ; | |
4923 | ||
4924 | if (!args) SWIG_fail; | |
4925 | swig_obj[0] = args; | |
4926 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4927 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
0085ce49 RD |
4929 | } |
4930 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4931 | { | |
4932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4933 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4934 | wxPyEndAllowThreads(__tstate); |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
4937 | { | |
4938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4939 | } | |
4940 | return resultobj; | |
4941 | fail: | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
4946 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4947 | PyObject *obj; | |
4948 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4949 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
4950 | return SWIG_Py_Void(); | |
4951 | } | |
4952 | ||
4953 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4954 | return SWIG_Python_InitShadowInstance(args); | |
4955 | } | |
4956 | ||
4957 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4958 | PyObject *resultobj = 0; | |
4959 | wxColour *arg1 = 0 ; | |
4960 | int arg2 = (int) 1 ; | |
4961 | int arg3 = (int) wxSOLID ; | |
4962 | wxPen *result = 0 ; | |
4963 | wxColour temp1 ; | |
4964 | int val2 ; | |
4965 | int ecode2 = 0 ; | |
4966 | int val3 ; | |
4967 | int ecode3 = 0 ; | |
4968 | PyObject * obj0 = 0 ; | |
4969 | PyObject * obj1 = 0 ; | |
4970 | PyObject * obj2 = 0 ; | |
4971 | char * kwnames[] = { | |
4972 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
4973 | }; | |
4974 | ||
4975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4976 | { | |
4977 | arg1 = &temp1; | |
4978 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4979 | } | |
4980 | if (obj1) { | |
4981 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4982 | if (!SWIG_IsOK(ecode2)) { | |
4983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
4984 | } | |
4985 | arg2 = static_cast< int >(val2); | |
4986 | } | |
4987 | if (obj2) { | |
4988 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4989 | if (!SWIG_IsOK(ecode3)) { | |
4990 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
4991 | } | |
4992 | arg3 = static_cast< int >(val3); | |
4993 | } | |
4994 | { | |
4995 | if (!wxPyCheckForApp()) SWIG_fail; | |
4996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4997 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
4998 | wxPyEndAllowThreads(__tstate); | |
4999 | if (PyErr_Occurred()) SWIG_fail; | |
5000 | } | |
5001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5002 | return resultobj; | |
5003 | fail: | |
5004 | return NULL; | |
d14a1e28 RD |
5005 | } |
5006 | ||
5007 | ||
0085ce49 RD |
5008 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5009 | PyObject *resultobj = 0; | |
5010 | wxPen *arg1 = (wxPen *) 0 ; | |
5011 | void *argp1 = 0 ; | |
5012 | int res1 = 0 ; | |
5013 | PyObject *swig_obj[1] ; | |
5014 | ||
5015 | if (!args) SWIG_fail; | |
5016 | swig_obj[0] = args; | |
5017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5018 | if (!SWIG_IsOK(res1)) { | |
5019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5020 | } | |
5021 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5022 | { | |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | delete arg1; | |
d14a1e28 | 5025 | |
0085ce49 RD |
5026 | wxPyEndAllowThreads(__tstate); |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | resultobj = SWIG_Py_Void(); | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | return NULL; | |
d14a1e28 RD |
5033 | } |
5034 | ||
5035 | ||
0085ce49 RD |
5036 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5037 | PyObject *resultobj = 0; | |
5038 | wxPen *arg1 = (wxPen *) 0 ; | |
5039 | int result; | |
5040 | void *argp1 = 0 ; | |
5041 | int res1 = 0 ; | |
5042 | PyObject *swig_obj[1] ; | |
5043 | ||
5044 | if (!args) SWIG_fail; | |
5045 | swig_obj[0] = args; | |
5046 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5047 | if (!SWIG_IsOK(res1)) { | |
5048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5049 | } | |
5050 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5051 | { | |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | result = (int)(arg1)->GetCap(); | |
5054 | wxPyEndAllowThreads(__tstate); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | } | |
5057 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5058 | return resultobj; | |
5059 | fail: | |
5060 | return NULL; | |
d14a1e28 RD |
5061 | } |
5062 | ||
5063 | ||
0085ce49 RD |
5064 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5065 | PyObject *resultobj = 0; | |
5066 | wxPen *arg1 = (wxPen *) 0 ; | |
5067 | wxColour result; | |
5068 | void *argp1 = 0 ; | |
5069 | int res1 = 0 ; | |
5070 | PyObject *swig_obj[1] ; | |
5071 | ||
5072 | if (!args) SWIG_fail; | |
5073 | swig_obj[0] = args; | |
5074 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5075 | if (!SWIG_IsOK(res1)) { | |
5076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5077 | } | |
5078 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5079 | { | |
5080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5081 | result = (arg1)->GetColour(); | |
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5086 | return resultobj; | |
5087 | fail: | |
5088 | return NULL; | |
d14a1e28 RD |
5089 | } |
5090 | ||
5091 | ||
0085ce49 RD |
5092 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5093 | PyObject *resultobj = 0; | |
5094 | wxPen *arg1 = (wxPen *) 0 ; | |
5095 | int result; | |
5096 | void *argp1 = 0 ; | |
5097 | int res1 = 0 ; | |
5098 | PyObject *swig_obj[1] ; | |
5099 | ||
5100 | if (!args) SWIG_fail; | |
5101 | swig_obj[0] = args; | |
5102 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5103 | if (!SWIG_IsOK(res1)) { | |
5104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5105 | } | |
5106 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5107 | { | |
5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5109 | result = (int)(arg1)->GetJoin(); | |
5110 | wxPyEndAllowThreads(__tstate); | |
5111 | if (PyErr_Occurred()) SWIG_fail; | |
5112 | } | |
5113 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5114 | return resultobj; | |
5115 | fail: | |
5116 | return NULL; | |
d14a1e28 RD |
5117 | } |
5118 | ||
5119 | ||
0085ce49 RD |
5120 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5121 | PyObject *resultobj = 0; | |
5122 | wxPen *arg1 = (wxPen *) 0 ; | |
5123 | int result; | |
5124 | void *argp1 = 0 ; | |
5125 | int res1 = 0 ; | |
5126 | PyObject *swig_obj[1] ; | |
5127 | ||
5128 | if (!args) SWIG_fail; | |
5129 | swig_obj[0] = args; | |
5130 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5131 | if (!SWIG_IsOK(res1)) { | |
5132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5133 | } | |
5134 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5135 | { | |
5136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5137 | result = (int)(arg1)->GetStyle(); | |
5138 | wxPyEndAllowThreads(__tstate); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | } | |
5141 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5142 | return resultobj; | |
5143 | fail: | |
5144 | return NULL; | |
3adfb63b RD |
5145 | } |
5146 | ||
5147 | ||
0085ce49 RD |
5148 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5149 | PyObject *resultobj = 0; | |
5150 | wxPen *arg1 = (wxPen *) 0 ; | |
5151 | int result; | |
5152 | void *argp1 = 0 ; | |
5153 | int res1 = 0 ; | |
5154 | PyObject *swig_obj[1] ; | |
5155 | ||
5156 | if (!args) SWIG_fail; | |
5157 | swig_obj[0] = args; | |
5158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5159 | if (!SWIG_IsOK(res1)) { | |
5160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5161 | } | |
5162 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | result = (int)(arg1)->GetWidth(); | |
5166 | wxPyEndAllowThreads(__tstate); | |
5167 | if (PyErr_Occurred()) SWIG_fail; | |
5168 | } | |
5169 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5170 | return resultobj; | |
5171 | fail: | |
5172 | return NULL; | |
d14a1e28 RD |
5173 | } |
5174 | ||
5175 | ||
b39fe951 | 5176 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5177 | PyObject *resultobj = 0; |
5178 | wxPen *arg1 = (wxPen *) 0 ; | |
5179 | bool result; | |
5180 | void *argp1 = 0 ; | |
5181 | int res1 = 0 ; | |
5182 | PyObject *swig_obj[1] ; | |
5183 | ||
5184 | if (!args) SWIG_fail; | |
5185 | swig_obj[0] = args; | |
5186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5187 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
0085ce49 RD |
5189 | } |
5190 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5191 | { | |
5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5193 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5194 | wxPyEndAllowThreads(__tstate); |
5195 | if (PyErr_Occurred()) SWIG_fail; | |
5196 | } | |
5197 | { | |
5198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5199 | } | |
5200 | return resultobj; | |
5201 | fail: | |
5202 | return NULL; | |
5203 | } | |
5204 | ||
5205 | ||
5206 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5207 | PyObject *resultobj = 0; | |
5208 | wxPen *arg1 = (wxPen *) 0 ; | |
5209 | int arg2 ; | |
5210 | void *argp1 = 0 ; | |
5211 | int res1 = 0 ; | |
5212 | int val2 ; | |
5213 | int ecode2 = 0 ; | |
5214 | PyObject * obj0 = 0 ; | |
5215 | PyObject * obj1 = 0 ; | |
5216 | char * kwnames[] = { | |
5217 | (char *) "self",(char *) "cap_style", NULL | |
5218 | }; | |
5219 | ||
5220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5222 | if (!SWIG_IsOK(res1)) { | |
5223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5224 | } | |
5225 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5226 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5227 | if (!SWIG_IsOK(ecode2)) { | |
5228 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5229 | } | |
5230 | arg2 = static_cast< int >(val2); | |
5231 | { | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | (arg1)->SetCap(arg2); | |
5234 | wxPyEndAllowThreads(__tstate); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | resultobj = SWIG_Py_Void(); | |
5238 | return resultobj; | |
5239 | fail: | |
5240 | return NULL; | |
5241 | } | |
5242 | ||
5243 | ||
5244 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5245 | PyObject *resultobj = 0; | |
5246 | wxPen *arg1 = (wxPen *) 0 ; | |
5247 | wxColour *arg2 = 0 ; | |
5248 | void *argp1 = 0 ; | |
5249 | int res1 = 0 ; | |
5250 | wxColour temp2 ; | |
5251 | PyObject * obj0 = 0 ; | |
5252 | PyObject * obj1 = 0 ; | |
5253 | char * kwnames[] = { | |
5254 | (char *) "self",(char *) "colour", NULL | |
5255 | }; | |
5256 | ||
5257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5259 | if (!SWIG_IsOK(res1)) { | |
5260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5261 | } | |
5262 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5263 | { | |
5264 | arg2 = &temp2; | |
5265 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5266 | } | |
5267 | { | |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5269 | (arg1)->SetColour(*arg2); | |
5270 | wxPyEndAllowThreads(__tstate); | |
5271 | if (PyErr_Occurred()) SWIG_fail; | |
5272 | } | |
5273 | resultobj = SWIG_Py_Void(); | |
5274 | return resultobj; | |
5275 | fail: | |
5276 | return NULL; | |
5277 | } | |
5278 | ||
5279 | ||
5280 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5281 | PyObject *resultobj = 0; | |
5282 | wxPen *arg1 = (wxPen *) 0 ; | |
5283 | int arg2 ; | |
5284 | void *argp1 = 0 ; | |
5285 | int res1 = 0 ; | |
5286 | int val2 ; | |
5287 | int ecode2 = 0 ; | |
5288 | PyObject * obj0 = 0 ; | |
5289 | PyObject * obj1 = 0 ; | |
5290 | char * kwnames[] = { | |
5291 | (char *) "self",(char *) "join_style", NULL | |
5292 | }; | |
5293 | ||
5294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5296 | if (!SWIG_IsOK(res1)) { | |
5297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5298 | } | |
5299 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5300 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5301 | if (!SWIG_IsOK(ecode2)) { | |
5302 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5303 | } | |
5304 | arg2 = static_cast< int >(val2); | |
5305 | { | |
5306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5307 | (arg1)->SetJoin(arg2); | |
5308 | wxPyEndAllowThreads(__tstate); | |
5309 | if (PyErr_Occurred()) SWIG_fail; | |
5310 | } | |
5311 | resultobj = SWIG_Py_Void(); | |
5312 | return resultobj; | |
5313 | fail: | |
5314 | return NULL; | |
5315 | } | |
5316 | ||
5317 | ||
5318 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5319 | PyObject *resultobj = 0; | |
5320 | wxPen *arg1 = (wxPen *) 0 ; | |
5321 | int arg2 ; | |
5322 | void *argp1 = 0 ; | |
5323 | int res1 = 0 ; | |
5324 | int val2 ; | |
5325 | int ecode2 = 0 ; | |
5326 | PyObject * obj0 = 0 ; | |
5327 | PyObject * obj1 = 0 ; | |
5328 | char * kwnames[] = { | |
5329 | (char *) "self",(char *) "style", NULL | |
5330 | }; | |
5331 | ||
5332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5334 | if (!SWIG_IsOK(res1)) { | |
5335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5336 | } | |
5337 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5338 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5339 | if (!SWIG_IsOK(ecode2)) { | |
5340 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5341 | } | |
5342 | arg2 = static_cast< int >(val2); | |
5343 | { | |
5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5345 | (arg1)->SetStyle(arg2); | |
5346 | wxPyEndAllowThreads(__tstate); | |
5347 | if (PyErr_Occurred()) SWIG_fail; | |
5348 | } | |
5349 | resultobj = SWIG_Py_Void(); | |
5350 | return resultobj; | |
5351 | fail: | |
5352 | return NULL; | |
5353 | } | |
5354 | ||
5355 | ||
5356 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5357 | PyObject *resultobj = 0; | |
5358 | wxPen *arg1 = (wxPen *) 0 ; | |
5359 | int arg2 ; | |
5360 | void *argp1 = 0 ; | |
5361 | int res1 = 0 ; | |
5362 | int val2 ; | |
5363 | int ecode2 = 0 ; | |
5364 | PyObject * obj0 = 0 ; | |
5365 | PyObject * obj1 = 0 ; | |
5366 | char * kwnames[] = { | |
5367 | (char *) "self",(char *) "width", NULL | |
5368 | }; | |
5369 | ||
5370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5372 | if (!SWIG_IsOK(res1)) { | |
5373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5374 | } | |
5375 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5376 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5377 | if (!SWIG_IsOK(ecode2)) { | |
5378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5379 | } | |
5380 | arg2 = static_cast< int >(val2); | |
5381 | { | |
5382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5383 | (arg1)->SetWidth(arg2); | |
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
5386 | } | |
5387 | resultobj = SWIG_Py_Void(); | |
5388 | return resultobj; | |
5389 | fail: | |
5390 | return NULL; | |
5391 | } | |
5392 | ||
5393 | ||
5394 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5395 | PyObject *resultobj = 0; | |
5396 | wxPen *arg1 = (wxPen *) 0 ; | |
5397 | int arg2 ; | |
5398 | wxDash *arg3 = (wxDash *) 0 ; | |
5399 | void *argp1 = 0 ; | |
5400 | int res1 = 0 ; | |
5401 | PyObject * obj0 = 0 ; | |
5402 | PyObject * obj1 = 0 ; | |
5403 | char * kwnames[] = { | |
5404 | (char *) "self",(char *) "dashes", NULL | |
5405 | }; | |
5406 | ||
5407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5409 | if (!SWIG_IsOK(res1)) { | |
5410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5411 | } | |
5412 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5413 | { | |
5414 | arg2 = PyList_Size(obj1); | |
5415 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5416 | if (arg3 == NULL) SWIG_fail; | |
5417 | } | |
5418 | { | |
5419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5420 | (arg1)->SetDashes(arg2,arg3); | |
5421 | wxPyEndAllowThreads(__tstate); | |
5422 | if (PyErr_Occurred()) SWIG_fail; | |
5423 | } | |
5424 | resultobj = SWIG_Py_Void(); | |
5425 | { | |
5426 | if (arg3) delete [] arg3; | |
5427 | } | |
5428 | return resultobj; | |
5429 | fail: | |
5430 | { | |
5431 | if (arg3) delete [] arg3; | |
5432 | } | |
5433 | return NULL; | |
d14a1e28 RD |
5434 | } |
5435 | ||
5436 | ||
0085ce49 RD |
5437 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5438 | PyObject *resultobj = 0; | |
5439 | wxPen *arg1 = (wxPen *) 0 ; | |
5440 | PyObject *result = 0 ; | |
5441 | void *argp1 = 0 ; | |
5442 | int res1 = 0 ; | |
5443 | PyObject *swig_obj[1] ; | |
5444 | ||
5445 | if (!args) SWIG_fail; | |
5446 | swig_obj[0] = args; | |
5447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5448 | if (!SWIG_IsOK(res1)) { | |
5449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5450 | } | |
5451 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5452 | { | |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5454 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5455 | wxPyEndAllowThreads(__tstate); | |
5456 | if (PyErr_Occurred()) SWIG_fail; | |
5457 | } | |
5458 | resultobj = result; | |
5459 | return resultobj; | |
5460 | fail: | |
5461 | return NULL; | |
5462 | } | |
5463 | ||
5464 | ||
5465 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5466 | PyObject *resultobj = 0; | |
5467 | wxPen *arg1 = (wxPen *) 0 ; | |
5468 | PyObject *arg2 = (PyObject *) 0 ; | |
5469 | PyObject *arg3 = (PyObject *) 0 ; | |
5470 | void *argp1 = 0 ; | |
5471 | int res1 = 0 ; | |
5472 | PyObject * obj0 = 0 ; | |
5473 | PyObject * obj1 = 0 ; | |
5474 | PyObject * obj2 = 0 ; | |
5475 | char * kwnames[] = { | |
5476 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5477 | }; | |
5478 | ||
5479 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5481 | if (!SWIG_IsOK(res1)) { | |
5482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5483 | } | |
5484 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5485 | arg2 = obj1; | |
5486 | arg3 = obj2; | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | wxPen__SetDashes(arg1,arg2,arg3); | |
5490 | wxPyEndAllowThreads(__tstate); | |
5491 | if (PyErr_Occurred()) SWIG_fail; | |
5492 | } | |
5493 | resultobj = SWIG_Py_Void(); | |
5494 | return resultobj; | |
5495 | fail: | |
5496 | return NULL; | |
d14a1e28 RD |
5497 | } |
5498 | ||
5499 | ||
0085ce49 RD |
5500 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5501 | PyObject *resultobj = 0; | |
5502 | wxPen *arg1 = (wxPen *) 0 ; | |
5503 | int result; | |
5504 | void *argp1 = 0 ; | |
5505 | int res1 = 0 ; | |
5506 | PyObject *swig_obj[1] ; | |
5507 | ||
5508 | if (!args) SWIG_fail; | |
5509 | swig_obj[0] = args; | |
5510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5511 | if (!SWIG_IsOK(res1)) { | |
5512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5513 | } | |
5514 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5515 | { | |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5517 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5518 | wxPyEndAllowThreads(__tstate); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | } | |
5521 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj = 0; | |
5530 | wxPen *arg1 = (wxPen *) 0 ; | |
5531 | wxPen *arg2 = (wxPen *) 0 ; | |
5532 | bool result; | |
5533 | void *argp1 = 0 ; | |
5534 | int res1 = 0 ; | |
5535 | void *argp2 = 0 ; | |
5536 | int res2 = 0 ; | |
5537 | PyObject * obj0 = 0 ; | |
5538 | PyObject * obj1 = 0 ; | |
5539 | char * kwnames[] = { | |
5540 | (char *) "self",(char *) "other", NULL | |
5541 | }; | |
5542 | ||
5543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5545 | if (!SWIG_IsOK(res1)) { | |
5546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5547 | } | |
5548 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5549 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5550 | if (!SWIG_IsOK(res2)) { | |
5551 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5552 | } | |
5553 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5554 | { | |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5557 | wxPyEndAllowThreads(__tstate); | |
5558 | if (PyErr_Occurred()) SWIG_fail; | |
5559 | } | |
5560 | { | |
5561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5562 | } | |
5563 | return resultobj; | |
5564 | fail: | |
5565 | return NULL; | |
5566 | } | |
5567 | ||
5568 | ||
5569 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5570 | PyObject *resultobj = 0; | |
5571 | wxPen *arg1 = (wxPen *) 0 ; | |
5572 | wxPen *arg2 = (wxPen *) 0 ; | |
5573 | bool result; | |
5574 | void *argp1 = 0 ; | |
5575 | int res1 = 0 ; | |
5576 | void *argp2 = 0 ; | |
5577 | int res2 = 0 ; | |
5578 | PyObject * obj0 = 0 ; | |
5579 | PyObject * obj1 = 0 ; | |
5580 | char * kwnames[] = { | |
5581 | (char *) "self",(char *) "other", NULL | |
5582 | }; | |
5583 | ||
5584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5586 | if (!SWIG_IsOK(res1)) { | |
5587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5588 | } | |
5589 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5590 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5591 | if (!SWIG_IsOK(res2)) { | |
5592 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5593 | } | |
5594 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5595 | { | |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5598 | wxPyEndAllowThreads(__tstate); | |
5599 | if (PyErr_Occurred()) SWIG_fail; | |
5600 | } | |
5601 | { | |
5602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5603 | } | |
5604 | return resultobj; | |
5605 | fail: | |
5606 | return NULL; | |
d14a1e28 RD |
5607 | } |
5608 | ||
5609 | ||
0085ce49 RD |
5610 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5611 | PyObject *obj; | |
5612 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5613 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5614 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5615 | } |
5616 | ||
0085ce49 RD |
5617 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5618 | return SWIG_Python_InitShadowInstance(args); | |
5619 | } | |
d14a1e28 | 5620 | |
0085ce49 RD |
5621 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5622 | PyObject *resultobj = 0; | |
5623 | wxColour *arg1 = 0 ; | |
5624 | int arg2 = (int) wxSOLID ; | |
5625 | wxBrush *result = 0 ; | |
5626 | wxColour temp1 ; | |
5627 | int val2 ; | |
5628 | int ecode2 = 0 ; | |
5629 | PyObject * obj0 = 0 ; | |
5630 | PyObject * obj1 = 0 ; | |
5631 | char * kwnames[] = { | |
5632 | (char *) "colour",(char *) "style", NULL | |
5633 | }; | |
5634 | ||
5635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5636 | { | |
5637 | arg1 = &temp1; | |
5638 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5639 | } | |
5640 | if (obj1) { | |
5641 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5642 | if (!SWIG_IsOK(ecode2)) { | |
5643 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5644 | } | |
5645 | arg2 = static_cast< int >(val2); | |
5646 | } | |
5647 | { | |
5648 | if (!wxPyCheckForApp()) SWIG_fail; | |
5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5650 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5651 | wxPyEndAllowThreads(__tstate); | |
5652 | if (PyErr_Occurred()) SWIG_fail; | |
5653 | } | |
5654 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5655 | return resultobj; | |
5656 | fail: | |
5657 | return NULL; | |
5658 | } | |
5659 | ||
5660 | ||
5661 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5662 | PyObject *resultobj = 0; | |
5663 | wxBitmap *arg1 = 0 ; | |
5664 | wxBrush *result = 0 ; | |
5665 | void *argp1 = 0 ; | |
5666 | int res1 = 0 ; | |
5667 | PyObject * obj0 = 0 ; | |
5668 | char * kwnames[] = { | |
5669 | (char *) "stippleBitmap", NULL | |
5670 | }; | |
5671 | ||
5672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5673 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5674 | if (!SWIG_IsOK(res1)) { | |
5675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5676 | } | |
5677 | if (!argp1) { | |
5678 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5679 | } | |
5680 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5681 | { | |
5682 | if (!wxPyCheckForApp()) SWIG_fail; | |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5684 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5685 | wxPyEndAllowThreads(__tstate); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
5688 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5689 | return resultobj; | |
5690 | fail: | |
5691 | return NULL; | |
d14a1e28 RD |
5692 | } |
5693 | ||
5694 | ||
0085ce49 RD |
5695 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5696 | PyObject *resultobj = 0; | |
5697 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5698 | void *argp1 = 0 ; | |
5699 | int res1 = 0 ; | |
5700 | PyObject *swig_obj[1] ; | |
5701 | ||
5702 | if (!args) SWIG_fail; | |
5703 | swig_obj[0] = args; | |
5704 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5705 | if (!SWIG_IsOK(res1)) { | |
5706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5707 | } | |
5708 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5709 | { | |
5710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5711 | delete arg1; | |
d14a1e28 | 5712 | |
0085ce49 RD |
5713 | wxPyEndAllowThreads(__tstate); |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
5716 | resultobj = SWIG_Py_Void(); | |
5717 | return resultobj; | |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
5723 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5724 | PyObject *resultobj = 0; | |
5725 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5726 | wxColour *arg2 = 0 ; | |
5727 | void *argp1 = 0 ; | |
5728 | int res1 = 0 ; | |
5729 | wxColour temp2 ; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | PyObject * obj1 = 0 ; | |
5732 | char * kwnames[] = { | |
5733 | (char *) "self",(char *) "col", NULL | |
5734 | }; | |
5735 | ||
5736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5738 | if (!SWIG_IsOK(res1)) { | |
5739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5740 | } | |
5741 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5742 | { | |
5743 | arg2 = &temp2; | |
5744 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5745 | } | |
5746 | { | |
5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5748 | (arg1)->SetColour((wxColour const &)*arg2); | |
5749 | wxPyEndAllowThreads(__tstate); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | resultobj = SWIG_Py_Void(); | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
5759 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj = 0; | |
5761 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5762 | int arg2 ; | |
5763 | void *argp1 = 0 ; | |
5764 | int res1 = 0 ; | |
5765 | int val2 ; | |
5766 | int ecode2 = 0 ; | |
5767 | PyObject * obj0 = 0 ; | |
5768 | PyObject * obj1 = 0 ; | |
5769 | char * kwnames[] = { | |
5770 | (char *) "self",(char *) "style", NULL | |
5771 | }; | |
5772 | ||
5773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5775 | if (!SWIG_IsOK(res1)) { | |
5776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5777 | } | |
5778 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5779 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5780 | if (!SWIG_IsOK(ecode2)) { | |
5781 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5782 | } | |
5783 | arg2 = static_cast< int >(val2); | |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | (arg1)->SetStyle(arg2); | |
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | resultobj = SWIG_Py_Void(); | |
5791 | return resultobj; | |
5792 | fail: | |
5793 | return NULL; | |
5794 | } | |
5795 | ||
5796 | ||
5797 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5798 | PyObject *resultobj = 0; | |
5799 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5800 | wxBitmap *arg2 = 0 ; | |
5801 | void *argp1 = 0 ; | |
5802 | int res1 = 0 ; | |
5803 | void *argp2 = 0 ; | |
5804 | int res2 = 0 ; | |
5805 | PyObject * obj0 = 0 ; | |
5806 | PyObject * obj1 = 0 ; | |
5807 | char * kwnames[] = { | |
5808 | (char *) "self",(char *) "stipple", NULL | |
5809 | }; | |
5810 | ||
5811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5813 | if (!SWIG_IsOK(res1)) { | |
5814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5815 | } | |
5816 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5817 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5818 | if (!SWIG_IsOK(res2)) { | |
5819 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5820 | } | |
5821 | if (!argp2) { | |
5822 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5823 | } | |
5824 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5825 | { | |
5826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5827 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5828 | wxPyEndAllowThreads(__tstate); | |
5829 | if (PyErr_Occurred()) SWIG_fail; | |
5830 | } | |
5831 | resultobj = SWIG_Py_Void(); | |
5832 | return resultobj; | |
5833 | fail: | |
5834 | return NULL; | |
d14a1e28 RD |
5835 | } |
5836 | ||
5837 | ||
0085ce49 RD |
5838 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5839 | PyObject *resultobj = 0; | |
5840 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5841 | wxColour result; | |
5842 | void *argp1 = 0 ; | |
5843 | int res1 = 0 ; | |
5844 | PyObject *swig_obj[1] ; | |
5845 | ||
5846 | if (!args) SWIG_fail; | |
5847 | swig_obj[0] = args; | |
5848 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5849 | if (!SWIG_IsOK(res1)) { | |
5850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5851 | } | |
5852 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5853 | { | |
5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5855 | result = ((wxBrush const *)arg1)->GetColour(); | |
5856 | wxPyEndAllowThreads(__tstate); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | } | |
5859 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5860 | return resultobj; | |
5861 | fail: | |
5862 | return NULL; | |
d14a1e28 RD |
5863 | } |
5864 | ||
5865 | ||
0085ce49 RD |
5866 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5867 | PyObject *resultobj = 0; | |
5868 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5869 | int result; | |
5870 | void *argp1 = 0 ; | |
5871 | int res1 = 0 ; | |
5872 | PyObject *swig_obj[1] ; | |
5873 | ||
5874 | if (!args) SWIG_fail; | |
5875 | swig_obj[0] = args; | |
5876 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5877 | if (!SWIG_IsOK(res1)) { | |
5878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5879 | } | |
5880 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5881 | { | |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5884 | wxPyEndAllowThreads(__tstate); | |
5885 | if (PyErr_Occurred()) SWIG_fail; | |
5886 | } | |
5887 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5888 | return resultobj; | |
5889 | fail: | |
5890 | return NULL; | |
d14a1e28 RD |
5891 | } |
5892 | ||
5893 | ||
0085ce49 RD |
5894 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5895 | PyObject *resultobj = 0; | |
5896 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5897 | wxBitmap *result = 0 ; | |
5898 | void *argp1 = 0 ; | |
5899 | int res1 = 0 ; | |
5900 | PyObject *swig_obj[1] ; | |
5901 | ||
5902 | if (!args) SWIG_fail; | |
5903 | swig_obj[0] = args; | |
5904 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5905 | if (!SWIG_IsOK(res1)) { | |
5906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5907 | } | |
5908 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | } | |
5915 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5916 | return resultobj; | |
5917 | fail: | |
5918 | return NULL; | |
d14a1e28 RD |
5919 | } |
5920 | ||
5921 | ||
0085ce49 RD |
5922 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5923 | PyObject *resultobj = 0; | |
5924 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5925 | bool result; | |
5926 | void *argp1 = 0 ; | |
5927 | int res1 = 0 ; | |
5928 | PyObject *swig_obj[1] ; | |
5929 | ||
5930 | if (!args) SWIG_fail; | |
5931 | swig_obj[0] = args; | |
5932 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5933 | if (!SWIG_IsOK(res1)) { | |
5934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5935 | } | |
5936 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5937 | { | |
5938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5939 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
5943 | { | |
5944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5945 | } | |
5946 | return resultobj; | |
5947 | fail: | |
5948 | return NULL; | |
f78cc896 RD |
5949 | } |
5950 | ||
5951 | ||
b39fe951 | 5952 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5953 | PyObject *resultobj = 0; |
5954 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5955 | bool result; | |
5956 | void *argp1 = 0 ; | |
5957 | int res1 = 0 ; | |
5958 | PyObject *swig_obj[1] ; | |
5959 | ||
5960 | if (!args) SWIG_fail; | |
5961 | swig_obj[0] = args; | |
5962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5963 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
0085ce49 RD |
5965 | } |
5966 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5967 | { | |
5968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5969 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5970 | wxPyEndAllowThreads(__tstate); |
5971 | if (PyErr_Occurred()) SWIG_fail; | |
5972 | } | |
5973 | { | |
5974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5975 | } | |
5976 | return resultobj; | |
5977 | fail: | |
5978 | return NULL; | |
d14a1e28 RD |
5979 | } |
5980 | ||
5981 | ||
0085ce49 RD |
5982 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5983 | PyObject *obj; | |
5984 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5985 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
5986 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5987 | } |
5988 | ||
0085ce49 RD |
5989 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5990 | return SWIG_Python_InitShadowInstance(args); | |
5991 | } | |
d14a1e28 | 5992 | |
0085ce49 RD |
5993 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5994 | PyObject *resultobj = 0; | |
5995 | wxString *arg1 = 0 ; | |
5996 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
5997 | wxBitmap *result = 0 ; | |
5998 | bool temp1 = false ; | |
5999 | int val2 ; | |
6000 | int ecode2 = 0 ; | |
6001 | PyObject * obj0 = 0 ; | |
6002 | PyObject * obj1 = 0 ; | |
6003 | char * kwnames[] = { | |
6004 | (char *) "name",(char *) "type", NULL | |
6005 | }; | |
6006 | ||
6007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6008 | { | |
6009 | arg1 = wxString_in_helper(obj0); | |
6010 | if (arg1 == NULL) SWIG_fail; | |
6011 | temp1 = true; | |
6012 | } | |
6013 | if (obj1) { | |
6014 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6015 | if (!SWIG_IsOK(ecode2)) { | |
6016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6017 | } | |
6018 | arg2 = static_cast< wxBitmapType >(val2); | |
6019 | } | |
6020 | { | |
6021 | if (!wxPyCheckForApp()) SWIG_fail; | |
6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6023 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6028 | { | |
6029 | if (temp1) | |
6030 | delete arg1; | |
6031 | } | |
6032 | return resultobj; | |
6033 | fail: | |
6034 | { | |
6035 | if (temp1) | |
6036 | delete arg1; | |
6037 | } | |
6038 | return NULL; | |
d14a1e28 RD |
6039 | } |
6040 | ||
6041 | ||
0085ce49 RD |
6042 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6043 | PyObject *resultobj = 0; | |
6044 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6045 | void *argp1 = 0 ; | |
6046 | int res1 = 0 ; | |
6047 | PyObject *swig_obj[1] ; | |
6048 | ||
6049 | if (!args) SWIG_fail; | |
6050 | swig_obj[0] = args; | |
6051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6052 | if (!SWIG_IsOK(res1)) { | |
6053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6054 | } | |
6055 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6056 | { | |
0085ce49 | 6057 | delete arg1; |
66c033b4 | 6058 | |
0085ce49 RD |
6059 | if (PyErr_Occurred()) SWIG_fail; |
6060 | } | |
6061 | resultobj = SWIG_Py_Void(); | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
6068 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6069 | PyObject *resultobj = 0; | |
6070 | int arg1 ; | |
6071 | int arg2 ; | |
6072 | int arg3 = (int) -1 ; | |
6073 | wxBitmap *result = 0 ; | |
6074 | int val1 ; | |
6075 | int ecode1 = 0 ; | |
6076 | int val2 ; | |
6077 | int ecode2 = 0 ; | |
6078 | int val3 ; | |
6079 | int ecode3 = 0 ; | |
6080 | PyObject * obj0 = 0 ; | |
6081 | PyObject * obj1 = 0 ; | |
6082 | PyObject * obj2 = 0 ; | |
6083 | char * kwnames[] = { | |
6084 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6085 | }; | |
6086 | ||
6087 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6088 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6089 | if (!SWIG_IsOK(ecode1)) { | |
6090 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6091 | } | |
6092 | arg1 = static_cast< int >(val1); | |
6093 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6094 | if (!SWIG_IsOK(ecode2)) { | |
6095 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6096 | } | |
6097 | arg2 = static_cast< int >(val2); | |
6098 | if (obj2) { | |
6099 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6100 | if (!SWIG_IsOK(ecode3)) { | |
6101 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6102 | } | |
6103 | arg3 = static_cast< int >(val3); | |
6104 | } | |
6105 | { | |
6106 | if (!wxPyCheckForApp()) SWIG_fail; | |
6107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6108 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6109 | wxPyEndAllowThreads(__tstate); | |
6110 | if (PyErr_Occurred()) SWIG_fail; | |
6111 | } | |
6112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6113 | return resultobj; | |
6114 | fail: | |
6115 | return NULL; | |
6116 | } | |
6117 | ||
6118 | ||
6119 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6120 | PyObject *resultobj = 0; | |
6121 | wxIcon *arg1 = 0 ; | |
6122 | wxBitmap *result = 0 ; | |
6123 | void *argp1 = 0 ; | |
6124 | int res1 = 0 ; | |
6125 | PyObject * obj0 = 0 ; | |
6126 | char * kwnames[] = { | |
6127 | (char *) "icon", NULL | |
6128 | }; | |
6129 | ||
6130 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6131 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6132 | if (!SWIG_IsOK(res1)) { | |
6133 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6134 | } | |
6135 | if (!argp1) { | |
6136 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6137 | } | |
6138 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6139 | { | |
6140 | if (!wxPyCheckForApp()) SWIG_fail; | |
6141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6142 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6143 | wxPyEndAllowThreads(__tstate); | |
6144 | if (PyErr_Occurred()) SWIG_fail; | |
6145 | } | |
6146 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6147 | return resultobj; | |
6148 | fail: | |
6149 | return NULL; | |
6150 | } | |
6151 | ||
6152 | ||
6153 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6154 | PyObject *resultobj = 0; | |
6155 | wxImage *arg1 = 0 ; | |
6156 | int arg2 = (int) -1 ; | |
6157 | wxBitmap *result = 0 ; | |
6158 | void *argp1 = 0 ; | |
6159 | int res1 = 0 ; | |
6160 | int val2 ; | |
6161 | int ecode2 = 0 ; | |
6162 | PyObject * obj0 = 0 ; | |
6163 | PyObject * obj1 = 0 ; | |
6164 | char * kwnames[] = { | |
6165 | (char *) "image",(char *) "depth", NULL | |
6166 | }; | |
6167 | ||
6168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6169 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6170 | if (!SWIG_IsOK(res1)) { | |
6171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6172 | } | |
6173 | if (!argp1) { | |
6174 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6175 | } | |
6176 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6177 | if (obj1) { | |
6178 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6179 | if (!SWIG_IsOK(ecode2)) { | |
6180 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6181 | } | |
6182 | arg2 = static_cast< int >(val2); | |
6183 | } | |
6184 | { | |
6185 | if (!wxPyCheckForApp()) SWIG_fail; | |
6186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6187 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6192 | return resultobj; | |
6193 | fail: | |
6194 | return NULL; | |
66c033b4 RD |
6195 | } |
6196 | ||
6197 | ||
0085ce49 RD |
6198 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6199 | PyObject *resultobj = 0; | |
6200 | PyObject *arg1 = (PyObject *) 0 ; | |
6201 | wxBitmap *result = 0 ; | |
6202 | PyObject * obj0 = 0 ; | |
6203 | char * kwnames[] = { | |
6204 | (char *) "listOfStrings", NULL | |
6205 | }; | |
6206 | ||
6207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6208 | arg1 = obj0; | |
6209 | { | |
6210 | if (!wxPyCheckForApp()) SWIG_fail; | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6213 | wxPyEndAllowThreads(__tstate); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
6215 | } | |
6216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6217 | return resultobj; | |
6218 | fail: | |
6219 | return NULL; | |
6220 | } | |
6221 | ||
6222 | ||
6223 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6224 | PyObject *resultobj = 0; | |
6225 | PyObject *arg1 = (PyObject *) 0 ; | |
6226 | int arg2 ; | |
6227 | int arg3 ; | |
6228 | int arg4 = (int) 1 ; | |
6229 | wxBitmap *result = 0 ; | |
6230 | int val2 ; | |
6231 | int ecode2 = 0 ; | |
6232 | int val3 ; | |
6233 | int ecode3 = 0 ; | |
6234 | int val4 ; | |
6235 | int ecode4 = 0 ; | |
6236 | PyObject * obj0 = 0 ; | |
6237 | PyObject * obj1 = 0 ; | |
6238 | PyObject * obj2 = 0 ; | |
6239 | PyObject * obj3 = 0 ; | |
6240 | char * kwnames[] = { | |
6241 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6242 | }; | |
6243 | ||
6244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6245 | arg1 = obj0; | |
6246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6247 | if (!SWIG_IsOK(ecode2)) { | |
6248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6249 | } | |
6250 | arg2 = static_cast< int >(val2); | |
6251 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6252 | if (!SWIG_IsOK(ecode3)) { | |
6253 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6254 | } | |
6255 | arg3 = static_cast< int >(val3); | |
6256 | if (obj3) { | |
6257 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6258 | if (!SWIG_IsOK(ecode4)) { | |
6259 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6260 | } | |
6261 | arg4 = static_cast< int >(val4); | |
6262 | } | |
6263 | { | |
6264 | if (!wxPyCheckForApp()) SWIG_fail; | |
6265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6266 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6267 | wxPyEndAllowThreads(__tstate); | |
6268 | if (PyErr_Occurred()) SWIG_fail; | |
6269 | } | |
6270 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6271 | return resultobj; | |
6272 | fail: | |
6273 | return NULL; | |
d14a1e28 RD |
6274 | } |
6275 | ||
6276 | ||
b39fe951 | 6277 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6278 | PyObject *resultobj = 0; |
6279 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6280 | bool result; | |
6281 | void *argp1 = 0 ; | |
6282 | int res1 = 0 ; | |
6283 | PyObject *swig_obj[1] ; | |
6284 | ||
6285 | if (!args) SWIG_fail; | |
6286 | swig_obj[0] = args; | |
6287 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6288 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
0085ce49 RD |
6290 | } |
6291 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6292 | { | |
b39fe951 | 6293 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6294 | if (PyErr_Occurred()) SWIG_fail; |
6295 | } | |
6296 | { | |
6297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6298 | } | |
6299 | return resultobj; | |
6300 | fail: | |
6301 | return NULL; | |
d14a1e28 RD |
6302 | } |
6303 | ||
6304 | ||
0085ce49 RD |
6305 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6306 | PyObject *resultobj = 0; | |
6307 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6308 | int result; | |
6309 | void *argp1 = 0 ; | |
6310 | int res1 = 0 ; | |
6311 | PyObject *swig_obj[1] ; | |
6312 | ||
6313 | if (!args) SWIG_fail; | |
6314 | swig_obj[0] = args; | |
6315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6316 | if (!SWIG_IsOK(res1)) { | |
6317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6318 | } | |
6319 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6320 | { | |
0085ce49 | 6321 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
6322 | if (PyErr_Occurred()) SWIG_fail; |
6323 | } | |
6324 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
d14a1e28 RD |
6328 | } |
6329 | ||
6330 | ||
0085ce49 RD |
6331 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6332 | PyObject *resultobj = 0; | |
6333 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6334 | int result; | |
6335 | void *argp1 = 0 ; | |
6336 | int res1 = 0 ; | |
6337 | PyObject *swig_obj[1] ; | |
6338 | ||
6339 | if (!args) SWIG_fail; | |
6340 | swig_obj[0] = args; | |
6341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6342 | if (!SWIG_IsOK(res1)) { | |
6343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6344 | } | |
6345 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6346 | { | |
0085ce49 | 6347 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6348 | if (PyErr_Occurred()) SWIG_fail; |
6349 | } | |
6350 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
d14a1e28 RD |
6354 | } |
6355 | ||
6356 | ||
0085ce49 RD |
6357 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6358 | PyObject *resultobj = 0; | |
6359 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6360 | int result; | |
6361 | void *argp1 = 0 ; | |
6362 | int res1 = 0 ; | |
6363 | PyObject *swig_obj[1] ; | |
6364 | ||
6365 | if (!args) SWIG_fail; | |
6366 | swig_obj[0] = args; | |
6367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6368 | if (!SWIG_IsOK(res1)) { | |
6369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6370 | } | |
6371 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6372 | { | |
0085ce49 | 6373 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6374 | if (PyErr_Occurred()) SWIG_fail; |
6375 | } | |
6376 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6377 | return resultobj; | |
6378 | fail: | |
6379 | return NULL; | |
d14a1e28 RD |
6380 | } |
6381 | ||
6382 | ||
0085ce49 RD |
6383 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6384 | PyObject *resultobj = 0; | |
6385 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6386 | wxSize result; | |
6387 | void *argp1 = 0 ; | |
6388 | int res1 = 0 ; | |
6389 | PyObject *swig_obj[1] ; | |
6390 | ||
6391 | if (!args) SWIG_fail; | |
6392 | swig_obj[0] = args; | |
6393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6394 | if (!SWIG_IsOK(res1)) { | |
6395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6396 | } | |
6397 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6398 | { | |
0085ce49 | 6399 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6400 | if (PyErr_Occurred()) SWIG_fail; |
6401 | } | |
6402 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6403 | return resultobj; | |
6404 | fail: | |
6405 | return NULL; | |
d14a1e28 RD |
6406 | } |
6407 | ||
6408 | ||
0085ce49 RD |
6409 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6410 | PyObject *resultobj = 0; | |
6411 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6412 | SwigValueWrapper<wxImage > result; | |
6413 | void *argp1 = 0 ; | |
6414 | int res1 = 0 ; | |
6415 | PyObject *swig_obj[1] ; | |
6416 | ||
6417 | if (!args) SWIG_fail; | |
6418 | swig_obj[0] = args; | |
6419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6420 | if (!SWIG_IsOK(res1)) { | |
6421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6422 | } | |
6423 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6424 | { | |
0085ce49 | 6425 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6426 | if (PyErr_Occurred()) SWIG_fail; |
6427 | } | |
6428 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6429 | return resultobj; | |
6430 | fail: | |
6431 | return NULL; | |
d14a1e28 RD |
6432 | } |
6433 | ||
6434 | ||
0085ce49 RD |
6435 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6436 | PyObject *resultobj = 0; | |
6437 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6438 | wxMask *result = 0 ; | |
6439 | void *argp1 = 0 ; | |
6440 | int res1 = 0 ; | |
6441 | PyObject *swig_obj[1] ; | |
6442 | ||
6443 | if (!args) SWIG_fail; | |
6444 | swig_obj[0] = args; | |
6445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6446 | if (!SWIG_IsOK(res1)) { | |
6447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6448 | } | |
6449 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6450 | { | |
0085ce49 | 6451 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6452 | if (PyErr_Occurred()) SWIG_fail; |
6453 | } | |
6454 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6455 | return resultobj; | |
6456 | fail: | |
6457 | return NULL; | |
6458 | } | |
6459 | ||
6460 | ||
6461 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6462 | PyObject *resultobj = 0; | |
6463 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6464 | wxMask *arg2 = (wxMask *) 0 ; | |
6465 | void *argp1 = 0 ; | |
6466 | int res1 = 0 ; | |
6467 | int res2 = 0 ; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | PyObject * obj1 = 0 ; | |
6470 | char * kwnames[] = { | |
6471 | (char *) "self",(char *) "mask", NULL | |
6472 | }; | |
6473 | ||
6474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6476 | if (!SWIG_IsOK(res1)) { | |
6477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6478 | } | |
6479 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6480 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6481 | if (!SWIG_IsOK(res2)) { | |
6482 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6483 | } | |
6484 | { | |
0085ce49 | 6485 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6486 | if (PyErr_Occurred()) SWIG_fail; |
6487 | } | |
6488 | resultobj = SWIG_Py_Void(); | |
6489 | return resultobj; | |
6490 | fail: | |
6491 | return NULL; | |
6492 | } | |
6493 | ||
6494 | ||
6495 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6496 | PyObject *resultobj = 0; | |
6497 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6498 | wxColour *arg2 = 0 ; | |
6499 | void *argp1 = 0 ; | |
6500 | int res1 = 0 ; | |
6501 | wxColour temp2 ; | |
6502 | PyObject * obj0 = 0 ; | |
6503 | PyObject * obj1 = 0 ; | |
6504 | char * kwnames[] = { | |
6505 | (char *) "self",(char *) "colour", NULL | |
6506 | }; | |
6507 | ||
6508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6510 | if (!SWIG_IsOK(res1)) { | |
6511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6512 | } | |
6513 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6514 | { | |
6515 | arg2 = &temp2; | |
6516 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6517 | } | |
6518 | { | |
0085ce49 | 6519 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6520 | if (PyErr_Occurred()) SWIG_fail; |
6521 | } | |
6522 | resultobj = SWIG_Py_Void(); | |
6523 | return resultobj; | |
6524 | fail: | |
6525 | return NULL; | |
6526 | } | |
6527 | ||
6528 | ||
6529 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6530 | PyObject *resultobj = 0; | |
6531 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6532 | wxRect *arg2 = 0 ; | |
6533 | SwigValueWrapper<wxBitmap > result; | |
6534 | void *argp1 = 0 ; | |
6535 | int res1 = 0 ; | |
6536 | wxRect temp2 ; | |
6537 | PyObject * obj0 = 0 ; | |
6538 | PyObject * obj1 = 0 ; | |
6539 | char * kwnames[] = { | |
6540 | (char *) "self",(char *) "rect", NULL | |
6541 | }; | |
6542 | ||
6543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6545 | if (!SWIG_IsOK(res1)) { | |
6546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6547 | } | |
6548 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6549 | { | |
6550 | arg2 = &temp2; | |
6551 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6552 | } | |
6553 | { | |
0085ce49 | 6554 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6555 | if (PyErr_Occurred()) SWIG_fail; |
6556 | } | |
6557 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6558 | return resultobj; | |
6559 | fail: | |
6560 | return NULL; | |
6561 | } | |
6562 | ||
6563 | ||
6564 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6565 | PyObject *resultobj = 0; | |
6566 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6567 | wxString *arg2 = 0 ; | |
6568 | wxBitmapType arg3 ; | |
6569 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6570 | bool result; | |
6571 | void *argp1 = 0 ; | |
6572 | int res1 = 0 ; | |
6573 | bool temp2 = false ; | |
6574 | int val3 ; | |
6575 | int ecode3 = 0 ; | |
6576 | void *argp4 = 0 ; | |
6577 | int res4 = 0 ; | |
6578 | PyObject * obj0 = 0 ; | |
6579 | PyObject * obj1 = 0 ; | |
6580 | PyObject * obj2 = 0 ; | |
6581 | PyObject * obj3 = 0 ; | |
6582 | char * kwnames[] = { | |
6583 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6584 | }; | |
6585 | ||
6586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6588 | if (!SWIG_IsOK(res1)) { | |
6589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6590 | } | |
6591 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6592 | { | |
6593 | arg2 = wxString_in_helper(obj1); | |
6594 | if (arg2 == NULL) SWIG_fail; | |
6595 | temp2 = true; | |
6596 | } | |
6597 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6598 | if (!SWIG_IsOK(ecode3)) { | |
6599 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6600 | } | |
6601 | arg3 = static_cast< wxBitmapType >(val3); | |
6602 | if (obj3) { | |
6603 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6604 | if (!SWIG_IsOK(res4)) { | |
6605 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6606 | } |
0085ce49 RD |
6607 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6608 | } | |
6609 | { | |
0085ce49 | 6610 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6611 | if (PyErr_Occurred()) SWIG_fail; |
6612 | } | |
6613 | { | |
6614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6615 | } | |
6616 | { | |
6617 | if (temp2) | |
6618 | delete arg2; | |
6619 | } | |
6620 | return resultobj; | |
6621 | fail: | |
6622 | { | |
6623 | if (temp2) | |
6624 | delete arg2; | |
6625 | } | |
6626 | return NULL; | |
6627 | } | |
6628 | ||
6629 | ||
6630 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6631 | PyObject *resultobj = 0; | |
6632 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6633 | wxString *arg2 = 0 ; | |
6634 | wxBitmapType arg3 ; | |
6635 | bool result; | |
6636 | void *argp1 = 0 ; | |
6637 | int res1 = 0 ; | |
6638 | bool temp2 = false ; | |
6639 | int val3 ; | |
6640 | int ecode3 = 0 ; | |
6641 | PyObject * obj0 = 0 ; | |
6642 | PyObject * obj1 = 0 ; | |
6643 | PyObject * obj2 = 0 ; | |
6644 | char * kwnames[] = { | |
6645 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6646 | }; | |
6647 | ||
6648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6650 | if (!SWIG_IsOK(res1)) { | |
6651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6652 | } | |
6653 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6654 | { | |
6655 | arg2 = wxString_in_helper(obj1); | |
6656 | if (arg2 == NULL) SWIG_fail; | |
6657 | temp2 = true; | |
6658 | } | |
6659 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6660 | if (!SWIG_IsOK(ecode3)) { | |
6661 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6662 | } | |
6663 | arg3 = static_cast< wxBitmapType >(val3); | |
6664 | { | |
0085ce49 | 6665 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6666 | if (PyErr_Occurred()) SWIG_fail; |
6667 | } | |
6668 | { | |
6669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6670 | } | |
6671 | { | |
6672 | if (temp2) | |
6673 | delete arg2; | |
6674 | } | |
6675 | return resultobj; | |
6676 | fail: | |
6677 | { | |
6678 | if (temp2) | |
6679 | delete arg2; | |
6680 | } | |
6681 | return NULL; | |
d04418a7 RD |
6682 | } |
6683 | ||
6684 | ||
0085ce49 RD |
6685 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6686 | PyObject *resultobj = 0; | |
6687 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6688 | wxPalette *result = 0 ; | |
6689 | void *argp1 = 0 ; | |
6690 | int res1 = 0 ; | |
6691 | PyObject *swig_obj[1] ; | |
6692 | ||
6693 | if (!args) SWIG_fail; | |
6694 | swig_obj[0] = args; | |
6695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6696 | if (!SWIG_IsOK(res1)) { | |
6697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6698 | } | |
6699 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6700 | { | |
0085ce49 | 6701 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6702 | if (PyErr_Occurred()) SWIG_fail; |
6703 | } | |
6704 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6705 | return resultobj; | |
6706 | fail: | |
6707 | return NULL; | |
6708 | } | |
6709 | ||
6710 | ||
6711 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6712 | PyObject *resultobj = 0; | |
6713 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6714 | wxIcon *arg2 = 0 ; | |
6715 | bool result; | |
6716 | void *argp1 = 0 ; | |
6717 | int res1 = 0 ; | |
6718 | void *argp2 = 0 ; | |
6719 | int res2 = 0 ; | |
6720 | PyObject * obj0 = 0 ; | |
6721 | PyObject * obj1 = 0 ; | |
6722 | char * kwnames[] = { | |
6723 | (char *) "self",(char *) "icon", NULL | |
6724 | }; | |
6725 | ||
6726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6728 | if (!SWIG_IsOK(res1)) { | |
6729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6730 | } | |
6731 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6732 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6733 | if (!SWIG_IsOK(res2)) { | |
6734 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6735 | } | |
6736 | if (!argp2) { | |
6737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6738 | } | |
6739 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6740 | { | |
0085ce49 | 6741 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6742 | if (PyErr_Occurred()) SWIG_fail; |
6743 | } | |
6744 | { | |
6745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6746 | } | |
6747 | return resultobj; | |
6748 | fail: | |
6749 | return NULL; | |
6750 | } | |
6751 | ||
6752 | ||
6753 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6754 | PyObject *resultobj = 0; | |
6755 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6756 | int arg2 ; | |
6757 | void *argp1 = 0 ; | |
6758 | int res1 = 0 ; | |
6759 | int val2 ; | |
6760 | int ecode2 = 0 ; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | PyObject * obj1 = 0 ; | |
6763 | char * kwnames[] = { | |
6764 | (char *) "self",(char *) "height", NULL | |
6765 | }; | |
6766 | ||
6767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6769 | if (!SWIG_IsOK(res1)) { | |
6770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6771 | } | |
6772 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6773 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6774 | if (!SWIG_IsOK(ecode2)) { | |
6775 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6776 | } | |
6777 | arg2 = static_cast< int >(val2); | |
6778 | { | |
0085ce49 | 6779 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6780 | if (PyErr_Occurred()) SWIG_fail; |
6781 | } | |
6782 | resultobj = SWIG_Py_Void(); | |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6790 | PyObject *resultobj = 0; | |
6791 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6792 | int arg2 ; | |
6793 | void *argp1 = 0 ; | |
6794 | int res1 = 0 ; | |
6795 | int val2 ; | |
6796 | int ecode2 = 0 ; | |
6797 | PyObject * obj0 = 0 ; | |
6798 | PyObject * obj1 = 0 ; | |
6799 | char * kwnames[] = { | |
6800 | (char *) "self",(char *) "width", NULL | |
6801 | }; | |
6802 | ||
6803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6805 | if (!SWIG_IsOK(res1)) { | |
6806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6807 | } | |
6808 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6809 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6810 | if (!SWIG_IsOK(ecode2)) { | |
6811 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6812 | } | |
6813 | arg2 = static_cast< int >(val2); | |
6814 | { | |
0085ce49 | 6815 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6816 | if (PyErr_Occurred()) SWIG_fail; |
6817 | } | |
6818 | resultobj = SWIG_Py_Void(); | |
6819 | return resultobj; | |
6820 | fail: | |
6821 | return NULL; | |
6822 | } | |
6823 | ||
6824 | ||
6825 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6826 | PyObject *resultobj = 0; | |
6827 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6828 | int arg2 ; | |
6829 | void *argp1 = 0 ; | |
6830 | int res1 = 0 ; | |
6831 | int val2 ; | |
6832 | int ecode2 = 0 ; | |
6833 | PyObject * obj0 = 0 ; | |
6834 | PyObject * obj1 = 0 ; | |
6835 | char * kwnames[] = { | |
6836 | (char *) "self",(char *) "depth", NULL | |
6837 | }; | |
6838 | ||
6839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6841 | if (!SWIG_IsOK(res1)) { | |
6842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6843 | } | |
6844 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6846 | if (!SWIG_IsOK(ecode2)) { | |
6847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6848 | } | |
6849 | arg2 = static_cast< int >(val2); | |
6850 | { | |
0085ce49 | 6851 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6852 | if (PyErr_Occurred()) SWIG_fail; |
6853 | } | |
6854 | resultobj = SWIG_Py_Void(); | |
6855 | return resultobj; | |
6856 | fail: | |
6857 | return NULL; | |
6858 | } | |
6859 | ||
6860 | ||
6861 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6862 | PyObject *resultobj = 0; | |
6863 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6864 | wxSize *arg2 = 0 ; | |
6865 | void *argp1 = 0 ; | |
6866 | int res1 = 0 ; | |
6867 | wxSize temp2 ; | |
6868 | PyObject * obj0 = 0 ; | |
6869 | PyObject * obj1 = 0 ; | |
6870 | char * kwnames[] = { | |
6871 | (char *) "self",(char *) "size", NULL | |
6872 | }; | |
6873 | ||
6874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6876 | if (!SWIG_IsOK(res1)) { | |
6877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6878 | } | |
6879 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6880 | { | |
6881 | arg2 = &temp2; | |
6882 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6883 | } | |
6884 | { | |
0085ce49 | 6885 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6886 | if (PyErr_Occurred()) SWIG_fail; |
6887 | } | |
6888 | resultobj = SWIG_Py_Void(); | |
6889 | return resultobj; | |
6890 | fail: | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6896 | PyObject *resultobj = 0; | |
6897 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6898 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6899 | bool result; | |
6900 | void *argp1 = 0 ; | |
6901 | int res1 = 0 ; | |
6902 | void *argp2 = 0 ; | |
6903 | int res2 = 0 ; | |
6904 | PyObject * obj0 = 0 ; | |
6905 | PyObject * obj1 = 0 ; | |
6906 | char * kwnames[] = { | |
6907 | (char *) "self",(char *) "other", NULL | |
6908 | }; | |
6909 | ||
6910 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6912 | if (!SWIG_IsOK(res1)) { | |
6913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6914 | } | |
6915 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6916 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6917 | if (!SWIG_IsOK(res2)) { | |
6918 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6919 | } | |
6920 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6921 | { | |
0085ce49 | 6922 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
6923 | if (PyErr_Occurred()) SWIG_fail; |
6924 | } | |
6925 | { | |
fc46b7f3 RD |
6926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
6927 | } | |
6928 | return resultobj; | |
6929 | fail: | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
6934 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6935 | PyObject *resultobj = 0; | |
6936 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6937 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6938 | bool result; | |
6939 | void *argp1 = 0 ; | |
6940 | int res1 = 0 ; | |
6941 | void *argp2 = 0 ; | |
6942 | int res2 = 0 ; | |
6943 | PyObject * obj0 = 0 ; | |
6944 | PyObject * obj1 = 0 ; | |
6945 | char * kwnames[] = { | |
6946 | (char *) "self",(char *) "other", NULL | |
6947 | }; | |
6948 | ||
6949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6951 | if (!SWIG_IsOK(res1)) { | |
6952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6953 | } | |
6954 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6955 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6956 | if (!SWIG_IsOK(res2)) { | |
6957 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6958 | } | |
6959 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6960 | { | |
6961 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
6962 | if (PyErr_Occurred()) SWIG_fail; | |
6963 | } | |
6964 | { | |
6965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6966 | } | |
6967 | return resultobj; | |
6968 | fail: | |
6969 | return NULL; | |
6970 | } | |
6971 | ||
6972 | ||
6973 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6974 | PyObject *obj; | |
6975 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6976 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
6977 | return SWIG_Py_Void(); | |
6978 | } | |
6979 | ||
6980 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6981 | return SWIG_Python_InitShadowInstance(args); | |
6982 | } | |
6983 | ||
6984 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6985 | PyObject *resultobj = 0; | |
6986 | int arg1 ; | |
6987 | int arg2 ; | |
6988 | buffer arg3 ; | |
6989 | int arg4 ; | |
6990 | buffer arg5 ; | |
6991 | int arg6 ; | |
6992 | wxBitmap *result = 0 ; | |
6993 | int val1 ; | |
6994 | int ecode1 = 0 ; | |
6995 | int val2 ; | |
6996 | int ecode2 = 0 ; | |
c79fdf86 RD |
6997 | Py_ssize_t temp3 ; |
6998 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
6999 | PyObject * obj0 = 0 ; |
7000 | PyObject * obj1 = 0 ; | |
7001 | PyObject * obj2 = 0 ; | |
7002 | PyObject * obj3 = 0 ; | |
7003 | char * kwnames[] = { | |
7004 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7005 | }; | |
7006 | ||
7007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7008 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7009 | if (!SWIG_IsOK(ecode1)) { | |
7010 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7011 | } | |
7012 | arg1 = static_cast< int >(val1); | |
7013 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7014 | if (!SWIG_IsOK(ecode2)) { | |
7015 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7016 | } | |
7017 | arg2 = static_cast< int >(val2); | |
7018 | { | |
c79fdf86 RD |
7019 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7020 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7021 | } |
7022 | { | |
7023 | if (obj3 != Py_None) { | |
c79fdf86 RD |
7024 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7025 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7026 | } |
7027 | } | |
7028 | { | |
7029 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7033 | return resultobj; | |
7034 | fail: | |
7035 | return NULL; | |
7036 | } | |
7037 | ||
7038 | ||
7039 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7040 | PyObject *resultobj = 0; | |
7041 | int arg1 ; | |
7042 | int arg2 ; | |
7043 | buffer arg3 ; | |
7044 | int arg4 ; | |
7045 | wxBitmap *result = 0 ; | |
7046 | int val1 ; | |
7047 | int ecode1 = 0 ; | |
7048 | int val2 ; | |
7049 | int ecode2 = 0 ; | |
c79fdf86 | 7050 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7051 | PyObject * obj0 = 0 ; |
7052 | PyObject * obj1 = 0 ; | |
7053 | PyObject * obj2 = 0 ; | |
7054 | char * kwnames[] = { | |
7055 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7056 | }; | |
7057 | ||
7058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7059 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7060 | if (!SWIG_IsOK(ecode1)) { | |
7061 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7062 | } | |
7063 | arg1 = static_cast< int >(val1); | |
7064 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7065 | if (!SWIG_IsOK(ecode2)) { | |
7066 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7067 | } | |
7068 | arg2 = static_cast< int >(val2); | |
7069 | { | |
c79fdf86 RD |
7070 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7071 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7072 | } |
7073 | { | |
7074 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7075 | if (PyErr_Occurred()) SWIG_fail; | |
7076 | } | |
7077 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
7084 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7085 | PyObject *resultobj = 0; | |
7086 | int arg1 ; | |
7087 | int arg2 ; | |
7088 | buffer arg3 ; | |
7089 | int arg4 ; | |
7090 | wxBitmap *result = 0 ; | |
7091 | int val1 ; | |
7092 | int ecode1 = 0 ; | |
7093 | int val2 ; | |
7094 | int ecode2 = 0 ; | |
c79fdf86 | 7095 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7096 | PyObject * obj0 = 0 ; |
7097 | PyObject * obj1 = 0 ; | |
7098 | PyObject * obj2 = 0 ; | |
7099 | char * kwnames[] = { | |
7100 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7101 | }; | |
7102 | ||
7103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7104 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7105 | if (!SWIG_IsOK(ecode1)) { | |
7106 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7107 | } | |
7108 | arg1 = static_cast< int >(val1); | |
7109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7110 | if (!SWIG_IsOK(ecode2)) { | |
7111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7112 | } | |
7113 | arg2 = static_cast< int >(val2); | |
7114 | { | |
c79fdf86 RD |
7115 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7116 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7117 | } |
7118 | { | |
7119 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7120 | if (PyErr_Occurred()) SWIG_fail; | |
7121 | } | |
7122 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7123 | return resultobj; | |
7124 | fail: | |
7125 | return NULL; | |
7126 | } | |
7127 | ||
7128 | ||
7129 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7130 | PyObject *resultobj = 0; | |
7131 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7132 | wxPoint result; | |
7133 | void *argp1 = 0 ; | |
7134 | int res1 = 0 ; | |
7135 | PyObject *swig_obj[1] ; | |
7136 | ||
7137 | if (!args) SWIG_fail; | |
7138 | swig_obj[0] = args; | |
7139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7140 | if (!SWIG_IsOK(res1)) { | |
7141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7142 | } | |
7143 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7144 | { | |
7145 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
7148 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7149 | return resultobj; | |
7150 | fail: | |
7151 | return NULL; | |
7152 | } | |
7153 | ||
7154 | ||
7155 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7156 | PyObject *resultobj = 0; | |
7157 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7158 | int result; | |
7159 | void *argp1 = 0 ; | |
7160 | int res1 = 0 ; | |
7161 | PyObject *swig_obj[1] ; | |
7162 | ||
7163 | if (!args) SWIG_fail; | |
7164 | swig_obj[0] = args; | |
7165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7166 | if (!SWIG_IsOK(res1)) { | |
7167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7168 | } | |
7169 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7170 | { | |
7171 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7175 | return resultobj; | |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7182 | PyObject *resultobj = 0; | |
7183 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7184 | int result; | |
7185 | void *argp1 = 0 ; | |
7186 | int res1 = 0 ; | |
7187 | PyObject *swig_obj[1] ; | |
7188 | ||
7189 | if (!args) SWIG_fail; | |
7190 | swig_obj[0] = args; | |
7191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7192 | if (!SWIG_IsOK(res1)) { | |
7193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7194 | } | |
7195 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7196 | { | |
7197 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | } | |
7200 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7201 | return resultobj; | |
7202 | fail: | |
7203 | return NULL; | |
7204 | } | |
7205 | ||
7206 | ||
7207 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7208 | PyObject *resultobj = 0; | |
7209 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7210 | wxSize result; | |
7211 | void *argp1 = 0 ; | |
7212 | int res1 = 0 ; | |
7213 | PyObject *swig_obj[1] ; | |
7214 | ||
7215 | if (!args) SWIG_fail; | |
7216 | swig_obj[0] = args; | |
7217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7218 | if (!SWIG_IsOK(res1)) { | |
7219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7220 | } | |
7221 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7222 | { | |
7223 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7224 | if (PyErr_Occurred()) SWIG_fail; | |
7225 | } | |
7226 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7227 | return resultobj; | |
7228 | fail: | |
7229 | return NULL; | |
7230 | } | |
7231 | ||
7232 | ||
7233 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7234 | PyObject *resultobj = 0; | |
7235 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7236 | int result; | |
7237 | void *argp1 = 0 ; | |
7238 | int res1 = 0 ; | |
7239 | PyObject *swig_obj[1] ; | |
7240 | ||
7241 | if (!args) SWIG_fail; | |
7242 | swig_obj[0] = args; | |
7243 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7244 | if (!SWIG_IsOK(res1)) { | |
7245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7246 | } | |
7247 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7248 | { | |
7249 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
7252 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7253 | return resultobj; | |
7254 | fail: | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
7259 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7260 | PyObject *obj; | |
7261 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7262 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7263 | return SWIG_Py_Void(); | |
7264 | } | |
7265 | ||
7266 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7267 | PyObject *resultobj = 0; | |
7268 | wxBitmap *arg1 = 0 ; | |
7269 | wxNativePixelData *result = 0 ; | |
7270 | void *argp1 = 0 ; | |
7271 | int res1 = 0 ; | |
7272 | ||
7273 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7275 | if (!SWIG_IsOK(res1)) { | |
7276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7277 | } | |
7278 | if (!argp1) { | |
7279 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7280 | } | |
7281 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7282 | { | |
7283 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7287 | return resultobj; | |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7294 | PyObject *resultobj = 0; | |
7295 | wxBitmap *arg1 = 0 ; | |
7296 | wxRect *arg2 = 0 ; | |
7297 | wxNativePixelData *result = 0 ; | |
7298 | void *argp1 = 0 ; | |
7299 | int res1 = 0 ; | |
7300 | wxRect temp2 ; | |
7301 | ||
7302 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7303 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7304 | if (!SWIG_IsOK(res1)) { | |
7305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7306 | } | |
7307 | if (!argp1) { | |
7308 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7309 | } | |
7310 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7311 | { | |
7312 | arg2 = &temp2; | |
7313 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7314 | } | |
7315 | { | |
7316 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
7319 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7320 | return resultobj; | |
7321 | fail: | |
7322 | return NULL; | |
7323 | } | |
7324 | ||
7325 | ||
7326 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7327 | PyObject *resultobj = 0; | |
7328 | wxBitmap *arg1 = 0 ; | |
7329 | wxPoint *arg2 = 0 ; | |
7330 | wxSize *arg3 = 0 ; | |
7331 | wxNativePixelData *result = 0 ; | |
7332 | void *argp1 = 0 ; | |
7333 | int res1 = 0 ; | |
7334 | wxPoint temp2 ; | |
7335 | wxSize temp3 ; | |
7336 | ||
7337 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7339 | if (!SWIG_IsOK(res1)) { | |
7340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7341 | } | |
7342 | if (!argp1) { | |
7343 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7344 | } | |
7345 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7346 | { | |
7347 | arg2 = &temp2; | |
7348 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7349 | } | |
7350 | { | |
7351 | arg3 = &temp3; | |
7352 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7353 | } | |
7354 | { | |
7355 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | } | |
7358 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7359 | return resultobj; | |
7360 | fail: | |
7361 | return NULL; | |
7362 | } | |
7363 | ||
7364 | ||
7365 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7366 | int argc; | |
7367 | PyObject *argv[4]; | |
7368 | ||
7369 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7370 | --argc; | |
7371 | if (argc == 1) { | |
7372 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7373 | } | |
7374 | if (argc == 2) { | |
7375 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7376 | } | |
7377 | if (argc == 3) { | |
7378 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7379 | } | |
7380 | ||
7381 | fail: | |
7382 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7383 | return NULL; | |
7384 | } | |
7385 | ||
7386 | ||
7387 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7388 | PyObject *resultobj = 0; | |
7389 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7390 | void *argp1 = 0 ; | |
7391 | int res1 = 0 ; | |
7392 | PyObject *swig_obj[1] ; | |
7393 | ||
7394 | if (!args) SWIG_fail; | |
7395 | swig_obj[0] = args; | |
7396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7397 | if (!SWIG_IsOK(res1)) { | |
7398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7399 | } | |
7400 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7401 | { | |
7402 | delete arg1; | |
7403 | ||
7404 | if (PyErr_Occurred()) SWIG_fail; | |
7405 | } | |
7406 | resultobj = SWIG_Py_Void(); | |
7407 | return resultobj; | |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
7413 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7414 | PyObject *resultobj = 0; | |
7415 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7416 | wxNativePixelData_Accessor result; | |
7417 | void *argp1 = 0 ; | |
7418 | int res1 = 0 ; | |
7419 | PyObject *swig_obj[1] ; | |
7420 | ||
7421 | if (!args) SWIG_fail; | |
7422 | swig_obj[0] = args; | |
7423 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7424 | if (!SWIG_IsOK(res1)) { | |
7425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7426 | } | |
7427 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7428 | { | |
7429 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7430 | if (PyErr_Occurred()) SWIG_fail; | |
7431 | } | |
7432 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7433 | return resultobj; | |
7434 | fail: | |
7435 | return NULL; | |
7436 | } | |
7437 | ||
7438 | ||
7439 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7440 | PyObject *resultobj = 0; | |
7441 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7442 | void *argp1 = 0 ; | |
7443 | int res1 = 0 ; | |
7444 | PyObject *swig_obj[1] ; | |
7445 | ||
7446 | if (!args) SWIG_fail; | |
7447 | swig_obj[0] = args; | |
7448 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7449 | if (!SWIG_IsOK(res1)) { | |
7450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7451 | } | |
7452 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7453 | { | |
7454 | (arg1)->UseAlpha(); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
7457 | resultobj = SWIG_Py_Void(); | |
7458 | return resultobj; | |
7459 | fail: | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
7464 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7465 | PyObject *resultobj = 0; | |
7466 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7467 | bool result; | |
7468 | void *argp1 = 0 ; | |
7469 | int res1 = 0 ; | |
7470 | PyObject *swig_obj[1] ; | |
7471 | ||
7472 | if (!args) SWIG_fail; | |
7473 | swig_obj[0] = args; | |
7474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7475 | if (!SWIG_IsOK(res1)) { | |
7476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7477 | } | |
7478 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7479 | { | |
7480 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7481 | if (PyErr_Occurred()) SWIG_fail; | |
7482 | } | |
7483 | { | |
7484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7485 | } | |
7486 | return resultobj; | |
7487 | fail: | |
7488 | return NULL; | |
7489 | } | |
7490 | ||
7491 | ||
7492 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7493 | PyObject *obj; | |
7494 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7495 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7496 | return SWIG_Py_Void(); | |
7497 | } | |
7498 | ||
7499 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7500 | return SWIG_Python_InitShadowInstance(args); | |
7501 | } | |
7502 | ||
7503 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7504 | PyObject *resultobj = 0; | |
7505 | wxNativePixelData *arg1 = 0 ; | |
7506 | wxNativePixelData_Accessor *result = 0 ; | |
7507 | void *argp1 = 0 ; | |
7508 | int res1 = 0 ; | |
7509 | ||
7510 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7512 | if (!SWIG_IsOK(res1)) { | |
7513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7514 | } | |
7515 | if (!argp1) { | |
7516 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7517 | } | |
7518 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7519 | { | |
7520 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
7523 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7524 | return resultobj; | |
7525 | fail: | |
7526 | return NULL; | |
7527 | } | |
7528 | ||
7529 | ||
7530 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7531 | PyObject *resultobj = 0; | |
7532 | wxBitmap *arg1 = 0 ; | |
7533 | wxNativePixelData *arg2 = 0 ; | |
7534 | wxNativePixelData_Accessor *result = 0 ; | |
7535 | void *argp1 = 0 ; | |
7536 | int res1 = 0 ; | |
7537 | void *argp2 = 0 ; | |
7538 | int res2 = 0 ; | |
7539 | ||
7540 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7542 | if (!SWIG_IsOK(res1)) { | |
7543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7544 | } | |
7545 | if (!argp1) { | |
7546 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7547 | } | |
7548 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7549 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7550 | if (!SWIG_IsOK(res2)) { | |
7551 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7552 | } | |
7553 | if (!argp2) { | |
7554 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7555 | } | |
7556 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7557 | { | |
7558 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7562 | return resultobj; | |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7569 | PyObject *resultobj = 0; | |
7570 | wxNativePixelData_Accessor *result = 0 ; | |
7571 | ||
7572 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7573 | { | |
7574 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7578 | return resultobj; | |
7579 | fail: | |
7580 | return NULL; | |
7581 | } | |
7582 | ||
7583 | ||
7584 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7585 | int argc; | |
7586 | PyObject *argv[3]; | |
7587 | ||
7588 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7589 | --argc; | |
7590 | if (argc == 0) { | |
7591 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7592 | } | |
7593 | if (argc == 1) { | |
7594 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7595 | } | |
7596 | if (argc == 2) { | |
7597 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7598 | } | |
7599 | ||
7600 | fail: | |
7601 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7607 | PyObject *resultobj = 0; | |
7608 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7609 | void *argp1 = 0 ; | |
7610 | int res1 = 0 ; | |
7611 | PyObject *swig_obj[1] ; | |
7612 | ||
7613 | if (!args) SWIG_fail; | |
7614 | swig_obj[0] = args; | |
7615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7616 | if (!SWIG_IsOK(res1)) { | |
7617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7618 | } | |
7619 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7620 | { | |
7621 | delete arg1; | |
7622 | ||
7623 | if (PyErr_Occurred()) SWIG_fail; | |
7624 | } | |
7625 | resultobj = SWIG_Py_Void(); | |
7626 | return resultobj; | |
7627 | fail: | |
7628 | return NULL; | |
7629 | } | |
7630 | ||
7631 | ||
7632 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7633 | PyObject *resultobj = 0; | |
7634 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7635 | wxNativePixelData *arg2 = 0 ; | |
7636 | void *argp1 = 0 ; | |
7637 | int res1 = 0 ; | |
7638 | void *argp2 = 0 ; | |
7639 | int res2 = 0 ; | |
7640 | PyObject * obj0 = 0 ; | |
7641 | PyObject * obj1 = 0 ; | |
7642 | char * kwnames[] = { | |
7643 | (char *) "self",(char *) "data", NULL | |
7644 | }; | |
7645 | ||
7646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7648 | if (!SWIG_IsOK(res1)) { | |
7649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7650 | } | |
7651 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7652 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7653 | if (!SWIG_IsOK(res2)) { | |
7654 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7655 | } | |
7656 | if (!argp2) { | |
7657 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7658 | } | |
7659 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7660 | { | |
7661 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7662 | if (PyErr_Occurred()) SWIG_fail; | |
7663 | } | |
7664 | resultobj = SWIG_Py_Void(); | |
7665 | return resultobj; | |
7666 | fail: | |
7667 | return NULL; | |
7668 | } | |
7669 | ||
7670 | ||
7671 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7672 | PyObject *resultobj = 0; | |
7673 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7674 | bool result; | |
7675 | void *argp1 = 0 ; | |
7676 | int res1 = 0 ; | |
7677 | PyObject *swig_obj[1] ; | |
7678 | ||
7679 | if (!args) SWIG_fail; | |
7680 | swig_obj[0] = args; | |
7681 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7682 | if (!SWIG_IsOK(res1)) { | |
7683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7684 | } | |
7685 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7686 | { | |
7687 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7688 | if (PyErr_Occurred()) SWIG_fail; | |
7689 | } | |
7690 | { | |
7691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7692 | } | |
7693 | return resultobj; | |
7694 | fail: | |
7695 | return NULL; | |
7696 | } | |
7697 | ||
7698 | ||
7699 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7700 | PyObject *resultobj = 0; | |
7701 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7702 | void *argp1 = 0 ; | |
7703 | int res1 = 0 ; | |
7704 | PyObject *swig_obj[1] ; | |
7705 | ||
7706 | if (!args) SWIG_fail; | |
7707 | swig_obj[0] = args; | |
7708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7709 | if (!SWIG_IsOK(res1)) { | |
7710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7711 | } | |
7712 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7713 | { | |
7714 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7715 | if (PyErr_Occurred()) SWIG_fail; | |
7716 | } | |
7717 | resultobj = SWIG_Py_Void(); | |
7718 | return resultobj; | |
7719 | fail: | |
7720 | return NULL; | |
7721 | } | |
7722 | ||
7723 | ||
7724 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7725 | PyObject *resultobj = 0; | |
7726 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7727 | wxNativePixelData *arg2 = 0 ; | |
7728 | int arg3 ; | |
7729 | int arg4 ; | |
7730 | void *argp1 = 0 ; | |
7731 | int res1 = 0 ; | |
7732 | void *argp2 = 0 ; | |
7733 | int res2 = 0 ; | |
7734 | int val3 ; | |
7735 | int ecode3 = 0 ; | |
7736 | int val4 ; | |
7737 | int ecode4 = 0 ; | |
7738 | PyObject * obj0 = 0 ; | |
7739 | PyObject * obj1 = 0 ; | |
7740 | PyObject * obj2 = 0 ; | |
7741 | PyObject * obj3 = 0 ; | |
7742 | char * kwnames[] = { | |
7743 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7744 | }; | |
7745 | ||
7746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7748 | if (!SWIG_IsOK(res1)) { | |
7749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7750 | } | |
7751 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7752 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7753 | if (!SWIG_IsOK(res2)) { | |
7754 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7755 | } | |
7756 | if (!argp2) { | |
7757 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7758 | } | |
7759 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7760 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7761 | if (!SWIG_IsOK(ecode3)) { | |
7762 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7763 | } | |
7764 | arg3 = static_cast< int >(val3); | |
7765 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7766 | if (!SWIG_IsOK(ecode4)) { | |
7767 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7768 | } | |
7769 | arg4 = static_cast< int >(val4); | |
7770 | { | |
7771 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7772 | if (PyErr_Occurred()) SWIG_fail; | |
7773 | } | |
7774 | resultobj = SWIG_Py_Void(); | |
7775 | return resultobj; | |
7776 | fail: | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
7781 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7782 | PyObject *resultobj = 0; | |
7783 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7784 | wxNativePixelData *arg2 = 0 ; | |
7785 | int arg3 ; | |
7786 | void *argp1 = 0 ; | |
7787 | int res1 = 0 ; | |
7788 | void *argp2 = 0 ; | |
7789 | int res2 = 0 ; | |
7790 | int val3 ; | |
7791 | int ecode3 = 0 ; | |
7792 | PyObject * obj0 = 0 ; | |
7793 | PyObject * obj1 = 0 ; | |
7794 | PyObject * obj2 = 0 ; | |
7795 | char * kwnames[] = { | |
7796 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7797 | }; | |
7798 | ||
7799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7801 | if (!SWIG_IsOK(res1)) { | |
7802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7803 | } | |
7804 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7805 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7806 | if (!SWIG_IsOK(res2)) { | |
7807 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7808 | } | |
7809 | if (!argp2) { | |
7810 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7811 | } | |
7812 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7813 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7814 | if (!SWIG_IsOK(ecode3)) { | |
7815 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7816 | } | |
7817 | arg3 = static_cast< int >(val3); | |
7818 | { | |
7819 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7820 | if (PyErr_Occurred()) SWIG_fail; | |
7821 | } | |
7822 | resultobj = SWIG_Py_Void(); | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
7829 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7830 | PyObject *resultobj = 0; | |
7831 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7832 | wxNativePixelData *arg2 = 0 ; | |
7833 | int arg3 ; | |
7834 | void *argp1 = 0 ; | |
7835 | int res1 = 0 ; | |
7836 | void *argp2 = 0 ; | |
7837 | int res2 = 0 ; | |
7838 | int val3 ; | |
7839 | int ecode3 = 0 ; | |
7840 | PyObject * obj0 = 0 ; | |
7841 | PyObject * obj1 = 0 ; | |
7842 | PyObject * obj2 = 0 ; | |
7843 | char * kwnames[] = { | |
7844 | (char *) "self",(char *) "data",(char *) "y", NULL | |
7845 | }; | |
7846 | ||
7847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7849 | if (!SWIG_IsOK(res1)) { | |
7850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7851 | } | |
7852 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7853 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7854 | if (!SWIG_IsOK(res2)) { | |
7855 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7856 | } | |
7857 | if (!argp2) { | |
7858 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7859 | } | |
7860 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7861 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7862 | if (!SWIG_IsOK(ecode3)) { | |
7863 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
7864 | } | |
7865 | arg3 = static_cast< int >(val3); | |
7866 | { | |
7867 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | resultobj = SWIG_Py_Void(); | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj = 0; | |
7879 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7880 | wxNativePixelData *arg2 = 0 ; | |
7881 | int arg3 ; | |
7882 | int arg4 ; | |
7883 | void *argp1 = 0 ; | |
7884 | int res1 = 0 ; | |
7885 | void *argp2 = 0 ; | |
7886 | int res2 = 0 ; | |
7887 | int val3 ; | |
7888 | int ecode3 = 0 ; | |
7889 | int val4 ; | |
7890 | int ecode4 = 0 ; | |
7891 | PyObject * obj0 = 0 ; | |
7892 | PyObject * obj1 = 0 ; | |
7893 | PyObject * obj2 = 0 ; | |
7894 | PyObject * obj3 = 0 ; | |
7895 | char * kwnames[] = { | |
7896 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7897 | }; | |
7898 | ||
7899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7901 | if (!SWIG_IsOK(res1)) { | |
7902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7903 | } | |
7904 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7905 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7906 | if (!SWIG_IsOK(res2)) { | |
7907 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7908 | } | |
7909 | if (!argp2) { | |
7910 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7911 | } | |
7912 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7913 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7914 | if (!SWIG_IsOK(ecode3)) { | |
7915 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
7916 | } | |
7917 | arg3 = static_cast< int >(val3); | |
7918 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7919 | if (!SWIG_IsOK(ecode4)) { | |
7920 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
7921 | } | |
7922 | arg4 = static_cast< int >(val4); | |
7923 | { | |
7924 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
7927 | resultobj = SWIG_Py_Void(); | |
7928 | return resultobj; | |
7929 | fail: | |
7930 | return NULL; | |
7931 | } | |
7932 | ||
7933 | ||
7934 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7935 | PyObject *resultobj = 0; | |
7936 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7937 | byte arg2 ; | |
7938 | byte arg3 ; | |
7939 | byte arg4 ; | |
7940 | void *argp1 = 0 ; | |
7941 | int res1 = 0 ; | |
7942 | unsigned char val2 ; | |
7943 | int ecode2 = 0 ; | |
7944 | unsigned char val3 ; | |
7945 | int ecode3 = 0 ; | |
7946 | unsigned char val4 ; | |
7947 | int ecode4 = 0 ; | |
7948 | PyObject * obj0 = 0 ; | |
7949 | PyObject * obj1 = 0 ; | |
7950 | PyObject * obj2 = 0 ; | |
7951 | PyObject * obj3 = 0 ; | |
7952 | char * kwnames[] = { | |
7953 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
7954 | }; | |
7955 | ||
7956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7958 | if (!SWIG_IsOK(res1)) { | |
7959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7960 | } | |
7961 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7962 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
7963 | if (!SWIG_IsOK(ecode2)) { | |
7964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
7965 | } | |
7966 | arg2 = static_cast< byte >(val2); | |
7967 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
7968 | if (!SWIG_IsOK(ecode3)) { | |
7969 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
7970 | } | |
7971 | arg3 = static_cast< byte >(val3); | |
7972 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
7973 | if (!SWIG_IsOK(ecode4)) { | |
7974 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
7975 | } | |
7976 | arg4 = static_cast< byte >(val4); | |
7977 | { | |
7978 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
7981 | resultobj = SWIG_Py_Void(); | |
7982 | return resultobj; | |
7983 | fail: | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
7988 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7989 | PyObject *resultobj = 0; | |
7990 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7991 | PyObject *result = 0 ; | |
7992 | void *argp1 = 0 ; | |
7993 | int res1 = 0 ; | |
7994 | PyObject *swig_obj[1] ; | |
7995 | ||
7996 | if (!args) SWIG_fail; | |
7997 | swig_obj[0] = args; | |
7998 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7999 | if (!SWIG_IsOK(res1)) { | |
8000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8001 | } | |
8002 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8003 | { | |
8004 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | resultobj = result; | |
8008 | return resultobj; | |
8009 | fail: | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
8014 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8015 | PyObject *obj; | |
8016 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8017 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8018 | return SWIG_Py_Void(); | |
8019 | } | |
8020 | ||
8021 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8022 | return SWIG_Python_InitShadowInstance(args); | |
8023 | } | |
8024 | ||
8025 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8026 | PyObject *resultobj = 0; | |
8027 | wxBitmap *arg1 = 0 ; | |
8028 | wxAlphaPixelData *result = 0 ; | |
8029 | void *argp1 = 0 ; | |
8030 | int res1 = 0 ; | |
8031 | ||
8032 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8034 | if (!SWIG_IsOK(res1)) { | |
8035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8036 | } | |
8037 | if (!argp1) { | |
8038 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8039 | } | |
8040 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8041 | { | |
8042 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8043 | if (PyErr_Occurred()) SWIG_fail; | |
8044 | } | |
8045 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8046 | return resultobj; | |
8047 | fail: | |
8048 | return NULL; | |
8049 | } | |
8050 | ||
8051 | ||
8052 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8053 | PyObject *resultobj = 0; | |
8054 | wxBitmap *arg1 = 0 ; | |
8055 | wxRect *arg2 = 0 ; | |
8056 | wxAlphaPixelData *result = 0 ; | |
8057 | void *argp1 = 0 ; | |
8058 | int res1 = 0 ; | |
8059 | wxRect temp2 ; | |
8060 | ||
8061 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8063 | if (!SWIG_IsOK(res1)) { | |
8064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8065 | } | |
8066 | if (!argp1) { | |
8067 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8068 | } | |
8069 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8070 | { | |
8071 | arg2 = &temp2; | |
8072 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8073 | } | |
8074 | { | |
8075 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8076 | if (PyErr_Occurred()) SWIG_fail; | |
8077 | } | |
8078 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8079 | return resultobj; | |
8080 | fail: | |
8081 | return NULL; | |
8082 | } | |
8083 | ||
8084 | ||
8085 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8086 | PyObject *resultobj = 0; | |
8087 | wxBitmap *arg1 = 0 ; | |
8088 | wxPoint *arg2 = 0 ; | |
8089 | wxSize *arg3 = 0 ; | |
8090 | wxAlphaPixelData *result = 0 ; | |
8091 | void *argp1 = 0 ; | |
8092 | int res1 = 0 ; | |
8093 | wxPoint temp2 ; | |
8094 | wxSize temp3 ; | |
8095 | ||
8096 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8098 | if (!SWIG_IsOK(res1)) { | |
8099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8100 | } | |
8101 | if (!argp1) { | |
8102 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8103 | } | |
8104 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8105 | { | |
8106 | arg2 = &temp2; | |
8107 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8108 | } | |
8109 | { | |
8110 | arg3 = &temp3; | |
8111 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8112 | } | |
8113 | { | |
8114 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8115 | if (PyErr_Occurred()) SWIG_fail; | |
8116 | } | |
8117 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8118 | return resultobj; | |
8119 | fail: | |
8120 | return NULL; | |
8121 | } | |
8122 | ||
8123 | ||
8124 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8125 | int argc; | |
8126 | PyObject *argv[4]; | |
8127 | ||
8128 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8129 | --argc; | |
8130 | if (argc == 1) { | |
8131 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8132 | } | |
8133 | if (argc == 2) { | |
8134 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8135 | } | |
8136 | if (argc == 3) { | |
8137 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8138 | } | |
8139 | ||
8140 | fail: | |
8141 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8147 | PyObject *resultobj = 0; | |
8148 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8149 | void *argp1 = 0 ; | |
8150 | int res1 = 0 ; | |
8151 | PyObject *swig_obj[1] ; | |
8152 | ||
8153 | if (!args) SWIG_fail; | |
8154 | swig_obj[0] = args; | |
8155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8156 | if (!SWIG_IsOK(res1)) { | |
8157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8158 | } | |
8159 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8160 | { | |
8161 | delete arg1; | |
8162 | ||
8163 | if (PyErr_Occurred()) SWIG_fail; | |
8164 | } | |
8165 | resultobj = SWIG_Py_Void(); | |
8166 | return resultobj; | |
8167 | fail: | |
8168 | return NULL; | |
8169 | } | |
8170 | ||
8171 | ||
8172 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8173 | PyObject *resultobj = 0; | |
8174 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8175 | wxAlphaPixelData_Accessor result; | |
8176 | void *argp1 = 0 ; | |
8177 | int res1 = 0 ; | |
8178 | PyObject *swig_obj[1] ; | |
8179 | ||
8180 | if (!args) SWIG_fail; | |
8181 | swig_obj[0] = args; | |
8182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8183 | if (!SWIG_IsOK(res1)) { | |
8184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8185 | } | |
8186 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8187 | { | |
8188 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8189 | if (PyErr_Occurred()) SWIG_fail; | |
8190 | } | |
8191 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8192 | return resultobj; | |
8193 | fail: | |
8194 | return NULL; | |
8195 | } | |
8196 | ||
8197 | ||
8198 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8199 | PyObject *resultobj = 0; | |
8200 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8201 | void *argp1 = 0 ; | |
8202 | int res1 = 0 ; | |
8203 | PyObject *swig_obj[1] ; | |
8204 | ||
8205 | if (!args) SWIG_fail; | |
8206 | swig_obj[0] = args; | |
8207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8208 | if (!SWIG_IsOK(res1)) { | |
8209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8210 | } | |
8211 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8212 | { | |
8213 | (arg1)->UseAlpha(); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | resultobj = SWIG_Py_Void(); | |
8217 | return resultobj; | |
8218 | fail: | |
8219 | return NULL; | |
8220 | } | |
8221 | ||
8222 | ||
8223 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8224 | PyObject *resultobj = 0; | |
8225 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8226 | bool result; | |
8227 | void *argp1 = 0 ; | |
8228 | int res1 = 0 ; | |
8229 | PyObject *swig_obj[1] ; | |
8230 | ||
8231 | if (!args) SWIG_fail; | |
8232 | swig_obj[0] = args; | |
8233 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8234 | if (!SWIG_IsOK(res1)) { | |
8235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8236 | } | |
8237 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8238 | { | |
8239 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8240 | if (PyErr_Occurred()) SWIG_fail; | |
8241 | } | |
8242 | { | |
8243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8244 | } | |
8245 | return resultobj; | |
8246 | fail: | |
8247 | return NULL; | |
8248 | } | |
8249 | ||
8250 | ||
8251 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8252 | PyObject *obj; | |
8253 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8254 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8255 | return SWIG_Py_Void(); | |
8256 | } | |
8257 | ||
8258 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8259 | return SWIG_Python_InitShadowInstance(args); | |
8260 | } | |
8261 | ||
8262 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8263 | PyObject *resultobj = 0; | |
8264 | wxAlphaPixelData *arg1 = 0 ; | |
8265 | wxAlphaPixelData_Accessor *result = 0 ; | |
8266 | void *argp1 = 0 ; | |
8267 | int res1 = 0 ; | |
8268 | ||
8269 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8270 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8271 | if (!SWIG_IsOK(res1)) { | |
8272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8273 | } | |
8274 | if (!argp1) { | |
8275 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8276 | } | |
8277 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8278 | { | |
8279 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8280 | if (PyErr_Occurred()) SWIG_fail; | |
8281 | } | |
8282 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8283 | return resultobj; | |
8284 | fail: | |
8285 | return NULL; | |
8286 | } | |
8287 | ||
8288 | ||
8289 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8290 | PyObject *resultobj = 0; | |
8291 | wxBitmap *arg1 = 0 ; | |
8292 | wxAlphaPixelData *arg2 = 0 ; | |
8293 | wxAlphaPixelData_Accessor *result = 0 ; | |
8294 | void *argp1 = 0 ; | |
8295 | int res1 = 0 ; | |
8296 | void *argp2 = 0 ; | |
8297 | int res2 = 0 ; | |
8298 | ||
8299 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8300 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8301 | if (!SWIG_IsOK(res1)) { | |
8302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8303 | } | |
8304 | if (!argp1) { | |
8305 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8306 | } | |
8307 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8308 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8309 | if (!SWIG_IsOK(res2)) { | |
8310 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8311 | } | |
8312 | if (!argp2) { | |
8313 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8314 | } | |
8315 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8316 | { | |
8317 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8328 | PyObject *resultobj = 0; | |
8329 | wxAlphaPixelData_Accessor *result = 0 ; | |
8330 | ||
8331 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8332 | { | |
8333 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8334 | if (PyErr_Occurred()) SWIG_fail; | |
8335 | } | |
8336 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8337 | return resultobj; | |
8338 | fail: | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8344 | int argc; | |
8345 | PyObject *argv[3]; | |
8346 | ||
8347 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8348 | --argc; | |
8349 | if (argc == 0) { | |
8350 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8351 | } | |
8352 | if (argc == 1) { | |
8353 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8354 | } | |
8355 | if (argc == 2) { | |
8356 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8357 | } | |
8358 | ||
8359 | fail: | |
8360 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8361 | return NULL; | |
8362 | } | |
8363 | ||
8364 | ||
8365 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8366 | PyObject *resultobj = 0; | |
8367 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8368 | void *argp1 = 0 ; | |
8369 | int res1 = 0 ; | |
8370 | PyObject *swig_obj[1] ; | |
8371 | ||
8372 | if (!args) SWIG_fail; | |
8373 | swig_obj[0] = args; | |
8374 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8375 | if (!SWIG_IsOK(res1)) { | |
8376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8377 | } | |
8378 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8379 | { | |
8380 | delete arg1; | |
8381 | ||
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
8384 | resultobj = SWIG_Py_Void(); | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | return NULL; | |
8388 | } | |
8389 | ||
8390 | ||
8391 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8392 | PyObject *resultobj = 0; | |
8393 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8394 | wxAlphaPixelData *arg2 = 0 ; | |
8395 | void *argp1 = 0 ; | |
8396 | int res1 = 0 ; | |
8397 | void *argp2 = 0 ; | |
8398 | int res2 = 0 ; | |
8399 | PyObject * obj0 = 0 ; | |
8400 | PyObject * obj1 = 0 ; | |
8401 | char * kwnames[] = { | |
8402 | (char *) "self",(char *) "data", NULL | |
8403 | }; | |
8404 | ||
8405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8407 | if (!SWIG_IsOK(res1)) { | |
8408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8409 | } | |
8410 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8411 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8412 | if (!SWIG_IsOK(res2)) { | |
8413 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8414 | } | |
8415 | if (!argp2) { | |
8416 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8417 | } | |
8418 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8419 | { | |
8420 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
8423 | resultobj = SWIG_Py_Void(); | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | return NULL; | |
8427 | } | |
8428 | ||
8429 | ||
8430 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8431 | PyObject *resultobj = 0; | |
8432 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8433 | bool result; | |
8434 | void *argp1 = 0 ; | |
8435 | int res1 = 0 ; | |
8436 | PyObject *swig_obj[1] ; | |
8437 | ||
8438 | if (!args) SWIG_fail; | |
8439 | swig_obj[0] = args; | |
8440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8441 | if (!SWIG_IsOK(res1)) { | |
8442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8443 | } | |
8444 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8445 | { | |
8446 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
8449 | { | |
8450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8451 | } | |
8452 | return resultobj; | |
8453 | fail: | |
8454 | return NULL; | |
8455 | } | |
8456 | ||
8457 | ||
8458 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8459 | PyObject *resultobj = 0; | |
8460 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8461 | void *argp1 = 0 ; | |
8462 | int res1 = 0 ; | |
8463 | PyObject *swig_obj[1] ; | |
8464 | ||
8465 | if (!args) SWIG_fail; | |
8466 | swig_obj[0] = args; | |
8467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8468 | if (!SWIG_IsOK(res1)) { | |
8469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8470 | } | |
8471 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8472 | { | |
8473 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | } | |
8476 | resultobj = SWIG_Py_Void(); | |
8477 | return resultobj; | |
8478 | fail: | |
8479 | return NULL; | |
8480 | } | |
8481 | ||
8482 | ||
8483 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8484 | PyObject *resultobj = 0; | |
8485 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8486 | wxAlphaPixelData *arg2 = 0 ; | |
8487 | int arg3 ; | |
8488 | int arg4 ; | |
8489 | void *argp1 = 0 ; | |
8490 | int res1 = 0 ; | |
8491 | void *argp2 = 0 ; | |
8492 | int res2 = 0 ; | |
8493 | int val3 ; | |
8494 | int ecode3 = 0 ; | |
8495 | int val4 ; | |
8496 | int ecode4 = 0 ; | |
8497 | PyObject * obj0 = 0 ; | |
8498 | PyObject * obj1 = 0 ; | |
8499 | PyObject * obj2 = 0 ; | |
8500 | PyObject * obj3 = 0 ; | |
8501 | char * kwnames[] = { | |
8502 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8503 | }; | |
8504 | ||
8505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8507 | if (!SWIG_IsOK(res1)) { | |
8508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8509 | } | |
8510 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8511 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8512 | if (!SWIG_IsOK(res2)) { | |
8513 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8514 | } | |
8515 | if (!argp2) { | |
8516 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8517 | } | |
8518 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8519 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8520 | if (!SWIG_IsOK(ecode3)) { | |
8521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8522 | } | |
8523 | arg3 = static_cast< int >(val3); | |
8524 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8525 | if (!SWIG_IsOK(ecode4)) { | |
8526 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8527 | } | |
8528 | arg4 = static_cast< int >(val4); | |
8529 | { | |
8530 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8531 | if (PyErr_Occurred()) SWIG_fail; | |
8532 | } | |
8533 | resultobj = SWIG_Py_Void(); | |
8534 | return resultobj; | |
8535 | fail: | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8541 | PyObject *resultobj = 0; | |
8542 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8543 | wxAlphaPixelData *arg2 = 0 ; | |
8544 | int arg3 ; | |
8545 | void *argp1 = 0 ; | |
8546 | int res1 = 0 ; | |
8547 | void *argp2 = 0 ; | |
8548 | int res2 = 0 ; | |
8549 | int val3 ; | |
8550 | int ecode3 = 0 ; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | PyObject * obj1 = 0 ; | |
8553 | PyObject * obj2 = 0 ; | |
8554 | char * kwnames[] = { | |
8555 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8556 | }; | |
8557 | ||
8558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8560 | if (!SWIG_IsOK(res1)) { | |
8561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8562 | } | |
8563 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8564 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8565 | if (!SWIG_IsOK(res2)) { | |
8566 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8567 | } | |
8568 | if (!argp2) { | |
8569 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8570 | } | |
8571 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8572 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8573 | if (!SWIG_IsOK(ecode3)) { | |
8574 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8575 | } | |
8576 | arg3 = static_cast< int >(val3); | |
8577 | { | |
8578 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8579 | if (PyErr_Occurred()) SWIG_fail; | |
8580 | } | |
8581 | resultobj = SWIG_Py_Void(); | |
8582 | return resultobj; | |
8583 | fail: | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj = 0; | |
8590 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8591 | wxAlphaPixelData *arg2 = 0 ; | |
8592 | int arg3 ; | |
8593 | void *argp1 = 0 ; | |
8594 | int res1 = 0 ; | |
8595 | void *argp2 = 0 ; | |
8596 | int res2 = 0 ; | |
8597 | int val3 ; | |
8598 | int ecode3 = 0 ; | |
8599 | PyObject * obj0 = 0 ; | |
8600 | PyObject * obj1 = 0 ; | |
8601 | PyObject * obj2 = 0 ; | |
8602 | char * kwnames[] = { | |
8603 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8604 | }; | |
8605 | ||
8606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8608 | if (!SWIG_IsOK(res1)) { | |
8609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8610 | } | |
8611 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8612 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8613 | if (!SWIG_IsOK(res2)) { | |
8614 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8615 | } | |
8616 | if (!argp2) { | |
8617 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8618 | } | |
8619 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8620 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8621 | if (!SWIG_IsOK(ecode3)) { | |
8622 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8623 | } | |
8624 | arg3 = static_cast< int >(val3); | |
8625 | { | |
8626 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8627 | if (PyErr_Occurred()) SWIG_fail; | |
8628 | } | |
8629 | resultobj = SWIG_Py_Void(); | |
8630 | return resultobj; | |
8631 | fail: | |
8632 | return NULL; | |
8633 | } | |
8634 | ||
8635 | ||
8636 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8637 | PyObject *resultobj = 0; | |
8638 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8639 | wxAlphaPixelData *arg2 = 0 ; | |
8640 | int arg3 ; | |
8641 | int arg4 ; | |
8642 | void *argp1 = 0 ; | |
8643 | int res1 = 0 ; | |
8644 | void *argp2 = 0 ; | |
8645 | int res2 = 0 ; | |
8646 | int val3 ; | |
8647 | int ecode3 = 0 ; | |
8648 | int val4 ; | |
8649 | int ecode4 = 0 ; | |
8650 | PyObject * obj0 = 0 ; | |
8651 | PyObject * obj1 = 0 ; | |
8652 | PyObject * obj2 = 0 ; | |
8653 | PyObject * obj3 = 0 ; | |
8654 | char * kwnames[] = { | |
8655 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8656 | }; | |
8657 | ||
8658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8660 | if (!SWIG_IsOK(res1)) { | |
8661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8662 | } | |
8663 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8664 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8665 | if (!SWIG_IsOK(res2)) { | |
8666 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8667 | } | |
8668 | if (!argp2) { | |
8669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8670 | } | |
8671 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8672 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8673 | if (!SWIG_IsOK(ecode3)) { | |
8674 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8675 | } | |
8676 | arg3 = static_cast< int >(val3); | |
8677 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8678 | if (!SWIG_IsOK(ecode4)) { | |
8679 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8680 | } | |
8681 | arg4 = static_cast< int >(val4); | |
8682 | { | |
8683 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | resultobj = SWIG_Py_Void(); | |
8687 | return resultobj; | |
8688 | fail: | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
8693 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj = 0; | |
8695 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8696 | byte arg2 ; | |
8697 | byte arg3 ; | |
8698 | byte arg4 ; | |
8699 | byte arg5 ; | |
8700 | void *argp1 = 0 ; | |
8701 | int res1 = 0 ; | |
8702 | unsigned char val2 ; | |
8703 | int ecode2 = 0 ; | |
8704 | unsigned char val3 ; | |
8705 | int ecode3 = 0 ; | |
8706 | unsigned char val4 ; | |
8707 | int ecode4 = 0 ; | |
8708 | unsigned char val5 ; | |
8709 | int ecode5 = 0 ; | |
8710 | PyObject * obj0 = 0 ; | |
8711 | PyObject * obj1 = 0 ; | |
8712 | PyObject * obj2 = 0 ; | |
8713 | PyObject * obj3 = 0 ; | |
8714 | PyObject * obj4 = 0 ; | |
8715 | char * kwnames[] = { | |
8716 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8717 | }; | |
8718 | ||
8719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8721 | if (!SWIG_IsOK(res1)) { | |
8722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8723 | } | |
8724 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8725 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8726 | if (!SWIG_IsOK(ecode2)) { | |
8727 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8728 | } | |
8729 | arg2 = static_cast< byte >(val2); | |
8730 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8731 | if (!SWIG_IsOK(ecode3)) { | |
8732 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8733 | } | |
8734 | arg3 = static_cast< byte >(val3); | |
8735 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8736 | if (!SWIG_IsOK(ecode4)) { | |
8737 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8738 | } | |
8739 | arg4 = static_cast< byte >(val4); | |
8740 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8741 | if (!SWIG_IsOK(ecode5)) { | |
8742 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8743 | } | |
8744 | arg5 = static_cast< byte >(val5); | |
8745 | { | |
8746 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8748 | } |
fc46b7f3 | 8749 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8750 | return resultobj; |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
fc46b7f3 | 8756 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8757 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8758 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8759 | PyObject *result = 0 ; | |
0085ce49 RD |
8760 | void *argp1 = 0 ; |
8761 | int res1 = 0 ; | |
fc46b7f3 | 8762 | PyObject *swig_obj[1] ; |
0085ce49 | 8763 | |
fc46b7f3 RD |
8764 | if (!args) SWIG_fail; |
8765 | swig_obj[0] = args; | |
8766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8767 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8769 | } |
fc46b7f3 | 8770 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8771 | { |
fc46b7f3 | 8772 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8773 | if (PyErr_Occurred()) SWIG_fail; |
8774 | } | |
fc46b7f3 | 8775 | resultobj = result; |
0085ce49 RD |
8776 | return resultobj; |
8777 | fail: | |
8778 | return NULL; | |
d14a1e28 RD |
8779 | } |
8780 | ||
8781 | ||
fc46b7f3 | 8782 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8783 | PyObject *obj; |
8784 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8785 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8786 | return SWIG_Py_Void(); |
b2df227b RD |
8787 | } |
8788 | ||
fc46b7f3 | 8789 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8790 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8791 | } |
8792 | ||
0085ce49 RD |
8793 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8794 | PyObject *resultobj = 0; | |
8795 | wxBitmap *arg1 = 0 ; | |
8796 | wxColour const &arg2_defvalue = wxNullColour ; | |
8797 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8798 | wxMask *result = 0 ; | |
8799 | void *argp1 = 0 ; | |
8800 | int res1 = 0 ; | |
8801 | wxColour temp2 ; | |
8802 | PyObject * obj0 = 0 ; | |
8803 | PyObject * obj1 = 0 ; | |
8804 | char * kwnames[] = { | |
8805 | (char *) "bitmap",(char *) "colour", NULL | |
8806 | }; | |
8807 | ||
8808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8809 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8810 | if (!SWIG_IsOK(res1)) { | |
8811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8812 | } | |
8813 | if (!argp1) { | |
8814 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8815 | } | |
8816 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8817 | if (obj1) { | |
d14a1e28 | 8818 | { |
0085ce49 RD |
8819 | arg2 = &temp2; |
8820 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8821 | } |
0085ce49 RD |
8822 | } |
8823 | { | |
8824 | if (!wxPyCheckForApp()) SWIG_fail; | |
8825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8826 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8827 | wxPyEndAllowThreads(__tstate); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | } | |
8830 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
8831 | return resultobj; | |
8832 | fail: | |
8833 | return NULL; | |
d14a1e28 RD |
8834 | } |
8835 | ||
8836 | ||
0085ce49 RD |
8837 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8838 | PyObject *resultobj = 0; | |
8839 | wxMask *arg1 = (wxMask *) 0 ; | |
8840 | void *argp1 = 0 ; | |
8841 | int res1 = 0 ; | |
8842 | PyObject *swig_obj[1] ; | |
8843 | ||
8844 | if (!args) SWIG_fail; | |
8845 | swig_obj[0] = args; | |
8846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
8847 | if (!SWIG_IsOK(res1)) { | |
8848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
8849 | } | |
8850 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
8851 | { | |
0085ce49 | 8852 | delete arg1; |
d14a1e28 | 8853 | |
0085ce49 RD |
8854 | if (PyErr_Occurred()) SWIG_fail; |
8855 | } | |
8856 | resultobj = SWIG_Py_Void(); | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | return NULL; | |
8860 | } | |
8861 | ||
8862 | ||
8863 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8864 | PyObject *obj; | |
8865 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8866 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
8867 | return SWIG_Py_Void(); | |
8868 | } | |
8869 | ||
8870 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8871 | return SWIG_Python_InitShadowInstance(args); | |
8872 | } | |
8873 | ||
8874 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8875 | PyObject *resultobj = 0; | |
8876 | wxString *arg1 = 0 ; | |
8877 | wxBitmapType arg2 ; | |
8878 | int arg3 = (int) -1 ; | |
8879 | int arg4 = (int) -1 ; | |
8880 | wxIcon *result = 0 ; | |
8881 | bool temp1 = false ; | |
8882 | int val2 ; | |
8883 | int ecode2 = 0 ; | |
8884 | int val3 ; | |
8885 | int ecode3 = 0 ; | |
8886 | int val4 ; | |
8887 | int ecode4 = 0 ; | |
8888 | PyObject * obj0 = 0 ; | |
8889 | PyObject * obj1 = 0 ; | |
8890 | PyObject * obj2 = 0 ; | |
8891 | PyObject * obj3 = 0 ; | |
8892 | char * kwnames[] = { | |
8893 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
8894 | }; | |
8895 | ||
8896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8897 | { | |
8898 | arg1 = wxString_in_helper(obj0); | |
8899 | if (arg1 == NULL) SWIG_fail; | |
8900 | temp1 = true; | |
8901 | } | |
8902 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8903 | if (!SWIG_IsOK(ecode2)) { | |
8904 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
8905 | } | |
8906 | arg2 = static_cast< wxBitmapType >(val2); | |
8907 | if (obj2) { | |
8908 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8909 | if (!SWIG_IsOK(ecode3)) { | |
8910 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
8911 | } | |
8912 | arg3 = static_cast< int >(val3); | |
8913 | } | |
8914 | if (obj3) { | |
8915 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8916 | if (!SWIG_IsOK(ecode4)) { | |
8917 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
8918 | } | |
8919 | arg4 = static_cast< int >(val4); | |
8920 | } | |
8921 | { | |
8922 | if (!wxPyCheckForApp()) SWIG_fail; | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
8925 | wxPyEndAllowThreads(__tstate); | |
8926 | if (PyErr_Occurred()) SWIG_fail; | |
8927 | } | |
8928 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
8929 | { | |
8930 | if (temp1) | |
8931 | delete arg1; | |
8932 | } | |
8933 | return resultobj; | |
8934 | fail: | |
8935 | { | |
8936 | if (temp1) | |
8937 | delete arg1; | |
8938 | } | |
8939 | return NULL; | |
d14a1e28 RD |
8940 | } |
8941 | ||
8942 | ||
0085ce49 RD |
8943 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8944 | PyObject *resultobj = 0; | |
8945 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8946 | void *argp1 = 0 ; | |
8947 | int res1 = 0 ; | |
8948 | PyObject *swig_obj[1] ; | |
8949 | ||
8950 | if (!args) SWIG_fail; | |
8951 | swig_obj[0] = args; | |
8952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
8953 | if (!SWIG_IsOK(res1)) { | |
8954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8955 | } | |
8956 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8957 | { | |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8959 | delete arg1; | |
d14a1e28 | 8960 | |
0085ce49 RD |
8961 | wxPyEndAllowThreads(__tstate); |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | resultobj = SWIG_Py_Void(); | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
d14a1e28 RD |
8968 | } |
8969 | ||
8970 | ||
0085ce49 RD |
8971 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8972 | PyObject *resultobj = 0; | |
8973 | wxIcon *result = 0 ; | |
8974 | ||
8975 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
8976 | { | |
8977 | if (!wxPyCheckForApp()) SWIG_fail; | |
8978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8979 | result = (wxIcon *)new wxIcon(); | |
8980 | wxPyEndAllowThreads(__tstate); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
8982 | } | |
8983 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8984 | return resultobj; | |
8985 | fail: | |
8986 | return NULL; | |
8987 | } | |
8988 | ||
8989 | ||
8990 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8991 | PyObject *resultobj = 0; | |
8992 | wxIconLocation *arg1 = 0 ; | |
8993 | wxIcon *result = 0 ; | |
8994 | void *argp1 = 0 ; | |
8995 | int res1 = 0 ; | |
8996 | PyObject * obj0 = 0 ; | |
8997 | char * kwnames[] = { | |
8998 | (char *) "loc", NULL | |
8999 | }; | |
9000 | ||
9001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9002 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9003 | if (!SWIG_IsOK(res1)) { | |
9004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9005 | } | |
9006 | if (!argp1) { | |
9007 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9008 | } | |
9009 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9010 | { | |
9011 | if (!wxPyCheckForApp()) SWIG_fail; | |
9012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9013 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9014 | wxPyEndAllowThreads(__tstate); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9018 | return resultobj; | |
9019 | fail: | |
9020 | return NULL; | |
9021 | } | |
9022 | ||
9023 | ||
9024 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj = 0; | |
9026 | wxBitmap *arg1 = 0 ; | |
9027 | wxIcon *result = 0 ; | |
9028 | void *argp1 = 0 ; | |
9029 | int res1 = 0 ; | |
9030 | PyObject * obj0 = 0 ; | |
9031 | char * kwnames[] = { | |
9032 | (char *) "bmp", NULL | |
9033 | }; | |
9034 | ||
9035 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9036 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9037 | if (!SWIG_IsOK(res1)) { | |
9038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9039 | } | |
9040 | if (!argp1) { | |
9041 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9042 | } | |
9043 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9044 | { | |
9045 | if (!wxPyCheckForApp()) SWIG_fail; | |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
9051 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9052 | return resultobj; | |
9053 | fail: | |
9054 | return NULL; | |
d14a1e28 RD |
9055 | } |
9056 | ||
9057 | ||
0085ce49 RD |
9058 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9059 | PyObject *resultobj = 0; | |
9060 | PyObject *arg1 = (PyObject *) 0 ; | |
9061 | wxIcon *result = 0 ; | |
9062 | PyObject * obj0 = 0 ; | |
9063 | char * kwnames[] = { | |
9064 | (char *) "listOfStrings", NULL | |
9065 | }; | |
9066 | ||
9067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9068 | arg1 = obj0; | |
9069 | { | |
9070 | if (!wxPyCheckForApp()) SWIG_fail; | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | result = (wxIcon *)new_wxIcon(arg1); | |
9073 | wxPyEndAllowThreads(__tstate); | |
9074 | if (PyErr_Occurred()) SWIG_fail; | |
9075 | } | |
9076 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9077 | return resultobj; | |
9078 | fail: | |
9079 | return NULL; | |
9080 | } | |
9081 | ||
9082 | ||
9083 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9084 | PyObject *resultobj = 0; | |
9085 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9086 | wxString *arg2 = 0 ; | |
9087 | wxBitmapType arg3 ; | |
9088 | bool result; | |
9089 | void *argp1 = 0 ; | |
9090 | int res1 = 0 ; | |
9091 | bool temp2 = false ; | |
9092 | int val3 ; | |
9093 | int ecode3 = 0 ; | |
9094 | PyObject * obj0 = 0 ; | |
9095 | PyObject * obj1 = 0 ; | |
9096 | PyObject * obj2 = 0 ; | |
9097 | char * kwnames[] = { | |
9098 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9099 | }; | |
9100 | ||
9101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9103 | if (!SWIG_IsOK(res1)) { | |
9104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9105 | } | |
9106 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9107 | { | |
9108 | arg2 = wxString_in_helper(obj1); | |
9109 | if (arg2 == NULL) SWIG_fail; | |
9110 | temp2 = true; | |
9111 | } | |
9112 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9113 | if (!SWIG_IsOK(ecode3)) { | |
9114 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9115 | } | |
9116 | arg3 = static_cast< wxBitmapType >(val3); | |
9117 | { | |
9118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9119 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9120 | wxPyEndAllowThreads(__tstate); | |
9121 | if (PyErr_Occurred()) SWIG_fail; | |
9122 | } | |
9123 | { | |
9124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9125 | } | |
9126 | { | |
9127 | if (temp2) | |
9128 | delete arg2; | |
9129 | } | |
9130 | return resultobj; | |
9131 | fail: | |
9132 | { | |
9133 | if (temp2) | |
9134 | delete arg2; | |
9135 | } | |
9136 | return NULL; | |
d14a1e28 RD |
9137 | } |
9138 | ||
9139 | ||
b39fe951 | 9140 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
9141 | PyObject *resultobj = 0; |
9142 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9143 | bool result; | |
9144 | void *argp1 = 0 ; | |
9145 | int res1 = 0 ; | |
9146 | PyObject *swig_obj[1] ; | |
9147 | ||
9148 | if (!args) SWIG_fail; | |
9149 | swig_obj[0] = args; | |
9150 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9151 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
0085ce49 RD |
9153 | } |
9154 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9155 | { | |
9156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9157 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
9158 | wxPyEndAllowThreads(__tstate); |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
9161 | { | |
9162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9163 | } | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | return NULL; | |
d14a1e28 RD |
9167 | } |
9168 | ||
9169 | ||
0085ce49 RD |
9170 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9171 | PyObject *resultobj = 0; | |
9172 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9173 | int result; | |
9174 | void *argp1 = 0 ; | |
9175 | int res1 = 0 ; | |
9176 | PyObject *swig_obj[1] ; | |
9177 | ||
9178 | if (!args) SWIG_fail; | |
9179 | swig_obj[0] = args; | |
9180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9181 | if (!SWIG_IsOK(res1)) { | |
9182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9183 | } | |
9184 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9185 | { | |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (int)(arg1)->GetWidth(); | |
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
9191 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | return NULL; | |
d3b6e4ff RD |
9195 | } |
9196 | ||
9197 | ||
0085ce49 RD |
9198 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9199 | PyObject *resultobj = 0; | |
9200 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9201 | int result; | |
9202 | void *argp1 = 0 ; | |
9203 | int res1 = 0 ; | |
9204 | PyObject *swig_obj[1] ; | |
9205 | ||
9206 | if (!args) SWIG_fail; | |
9207 | swig_obj[0] = args; | |
9208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9209 | if (!SWIG_IsOK(res1)) { | |
9210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9211 | } | |
9212 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9213 | { | |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | result = (int)(arg1)->GetHeight(); | |
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
9219 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9220 | return resultobj; | |
9221 | fail: | |
9222 | return NULL; | |
d14a1e28 RD |
9223 | } |
9224 | ||
9225 | ||
0085ce49 RD |
9226 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9227 | PyObject *resultobj = 0; | |
9228 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9229 | int result; | |
9230 | void *argp1 = 0 ; | |
9231 | int res1 = 0 ; | |
9232 | PyObject *swig_obj[1] ; | |
9233 | ||
9234 | if (!args) SWIG_fail; | |
9235 | swig_obj[0] = args; | |
9236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9237 | if (!SWIG_IsOK(res1)) { | |
9238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9239 | } | |
9240 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9241 | { | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | result = (int)(arg1)->GetDepth(); | |
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | return NULL; | |
9251 | } | |
9252 | ||
9253 | ||
9254 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9255 | PyObject *resultobj = 0; | |
9256 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9257 | int arg2 ; | |
9258 | void *argp1 = 0 ; | |
9259 | int res1 = 0 ; | |
9260 | int val2 ; | |
9261 | int ecode2 = 0 ; | |
9262 | PyObject * obj0 = 0 ; | |
9263 | PyObject * obj1 = 0 ; | |
9264 | char * kwnames[] = { | |
9265 | (char *) "self",(char *) "w", NULL | |
9266 | }; | |
9267 | ||
9268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9270 | if (!SWIG_IsOK(res1)) { | |
9271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9272 | } | |
9273 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9274 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9275 | if (!SWIG_IsOK(ecode2)) { | |
9276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9277 | } | |
9278 | arg2 = static_cast< int >(val2); | |
9279 | { | |
9280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9281 | (arg1)->SetWidth(arg2); | |
9282 | wxPyEndAllowThreads(__tstate); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | } | |
9285 | resultobj = SWIG_Py_Void(); | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
9292 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9293 | PyObject *resultobj = 0; | |
9294 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9295 | int arg2 ; | |
9296 | void *argp1 = 0 ; | |
9297 | int res1 = 0 ; | |
9298 | int val2 ; | |
9299 | int ecode2 = 0 ; | |
9300 | PyObject * obj0 = 0 ; | |
9301 | PyObject * obj1 = 0 ; | |
9302 | char * kwnames[] = { | |
9303 | (char *) "self",(char *) "h", NULL | |
9304 | }; | |
9305 | ||
9306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9308 | if (!SWIG_IsOK(res1)) { | |
9309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9310 | } | |
9311 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9312 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9313 | if (!SWIG_IsOK(ecode2)) { | |
9314 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9315 | } | |
9316 | arg2 = static_cast< int >(val2); | |
9317 | { | |
9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9319 | (arg1)->SetHeight(arg2); | |
9320 | wxPyEndAllowThreads(__tstate); | |
9321 | if (PyErr_Occurred()) SWIG_fail; | |
9322 | } | |
9323 | resultobj = SWIG_Py_Void(); | |
9324 | return resultobj; | |
9325 | fail: | |
9326 | return NULL; | |
9327 | } | |
9328 | ||
9329 | ||
9330 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9331 | PyObject *resultobj = 0; | |
9332 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9333 | int arg2 ; | |
9334 | void *argp1 = 0 ; | |
9335 | int res1 = 0 ; | |
9336 | int val2 ; | |
9337 | int ecode2 = 0 ; | |
9338 | PyObject * obj0 = 0 ; | |
9339 | PyObject * obj1 = 0 ; | |
9340 | char * kwnames[] = { | |
9341 | (char *) "self",(char *) "d", NULL | |
9342 | }; | |
9343 | ||
9344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9346 | if (!SWIG_IsOK(res1)) { | |
9347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9348 | } | |
9349 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9350 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9351 | if (!SWIG_IsOK(ecode2)) { | |
9352 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9353 | } | |
9354 | arg2 = static_cast< int >(val2); | |
9355 | { | |
9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9357 | (arg1)->SetDepth(arg2); | |
9358 | wxPyEndAllowThreads(__tstate); | |
9359 | if (PyErr_Occurred()) SWIG_fail; | |
9360 | } | |
9361 | resultobj = SWIG_Py_Void(); | |
9362 | return resultobj; | |
9363 | fail: | |
9364 | return NULL; | |
9365 | } | |
9366 | ||
9367 | ||
9368 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9369 | PyObject *resultobj = 0; | |
9370 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9371 | wxBitmap *arg2 = 0 ; | |
9372 | void *argp1 = 0 ; | |
9373 | int res1 = 0 ; | |
9374 | void *argp2 = 0 ; | |
9375 | int res2 = 0 ; | |
9376 | PyObject * obj0 = 0 ; | |
9377 | PyObject * obj1 = 0 ; | |
9378 | char * kwnames[] = { | |
9379 | (char *) "self",(char *) "bmp", NULL | |
9380 | }; | |
9381 | ||
9382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9384 | if (!SWIG_IsOK(res1)) { | |
9385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9386 | } | |
9387 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9388 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9389 | if (!SWIG_IsOK(res2)) { | |
9390 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9391 | } | |
9392 | if (!argp2) { | |
9393 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9394 | } | |
9395 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9396 | { | |
9397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9398 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9399 | wxPyEndAllowThreads(__tstate); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | } | |
9402 | resultobj = SWIG_Py_Void(); | |
9403 | return resultobj; | |
9404 | fail: | |
9405 | return NULL; | |
d14a1e28 RD |
9406 | } |
9407 | ||
9408 | ||
0085ce49 RD |
9409 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9410 | PyObject *obj; | |
9411 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9412 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9413 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9414 | } |
9415 | ||
0085ce49 RD |
9416 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9417 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9418 | } |
9419 | ||
0085ce49 RD |
9420 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9421 | PyObject *resultobj = 0; | |
9422 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9423 | int arg2 = (int) 0 ; | |
9424 | wxIconLocation *result = 0 ; | |
9425 | bool temp1 = false ; | |
9426 | int val2 ; | |
9427 | int ecode2 = 0 ; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | PyObject * obj1 = 0 ; | |
9430 | char * kwnames[] = { | |
9431 | (char *) "filename",(char *) "num", NULL | |
9432 | }; | |
9433 | ||
9434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9435 | if (obj0) { | |
b2df227b | 9436 | { |
0085ce49 RD |
9437 | arg1 = wxString_in_helper(obj0); |
9438 | if (arg1 == NULL) SWIG_fail; | |
9439 | temp1 = true; | |
b2df227b | 9440 | } |
0085ce49 RD |
9441 | } |
9442 | if (obj1) { | |
9443 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9444 | if (!SWIG_IsOK(ecode2)) { | |
9445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9446 | } | |
9447 | arg2 = static_cast< int >(val2); | |
9448 | } | |
9449 | { | |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9452 | wxPyEndAllowThreads(__tstate); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
9455 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9456 | { | |
9457 | if (temp1) | |
9458 | delete arg1; | |
9459 | } | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | { | |
9463 | if (temp1) | |
9464 | delete arg1; | |
9465 | } | |
9466 | return NULL; | |
b2df227b RD |
9467 | } |
9468 | ||
9469 | ||
0085ce49 RD |
9470 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9471 | PyObject *resultobj = 0; | |
9472 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9473 | void *argp1 = 0 ; | |
9474 | int res1 = 0 ; | |
9475 | PyObject *swig_obj[1] ; | |
9476 | ||
9477 | if (!args) SWIG_fail; | |
9478 | swig_obj[0] = args; | |
9479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9480 | if (!SWIG_IsOK(res1)) { | |
9481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9482 | } | |
9483 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | delete arg1; | |
4276dc52 | 9487 | |
0085ce49 RD |
9488 | wxPyEndAllowThreads(__tstate); |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
9490 | } | |
9491 | resultobj = SWIG_Py_Void(); | |
9492 | return resultobj; | |
9493 | fail: | |
9494 | return NULL; | |
4276dc52 RD |
9495 | } |
9496 | ||
9497 | ||
0085ce49 RD |
9498 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9499 | PyObject *resultobj = 0; | |
9500 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9501 | bool result; | |
9502 | void *argp1 = 0 ; | |
9503 | int res1 = 0 ; | |
9504 | PyObject *swig_obj[1] ; | |
9505 | ||
9506 | if (!args) SWIG_fail; | |
9507 | swig_obj[0] = args; | |
9508 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9509 | if (!SWIG_IsOK(res1)) { | |
9510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9511 | } | |
9512 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9513 | { | |
9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9515 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
9519 | { | |
9520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9521 | } | |
9522 | return resultobj; | |
9523 | fail: | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
9528 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9529 | PyObject *resultobj = 0; | |
9530 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9531 | wxString *arg2 = 0 ; | |
9532 | void *argp1 = 0 ; | |
9533 | int res1 = 0 ; | |
9534 | bool temp2 = false ; | |
9535 | PyObject * obj0 = 0 ; | |
9536 | PyObject * obj1 = 0 ; | |
9537 | char * kwnames[] = { | |
9538 | (char *) "self",(char *) "filename", NULL | |
9539 | }; | |
9540 | ||
9541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9543 | if (!SWIG_IsOK(res1)) { | |
9544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9545 | } | |
9546 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9547 | { | |
9548 | arg2 = wxString_in_helper(obj1); | |
9549 | if (arg2 == NULL) SWIG_fail; | |
9550 | temp2 = true; | |
9551 | } | |
9552 | { | |
9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9554 | (arg1)->SetFileName((wxString const &)*arg2); | |
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
9558 | resultobj = SWIG_Py_Void(); | |
9559 | { | |
9560 | if (temp2) | |
9561 | delete arg2; | |
9562 | } | |
9563 | return resultobj; | |
9564 | fail: | |
9565 | { | |
9566 | if (temp2) | |
9567 | delete arg2; | |
9568 | } | |
9569 | return NULL; | |
4276dc52 RD |
9570 | } |
9571 | ||
9572 | ||
0085ce49 RD |
9573 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9574 | PyObject *resultobj = 0; | |
9575 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9576 | wxString *result = 0 ; | |
9577 | void *argp1 = 0 ; | |
9578 | int res1 = 0 ; | |
9579 | PyObject *swig_obj[1] ; | |
9580 | ||
9581 | if (!args) SWIG_fail; | |
9582 | swig_obj[0] = args; | |
9583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9584 | if (!SWIG_IsOK(res1)) { | |
9585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9586 | } | |
9587 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9588 | { | |
9589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9590 | { |
0085ce49 RD |
9591 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9592 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9593 | } |
0085ce49 RD |
9594 | wxPyEndAllowThreads(__tstate); |
9595 | if (PyErr_Occurred()) SWIG_fail; | |
9596 | } | |
9597 | { | |
9598 | #if wxUSE_UNICODE | |
9599 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9600 | #else | |
9601 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9602 | #endif | |
9603 | } | |
9604 | return resultobj; | |
9605 | fail: | |
9606 | return NULL; | |
9607 | } | |
9608 | ||
9609 | ||
9610 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9611 | PyObject *resultobj = 0; | |
9612 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9613 | int arg2 ; | |
9614 | void *argp1 = 0 ; | |
9615 | int res1 = 0 ; | |
9616 | int val2 ; | |
9617 | int ecode2 = 0 ; | |
9618 | PyObject * obj0 = 0 ; | |
9619 | PyObject * obj1 = 0 ; | |
9620 | char * kwnames[] = { | |
9621 | (char *) "self",(char *) "num", NULL | |
9622 | }; | |
9623 | ||
9624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9626 | if (!SWIG_IsOK(res1)) { | |
9627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9628 | } | |
9629 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9631 | if (!SWIG_IsOK(ecode2)) { | |
9632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9633 | } | |
9634 | arg2 = static_cast< int >(val2); | |
9635 | { | |
9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9637 | wxIconLocation_SetIndex(arg1,arg2); | |
9638 | wxPyEndAllowThreads(__tstate); | |
9639 | if (PyErr_Occurred()) SWIG_fail; | |
9640 | } | |
9641 | resultobj = SWIG_Py_Void(); | |
9642 | return resultobj; | |
9643 | fail: | |
9644 | return NULL; | |
d14a1e28 RD |
9645 | } |
9646 | ||
9647 | ||
0085ce49 RD |
9648 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9649 | PyObject *resultobj = 0; | |
9650 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9651 | int result; | |
9652 | void *argp1 = 0 ; | |
9653 | int res1 = 0 ; | |
9654 | PyObject *swig_obj[1] ; | |
9655 | ||
9656 | if (!args) SWIG_fail; | |
9657 | swig_obj[0] = args; | |
9658 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9659 | if (!SWIG_IsOK(res1)) { | |
9660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9661 | } | |
9662 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9663 | { | |
9664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9665 | result = (int)wxIconLocation_GetIndex(arg1); | |
9666 | wxPyEndAllowThreads(__tstate); | |
9667 | if (PyErr_Occurred()) SWIG_fail; | |
9668 | } | |
9669 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9670 | return resultobj; | |
9671 | fail: | |
9672 | return NULL; | |
d14a1e28 RD |
9673 | } |
9674 | ||
9675 | ||
0085ce49 RD |
9676 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9677 | PyObject *obj; | |
9678 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9679 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9680 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9681 | } |
9682 | ||
0085ce49 RD |
9683 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9684 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9685 | } |
9686 | ||
0085ce49 RD |
9687 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9688 | PyObject *resultobj = 0; | |
9689 | wxIconBundle *result = 0 ; | |
9690 | ||
9691 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9692 | { | |
9693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9694 | result = (wxIconBundle *)new wxIconBundle(); | |
9695 | wxPyEndAllowThreads(__tstate); | |
9696 | if (PyErr_Occurred()) SWIG_fail; | |
9697 | } | |
9698 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9699 | return resultobj; | |
9700 | fail: | |
9701 | return NULL; | |
9702 | } | |
9703 | ||
9704 | ||
9705 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9706 | PyObject *resultobj = 0; | |
9707 | wxString *arg1 = 0 ; | |
9708 | long arg2 ; | |
9709 | wxIconBundle *result = 0 ; | |
9710 | bool temp1 = false ; | |
9711 | long val2 ; | |
9712 | int ecode2 = 0 ; | |
9713 | PyObject * obj0 = 0 ; | |
9714 | PyObject * obj1 = 0 ; | |
9715 | char * kwnames[] = { | |
9716 | (char *) "file",(char *) "type", NULL | |
9717 | }; | |
9718 | ||
9719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9720 | { | |
9721 | arg1 = wxString_in_helper(obj0); | |
9722 | if (arg1 == NULL) SWIG_fail; | |
9723 | temp1 = true; | |
9724 | } | |
9725 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9726 | if (!SWIG_IsOK(ecode2)) { | |
9727 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9728 | } | |
9729 | arg2 = static_cast< long >(val2); | |
9730 | { | |
9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9732 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9733 | wxPyEndAllowThreads(__tstate); | |
9734 | if (PyErr_Occurred()) SWIG_fail; | |
9735 | } | |
9736 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9737 | { | |
9738 | if (temp1) | |
9739 | delete arg1; | |
9740 | } | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | { | |
9744 | if (temp1) | |
9745 | delete arg1; | |
9746 | } | |
9747 | return NULL; | |
d14a1e28 RD |
9748 | } |
9749 | ||
9750 | ||
0085ce49 RD |
9751 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9752 | PyObject *resultobj = 0; | |
9753 | wxIcon *arg1 = 0 ; | |
9754 | wxIconBundle *result = 0 ; | |
9755 | void *argp1 = 0 ; | |
9756 | int res1 = 0 ; | |
9757 | PyObject * obj0 = 0 ; | |
9758 | char * kwnames[] = { | |
9759 | (char *) "icon", NULL | |
9760 | }; | |
9761 | ||
9762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9763 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9764 | if (!SWIG_IsOK(res1)) { | |
9765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9766 | } | |
9767 | if (!argp1) { | |
9768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9769 | } | |
9770 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9771 | { | |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9778 | return resultobj; | |
9779 | fail: | |
9780 | return NULL; | |
d14a1e28 RD |
9781 | } |
9782 | ||
9783 | ||
0085ce49 RD |
9784 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9785 | PyObject *resultobj = 0; | |
9786 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9787 | void *argp1 = 0 ; | |
9788 | int res1 = 0 ; | |
9789 | PyObject *swig_obj[1] ; | |
9790 | ||
9791 | if (!args) SWIG_fail; | |
9792 | swig_obj[0] = args; | |
9793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9794 | if (!SWIG_IsOK(res1)) { | |
9795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9796 | } | |
9797 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9798 | { | |
9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9800 | delete arg1; | |
d14a1e28 | 9801 | |
0085ce49 RD |
9802 | wxPyEndAllowThreads(__tstate); |
9803 | if (PyErr_Occurred()) SWIG_fail; | |
9804 | } | |
9805 | resultobj = SWIG_Py_Void(); | |
9806 | return resultobj; | |
9807 | fail: | |
9808 | return NULL; | |
9809 | } | |
9810 | ||
9811 | ||
9812 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9813 | PyObject *resultobj = 0; | |
9814 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9815 | wxIcon *arg2 = 0 ; | |
9816 | void *argp1 = 0 ; | |
9817 | int res1 = 0 ; | |
9818 | void *argp2 = 0 ; | |
9819 | int res2 = 0 ; | |
9820 | PyObject * obj0 = 0 ; | |
9821 | PyObject * obj1 = 0 ; | |
9822 | char * kwnames[] = { | |
9823 | (char *) "self",(char *) "icon", NULL | |
9824 | }; | |
9825 | ||
9826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9828 | if (!SWIG_IsOK(res1)) { | |
9829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9830 | } | |
9831 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9832 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
9833 | if (!SWIG_IsOK(res2)) { | |
9834 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9835 | } | |
9836 | if (!argp2) { | |
9837 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9838 | } | |
9839 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
9843 | wxPyEndAllowThreads(__tstate); | |
9844 | if (PyErr_Occurred()) SWIG_fail; | |
9845 | } | |
9846 | resultobj = SWIG_Py_Void(); | |
9847 | return resultobj; | |
9848 | fail: | |
9849 | return NULL; | |
9850 | } | |
9851 | ||
9852 | ||
9853 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9854 | PyObject *resultobj = 0; | |
9855 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9856 | wxString *arg2 = 0 ; | |
9857 | long arg3 ; | |
9858 | void *argp1 = 0 ; | |
9859 | int res1 = 0 ; | |
9860 | bool temp2 = false ; | |
9861 | long val3 ; | |
9862 | int ecode3 = 0 ; | |
9863 | PyObject * obj0 = 0 ; | |
9864 | PyObject * obj1 = 0 ; | |
9865 | PyObject * obj2 = 0 ; | |
9866 | char * kwnames[] = { | |
9867 | (char *) "self",(char *) "file",(char *) "type", NULL | |
9868 | }; | |
9869 | ||
9870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9872 | if (!SWIG_IsOK(res1)) { | |
9873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9874 | } | |
9875 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9876 | { | |
9877 | arg2 = wxString_in_helper(obj1); | |
9878 | if (arg2 == NULL) SWIG_fail; | |
9879 | temp2 = true; | |
9880 | } | |
9881 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
9882 | if (!SWIG_IsOK(ecode3)) { | |
9883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
9884 | } | |
9885 | arg3 = static_cast< long >(val3); | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
9889 | wxPyEndAllowThreads(__tstate); | |
9890 | if (PyErr_Occurred()) SWIG_fail; | |
9891 | } | |
9892 | resultobj = SWIG_Py_Void(); | |
9893 | { | |
9894 | if (temp2) | |
9895 | delete arg2; | |
9896 | } | |
9897 | return resultobj; | |
9898 | fail: | |
9899 | { | |
9900 | if (temp2) | |
9901 | delete arg2; | |
9902 | } | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
9907 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9908 | PyObject *resultobj = 0; | |
9909 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9910 | wxSize *arg2 = 0 ; | |
9911 | wxIcon *result = 0 ; | |
9912 | void *argp1 = 0 ; | |
9913 | int res1 = 0 ; | |
9914 | wxSize temp2 ; | |
9915 | PyObject * obj0 = 0 ; | |
9916 | PyObject * obj1 = 0 ; | |
9917 | char * kwnames[] = { | |
9918 | (char *) "self",(char *) "size", NULL | |
9919 | }; | |
9920 | ||
9921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9923 | if (!SWIG_IsOK(res1)) { | |
9924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
9925 | } | |
9926 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9927 | { | |
9928 | arg2 = &temp2; | |
9929 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9930 | } | |
9931 | { | |
9932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 9933 | { |
0085ce49 RD |
9934 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
9935 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 9936 | } |
0085ce49 RD |
9937 | wxPyEndAllowThreads(__tstate); |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | { | |
9941 | wxIcon* resultptr = new wxIcon(*result); | |
9942 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
9943 | } | |
9944 | return resultobj; | |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
9950 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9951 | PyObject *obj; | |
9952 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9953 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
9954 | return SWIG_Py_Void(); | |
9955 | } | |
9956 | ||
9957 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9958 | return SWIG_Python_InitShadowInstance(args); | |
9959 | } | |
9960 | ||
9961 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9962 | PyObject *resultobj = 0; | |
9963 | wxString *arg1 = 0 ; | |
9964 | long arg2 ; | |
9965 | int arg3 = (int) 0 ; | |
9966 | int arg4 = (int) 0 ; | |
9967 | wxCursor *result = 0 ; | |
9968 | bool temp1 = false ; | |
9969 | long val2 ; | |
9970 | int ecode2 = 0 ; | |
9971 | int val3 ; | |
9972 | int ecode3 = 0 ; | |
9973 | int val4 ; | |
9974 | int ecode4 = 0 ; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | PyObject * obj1 = 0 ; | |
9977 | PyObject * obj2 = 0 ; | |
9978 | PyObject * obj3 = 0 ; | |
9979 | char * kwnames[] = { | |
9980 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
9981 | }; | |
9982 | ||
9983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9984 | { | |
9985 | arg1 = wxString_in_helper(obj0); | |
9986 | if (arg1 == NULL) SWIG_fail; | |
9987 | temp1 = true; | |
9988 | } | |
9989 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9990 | if (!SWIG_IsOK(ecode2)) { | |
9991 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
9992 | } | |
9993 | arg2 = static_cast< long >(val2); | |
9994 | if (obj2) { | |
9995 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9996 | if (!SWIG_IsOK(ecode3)) { | |
9997 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
9998 | } | |
9999 | arg3 = static_cast< int >(val3); | |
10000 | } | |
10001 | if (obj3) { | |
10002 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10003 | if (!SWIG_IsOK(ecode4)) { | |
10004 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10005 | } | |
10006 | arg4 = static_cast< int >(val4); | |
10007 | } | |
10008 | { | |
10009 | if (!wxPyCheckForApp()) SWIG_fail; | |
10010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10011 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10012 | wxPyEndAllowThreads(__tstate); | |
10013 | if (PyErr_Occurred()) SWIG_fail; | |
10014 | } | |
10015 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10016 | { | |
10017 | if (temp1) | |
10018 | delete arg1; | |
10019 | } | |
10020 | return resultobj; | |
10021 | fail: | |
10022 | { | |
10023 | if (temp1) | |
10024 | delete arg1; | |
10025 | } | |
10026 | return NULL; | |
d14a1e28 RD |
10027 | } |
10028 | ||
10029 | ||
0085ce49 RD |
10030 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10031 | PyObject *resultobj = 0; | |
10032 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10033 | void *argp1 = 0 ; | |
10034 | int res1 = 0 ; | |
10035 | PyObject *swig_obj[1] ; | |
10036 | ||
10037 | if (!args) SWIG_fail; | |
10038 | swig_obj[0] = args; | |
10039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10040 | if (!SWIG_IsOK(res1)) { | |
10041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10042 | } | |
10043 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10044 | { | |
10045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10046 | delete arg1; | |
093d3ff1 | 10047 | |
0085ce49 RD |
10048 | wxPyEndAllowThreads(__tstate); |
10049 | if (PyErr_Occurred()) SWIG_fail; | |
10050 | } | |
10051 | resultobj = SWIG_Py_Void(); | |
10052 | return resultobj; | |
10053 | fail: | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
10058 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10059 | PyObject *resultobj = 0; | |
10060 | int arg1 ; | |
10061 | wxCursor *result = 0 ; | |
10062 | int val1 ; | |
10063 | int ecode1 = 0 ; | |
10064 | PyObject * obj0 = 0 ; | |
10065 | char * kwnames[] = { | |
10066 | (char *) "id", NULL | |
10067 | }; | |
10068 | ||
10069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10070 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10071 | if (!SWIG_IsOK(ecode1)) { | |
10072 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10073 | } | |
10074 | arg1 = static_cast< int >(val1); | |
10075 | { | |
10076 | if (!wxPyCheckForApp()) SWIG_fail; | |
10077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10078 | result = (wxCursor *)new wxCursor(arg1); | |
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
10082 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj = 0; | |
10091 | wxImage *arg1 = 0 ; | |
10092 | wxCursor *result = 0 ; | |
10093 | void *argp1 = 0 ; | |
10094 | int res1 = 0 ; | |
10095 | PyObject * obj0 = 0 ; | |
10096 | char * kwnames[] = { | |
10097 | (char *) "image", NULL | |
10098 | }; | |
10099 | ||
10100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10101 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10102 | if (!SWIG_IsOK(res1)) { | |
10103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10104 | } | |
10105 | if (!argp1) { | |
10106 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10107 | } | |
10108 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10109 | { | |
10110 | if (!wxPyCheckForApp()) SWIG_fail; | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10113 | wxPyEndAllowThreads(__tstate); | |
10114 | if (PyErr_Occurred()) SWIG_fail; | |
10115 | } | |
10116 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10117 | return resultobj; | |
10118 | fail: | |
10119 | return NULL; | |
093d3ff1 RD |
10120 | } |
10121 | ||
10122 | ||
b39fe951 | 10123 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
10124 | PyObject *resultobj = 0; |
10125 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10126 | bool result; | |
10127 | void *argp1 = 0 ; | |
10128 | int res1 = 0 ; | |
10129 | PyObject *swig_obj[1] ; | |
10130 | ||
10131 | if (!args) SWIG_fail; | |
10132 | swig_obj[0] = args; | |
10133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10134 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
0085ce49 RD |
10136 | } |
10137 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10138 | { | |
10139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10140 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
10141 | wxPyEndAllowThreads(__tstate); |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | } | |
10144 | { | |
10145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10146 | } | |
10147 | return resultobj; | |
10148 | fail: | |
10149 | return NULL; | |
10150 | } | |
10151 | ||
10152 | ||
10153 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10154 | PyObject *obj; | |
10155 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10156 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10157 | return SWIG_Py_Void(); | |
10158 | } | |
10159 | ||
10160 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10161 | return SWIG_Python_InitShadowInstance(args); | |
10162 | } | |
10163 | ||
10164 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10165 | PyObject *resultobj = 0; | |
10166 | int arg1 = (int) 0 ; | |
10167 | int arg2 = (int) 0 ; | |
10168 | int arg3 = (int) 0 ; | |
10169 | int arg4 = (int) 0 ; | |
10170 | wxRegion *result = 0 ; | |
10171 | int val1 ; | |
10172 | int ecode1 = 0 ; | |
10173 | int val2 ; | |
10174 | int ecode2 = 0 ; | |
10175 | int val3 ; | |
10176 | int ecode3 = 0 ; | |
10177 | int val4 ; | |
10178 | int ecode4 = 0 ; | |
10179 | PyObject * obj0 = 0 ; | |
10180 | PyObject * obj1 = 0 ; | |
10181 | PyObject * obj2 = 0 ; | |
10182 | PyObject * obj3 = 0 ; | |
10183 | char * kwnames[] = { | |
10184 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10185 | }; | |
10186 | ||
10187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10188 | if (obj0) { | |
10189 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10190 | if (!SWIG_IsOK(ecode1)) { | |
10191 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10192 | } | |
10193 | arg1 = static_cast< int >(val1); | |
10194 | } | |
10195 | if (obj1) { | |
10196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10197 | if (!SWIG_IsOK(ecode2)) { | |
10198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10199 | } | |
10200 | arg2 = static_cast< int >(val2); | |
10201 | } | |
10202 | if (obj2) { | |
10203 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10204 | if (!SWIG_IsOK(ecode3)) { | |
10205 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10206 | } | |
10207 | arg3 = static_cast< int >(val3); | |
10208 | } | |
10209 | if (obj3) { | |
10210 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10211 | if (!SWIG_IsOK(ecode4)) { | |
10212 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10213 | } | |
10214 | arg4 = static_cast< int >(val4); | |
10215 | } | |
10216 | { | |
10217 | if (!wxPyCheckForApp()) SWIG_fail; | |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10220 | wxPyEndAllowThreads(__tstate); | |
10221 | if (PyErr_Occurred()) SWIG_fail; | |
10222 | } | |
10223 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10224 | return resultobj; | |
10225 | fail: | |
10226 | return NULL; | |
10227 | } | |
10228 | ||
10229 | ||
10230 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10231 | PyObject *resultobj = 0; | |
10232 | wxBitmap *arg1 = 0 ; | |
10233 | wxRegion *result = 0 ; | |
10234 | void *argp1 = 0 ; | |
10235 | int res1 = 0 ; | |
10236 | PyObject * obj0 = 0 ; | |
10237 | char * kwnames[] = { | |
10238 | (char *) "bmp", NULL | |
10239 | }; | |
10240 | ||
10241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10242 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10243 | if (!SWIG_IsOK(res1)) { | |
10244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10245 | } | |
10246 | if (!argp1) { | |
10247 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10248 | } | |
10249 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10250 | { | |
10251 | if (!wxPyCheckForApp()) SWIG_fail; | |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10254 | wxPyEndAllowThreads(__tstate); | |
10255 | if (PyErr_Occurred()) SWIG_fail; | |
10256 | } | |
10257 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10258 | return resultobj; | |
10259 | fail: | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
10264 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10265 | PyObject *resultobj = 0; | |
10266 | wxBitmap *arg1 = 0 ; | |
10267 | wxColour *arg2 = 0 ; | |
10268 | int arg3 = (int) 0 ; | |
10269 | wxRegion *result = 0 ; | |
10270 | void *argp1 = 0 ; | |
10271 | int res1 = 0 ; | |
10272 | wxColour temp2 ; | |
10273 | int val3 ; | |
10274 | int ecode3 = 0 ; | |
10275 | PyObject * obj0 = 0 ; | |
10276 | PyObject * obj1 = 0 ; | |
10277 | PyObject * obj2 = 0 ; | |
10278 | char * kwnames[] = { | |
10279 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10280 | }; | |
10281 | ||
10282 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10283 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10284 | if (!SWIG_IsOK(res1)) { | |
10285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10286 | } | |
10287 | if (!argp1) { | |
10288 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10289 | } | |
10290 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10291 | { | |
10292 | arg2 = &temp2; | |
10293 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10294 | } | |
10295 | if (obj2) { | |
10296 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10297 | if (!SWIG_IsOK(ecode3)) { | |
10298 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
10299 | } | |
10300 | arg3 = static_cast< int >(val3); | |
10301 | } | |
10302 | { | |
10303 | if (!wxPyCheckForApp()) SWIG_fail; | |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
10309 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10310 | return resultobj; | |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj = 0; | |
10318 | int arg1 ; | |
10319 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10320 | int arg3 = (int) wxWINDING_RULE ; | |
10321 | wxRegion *result = 0 ; | |
10322 | int val3 ; | |
10323 | int ecode3 = 0 ; | |
10324 | PyObject * obj0 = 0 ; | |
10325 | PyObject * obj1 = 0 ; | |
10326 | char * kwnames[] = { | |
10327 | (char *) "points",(char *) "fillStyle", NULL | |
10328 | }; | |
10329 | ||
10330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10331 | { | |
10332 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10333 | if (arg2 == NULL) SWIG_fail; | |
10334 | } | |
10335 | if (obj1) { | |
10336 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10337 | if (!SWIG_IsOK(ecode3)) { | |
10338 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10339 | } | |
10340 | arg3 = static_cast< int >(val3); | |
10341 | } | |
10342 | { | |
10343 | if (!wxPyCheckForApp()) SWIG_fail; | |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10345 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10346 | wxPyEndAllowThreads(__tstate); | |
10347 | if (PyErr_Occurred()) SWIG_fail; | |
10348 | } | |
10349 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10350 | { | |
10351 | if (arg2) delete [] arg2; | |
10352 | } | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | { | |
10356 | if (arg2) delete [] arg2; | |
10357 | } | |
10358 | return NULL; | |
d14a1e28 RD |
10359 | } |
10360 | ||
10361 | ||
0085ce49 RD |
10362 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10363 | PyObject *resultobj = 0; | |
10364 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10365 | void *argp1 = 0 ; | |
10366 | int res1 = 0 ; | |
10367 | PyObject *swig_obj[1] ; | |
10368 | ||
10369 | if (!args) SWIG_fail; | |
10370 | swig_obj[0] = args; | |
10371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10372 | if (!SWIG_IsOK(res1)) { | |
10373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10374 | } | |
10375 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10376 | { | |
10377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10378 | delete arg1; | |
d14a1e28 | 10379 | |
0085ce49 RD |
10380 | wxPyEndAllowThreads(__tstate); |
10381 | if (PyErr_Occurred()) SWIG_fail; | |
10382 | } | |
10383 | resultobj = SWIG_Py_Void(); | |
10384 | return resultobj; | |
10385 | fail: | |
10386 | return NULL; | |
d14a1e28 RD |
10387 | } |
10388 | ||
10389 | ||
0085ce49 RD |
10390 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10391 | PyObject *resultobj = 0; | |
10392 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10393 | void *argp1 = 0 ; | |
10394 | int res1 = 0 ; | |
10395 | PyObject *swig_obj[1] ; | |
10396 | ||
10397 | if (!args) SWIG_fail; | |
10398 | swig_obj[0] = args; | |
10399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10400 | if (!SWIG_IsOK(res1)) { | |
10401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10402 | } | |
10403 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10404 | { | |
10405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10406 | (arg1)->Clear(); | |
10407 | wxPyEndAllowThreads(__tstate); | |
10408 | if (PyErr_Occurred()) SWIG_fail; | |
10409 | } | |
10410 | resultobj = SWIG_Py_Void(); | |
10411 | return resultobj; | |
10412 | fail: | |
10413 | return NULL; | |
10414 | } | |
10415 | ||
10416 | ||
10417 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10418 | PyObject *resultobj = 0; | |
10419 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10420 | int arg2 ; | |
10421 | int arg3 ; | |
10422 | bool result; | |
10423 | void *argp1 = 0 ; | |
10424 | int res1 = 0 ; | |
10425 | int val2 ; | |
10426 | int ecode2 = 0 ; | |
10427 | int val3 ; | |
10428 | int ecode3 = 0 ; | |
10429 | PyObject * obj0 = 0 ; | |
10430 | PyObject * obj1 = 0 ; | |
10431 | PyObject * obj2 = 0 ; | |
10432 | char * kwnames[] = { | |
10433 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10434 | }; | |
10435 | ||
10436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10438 | if (!SWIG_IsOK(res1)) { | |
10439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10440 | } | |
10441 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10442 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10443 | if (!SWIG_IsOK(ecode2)) { | |
10444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10445 | } | |
10446 | arg2 = static_cast< int >(val2); | |
10447 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10448 | if (!SWIG_IsOK(ecode3)) { | |
10449 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10450 | } | |
10451 | arg3 = static_cast< int >(val3); | |
10452 | { | |
10453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10454 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10455 | wxPyEndAllowThreads(__tstate); | |
10456 | if (PyErr_Occurred()) SWIG_fail; | |
10457 | } | |
10458 | { | |
10459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10460 | } | |
10461 | return resultobj; | |
10462 | fail: | |
10463 | return NULL; | |
10464 | } | |
10465 | ||
10466 | ||
10467 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10468 | PyObject *resultobj = 0; | |
10469 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10470 | int arg2 ; | |
10471 | int arg3 ; | |
10472 | wxRegionContain result; | |
10473 | void *argp1 = 0 ; | |
10474 | int res1 = 0 ; | |
10475 | int val2 ; | |
10476 | int ecode2 = 0 ; | |
10477 | int val3 ; | |
10478 | int ecode3 = 0 ; | |
10479 | PyObject * obj0 = 0 ; | |
10480 | PyObject * obj1 = 0 ; | |
10481 | PyObject * obj2 = 0 ; | |
10482 | char * kwnames[] = { | |
10483 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10484 | }; | |
10485 | ||
10486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10488 | if (!SWIG_IsOK(res1)) { | |
10489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10490 | } | |
10491 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10492 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10493 | if (!SWIG_IsOK(ecode2)) { | |
10494 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10495 | } | |
10496 | arg2 = static_cast< int >(val2); | |
10497 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10498 | if (!SWIG_IsOK(ecode3)) { | |
10499 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10500 | } | |
10501 | arg3 = static_cast< int >(val3); | |
10502 | { | |
10503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10504 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10505 | wxPyEndAllowThreads(__tstate); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
10508 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10509 | return resultobj; | |
10510 | fail: | |
10511 | return NULL; | |
10512 | } | |
10513 | ||
10514 | ||
10515 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10516 | PyObject *resultobj = 0; | |
10517 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10518 | wxPoint *arg2 = 0 ; | |
10519 | wxRegionContain result; | |
10520 | void *argp1 = 0 ; | |
10521 | int res1 = 0 ; | |
10522 | wxPoint temp2 ; | |
10523 | PyObject * obj0 = 0 ; | |
10524 | PyObject * obj1 = 0 ; | |
10525 | char * kwnames[] = { | |
10526 | (char *) "self",(char *) "pt", NULL | |
10527 | }; | |
10528 | ||
10529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10531 | if (!SWIG_IsOK(res1)) { | |
10532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10533 | } | |
10534 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10535 | { | |
10536 | arg2 = &temp2; | |
10537 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10538 | } | |
10539 | { | |
10540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10541 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10542 | wxPyEndAllowThreads(__tstate); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj = 0; | |
10554 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10555 | wxRect *arg2 = 0 ; | |
10556 | wxRegionContain result; | |
10557 | void *argp1 = 0 ; | |
10558 | int res1 = 0 ; | |
10559 | wxRect temp2 ; | |
10560 | PyObject * obj0 = 0 ; | |
10561 | PyObject * obj1 = 0 ; | |
10562 | char * kwnames[] = { | |
10563 | (char *) "self",(char *) "rect", NULL | |
10564 | }; | |
10565 | ||
10566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10568 | if (!SWIG_IsOK(res1)) { | |
10569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10570 | } | |
10571 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10572 | { | |
10573 | arg2 = &temp2; | |
10574 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10575 | } | |
10576 | { | |
10577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10578 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10583 | return resultobj; | |
10584 | fail: | |
10585 | return NULL; | |
10586 | } | |
10587 | ||
10588 | ||
10589 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10590 | PyObject *resultobj = 0; | |
10591 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10592 | int arg2 ; | |
10593 | int arg3 ; | |
10594 | int arg4 ; | |
10595 | int arg5 ; | |
10596 | wxRegionContain result; | |
10597 | void *argp1 = 0 ; | |
10598 | int res1 = 0 ; | |
10599 | int val2 ; | |
10600 | int ecode2 = 0 ; | |
10601 | int val3 ; | |
10602 | int ecode3 = 0 ; | |
10603 | int val4 ; | |
10604 | int ecode4 = 0 ; | |
10605 | int val5 ; | |
10606 | int ecode5 = 0 ; | |
10607 | PyObject * obj0 = 0 ; | |
10608 | PyObject * obj1 = 0 ; | |
10609 | PyObject * obj2 = 0 ; | |
10610 | PyObject * obj3 = 0 ; | |
10611 | PyObject * obj4 = 0 ; | |
10612 | char * kwnames[] = { | |
10613 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10614 | }; | |
10615 | ||
10616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10618 | if (!SWIG_IsOK(res1)) { | |
10619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10620 | } | |
10621 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10622 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10623 | if (!SWIG_IsOK(ecode2)) { | |
10624 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10625 | } | |
10626 | arg2 = static_cast< int >(val2); | |
10627 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10628 | if (!SWIG_IsOK(ecode3)) { | |
10629 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10630 | } | |
10631 | arg3 = static_cast< int >(val3); | |
10632 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10633 | if (!SWIG_IsOK(ecode4)) { | |
10634 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10635 | } | |
10636 | arg4 = static_cast< int >(val4); | |
10637 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10638 | if (!SWIG_IsOK(ecode5)) { | |
10639 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10640 | } | |
10641 | arg5 = static_cast< int >(val5); | |
10642 | { | |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
d14a1e28 RD |
10652 | } |
10653 | ||
10654 | ||
0085ce49 RD |
10655 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10656 | PyObject *resultobj = 0; | |
10657 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10658 | wxRect result; | |
10659 | void *argp1 = 0 ; | |
10660 | int res1 = 0 ; | |
10661 | PyObject *swig_obj[1] ; | |
10662 | ||
10663 | if (!args) SWIG_fail; | |
10664 | swig_obj[0] = args; | |
10665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10666 | if (!SWIG_IsOK(res1)) { | |
10667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10668 | } | |
10669 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10670 | { | |
10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10672 | result = (arg1)->GetBox(); | |
10673 | wxPyEndAllowThreads(__tstate); | |
10674 | if (PyErr_Occurred()) SWIG_fail; | |
10675 | } | |
10676 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
10677 | return resultobj; | |
10678 | fail: | |
10679 | return NULL; | |
10680 | } | |
10681 | ||
10682 | ||
10683 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10684 | PyObject *resultobj = 0; | |
10685 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10686 | int arg2 ; | |
10687 | int arg3 ; | |
10688 | int arg4 ; | |
10689 | int arg5 ; | |
10690 | bool result; | |
10691 | void *argp1 = 0 ; | |
10692 | int res1 = 0 ; | |
10693 | int val2 ; | |
10694 | int ecode2 = 0 ; | |
10695 | int val3 ; | |
10696 | int ecode3 = 0 ; | |
10697 | int val4 ; | |
10698 | int ecode4 = 0 ; | |
10699 | int val5 ; | |
10700 | int ecode5 = 0 ; | |
10701 | PyObject * obj0 = 0 ; | |
10702 | PyObject * obj1 = 0 ; | |
10703 | PyObject * obj2 = 0 ; | |
10704 | PyObject * obj3 = 0 ; | |
10705 | PyObject * obj4 = 0 ; | |
10706 | char * kwnames[] = { | |
10707 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10708 | }; | |
10709 | ||
10710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10712 | if (!SWIG_IsOK(res1)) { | |
10713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10714 | } | |
10715 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10716 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10717 | if (!SWIG_IsOK(ecode2)) { | |
10718 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
10719 | } | |
10720 | arg2 = static_cast< int >(val2); | |
10721 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10722 | if (!SWIG_IsOK(ecode3)) { | |
10723 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
10724 | } | |
10725 | arg3 = static_cast< int >(val3); | |
10726 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10727 | if (!SWIG_IsOK(ecode4)) { | |
10728 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
10729 | } | |
10730 | arg4 = static_cast< int >(val4); | |
10731 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10732 | if (!SWIG_IsOK(ecode5)) { | |
10733 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
10734 | } | |
10735 | arg5 = static_cast< int >(val5); | |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | { | |
10743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10744 | } | |
10745 | return resultobj; | |
10746 | fail: | |
10747 | return NULL; | |
10748 | } | |
10749 | ||
10750 | ||
10751 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10752 | PyObject *resultobj = 0; | |
10753 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10754 | wxRect *arg2 = 0 ; | |
10755 | bool result; | |
10756 | void *argp1 = 0 ; | |
10757 | int res1 = 0 ; | |
10758 | wxRect temp2 ; | |
10759 | PyObject * obj0 = 0 ; | |
10760 | PyObject * obj1 = 0 ; | |
10761 | char * kwnames[] = { | |
10762 | (char *) "self",(char *) "rect", NULL | |
10763 | }; | |
10764 | ||
10765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10767 | if (!SWIG_IsOK(res1)) { | |
10768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10769 | } | |
10770 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10771 | { | |
10772 | arg2 = &temp2; | |
10773 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10774 | } | |
10775 | { | |
10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10777 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
10778 | wxPyEndAllowThreads(__tstate); | |
10779 | if (PyErr_Occurred()) SWIG_fail; | |
10780 | } | |
10781 | { | |
10782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10783 | } | |
10784 | return resultobj; | |
10785 | fail: | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
10790 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10791 | PyObject *resultobj = 0; | |
10792 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10793 | wxRegion *arg2 = 0 ; | |
10794 | bool result; | |
10795 | void *argp1 = 0 ; | |
10796 | int res1 = 0 ; | |
10797 | void *argp2 = 0 ; | |
10798 | int res2 = 0 ; | |
10799 | PyObject * obj0 = 0 ; | |
10800 | PyObject * obj1 = 0 ; | |
10801 | char * kwnames[] = { | |
10802 | (char *) "self",(char *) "region", NULL | |
10803 | }; | |
10804 | ||
10805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10807 | if (!SWIG_IsOK(res1)) { | |
10808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10809 | } | |
10810 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10811 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10812 | if (!SWIG_IsOK(res2)) { | |
10813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10814 | } | |
10815 | if (!argp2) { | |
10816 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10817 | } | |
10818 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10819 | { | |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | } | |
10825 | { | |
10826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10827 | } | |
10828 | return resultobj; | |
10829 | fail: | |
10830 | return NULL; | |
d14a1e28 RD |
10831 | } |
10832 | ||
10833 | ||
0085ce49 RD |
10834 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10835 | PyObject *resultobj = 0; | |
10836 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10837 | bool result; | |
10838 | void *argp1 = 0 ; | |
10839 | int res1 = 0 ; | |
10840 | PyObject *swig_obj[1] ; | |
10841 | ||
10842 | if (!args) SWIG_fail; | |
10843 | swig_obj[0] = args; | |
10844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10845 | if (!SWIG_IsOK(res1)) { | |
10846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10847 | } | |
10848 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10849 | { | |
10850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10851 | result = (bool)(arg1)->IsEmpty(); | |
10852 | wxPyEndAllowThreads(__tstate); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | } | |
10855 | { | |
10856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10857 | } | |
10858 | return resultobj; | |
10859 | fail: | |
10860 | return NULL; | |
10861 | } | |
10862 | ||
10863 | ||
f5263701 RD |
10864 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10865 | PyObject *resultobj = 0; | |
10866 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10867 | wxRegion *arg2 = 0 ; | |
10868 | bool result; | |
10869 | void *argp1 = 0 ; | |
10870 | int res1 = 0 ; | |
10871 | void *argp2 = 0 ; | |
10872 | int res2 = 0 ; | |
10873 | PyObject * obj0 = 0 ; | |
10874 | PyObject * obj1 = 0 ; | |
10875 | char * kwnames[] = { | |
10876 | (char *) "self",(char *) "region", NULL | |
10877 | }; | |
10878 | ||
10879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
10880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10881 | if (!SWIG_IsOK(res1)) { | |
10882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
10883 | } | |
10884 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10885 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10886 | if (!SWIG_IsOK(res2)) { | |
10887 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10888 | } | |
10889 | if (!argp2) { | |
10890 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10891 | } | |
10892 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10893 | { | |
10894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10895 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
10896 | wxPyEndAllowThreads(__tstate); | |
10897 | if (PyErr_Occurred()) SWIG_fail; | |
10898 | } | |
10899 | { | |
10900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10901 | } | |
10902 | return resultobj; | |
10903 | fail: | |
10904 | return NULL; | |
10905 | } | |
10906 | ||
10907 | ||
0085ce49 RD |
10908 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10909 | PyObject *resultobj = 0; | |
10910 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10911 | int arg2 ; | |
10912 | int arg3 ; | |
10913 | int arg4 ; | |
10914 | int arg5 ; | |
10915 | bool result; | |
10916 | void *argp1 = 0 ; | |
10917 | int res1 = 0 ; | |
10918 | int val2 ; | |
10919 | int ecode2 = 0 ; | |
10920 | int val3 ; | |
10921 | int ecode3 = 0 ; | |
10922 | int val4 ; | |
10923 | int ecode4 = 0 ; | |
10924 | int val5 ; | |
10925 | int ecode5 = 0 ; | |
10926 | PyObject * obj0 = 0 ; | |
10927 | PyObject * obj1 = 0 ; | |
10928 | PyObject * obj2 = 0 ; | |
10929 | PyObject * obj3 = 0 ; | |
10930 | PyObject * obj4 = 0 ; | |
10931 | char * kwnames[] = { | |
10932 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10933 | }; | |
10934 | ||
10935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10937 | if (!SWIG_IsOK(res1)) { | |
10938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10939 | } | |
10940 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10941 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10942 | if (!SWIG_IsOK(ecode2)) { | |
10943 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
10944 | } | |
10945 | arg2 = static_cast< int >(val2); | |
10946 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10947 | if (!SWIG_IsOK(ecode3)) { | |
10948 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
10949 | } | |
10950 | arg3 = static_cast< int >(val3); | |
10951 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10952 | if (!SWIG_IsOK(ecode4)) { | |
10953 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
10954 | } | |
10955 | arg4 = static_cast< int >(val4); | |
10956 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10957 | if (!SWIG_IsOK(ecode5)) { | |
10958 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
10959 | } | |
10960 | arg5 = static_cast< int >(val5); | |
10961 | { | |
10962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10963 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | { | |
10968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10969 | } | |
10970 | return resultobj; | |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj = 0; | |
10978 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10979 | wxRect *arg2 = 0 ; | |
10980 | bool result; | |
10981 | void *argp1 = 0 ; | |
10982 | int res1 = 0 ; | |
10983 | wxRect temp2 ; | |
10984 | PyObject * obj0 = 0 ; | |
10985 | PyObject * obj1 = 0 ; | |
10986 | char * kwnames[] = { | |
10987 | (char *) "self",(char *) "rect", NULL | |
10988 | }; | |
10989 | ||
10990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10992 | if (!SWIG_IsOK(res1)) { | |
10993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10994 | } | |
10995 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10996 | { | |
10997 | arg2 = &temp2; | |
10998 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10999 | } | |
11000 | { | |
11001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11002 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
11006 | { | |
11007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11008 | } | |
11009 | return resultobj; | |
11010 | fail: | |
11011 | return NULL; | |
11012 | } | |
11013 | ||
11014 | ||
11015 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11016 | PyObject *resultobj = 0; | |
11017 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11018 | wxRegion *arg2 = 0 ; | |
11019 | bool result; | |
11020 | void *argp1 = 0 ; | |
11021 | int res1 = 0 ; | |
11022 | void *argp2 = 0 ; | |
11023 | int res2 = 0 ; | |
11024 | PyObject * obj0 = 0 ; | |
11025 | PyObject * obj1 = 0 ; | |
11026 | char * kwnames[] = { | |
11027 | (char *) "self",(char *) "region", NULL | |
11028 | }; | |
11029 | ||
11030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11032 | if (!SWIG_IsOK(res1)) { | |
11033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11034 | } | |
11035 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11036 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11037 | if (!SWIG_IsOK(res2)) { | |
11038 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11039 | } | |
11040 | if (!argp2) { | |
11041 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11042 | } | |
11043 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11044 | { | |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11047 | wxPyEndAllowThreads(__tstate); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
11050 | { | |
11051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11052 | } | |
11053 | return resultobj; | |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
11059 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11060 | PyObject *resultobj = 0; | |
11061 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11062 | int arg2 ; | |
11063 | int arg3 ; | |
11064 | int arg4 ; | |
11065 | int arg5 ; | |
11066 | bool result; | |
11067 | void *argp1 = 0 ; | |
11068 | int res1 = 0 ; | |
11069 | int val2 ; | |
11070 | int ecode2 = 0 ; | |
11071 | int val3 ; | |
11072 | int ecode3 = 0 ; | |
11073 | int val4 ; | |
11074 | int ecode4 = 0 ; | |
11075 | int val5 ; | |
11076 | int ecode5 = 0 ; | |
11077 | PyObject * obj0 = 0 ; | |
11078 | PyObject * obj1 = 0 ; | |
11079 | PyObject * obj2 = 0 ; | |
11080 | PyObject * obj3 = 0 ; | |
11081 | PyObject * obj4 = 0 ; | |
11082 | char * kwnames[] = { | |
11083 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11084 | }; | |
11085 | ||
11086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11088 | if (!SWIG_IsOK(res1)) { | |
11089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11090 | } | |
11091 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11092 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11093 | if (!SWIG_IsOK(ecode2)) { | |
11094 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11095 | } | |
11096 | arg2 = static_cast< int >(val2); | |
11097 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11098 | if (!SWIG_IsOK(ecode3)) { | |
11099 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11100 | } | |
11101 | arg3 = static_cast< int >(val3); | |
11102 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11103 | if (!SWIG_IsOK(ecode4)) { | |
11104 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11105 | } | |
11106 | arg4 = static_cast< int >(val4); | |
11107 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11108 | if (!SWIG_IsOK(ecode5)) { | |
11109 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11110 | } | |
11111 | arg5 = static_cast< int >(val5); | |
11112 | { | |
11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11114 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11115 | wxPyEndAllowThreads(__tstate); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | { | |
11119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11120 | } | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | return NULL; | |
11124 | } | |
11125 | ||
11126 | ||
11127 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11128 | PyObject *resultobj = 0; | |
11129 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11130 | wxRect *arg2 = 0 ; | |
11131 | bool result; | |
11132 | void *argp1 = 0 ; | |
11133 | int res1 = 0 ; | |
11134 | wxRect temp2 ; | |
11135 | PyObject * obj0 = 0 ; | |
11136 | PyObject * obj1 = 0 ; | |
11137 | char * kwnames[] = { | |
11138 | (char *) "self",(char *) "rect", NULL | |
11139 | }; | |
11140 | ||
11141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11143 | if (!SWIG_IsOK(res1)) { | |
11144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11145 | } | |
11146 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11147 | { | |
11148 | arg2 = &temp2; | |
11149 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11150 | } | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11154 | wxPyEndAllowThreads(__tstate); | |
11155 | if (PyErr_Occurred()) SWIG_fail; | |
11156 | } | |
11157 | { | |
11158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11159 | } | |
11160 | return resultobj; | |
11161 | fail: | |
11162 | return NULL; | |
11163 | } | |
11164 | ||
11165 | ||
11166 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11167 | PyObject *resultobj = 0; | |
11168 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11169 | wxRegion *arg2 = 0 ; | |
11170 | bool result; | |
11171 | void *argp1 = 0 ; | |
11172 | int res1 = 0 ; | |
11173 | void *argp2 = 0 ; | |
11174 | int res2 = 0 ; | |
11175 | PyObject * obj0 = 0 ; | |
11176 | PyObject * obj1 = 0 ; | |
11177 | char * kwnames[] = { | |
11178 | (char *) "self",(char *) "region", NULL | |
11179 | }; | |
11180 | ||
11181 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11183 | if (!SWIG_IsOK(res1)) { | |
11184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11185 | } | |
11186 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11187 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11188 | if (!SWIG_IsOK(res2)) { | |
11189 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11190 | } | |
11191 | if (!argp2) { | |
11192 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11193 | } | |
11194 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11195 | { | |
11196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11197 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11198 | wxPyEndAllowThreads(__tstate); | |
11199 | if (PyErr_Occurred()) SWIG_fail; | |
11200 | } | |
11201 | { | |
11202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11203 | } | |
11204 | return resultobj; | |
11205 | fail: | |
11206 | return NULL; | |
11207 | } | |
11208 | ||
11209 | ||
11210 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11211 | PyObject *resultobj = 0; | |
11212 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11213 | int arg2 ; | |
11214 | int arg3 ; | |
11215 | int arg4 ; | |
11216 | int arg5 ; | |
11217 | bool result; | |
11218 | void *argp1 = 0 ; | |
11219 | int res1 = 0 ; | |
11220 | int val2 ; | |
11221 | int ecode2 = 0 ; | |
11222 | int val3 ; | |
11223 | int ecode3 = 0 ; | |
11224 | int val4 ; | |
11225 | int ecode4 = 0 ; | |
11226 | int val5 ; | |
11227 | int ecode5 = 0 ; | |
11228 | PyObject * obj0 = 0 ; | |
11229 | PyObject * obj1 = 0 ; | |
11230 | PyObject * obj2 = 0 ; | |
11231 | PyObject * obj3 = 0 ; | |
11232 | PyObject * obj4 = 0 ; | |
11233 | char * kwnames[] = { | |
11234 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11235 | }; | |
11236 | ||
11237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11239 | if (!SWIG_IsOK(res1)) { | |
11240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11241 | } | |
11242 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11243 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11244 | if (!SWIG_IsOK(ecode2)) { | |
11245 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11246 | } | |
11247 | arg2 = static_cast< int >(val2); | |
11248 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11249 | if (!SWIG_IsOK(ecode3)) { | |
11250 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11251 | } | |
11252 | arg3 = static_cast< int >(val3); | |
11253 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11254 | if (!SWIG_IsOK(ecode4)) { | |
11255 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11256 | } | |
11257 | arg4 = static_cast< int >(val4); | |
11258 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11259 | if (!SWIG_IsOK(ecode5)) { | |
11260 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11261 | } | |
11262 | arg5 = static_cast< int >(val5); | |
11263 | { | |
11264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11265 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11266 | wxPyEndAllowThreads(__tstate); | |
11267 | if (PyErr_Occurred()) SWIG_fail; | |
11268 | } | |
11269 | { | |
11270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11271 | } | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj = 0; | |
11280 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11281 | wxRect *arg2 = 0 ; | |
11282 | bool result; | |
11283 | void *argp1 = 0 ; | |
11284 | int res1 = 0 ; | |
11285 | wxRect temp2 ; | |
11286 | PyObject * obj0 = 0 ; | |
11287 | PyObject * obj1 = 0 ; | |
11288 | char * kwnames[] = { | |
11289 | (char *) "self",(char *) "rect", NULL | |
11290 | }; | |
11291 | ||
11292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11294 | if (!SWIG_IsOK(res1)) { | |
11295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11296 | } | |
11297 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11298 | { | |
11299 | arg2 = &temp2; | |
11300 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11301 | } | |
11302 | { | |
11303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11304 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
11308 | { | |
11309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11310 | } | |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
11317 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11318 | PyObject *resultobj = 0; | |
11319 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11320 | wxRegion *arg2 = 0 ; | |
11321 | bool result; | |
11322 | void *argp1 = 0 ; | |
11323 | int res1 = 0 ; | |
11324 | void *argp2 = 0 ; | |
11325 | int res2 = 0 ; | |
11326 | PyObject * obj0 = 0 ; | |
11327 | PyObject * obj1 = 0 ; | |
11328 | char * kwnames[] = { | |
11329 | (char *) "self",(char *) "region", NULL | |
11330 | }; | |
11331 | ||
11332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11334 | if (!SWIG_IsOK(res1)) { | |
11335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11336 | } | |
11337 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11338 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11339 | if (!SWIG_IsOK(res2)) { | |
11340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11341 | } | |
11342 | if (!argp2) { | |
11343 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11344 | } | |
11345 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11346 | { | |
11347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11348 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11349 | wxPyEndAllowThreads(__tstate); | |
11350 | if (PyErr_Occurred()) SWIG_fail; | |
11351 | } | |
11352 | { | |
11353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11354 | } | |
11355 | return resultobj; | |
11356 | fail: | |
11357 | return NULL; | |
d14a1e28 RD |
11358 | } |
11359 | ||
11360 | ||
0085ce49 RD |
11361 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11362 | PyObject *resultobj = 0; | |
11363 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11364 | SwigValueWrapper<wxBitmap > result; | |
11365 | void *argp1 = 0 ; | |
11366 | int res1 = 0 ; | |
11367 | PyObject *swig_obj[1] ; | |
11368 | ||
11369 | if (!args) SWIG_fail; | |
11370 | swig_obj[0] = args; | |
11371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11372 | if (!SWIG_IsOK(res1)) { | |
11373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11374 | } | |
11375 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11376 | { | |
11377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11378 | result = (arg1)->ConvertToBitmap(); | |
11379 | wxPyEndAllowThreads(__tstate); | |
11380 | if (PyErr_Occurred()) SWIG_fail; | |
11381 | } | |
11382 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11383 | return resultobj; | |
11384 | fail: | |
11385 | return NULL; | |
11386 | } | |
11387 | ||
11388 | ||
11389 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11390 | PyObject *resultobj = 0; | |
11391 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11392 | wxBitmap *arg2 = 0 ; | |
11393 | bool result; | |
11394 | void *argp1 = 0 ; | |
11395 | int res1 = 0 ; | |
11396 | void *argp2 = 0 ; | |
11397 | int res2 = 0 ; | |
11398 | PyObject * obj0 = 0 ; | |
11399 | PyObject * obj1 = 0 ; | |
11400 | char * kwnames[] = { | |
11401 | (char *) "self",(char *) "bmp", NULL | |
11402 | }; | |
11403 | ||
11404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11406 | if (!SWIG_IsOK(res1)) { | |
11407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11408 | } | |
11409 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11410 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11411 | if (!SWIG_IsOK(res2)) { | |
11412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11413 | } | |
11414 | if (!argp2) { | |
11415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11416 | } | |
11417 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11418 | { | |
11419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11420 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11421 | wxPyEndAllowThreads(__tstate); | |
11422 | if (PyErr_Occurred()) SWIG_fail; | |
11423 | } | |
11424 | { | |
11425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11426 | } | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
11430 | } | |
11431 | ||
11432 | ||
11433 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11434 | PyObject *resultobj = 0; | |
11435 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11436 | wxBitmap *arg2 = 0 ; | |
11437 | wxColour *arg3 = 0 ; | |
11438 | int arg4 = (int) 0 ; | |
11439 | bool result; | |
11440 | void *argp1 = 0 ; | |
11441 | int res1 = 0 ; | |
11442 | void *argp2 = 0 ; | |
11443 | int res2 = 0 ; | |
11444 | wxColour temp3 ; | |
11445 | int val4 ; | |
11446 | int ecode4 = 0 ; | |
11447 | PyObject * obj0 = 0 ; | |
11448 | PyObject * obj1 = 0 ; | |
11449 | PyObject * obj2 = 0 ; | |
11450 | PyObject * obj3 = 0 ; | |
11451 | char * kwnames[] = { | |
11452 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11453 | }; | |
11454 | ||
11455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11457 | if (!SWIG_IsOK(res1)) { | |
11458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11459 | } | |
11460 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11461 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11462 | if (!SWIG_IsOK(res2)) { | |
11463 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11464 | } | |
11465 | if (!argp2) { | |
11466 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11467 | } | |
11468 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11469 | { | |
11470 | arg3 = &temp3; | |
11471 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11472 | } | |
11473 | if (obj3) { | |
11474 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11475 | if (!SWIG_IsOK(ecode4)) { | |
11476 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11477 | } | |
11478 | arg4 = static_cast< int >(val4); | |
11479 | } | |
11480 | { | |
11481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11482 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11483 | wxPyEndAllowThreads(__tstate); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | } | |
11486 | { | |
11487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11488 | } | |
11489 | return resultobj; | |
11490 | fail: | |
11491 | return NULL; | |
d14a1e28 RD |
11492 | } |
11493 | ||
11494 | ||
0085ce49 RD |
11495 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11496 | PyObject *obj; | |
11497 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11498 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11499 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11500 | } |
11501 | ||
0085ce49 RD |
11502 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11503 | return SWIG_Python_InitShadowInstance(args); | |
11504 | } | |
d14a1e28 | 11505 | |
0085ce49 RD |
11506 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11507 | PyObject *resultobj = 0; | |
11508 | wxRegion *arg1 = 0 ; | |
11509 | wxRegionIterator *result = 0 ; | |
11510 | void *argp1 = 0 ; | |
11511 | int res1 = 0 ; | |
11512 | PyObject * obj0 = 0 ; | |
11513 | char * kwnames[] = { | |
11514 | (char *) "region", NULL | |
11515 | }; | |
11516 | ||
11517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11518 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11519 | if (!SWIG_IsOK(res1)) { | |
11520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11521 | } | |
11522 | if (!argp1) { | |
11523 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11524 | } | |
11525 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11526 | { | |
11527 | if (!wxPyCheckForApp()) SWIG_fail; | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11530 | wxPyEndAllowThreads(__tstate); | |
11531 | if (PyErr_Occurred()) SWIG_fail; | |
11532 | } | |
11533 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11534 | return resultobj; | |
11535 | fail: | |
11536 | return NULL; | |
d14a1e28 RD |
11537 | } |
11538 | ||
11539 | ||
0085ce49 RD |
11540 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11541 | PyObject *resultobj = 0; | |
11542 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11543 | void *argp1 = 0 ; | |
11544 | int res1 = 0 ; | |
11545 | PyObject *swig_obj[1] ; | |
11546 | ||
11547 | if (!args) SWIG_fail; | |
11548 | swig_obj[0] = args; | |
11549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11550 | if (!SWIG_IsOK(res1)) { | |
11551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11552 | } | |
11553 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | delete arg1; | |
d14a1e28 | 11557 | |
0085ce49 RD |
11558 | wxPyEndAllowThreads(__tstate); |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
11560 | } | |
11561 | resultobj = SWIG_Py_Void(); | |
11562 | return resultobj; | |
11563 | fail: | |
11564 | return NULL; | |
d14a1e28 RD |
11565 | } |
11566 | ||
11567 | ||
0085ce49 RD |
11568 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11569 | PyObject *resultobj = 0; | |
11570 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11571 | int result; | |
11572 | void *argp1 = 0 ; | |
11573 | int res1 = 0 ; | |
11574 | PyObject *swig_obj[1] ; | |
11575 | ||
11576 | if (!args) SWIG_fail; | |
11577 | swig_obj[0] = args; | |
11578 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11579 | if (!SWIG_IsOK(res1)) { | |
11580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11581 | } | |
11582 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11583 | { | |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | result = (int)(arg1)->GetX(); | |
11586 | wxPyEndAllowThreads(__tstate); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
11589 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11590 | return resultobj; | |
11591 | fail: | |
11592 | return NULL; | |
d14a1e28 RD |
11593 | } |
11594 | ||
11595 | ||
0085ce49 RD |
11596 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11597 | PyObject *resultobj = 0; | |
11598 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11599 | int result; | |
11600 | void *argp1 = 0 ; | |
11601 | int res1 = 0 ; | |
11602 | PyObject *swig_obj[1] ; | |
11603 | ||
11604 | if (!args) SWIG_fail; | |
11605 | swig_obj[0] = args; | |
11606 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11607 | if (!SWIG_IsOK(res1)) { | |
11608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11609 | } | |
11610 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11611 | { | |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | result = (int)(arg1)->GetY(); | |
11614 | wxPyEndAllowThreads(__tstate); | |
11615 | if (PyErr_Occurred()) SWIG_fail; | |
11616 | } | |
11617 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11618 | return resultobj; | |
11619 | fail: | |
11620 | return NULL; | |
d14a1e28 RD |
11621 | } |
11622 | ||
11623 | ||
0085ce49 RD |
11624 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11625 | PyObject *resultobj = 0; | |
11626 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11627 | int result; | |
11628 | void *argp1 = 0 ; | |
11629 | int res1 = 0 ; | |
11630 | PyObject *swig_obj[1] ; | |
11631 | ||
11632 | if (!args) SWIG_fail; | |
11633 | swig_obj[0] = args; | |
11634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11635 | if (!SWIG_IsOK(res1)) { | |
11636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11637 | } | |
11638 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11639 | { | |
11640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11641 | result = (int)(arg1)->GetW(); | |
11642 | wxPyEndAllowThreads(__tstate); | |
11643 | if (PyErr_Occurred()) SWIG_fail; | |
11644 | } | |
11645 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11646 | return resultobj; | |
11647 | fail: | |
11648 | return NULL; | |
d14a1e28 RD |
11649 | } |
11650 | ||
11651 | ||
0085ce49 RD |
11652 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11653 | PyObject *resultobj = 0; | |
11654 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11655 | int result; | |
11656 | void *argp1 = 0 ; | |
11657 | int res1 = 0 ; | |
11658 | PyObject *swig_obj[1] ; | |
11659 | ||
11660 | if (!args) SWIG_fail; | |
11661 | swig_obj[0] = args; | |
11662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11663 | if (!SWIG_IsOK(res1)) { | |
11664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11665 | } | |
11666 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11667 | { | |
11668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11669 | result = (int)(arg1)->GetWidth(); | |
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
11673 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11674 | return resultobj; | |
11675 | fail: | |
11676 | return NULL; | |
093d3ff1 RD |
11677 | } |
11678 | ||
11679 | ||
0085ce49 RD |
11680 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11681 | PyObject *resultobj = 0; | |
11682 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11683 | int result; | |
11684 | void *argp1 = 0 ; | |
11685 | int res1 = 0 ; | |
11686 | PyObject *swig_obj[1] ; | |
11687 | ||
11688 | if (!args) SWIG_fail; | |
11689 | swig_obj[0] = args; | |
11690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11691 | if (!SWIG_IsOK(res1)) { | |
11692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11693 | } | |
11694 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11695 | { | |
11696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11697 | result = (int)(arg1)->GetH(); | |
11698 | wxPyEndAllowThreads(__tstate); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11702 | return resultobj; | |
11703 | fail: | |
11704 | return NULL; | |
d14a1e28 RD |
11705 | } |
11706 | ||
11707 | ||
0085ce49 RD |
11708 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11709 | PyObject *resultobj = 0; | |
11710 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11711 | int result; | |
11712 | void *argp1 = 0 ; | |
11713 | int res1 = 0 ; | |
11714 | PyObject *swig_obj[1] ; | |
11715 | ||
11716 | if (!args) SWIG_fail; | |
11717 | swig_obj[0] = args; | |
11718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11719 | if (!SWIG_IsOK(res1)) { | |
11720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11721 | } | |
11722 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11723 | { | |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | result = (int)(arg1)->GetHeight(); | |
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11730 | return resultobj; | |
11731 | fail: | |
11732 | return NULL; | |
093d3ff1 RD |
11733 | } |
11734 | ||
11735 | ||
0085ce49 RD |
11736 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11737 | PyObject *resultobj = 0; | |
11738 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11739 | wxRect result; | |
11740 | void *argp1 = 0 ; | |
11741 | int res1 = 0 ; | |
11742 | PyObject *swig_obj[1] ; | |
11743 | ||
11744 | if (!args) SWIG_fail; | |
11745 | swig_obj[0] = args; | |
11746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11747 | if (!SWIG_IsOK(res1)) { | |
11748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11749 | } | |
11750 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11751 | { | |
11752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11753 | result = (arg1)->GetRect(); | |
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
11757 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11758 | return resultobj; | |
11759 | fail: | |
11760 | return NULL; | |
d14a1e28 RD |
11761 | } |
11762 | ||
11763 | ||
0085ce49 RD |
11764 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11765 | PyObject *resultobj = 0; | |
11766 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11767 | bool result; | |
11768 | void *argp1 = 0 ; | |
11769 | int res1 = 0 ; | |
11770 | PyObject *swig_obj[1] ; | |
11771 | ||
11772 | if (!args) SWIG_fail; | |
11773 | swig_obj[0] = args; | |
11774 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11775 | if (!SWIG_IsOK(res1)) { | |
11776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11777 | } | |
11778 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (bool)(arg1)->HaveRects(); | |
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
11785 | { | |
11786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11787 | } | |
11788 | return resultobj; | |
11789 | fail: | |
11790 | return NULL; | |
093d3ff1 RD |
11791 | } |
11792 | ||
11793 | ||
0085ce49 RD |
11794 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11795 | PyObject *resultobj = 0; | |
11796 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11797 | void *argp1 = 0 ; | |
11798 | int res1 = 0 ; | |
11799 | PyObject *swig_obj[1] ; | |
11800 | ||
11801 | if (!args) SWIG_fail; | |
11802 | swig_obj[0] = args; | |
11803 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11804 | if (!SWIG_IsOK(res1)) { | |
11805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11806 | } | |
11807 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11808 | { | |
11809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11810 | (arg1)->Reset(); | |
11811 | wxPyEndAllowThreads(__tstate); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | resultobj = SWIG_Py_Void(); | |
11815 | return resultobj; | |
11816 | fail: | |
11817 | return NULL; | |
d14a1e28 RD |
11818 | } |
11819 | ||
11820 | ||
0085ce49 RD |
11821 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11822 | PyObject *resultobj = 0; | |
11823 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11824 | void *argp1 = 0 ; | |
11825 | int res1 = 0 ; | |
11826 | PyObject *swig_obj[1] ; | |
11827 | ||
11828 | if (!args) SWIG_fail; | |
11829 | swig_obj[0] = args; | |
11830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11831 | if (!SWIG_IsOK(res1)) { | |
11832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11833 | } | |
11834 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | wxRegionIterator_Next(arg1); | |
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | resultobj = SWIG_Py_Void(); | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
d14a1e28 RD |
11845 | } |
11846 | ||
11847 | ||
0085ce49 RD |
11848 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11849 | PyObject *resultobj = 0; | |
11850 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11851 | bool result; | |
11852 | void *argp1 = 0 ; | |
11853 | int res1 = 0 ; | |
11854 | PyObject *swig_obj[1] ; | |
11855 | ||
11856 | if (!args) SWIG_fail; | |
11857 | swig_obj[0] = args; | |
11858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11859 | if (!SWIG_IsOK(res1)) { | |
11860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11861 | } | |
11862 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11863 | { | |
11864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11865 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
11866 | wxPyEndAllowThreads(__tstate); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | { | |
11870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11871 | } | |
11872 | return resultobj; | |
11873 | fail: | |
11874 | return NULL; | |
d14a1e28 RD |
11875 | } |
11876 | ||
11877 | ||
0085ce49 RD |
11878 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11879 | PyObject *obj; | |
11880 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11881 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
11882 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11883 | } |
11884 | ||
0085ce49 RD |
11885 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11886 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
11887 | } |
11888 | ||
0085ce49 RD |
11889 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11890 | PyObject *resultobj = 0; | |
11891 | wxNativeFontInfo *result = 0 ; | |
11892 | ||
11893 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
11894 | { | |
11895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11896 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
11897 | wxPyEndAllowThreads(__tstate); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
11901 | return resultobj; | |
11902 | fail: | |
11903 | return NULL; | |
d14a1e28 RD |
11904 | } |
11905 | ||
11906 | ||
0085ce49 RD |
11907 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11908 | PyObject *resultobj = 0; | |
11909 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11910 | void *argp1 = 0 ; | |
11911 | int res1 = 0 ; | |
11912 | PyObject *swig_obj[1] ; | |
11913 | ||
11914 | if (!args) SWIG_fail; | |
11915 | swig_obj[0] = args; | |
11916 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
11917 | if (!SWIG_IsOK(res1)) { | |
11918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11919 | } | |
11920 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11921 | { | |
11922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11923 | delete arg1; | |
d14a1e28 | 11924 | |
0085ce49 RD |
11925 | wxPyEndAllowThreads(__tstate); |
11926 | if (PyErr_Occurred()) SWIG_fail; | |
11927 | } | |
11928 | resultobj = SWIG_Py_Void(); | |
11929 | return resultobj; | |
11930 | fail: | |
11931 | return NULL; | |
d14a1e28 RD |
11932 | } |
11933 | ||
11934 | ||
0085ce49 RD |
11935 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11936 | PyObject *resultobj = 0; | |
11937 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11938 | void *argp1 = 0 ; | |
11939 | int res1 = 0 ; | |
11940 | PyObject *swig_obj[1] ; | |
11941 | ||
11942 | if (!args) SWIG_fail; | |
11943 | swig_obj[0] = args; | |
11944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11945 | if (!SWIG_IsOK(res1)) { | |
11946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11947 | } | |
11948 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11949 | { | |
11950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11951 | (arg1)->Init(); | |
11952 | wxPyEndAllowThreads(__tstate); | |
11953 | if (PyErr_Occurred()) SWIG_fail; | |
11954 | } | |
11955 | resultobj = SWIG_Py_Void(); | |
11956 | return resultobj; | |
11957 | fail: | |
11958 | return NULL; | |
11959 | } | |
11960 | ||
11961 | ||
11962 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11963 | PyObject *resultobj = 0; | |
11964 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11965 | wxFont *arg2 = 0 ; | |
11966 | void *argp1 = 0 ; | |
11967 | int res1 = 0 ; | |
11968 | void *argp2 = 0 ; | |
11969 | int res2 = 0 ; | |
11970 | PyObject * obj0 = 0 ; | |
11971 | PyObject * obj1 = 0 ; | |
11972 | char * kwnames[] = { | |
11973 | (char *) "self",(char *) "font", NULL | |
11974 | }; | |
11975 | ||
11976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
11977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11978 | if (!SWIG_IsOK(res1)) { | |
11979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11980 | } | |
11981 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11982 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
11983 | if (!SWIG_IsOK(res2)) { | |
11984 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
11985 | } | |
11986 | if (!argp2) { | |
11987 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
11988 | } | |
11989 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
11990 | { | |
11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11992 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
11993 | wxPyEndAllowThreads(__tstate); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
11995 | } | |
11996 | resultobj = SWIG_Py_Void(); | |
11997 | return resultobj; | |
11998 | fail: | |
11999 | return NULL; | |
e6ffcedd RD |
12000 | } |
12001 | ||
12002 | ||
0085ce49 RD |
12003 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12004 | PyObject *resultobj = 0; | |
12005 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12006 | int result; | |
12007 | void *argp1 = 0 ; | |
12008 | int res1 = 0 ; | |
12009 | PyObject *swig_obj[1] ; | |
12010 | ||
12011 | if (!args) SWIG_fail; | |
12012 | swig_obj[0] = args; | |
12013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12014 | if (!SWIG_IsOK(res1)) { | |
12015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12016 | } | |
12017 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12018 | { | |
12019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12020 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12021 | wxPyEndAllowThreads(__tstate); | |
12022 | if (PyErr_Occurred()) SWIG_fail; | |
12023 | } | |
12024 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12025 | return resultobj; | |
12026 | fail: | |
12027 | return NULL; | |
d14a1e28 RD |
12028 | } |
12029 | ||
12030 | ||
0085ce49 RD |
12031 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12032 | PyObject *resultobj = 0; | |
12033 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12034 | wxFontStyle result; | |
12035 | void *argp1 = 0 ; | |
12036 | int res1 = 0 ; | |
12037 | PyObject *swig_obj[1] ; | |
12038 | ||
12039 | if (!args) SWIG_fail; | |
12040 | swig_obj[0] = args; | |
12041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12042 | if (!SWIG_IsOK(res1)) { | |
12043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12044 | } | |
12045 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12046 | { | |
12047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12048 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12049 | wxPyEndAllowThreads(__tstate); | |
12050 | if (PyErr_Occurred()) SWIG_fail; | |
12051 | } | |
12052 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12053 | return resultobj; | |
12054 | fail: | |
12055 | return NULL; | |
d14a1e28 RD |
12056 | } |
12057 | ||
12058 | ||
0085ce49 RD |
12059 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12060 | PyObject *resultobj = 0; | |
12061 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12062 | wxFontWeight result; | |
12063 | void *argp1 = 0 ; | |
12064 | int res1 = 0 ; | |
12065 | PyObject *swig_obj[1] ; | |
12066 | ||
12067 | if (!args) SWIG_fail; | |
12068 | swig_obj[0] = args; | |
12069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12070 | if (!SWIG_IsOK(res1)) { | |
12071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12072 | } | |
12073 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12074 | { | |
12075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12076 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12077 | wxPyEndAllowThreads(__tstate); | |
12078 | if (PyErr_Occurred()) SWIG_fail; | |
12079 | } | |
12080 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12081 | return resultobj; | |
12082 | fail: | |
12083 | return NULL; | |
d14a1e28 RD |
12084 | } |
12085 | ||
12086 | ||
0085ce49 RD |
12087 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12088 | PyObject *resultobj = 0; | |
12089 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12090 | bool result; | |
12091 | void *argp1 = 0 ; | |
12092 | int res1 = 0 ; | |
12093 | PyObject *swig_obj[1] ; | |
12094 | ||
12095 | if (!args) SWIG_fail; | |
12096 | swig_obj[0] = args; | |
12097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12098 | if (!SWIG_IsOK(res1)) { | |
12099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12100 | } | |
12101 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12102 | { | |
12103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12104 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12105 | wxPyEndAllowThreads(__tstate); | |
12106 | if (PyErr_Occurred()) SWIG_fail; | |
12107 | } | |
12108 | { | |
12109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12110 | } | |
12111 | return resultobj; | |
12112 | fail: | |
12113 | return NULL; | |
d14a1e28 RD |
12114 | } |
12115 | ||
12116 | ||
0085ce49 RD |
12117 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12118 | PyObject *resultobj = 0; | |
12119 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12120 | wxString result; | |
12121 | void *argp1 = 0 ; | |
12122 | int res1 = 0 ; | |
12123 | PyObject *swig_obj[1] ; | |
12124 | ||
12125 | if (!args) SWIG_fail; | |
12126 | swig_obj[0] = args; | |
12127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12128 | if (!SWIG_IsOK(res1)) { | |
12129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12130 | } | |
12131 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12132 | { | |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12134 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12135 | wxPyEndAllowThreads(__tstate); | |
12136 | if (PyErr_Occurred()) SWIG_fail; | |
12137 | } | |
12138 | { | |
12139 | #if wxUSE_UNICODE | |
12140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12141 | #else | |
12142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12143 | #endif | |
12144 | } | |
12145 | return resultobj; | |
12146 | fail: | |
12147 | return NULL; | |
d14a1e28 RD |
12148 | } |
12149 | ||
12150 | ||
0085ce49 RD |
12151 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12152 | PyObject *resultobj = 0; | |
12153 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12154 | wxFontFamily result; | |
12155 | void *argp1 = 0 ; | |
12156 | int res1 = 0 ; | |
12157 | PyObject *swig_obj[1] ; | |
12158 | ||
12159 | if (!args) SWIG_fail; | |
12160 | swig_obj[0] = args; | |
12161 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12162 | if (!SWIG_IsOK(res1)) { | |
12163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12164 | } | |
12165 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12166 | { | |
12167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12168 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12169 | wxPyEndAllowThreads(__tstate); | |
12170 | if (PyErr_Occurred()) SWIG_fail; | |
12171 | } | |
12172 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12173 | return resultobj; | |
12174 | fail: | |
12175 | return NULL; | |
d14a1e28 RD |
12176 | } |
12177 | ||
12178 | ||
0085ce49 RD |
12179 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12180 | PyObject *resultobj = 0; | |
12181 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12182 | wxFontEncoding result; | |
12183 | void *argp1 = 0 ; | |
12184 | int res1 = 0 ; | |
12185 | PyObject *swig_obj[1] ; | |
12186 | ||
12187 | if (!args) SWIG_fail; | |
12188 | swig_obj[0] = args; | |
12189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12190 | if (!SWIG_IsOK(res1)) { | |
12191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12192 | } | |
12193 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12194 | { | |
12195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12196 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12197 | wxPyEndAllowThreads(__tstate); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
12200 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12201 | return resultobj; | |
12202 | fail: | |
12203 | return NULL; | |
12204 | } | |
12205 | ||
12206 | ||
12207 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12208 | PyObject *resultobj = 0; | |
12209 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12210 | int arg2 ; | |
12211 | void *argp1 = 0 ; | |
12212 | int res1 = 0 ; | |
12213 | int val2 ; | |
12214 | int ecode2 = 0 ; | |
12215 | PyObject * obj0 = 0 ; | |
12216 | PyObject * obj1 = 0 ; | |
12217 | char * kwnames[] = { | |
12218 | (char *) "self",(char *) "pointsize", NULL | |
12219 | }; | |
12220 | ||
12221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12223 | if (!SWIG_IsOK(res1)) { | |
12224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12225 | } | |
12226 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12227 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12228 | if (!SWIG_IsOK(ecode2)) { | |
12229 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12230 | } | |
12231 | arg2 = static_cast< int >(val2); | |
12232 | { | |
12233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12234 | (arg1)->SetPointSize(arg2); | |
12235 | wxPyEndAllowThreads(__tstate); | |
12236 | if (PyErr_Occurred()) SWIG_fail; | |
12237 | } | |
12238 | resultobj = SWIG_Py_Void(); | |
12239 | return resultobj; | |
12240 | fail: | |
12241 | return NULL; | |
12242 | } | |
12243 | ||
12244 | ||
12245 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12246 | PyObject *resultobj = 0; | |
12247 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12248 | wxFontStyle arg2 ; | |
12249 | void *argp1 = 0 ; | |
12250 | int res1 = 0 ; | |
12251 | int val2 ; | |
12252 | int ecode2 = 0 ; | |
12253 | PyObject * obj0 = 0 ; | |
12254 | PyObject * obj1 = 0 ; | |
12255 | char * kwnames[] = { | |
12256 | (char *) "self",(char *) "style", NULL | |
12257 | }; | |
12258 | ||
12259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12261 | if (!SWIG_IsOK(res1)) { | |
12262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12263 | } | |
12264 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12265 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12266 | if (!SWIG_IsOK(ecode2)) { | |
12267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12268 | } | |
12269 | arg2 = static_cast< wxFontStyle >(val2); | |
12270 | { | |
12271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12272 | (arg1)->SetStyle(arg2); | |
12273 | wxPyEndAllowThreads(__tstate); | |
12274 | if (PyErr_Occurred()) SWIG_fail; | |
12275 | } | |
12276 | resultobj = SWIG_Py_Void(); | |
12277 | return resultobj; | |
12278 | fail: | |
12279 | return NULL; | |
12280 | } | |
12281 | ||
12282 | ||
12283 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12284 | PyObject *resultobj = 0; | |
12285 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12286 | wxFontWeight arg2 ; | |
12287 | void *argp1 = 0 ; | |
12288 | int res1 = 0 ; | |
12289 | int val2 ; | |
12290 | int ecode2 = 0 ; | |
12291 | PyObject * obj0 = 0 ; | |
12292 | PyObject * obj1 = 0 ; | |
12293 | char * kwnames[] = { | |
12294 | (char *) "self",(char *) "weight", NULL | |
12295 | }; | |
12296 | ||
12297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12299 | if (!SWIG_IsOK(res1)) { | |
12300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12301 | } | |
12302 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12303 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12304 | if (!SWIG_IsOK(ecode2)) { | |
12305 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12306 | } | |
12307 | arg2 = static_cast< wxFontWeight >(val2); | |
12308 | { | |
12309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12310 | (arg1)->SetWeight(arg2); | |
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | resultobj = SWIG_Py_Void(); | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj = 0; | |
12323 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12324 | bool arg2 ; | |
12325 | void *argp1 = 0 ; | |
12326 | int res1 = 0 ; | |
12327 | bool val2 ; | |
12328 | int ecode2 = 0 ; | |
12329 | PyObject * obj0 = 0 ; | |
12330 | PyObject * obj1 = 0 ; | |
12331 | char * kwnames[] = { | |
12332 | (char *) "self",(char *) "underlined", NULL | |
12333 | }; | |
12334 | ||
12335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12337 | if (!SWIG_IsOK(res1)) { | |
12338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12339 | } | |
12340 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12341 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12342 | if (!SWIG_IsOK(ecode2)) { | |
12343 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12344 | } | |
12345 | arg2 = static_cast< bool >(val2); | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | (arg1)->SetUnderlined(arg2); | |
12349 | wxPyEndAllowThreads(__tstate); | |
12350 | if (PyErr_Occurred()) SWIG_fail; | |
12351 | } | |
12352 | resultobj = SWIG_Py_Void(); | |
12353 | return resultobj; | |
12354 | fail: | |
12355 | return NULL; | |
12356 | } | |
12357 | ||
12358 | ||
12359 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12360 | PyObject *resultobj = 0; | |
12361 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12362 | wxString arg2 ; | |
704eda0c | 12363 | bool result; |
0085ce49 RD |
12364 | void *argp1 = 0 ; |
12365 | int res1 = 0 ; | |
12366 | PyObject * obj0 = 0 ; | |
12367 | PyObject * obj1 = 0 ; | |
12368 | char * kwnames[] = { | |
12369 | (char *) "self",(char *) "facename", NULL | |
12370 | }; | |
12371 | ||
12372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12374 | if (!SWIG_IsOK(res1)) { | |
12375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12376 | } | |
12377 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12378 | { | |
12379 | wxString* sptr = wxString_in_helper(obj1); | |
12380 | if (sptr == NULL) SWIG_fail; | |
12381 | arg2 = *sptr; | |
12382 | delete sptr; | |
12383 | } | |
12384 | { | |
12385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12386 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12387 | wxPyEndAllowThreads(__tstate); |
12388 | if (PyErr_Occurred()) SWIG_fail; | |
12389 | } | |
704eda0c RD |
12390 | { |
12391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12392 | } | |
0085ce49 RD |
12393 | return resultobj; |
12394 | fail: | |
12395 | return NULL; | |
12396 | } | |
12397 | ||
12398 | ||
12399 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12400 | PyObject *resultobj = 0; | |
12401 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12402 | wxFontFamily arg2 ; | |
12403 | void *argp1 = 0 ; | |
12404 | int res1 = 0 ; | |
12405 | int val2 ; | |
12406 | int ecode2 = 0 ; | |
12407 | PyObject * obj0 = 0 ; | |
12408 | PyObject * obj1 = 0 ; | |
12409 | char * kwnames[] = { | |
12410 | (char *) "self",(char *) "family", NULL | |
12411 | }; | |
12412 | ||
12413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12415 | if (!SWIG_IsOK(res1)) { | |
12416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12417 | } | |
12418 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12419 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12420 | if (!SWIG_IsOK(ecode2)) { | |
12421 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12422 | } | |
12423 | arg2 = static_cast< wxFontFamily >(val2); | |
12424 | { | |
12425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12426 | (arg1)->SetFamily(arg2); | |
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
12430 | resultobj = SWIG_Py_Void(); | |
12431 | return resultobj; | |
12432 | fail: | |
12433 | return NULL; | |
12434 | } | |
12435 | ||
12436 | ||
12437 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12438 | PyObject *resultobj = 0; | |
12439 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12440 | wxFontEncoding arg2 ; | |
12441 | void *argp1 = 0 ; | |
12442 | int res1 = 0 ; | |
12443 | int val2 ; | |
12444 | int ecode2 = 0 ; | |
12445 | PyObject * obj0 = 0 ; | |
12446 | PyObject * obj1 = 0 ; | |
12447 | char * kwnames[] = { | |
12448 | (char *) "self",(char *) "encoding", NULL | |
12449 | }; | |
12450 | ||
12451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12453 | if (!SWIG_IsOK(res1)) { | |
12454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12455 | } | |
12456 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12457 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12458 | if (!SWIG_IsOK(ecode2)) { | |
12459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12460 | } | |
12461 | arg2 = static_cast< wxFontEncoding >(val2); | |
12462 | { | |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12464 | (arg1)->SetEncoding(arg2); | |
12465 | wxPyEndAllowThreads(__tstate); | |
12466 | if (PyErr_Occurred()) SWIG_fail; | |
12467 | } | |
12468 | resultobj = SWIG_Py_Void(); | |
12469 | return resultobj; | |
12470 | fail: | |
12471 | return NULL; | |
12472 | } | |
12473 | ||
12474 | ||
12475 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12476 | PyObject *resultobj = 0; | |
12477 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12478 | wxString *arg2 = 0 ; | |
12479 | bool result; | |
12480 | void *argp1 = 0 ; | |
12481 | int res1 = 0 ; | |
12482 | bool temp2 = false ; | |
12483 | PyObject * obj0 = 0 ; | |
12484 | PyObject * obj1 = 0 ; | |
12485 | char * kwnames[] = { | |
12486 | (char *) "self",(char *) "s", NULL | |
12487 | }; | |
12488 | ||
12489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12491 | if (!SWIG_IsOK(res1)) { | |
12492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12493 | } | |
12494 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12495 | { | |
12496 | arg2 = wxString_in_helper(obj1); | |
12497 | if (arg2 == NULL) SWIG_fail; | |
12498 | temp2 = true; | |
12499 | } | |
12500 | { | |
12501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12502 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12503 | wxPyEndAllowThreads(__tstate); | |
12504 | if (PyErr_Occurred()) SWIG_fail; | |
12505 | } | |
12506 | { | |
12507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12508 | } | |
12509 | { | |
12510 | if (temp2) | |
12511 | delete arg2; | |
12512 | } | |
12513 | return resultobj; | |
12514 | fail: | |
12515 | { | |
12516 | if (temp2) | |
12517 | delete arg2; | |
12518 | } | |
12519 | return NULL; | |
d14a1e28 RD |
12520 | } |
12521 | ||
12522 | ||
0085ce49 RD |
12523 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12524 | PyObject *resultobj = 0; | |
12525 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12526 | wxString result; | |
12527 | void *argp1 = 0 ; | |
12528 | int res1 = 0 ; | |
12529 | PyObject *swig_obj[1] ; | |
12530 | ||
12531 | if (!args) SWIG_fail; | |
12532 | swig_obj[0] = args; | |
12533 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12534 | if (!SWIG_IsOK(res1)) { | |
12535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12536 | } | |
12537 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12538 | { | |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12541 | wxPyEndAllowThreads(__tstate); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
12544 | { | |
12545 | #if wxUSE_UNICODE | |
12546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12547 | #else | |
12548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12549 | #endif | |
12550 | } | |
12551 | return resultobj; | |
12552 | fail: | |
12553 | return NULL; | |
d14a1e28 RD |
12554 | } |
12555 | ||
12556 | ||
0085ce49 RD |
12557 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12558 | PyObject *resultobj = 0; | |
12559 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12560 | wxString result; | |
12561 | void *argp1 = 0 ; | |
12562 | int res1 = 0 ; | |
12563 | PyObject *swig_obj[1] ; | |
12564 | ||
12565 | if (!args) SWIG_fail; | |
12566 | swig_obj[0] = args; | |
12567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12568 | if (!SWIG_IsOK(res1)) { | |
12569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12570 | } | |
12571 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12572 | { | |
12573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12574 | result = wxNativeFontInfo___str__(arg1); | |
12575 | wxPyEndAllowThreads(__tstate); | |
12576 | if (PyErr_Occurred()) SWIG_fail; | |
12577 | } | |
12578 | { | |
12579 | #if wxUSE_UNICODE | |
12580 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12581 | #else | |
12582 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12583 | #endif | |
12584 | } | |
12585 | return resultobj; | |
12586 | fail: | |
12587 | return NULL; | |
12588 | } | |
12589 | ||
12590 | ||
12591 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12592 | PyObject *resultobj = 0; | |
12593 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12594 | wxString *arg2 = 0 ; | |
12595 | bool result; | |
12596 | void *argp1 = 0 ; | |
12597 | int res1 = 0 ; | |
12598 | bool temp2 = false ; | |
12599 | PyObject * obj0 = 0 ; | |
12600 | PyObject * obj1 = 0 ; | |
12601 | char * kwnames[] = { | |
12602 | (char *) "self",(char *) "s", NULL | |
12603 | }; | |
12604 | ||
12605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12607 | if (!SWIG_IsOK(res1)) { | |
12608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12609 | } | |
12610 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12611 | { | |
12612 | arg2 = wxString_in_helper(obj1); | |
12613 | if (arg2 == NULL) SWIG_fail; | |
12614 | temp2 = true; | |
12615 | } | |
12616 | { | |
12617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12618 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12619 | wxPyEndAllowThreads(__tstate); | |
12620 | if (PyErr_Occurred()) SWIG_fail; | |
12621 | } | |
12622 | { | |
12623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12624 | } | |
12625 | { | |
12626 | if (temp2) | |
12627 | delete arg2; | |
12628 | } | |
12629 | return resultobj; | |
12630 | fail: | |
12631 | { | |
12632 | if (temp2) | |
12633 | delete arg2; | |
12634 | } | |
12635 | return NULL; | |
d14a1e28 RD |
12636 | } |
12637 | ||
12638 | ||
0085ce49 RD |
12639 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12640 | PyObject *resultobj = 0; | |
12641 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12642 | wxString result; | |
12643 | void *argp1 = 0 ; | |
12644 | int res1 = 0 ; | |
12645 | PyObject *swig_obj[1] ; | |
12646 | ||
12647 | if (!args) SWIG_fail; | |
12648 | swig_obj[0] = args; | |
12649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12650 | if (!SWIG_IsOK(res1)) { | |
12651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12652 | } | |
12653 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12654 | { | |
12655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12656 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
12660 | { | |
12661 | #if wxUSE_UNICODE | |
12662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12663 | #else | |
12664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12665 | #endif | |
12666 | } | |
12667 | return resultobj; | |
12668 | fail: | |
12669 | return NULL; | |
d14a1e28 RD |
12670 | } |
12671 | ||
12672 | ||
0085ce49 RD |
12673 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12674 | PyObject *obj; | |
12675 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12676 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
12677 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12678 | } |
12679 | ||
0085ce49 RD |
12680 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12681 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12682 | } |
12683 | ||
0085ce49 RD |
12684 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12685 | PyObject *resultobj = 0; | |
12686 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12687 | wxString *arg2 = (wxString *) 0 ; | |
12688 | void *argp1 = 0 ; | |
12689 | int res1 = 0 ; | |
12690 | bool temp2 = false ; | |
12691 | PyObject *swig_obj[2] ; | |
12692 | ||
12693 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
12694 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12695 | if (!SWIG_IsOK(res1)) { | |
12696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12697 | } | |
12698 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12699 | { | |
12700 | arg2 = wxString_in_helper(swig_obj[1]); | |
12701 | if (arg2 == NULL) SWIG_fail; | |
12702 | temp2 = true; | |
12703 | } | |
12704 | if (arg1) (arg1)->facename = *arg2; | |
12705 | ||
12706 | resultobj = SWIG_Py_Void(); | |
12707 | { | |
12708 | if (temp2) | |
12709 | delete arg2; | |
12710 | } | |
12711 | return resultobj; | |
12712 | fail: | |
12713 | { | |
12714 | if (temp2) | |
12715 | delete arg2; | |
12716 | } | |
12717 | return NULL; | |
d14a1e28 RD |
12718 | } |
12719 | ||
12720 | ||
0085ce49 RD |
12721 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12722 | PyObject *resultobj = 0; | |
12723 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12724 | wxString *result = 0 ; | |
12725 | void *argp1 = 0 ; | |
12726 | int res1 = 0 ; | |
12727 | PyObject *swig_obj[1] ; | |
12728 | ||
12729 | if (!args) SWIG_fail; | |
12730 | swig_obj[0] = args; | |
12731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12732 | if (!SWIG_IsOK(res1)) { | |
12733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12734 | } | |
12735 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12736 | result = (wxString *)& ((arg1)->facename); | |
12737 | { | |
12738 | #if wxUSE_UNICODE | |
12739 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12740 | #else | |
12741 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12742 | #endif | |
12743 | } | |
12744 | return resultobj; | |
12745 | fail: | |
12746 | return NULL; | |
d14a1e28 RD |
12747 | } |
12748 | ||
12749 | ||
0085ce49 RD |
12750 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12751 | PyObject *resultobj = 0; | |
12752 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12753 | wxFontEncoding arg2 ; | |
12754 | void *argp1 = 0 ; | |
12755 | int res1 = 0 ; | |
12756 | int val2 ; | |
12757 | int ecode2 = 0 ; | |
12758 | PyObject *swig_obj[2] ; | |
12759 | ||
12760 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
12761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12762 | if (!SWIG_IsOK(res1)) { | |
12763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12764 | } | |
12765 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12766 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
12767 | if (!SWIG_IsOK(ecode2)) { | |
12768 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12769 | } | |
12770 | arg2 = static_cast< wxFontEncoding >(val2); | |
12771 | if (arg1) (arg1)->encoding = arg2; | |
12772 | ||
12773 | resultobj = SWIG_Py_Void(); | |
12774 | return resultobj; | |
12775 | fail: | |
12776 | return NULL; | |
d14a1e28 RD |
12777 | } |
12778 | ||
12779 | ||
0085ce49 RD |
12780 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12781 | PyObject *resultobj = 0; | |
12782 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12783 | wxFontEncoding result; | |
12784 | void *argp1 = 0 ; | |
12785 | int res1 = 0 ; | |
12786 | PyObject *swig_obj[1] ; | |
12787 | ||
12788 | if (!args) SWIG_fail; | |
12789 | swig_obj[0] = args; | |
12790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12791 | if (!SWIG_IsOK(res1)) { | |
12792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12793 | } | |
12794 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12795 | result = (wxFontEncoding) ((arg1)->encoding); | |
12796 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12797 | return resultobj; | |
12798 | fail: | |
12799 | return NULL; | |
d14a1e28 RD |
12800 | } |
12801 | ||
12802 | ||
0085ce49 RD |
12803 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12804 | PyObject *resultobj = 0; | |
12805 | wxNativeEncodingInfo *result = 0 ; | |
12806 | ||
12807 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
12808 | { | |
12809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12810 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
12811 | wxPyEndAllowThreads(__tstate); | |
12812 | if (PyErr_Occurred()) SWIG_fail; | |
12813 | } | |
12814 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
12815 | return resultobj; | |
12816 | fail: | |
12817 | return NULL; | |
d14a1e28 RD |
12818 | } |
12819 | ||
12820 | ||
0085ce49 RD |
12821 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12822 | PyObject *resultobj = 0; | |
12823 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12824 | void *argp1 = 0 ; | |
12825 | int res1 = 0 ; | |
12826 | PyObject *swig_obj[1] ; | |
12827 | ||
12828 | if (!args) SWIG_fail; | |
12829 | swig_obj[0] = args; | |
12830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
12831 | if (!SWIG_IsOK(res1)) { | |
12832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12833 | } | |
12834 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12835 | { | |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12837 | delete arg1; | |
d14a1e28 | 12838 | |
0085ce49 RD |
12839 | wxPyEndAllowThreads(__tstate); |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
12842 | resultobj = SWIG_Py_Void(); | |
12843 | return resultobj; | |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
12849 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12850 | PyObject *resultobj = 0; | |
12851 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12852 | wxString *arg2 = 0 ; | |
12853 | bool result; | |
12854 | void *argp1 = 0 ; | |
12855 | int res1 = 0 ; | |
12856 | bool temp2 = false ; | |
12857 | PyObject * obj0 = 0 ; | |
12858 | PyObject * obj1 = 0 ; | |
12859 | char * kwnames[] = { | |
12860 | (char *) "self",(char *) "s", NULL | |
12861 | }; | |
12862 | ||
12863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12865 | if (!SWIG_IsOK(res1)) { | |
12866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12867 | } | |
12868 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12869 | { | |
12870 | arg2 = wxString_in_helper(obj1); | |
12871 | if (arg2 == NULL) SWIG_fail; | |
12872 | temp2 = true; | |
12873 | } | |
12874 | { | |
12875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12876 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12877 | wxPyEndAllowThreads(__tstate); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | { | |
12881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12882 | } | |
12883 | { | |
12884 | if (temp2) | |
12885 | delete arg2; | |
12886 | } | |
12887 | return resultobj; | |
12888 | fail: | |
12889 | { | |
12890 | if (temp2) | |
12891 | delete arg2; | |
12892 | } | |
12893 | return NULL; | |
d14a1e28 RD |
12894 | } |
12895 | ||
12896 | ||
0085ce49 RD |
12897 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12898 | PyObject *resultobj = 0; | |
12899 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12900 | wxString result; | |
12901 | void *argp1 = 0 ; | |
12902 | int res1 = 0 ; | |
12903 | PyObject *swig_obj[1] ; | |
12904 | ||
12905 | if (!args) SWIG_fail; | |
12906 | swig_obj[0] = args; | |
12907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12908 | if (!SWIG_IsOK(res1)) { | |
12909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
12910 | } | |
12911 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12912 | { | |
12913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12914 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
12918 | { | |
12919 | #if wxUSE_UNICODE | |
12920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12921 | #else | |
12922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12923 | #endif | |
12924 | } | |
12925 | return resultobj; | |
12926 | fail: | |
12927 | return NULL; | |
d14a1e28 RD |
12928 | } |
12929 | ||
12930 | ||
0085ce49 RD |
12931 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12932 | PyObject *obj; | |
12933 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12934 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
12935 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12936 | } |
12937 | ||
0085ce49 RD |
12938 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12939 | return SWIG_Python_InitShadowInstance(args); | |
12940 | } | |
d14a1e28 | 12941 | |
0085ce49 RD |
12942 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12943 | PyObject *resultobj = 0; | |
12944 | wxFontEncoding arg1 ; | |
12945 | wxNativeEncodingInfo *result = 0 ; | |
12946 | int val1 ; | |
12947 | int ecode1 = 0 ; | |
12948 | PyObject * obj0 = 0 ; | |
12949 | char * kwnames[] = { | |
12950 | (char *) "encoding", NULL | |
12951 | }; | |
12952 | ||
12953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
12954 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12955 | if (!SWIG_IsOK(ecode1)) { | |
12956 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
12957 | } | |
12958 | arg1 = static_cast< wxFontEncoding >(val1); | |
12959 | { | |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12961 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
12962 | wxPyEndAllowThreads(__tstate); | |
12963 | if (PyErr_Occurred()) SWIG_fail; | |
12964 | } | |
12965 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12966 | return resultobj; | |
12967 | fail: | |
12968 | return NULL; | |
12969 | } | |
12970 | ||
12971 | ||
12972 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12973 | PyObject *resultobj = 0; | |
12974 | wxNativeEncodingInfo *arg1 = 0 ; | |
12975 | bool result; | |
12976 | void *argp1 = 0 ; | |
12977 | int res1 = 0 ; | |
12978 | PyObject * obj0 = 0 ; | |
12979 | char * kwnames[] = { | |
12980 | (char *) "info", NULL | |
12981 | }; | |
12982 | ||
12983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
12984 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
12985 | if (!SWIG_IsOK(res1)) { | |
12986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
12987 | } | |
12988 | if (!argp1) { | |
12989 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
12990 | } | |
12991 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12992 | { | |
12993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12994 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
12995 | wxPyEndAllowThreads(__tstate); | |
12996 | if (PyErr_Occurred()) SWIG_fail; | |
12997 | } | |
12998 | { | |
12999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13000 | } | |
13001 | return resultobj; | |
13002 | fail: | |
13003 | return NULL; | |
d14a1e28 RD |
13004 | } |
13005 | ||
13006 | ||
0085ce49 RD |
13007 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13008 | PyObject *resultobj = 0; | |
13009 | wxFontMapper *result = 0 ; | |
13010 | ||
13011 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13012 | { | |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | result = (wxFontMapper *)new wxFontMapper(); | |
13015 | wxPyEndAllowThreads(__tstate); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
13018 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13019 | return resultobj; | |
13020 | fail: | |
13021 | return NULL; | |
d14a1e28 RD |
13022 | } |
13023 | ||
13024 | ||
0085ce49 RD |
13025 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13026 | PyObject *resultobj = 0; | |
13027 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13028 | void *argp1 = 0 ; | |
13029 | int res1 = 0 ; | |
13030 | PyObject *swig_obj[1] ; | |
13031 | ||
13032 | if (!args) SWIG_fail; | |
13033 | swig_obj[0] = args; | |
13034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13035 | if (!SWIG_IsOK(res1)) { | |
13036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13037 | } | |
13038 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13039 | { | |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | delete arg1; | |
d14a1e28 | 13042 | |
0085ce49 RD |
13043 | wxPyEndAllowThreads(__tstate); |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | resultobj = SWIG_Py_Void(); | |
13047 | return resultobj; | |
13048 | fail: | |
13049 | return NULL; | |
d14a1e28 RD |
13050 | } |
13051 | ||
13052 | ||
0085ce49 RD |
13053 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13054 | PyObject *resultobj = 0; | |
13055 | wxFontMapper *result = 0 ; | |
13056 | ||
13057 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13058 | { | |
13059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13060 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13061 | wxPyEndAllowThreads(__tstate); | |
13062 | if (PyErr_Occurred()) SWIG_fail; | |
13063 | } | |
13064 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13065 | return resultobj; | |
13066 | fail: | |
13067 | return NULL; | |
13068 | } | |
13069 | ||
13070 | ||
13071 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13072 | PyObject *resultobj = 0; | |
13073 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13074 | wxFontMapper *result = 0 ; | |
13075 | void *argp1 = 0 ; | |
13076 | int res1 = 0 ; | |
13077 | PyObject * obj0 = 0 ; | |
13078 | char * kwnames[] = { | |
13079 | (char *) "mapper", NULL | |
13080 | }; | |
13081 | ||
13082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13084 | if (!SWIG_IsOK(res1)) { | |
13085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13086 | } | |
13087 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13091 | wxPyEndAllowThreads(__tstate); | |
13092 | if (PyErr_Occurred()) SWIG_fail; | |
13093 | } | |
13094 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13095 | return resultobj; | |
13096 | fail: | |
13097 | return NULL; | |
13098 | } | |
13099 | ||
13100 | ||
13101 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13102 | PyObject *resultobj = 0; | |
13103 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13104 | wxString *arg2 = 0 ; | |
13105 | bool arg3 = (bool) true ; | |
13106 | wxFontEncoding result; | |
13107 | void *argp1 = 0 ; | |
13108 | int res1 = 0 ; | |
13109 | bool temp2 = false ; | |
13110 | bool val3 ; | |
13111 | int ecode3 = 0 ; | |
13112 | PyObject * obj0 = 0 ; | |
13113 | PyObject * obj1 = 0 ; | |
13114 | PyObject * obj2 = 0 ; | |
13115 | char * kwnames[] = { | |
13116 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13117 | }; | |
13118 | ||
13119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13121 | if (!SWIG_IsOK(res1)) { | |
13122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13123 | } | |
13124 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13125 | { | |
13126 | arg2 = wxString_in_helper(obj1); | |
13127 | if (arg2 == NULL) SWIG_fail; | |
13128 | temp2 = true; | |
13129 | } | |
13130 | if (obj2) { | |
13131 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13132 | if (!SWIG_IsOK(ecode3)) { | |
13133 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13134 | } | |
13135 | arg3 = static_cast< bool >(val3); | |
13136 | } | |
13137 | { | |
13138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13139 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13140 | wxPyEndAllowThreads(__tstate); | |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
13142 | } | |
13143 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13144 | { | |
13145 | if (temp2) | |
13146 | delete arg2; | |
13147 | } | |
13148 | return resultobj; | |
13149 | fail: | |
13150 | { | |
13151 | if (temp2) | |
13152 | delete arg2; | |
13153 | } | |
13154 | return NULL; | |
e6ffcedd RD |
13155 | } |
13156 | ||
13157 | ||
0085ce49 RD |
13158 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13159 | PyObject *resultobj = 0; | |
13160 | size_t result; | |
13161 | ||
13162 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13163 | { | |
13164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13165 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13166 | wxPyEndAllowThreads(__tstate); | |
13167 | if (PyErr_Occurred()) SWIG_fail; | |
13168 | } | |
13169 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13170 | return resultobj; | |
13171 | fail: | |
13172 | return NULL; | |
13173 | } | |
13174 | ||
13175 | ||
13176 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13177 | PyObject *resultobj = 0; | |
13178 | size_t arg1 ; | |
13179 | wxFontEncoding result; | |
13180 | size_t val1 ; | |
13181 | int ecode1 = 0 ; | |
13182 | PyObject * obj0 = 0 ; | |
13183 | char * kwnames[] = { | |
13184 | (char *) "n", NULL | |
13185 | }; | |
13186 | ||
13187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13188 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13189 | if (!SWIG_IsOK(ecode1)) { | |
13190 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13191 | } | |
13192 | arg1 = static_cast< size_t >(val1); | |
13193 | { | |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13196 | wxPyEndAllowThreads(__tstate); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | } | |
13199 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13200 | return resultobj; | |
13201 | fail: | |
13202 | return NULL; | |
13203 | } | |
13204 | ||
13205 | ||
13206 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13207 | PyObject *resultobj = 0; | |
13208 | wxFontEncoding arg1 ; | |
13209 | wxString result; | |
13210 | int val1 ; | |
13211 | int ecode1 = 0 ; | |
13212 | PyObject * obj0 = 0 ; | |
13213 | char * kwnames[] = { | |
13214 | (char *) "encoding", NULL | |
13215 | }; | |
13216 | ||
13217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13218 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13219 | if (!SWIG_IsOK(ecode1)) { | |
13220 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13221 | } | |
13222 | arg1 = static_cast< wxFontEncoding >(val1); | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = wxFontMapper::GetEncodingName(arg1); | |
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | { | |
13230 | #if wxUSE_UNICODE | |
13231 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13232 | #else | |
13233 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13234 | #endif | |
13235 | } | |
13236 | return resultobj; | |
13237 | fail: | |
13238 | return NULL; | |
d14a1e28 RD |
13239 | } |
13240 | ||
13241 | ||
0085ce49 RD |
13242 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13243 | PyObject *resultobj = 0; | |
13244 | wxFontEncoding arg1 ; | |
13245 | wxString result; | |
13246 | int val1 ; | |
13247 | int ecode1 = 0 ; | |
13248 | PyObject * obj0 = 0 ; | |
13249 | char * kwnames[] = { | |
13250 | (char *) "encoding", NULL | |
13251 | }; | |
13252 | ||
13253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13254 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13255 | if (!SWIG_IsOK(ecode1)) { | |
13256 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13257 | } | |
13258 | arg1 = static_cast< wxFontEncoding >(val1); | |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13262 | wxPyEndAllowThreads(__tstate); | |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
13264 | } | |
13265 | { | |
13266 | #if wxUSE_UNICODE | |
13267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13268 | #else | |
13269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13270 | #endif | |
13271 | } | |
13272 | return resultobj; | |
13273 | fail: | |
13274 | return NULL; | |
d14a1e28 RD |
13275 | } |
13276 | ||
13277 | ||
0085ce49 RD |
13278 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13279 | PyObject *resultobj = 0; | |
13280 | wxString *arg1 = 0 ; | |
13281 | wxFontEncoding result; | |
13282 | bool temp1 = false ; | |
13283 | PyObject * obj0 = 0 ; | |
13284 | char * kwnames[] = { | |
13285 | (char *) "name", NULL | |
13286 | }; | |
13287 | ||
13288 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13289 | { | |
13290 | arg1 = wxString_in_helper(obj0); | |
13291 | if (arg1 == NULL) SWIG_fail; | |
13292 | temp1 = true; | |
13293 | } | |
13294 | { | |
13295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13296 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13297 | wxPyEndAllowThreads(__tstate); | |
13298 | if (PyErr_Occurred()) SWIG_fail; | |
13299 | } | |
13300 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13301 | { | |
13302 | if (temp1) | |
13303 | delete arg1; | |
13304 | } | |
13305 | return resultobj; | |
13306 | fail: | |
13307 | { | |
13308 | if (temp1) | |
13309 | delete arg1; | |
13310 | } | |
13311 | return NULL; | |
d14a1e28 RD |
13312 | } |
13313 | ||
13314 | ||
0085ce49 RD |
13315 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13316 | PyObject *resultobj = 0; | |
13317 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13318 | wxString *arg2 = 0 ; | |
13319 | void *argp1 = 0 ; | |
13320 | int res1 = 0 ; | |
13321 | bool temp2 = false ; | |
13322 | PyObject * obj0 = 0 ; | |
13323 | PyObject * obj1 = 0 ; | |
13324 | char * kwnames[] = { | |
13325 | (char *) "self",(char *) "prefix", NULL | |
13326 | }; | |
13327 | ||
13328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13330 | if (!SWIG_IsOK(res1)) { | |
13331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13332 | } | |
13333 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13334 | { | |
13335 | arg2 = wxString_in_helper(obj1); | |
13336 | if (arg2 == NULL) SWIG_fail; | |
13337 | temp2 = true; | |
13338 | } | |
13339 | { | |
13340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13341 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13342 | wxPyEndAllowThreads(__tstate); | |
13343 | if (PyErr_Occurred()) SWIG_fail; | |
13344 | } | |
13345 | resultobj = SWIG_Py_Void(); | |
13346 | { | |
13347 | if (temp2) | |
13348 | delete arg2; | |
13349 | } | |
13350 | return resultobj; | |
13351 | fail: | |
13352 | { | |
13353 | if (temp2) | |
13354 | delete arg2; | |
13355 | } | |
13356 | return NULL; | |
d14a1e28 RD |
13357 | } |
13358 | ||
13359 | ||
0085ce49 RD |
13360 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13361 | PyObject *resultobj = 0; | |
13362 | wxString result; | |
13363 | ||
13364 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13365 | { | |
13366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13367 | result = wxFontMapper::GetDefaultConfigPath(); | |
13368 | wxPyEndAllowThreads(__tstate); | |
13369 | if (PyErr_Occurred()) SWIG_fail; | |
13370 | } | |
13371 | { | |
13372 | #if wxUSE_UNICODE | |
13373 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13374 | #else | |
13375 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13376 | #endif | |
13377 | } | |
13378 | return resultobj; | |
13379 | fail: | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
13384 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13385 | PyObject *resultobj = 0; | |
13386 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13387 | wxFontEncoding arg2 ; | |
13388 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13389 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13390 | bool arg4 = (bool) true ; | |
13391 | PyObject *result = 0 ; | |
13392 | void *argp1 = 0 ; | |
13393 | int res1 = 0 ; | |
13394 | int val2 ; | |
13395 | int ecode2 = 0 ; | |
13396 | bool temp3 = false ; | |
13397 | bool val4 ; | |
13398 | int ecode4 = 0 ; | |
13399 | PyObject * obj0 = 0 ; | |
13400 | PyObject * obj1 = 0 ; | |
13401 | PyObject * obj2 = 0 ; | |
13402 | PyObject * obj3 = 0 ; | |
13403 | char * kwnames[] = { | |
13404 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13405 | }; | |
13406 | ||
13407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13409 | if (!SWIG_IsOK(res1)) { | |
13410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13411 | } | |
13412 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13413 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13414 | if (!SWIG_IsOK(ecode2)) { | |
13415 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13416 | } | |
13417 | arg2 = static_cast< wxFontEncoding >(val2); | |
13418 | if (obj2) { | |
093d3ff1 | 13419 | { |
0085ce49 RD |
13420 | arg3 = wxString_in_helper(obj2); |
13421 | if (arg3 == NULL) SWIG_fail; | |
13422 | temp3 = true; | |
093d3ff1 | 13423 | } |
0085ce49 RD |
13424 | } |
13425 | if (obj3) { | |
13426 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13427 | if (!SWIG_IsOK(ecode4)) { | |
13428 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13429 | } | |
13430 | arg4 = static_cast< bool >(val4); | |
13431 | } | |
13432 | { | |
13433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13434 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13435 | wxPyEndAllowThreads(__tstate); | |
13436 | if (PyErr_Occurred()) SWIG_fail; | |
13437 | } | |
13438 | resultobj = result; | |
13439 | { | |
13440 | if (temp3) | |
13441 | delete arg3; | |
13442 | } | |
13443 | return resultobj; | |
13444 | fail: | |
13445 | { | |
13446 | if (temp3) | |
13447 | delete arg3; | |
13448 | } | |
13449 | return NULL; | |
13450 | } | |
13451 | ||
13452 | ||
13453 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13454 | PyObject *resultobj = 0; | |
13455 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13456 | wxFontEncoding arg2 ; | |
13457 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13458 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13459 | bool result; | |
13460 | void *argp1 = 0 ; | |
13461 | int res1 = 0 ; | |
13462 | int val2 ; | |
13463 | int ecode2 = 0 ; | |
13464 | bool temp3 = false ; | |
13465 | PyObject * obj0 = 0 ; | |
13466 | PyObject * obj1 = 0 ; | |
13467 | PyObject * obj2 = 0 ; | |
13468 | char * kwnames[] = { | |
13469 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13470 | }; | |
13471 | ||
13472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13474 | if (!SWIG_IsOK(res1)) { | |
13475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13476 | } | |
13477 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13478 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13479 | if (!SWIG_IsOK(ecode2)) { | |
13480 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13481 | } | |
13482 | arg2 = static_cast< wxFontEncoding >(val2); | |
13483 | if (obj2) { | |
d14a1e28 | 13484 | { |
0085ce49 RD |
13485 | arg3 = wxString_in_helper(obj2); |
13486 | if (arg3 == NULL) SWIG_fail; | |
13487 | temp3 = true; | |
d14a1e28 | 13488 | } |
0085ce49 RD |
13489 | } |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13493 | wxPyEndAllowThreads(__tstate); | |
13494 | if (PyErr_Occurred()) SWIG_fail; | |
13495 | } | |
13496 | { | |
13497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13498 | } | |
13499 | { | |
13500 | if (temp3) | |
13501 | delete arg3; | |
13502 | } | |
13503 | return resultobj; | |
13504 | fail: | |
13505 | { | |
13506 | if (temp3) | |
13507 | delete arg3; | |
13508 | } | |
13509 | return NULL; | |
13510 | } | |
13511 | ||
13512 | ||
13513 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13514 | PyObject *resultobj = 0; | |
13515 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13516 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13517 | void *argp1 = 0 ; | |
13518 | int res1 = 0 ; | |
13519 | void *argp2 = 0 ; | |
13520 | int res2 = 0 ; | |
13521 | PyObject * obj0 = 0 ; | |
13522 | PyObject * obj1 = 0 ; | |
13523 | char * kwnames[] = { | |
13524 | (char *) "self",(char *) "parent", NULL | |
13525 | }; | |
13526 | ||
13527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13529 | if (!SWIG_IsOK(res1)) { | |
13530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13531 | } | |
13532 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13533 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13534 | if (!SWIG_IsOK(res2)) { | |
13535 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13536 | } | |
13537 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13538 | { | |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | (arg1)->SetDialogParent(arg2); | |
13541 | wxPyEndAllowThreads(__tstate); | |
13542 | if (PyErr_Occurred()) SWIG_fail; | |
13543 | } | |
13544 | resultobj = SWIG_Py_Void(); | |
13545 | return resultobj; | |
13546 | fail: | |
13547 | return NULL; | |
13548 | } | |
13549 | ||
13550 | ||
13551 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13552 | PyObject *resultobj = 0; | |
13553 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13554 | wxString *arg2 = 0 ; | |
13555 | void *argp1 = 0 ; | |
13556 | int res1 = 0 ; | |
13557 | bool temp2 = false ; | |
13558 | PyObject * obj0 = 0 ; | |
13559 | PyObject * obj1 = 0 ; | |
13560 | char * kwnames[] = { | |
13561 | (char *) "self",(char *) "title", NULL | |
13562 | }; | |
13563 | ||
13564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13566 | if (!SWIG_IsOK(res1)) { | |
13567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13568 | } | |
13569 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13570 | { | |
13571 | arg2 = wxString_in_helper(obj1); | |
13572 | if (arg2 == NULL) SWIG_fail; | |
13573 | temp2 = true; | |
13574 | } | |
13575 | { | |
13576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13577 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13578 | wxPyEndAllowThreads(__tstate); | |
13579 | if (PyErr_Occurred()) SWIG_fail; | |
13580 | } | |
13581 | resultobj = SWIG_Py_Void(); | |
13582 | { | |
13583 | if (temp2) | |
13584 | delete arg2; | |
13585 | } | |
13586 | return resultobj; | |
13587 | fail: | |
13588 | { | |
13589 | if (temp2) | |
13590 | delete arg2; | |
13591 | } | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13597 | PyObject *obj; | |
13598 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13599 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13600 | return SWIG_Py_Void(); | |
13601 | } | |
13602 | ||
13603 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13604 | return SWIG_Python_InitShadowInstance(args); | |
13605 | } | |
13606 | ||
13607 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13608 | PyObject *resultobj = 0; | |
13609 | int arg1 ; | |
13610 | int arg2 ; | |
13611 | int arg3 ; | |
13612 | int arg4 ; | |
13613 | bool arg5 = (bool) false ; | |
13614 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13615 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13616 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13617 | wxFont *result = 0 ; | |
13618 | int val1 ; | |
13619 | int ecode1 = 0 ; | |
13620 | int val2 ; | |
13621 | int ecode2 = 0 ; | |
13622 | int val3 ; | |
13623 | int ecode3 = 0 ; | |
13624 | int val4 ; | |
13625 | int ecode4 = 0 ; | |
13626 | bool val5 ; | |
13627 | int ecode5 = 0 ; | |
13628 | bool temp6 = false ; | |
13629 | int val7 ; | |
13630 | int ecode7 = 0 ; | |
13631 | PyObject * obj0 = 0 ; | |
13632 | PyObject * obj1 = 0 ; | |
13633 | PyObject * obj2 = 0 ; | |
13634 | PyObject * obj3 = 0 ; | |
13635 | PyObject * obj4 = 0 ; | |
13636 | PyObject * obj5 = 0 ; | |
13637 | PyObject * obj6 = 0 ; | |
13638 | char * kwnames[] = { | |
13639 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13640 | }; | |
13641 | ||
13642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13643 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13644 | if (!SWIG_IsOK(ecode1)) { | |
13645 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13646 | } | |
13647 | arg1 = static_cast< int >(val1); | |
13648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13649 | if (!SWIG_IsOK(ecode2)) { | |
13650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13651 | } | |
13652 | arg2 = static_cast< int >(val2); | |
13653 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13654 | if (!SWIG_IsOK(ecode3)) { | |
13655 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13656 | } | |
13657 | arg3 = static_cast< int >(val3); | |
13658 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13659 | if (!SWIG_IsOK(ecode4)) { | |
13660 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
13661 | } | |
13662 | arg4 = static_cast< int >(val4); | |
13663 | if (obj4) { | |
13664 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13665 | if (!SWIG_IsOK(ecode5)) { | |
13666 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
13667 | } | |
13668 | arg5 = static_cast< bool >(val5); | |
13669 | } | |
13670 | if (obj5) { | |
093d3ff1 | 13671 | { |
0085ce49 RD |
13672 | arg6 = wxString_in_helper(obj5); |
13673 | if (arg6 == NULL) SWIG_fail; | |
13674 | temp6 = true; | |
093d3ff1 | 13675 | } |
0085ce49 RD |
13676 | } |
13677 | if (obj6) { | |
13678 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13679 | if (!SWIG_IsOK(ecode7)) { | |
13680 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13681 | } | |
13682 | arg7 = static_cast< wxFontEncoding >(val7); | |
13683 | } | |
13684 | { | |
13685 | if (!wxPyCheckForApp()) SWIG_fail; | |
13686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13687 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
13691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
13692 | { | |
13693 | if (temp6) | |
13694 | delete arg6; | |
13695 | } | |
13696 | return resultobj; | |
13697 | fail: | |
13698 | { | |
13699 | if (temp6) | |
13700 | delete arg6; | |
13701 | } | |
13702 | return NULL; | |
d14a1e28 RD |
13703 | } |
13704 | ||
13705 | ||
0085ce49 RD |
13706 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13707 | PyObject *resultobj = 0; | |
13708 | wxFont *arg1 = (wxFont *) 0 ; | |
13709 | void *argp1 = 0 ; | |
13710 | int res1 = 0 ; | |
13711 | PyObject *swig_obj[1] ; | |
13712 | ||
13713 | if (!args) SWIG_fail; | |
13714 | swig_obj[0] = args; | |
13715 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
13716 | if (!SWIG_IsOK(res1)) { | |
13717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13718 | } | |
13719 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13720 | { | |
13721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13722 | delete arg1; | |
d14a1e28 | 13723 | |
0085ce49 RD |
13724 | wxPyEndAllowThreads(__tstate); |
13725 | if (PyErr_Occurred()) SWIG_fail; | |
13726 | } | |
13727 | resultobj = SWIG_Py_Void(); | |
13728 | return resultobj; | |
13729 | fail: | |
13730 | return NULL; | |
13731 | } | |
13732 | ||
13733 | ||
13734 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13735 | PyObject *resultobj = 0; | |
13736 | wxNativeFontInfo *arg1 = 0 ; | |
13737 | wxFont *result = 0 ; | |
13738 | void *argp1 = 0 ; | |
13739 | int res1 = 0 ; | |
13740 | PyObject * obj0 = 0 ; | |
13741 | char * kwnames[] = { | |
13742 | (char *) "info", NULL | |
13743 | }; | |
13744 | ||
13745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
13746 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13747 | if (!SWIG_IsOK(res1)) { | |
13748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13749 | } | |
13750 | if (!argp1) { | |
13751 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13752 | } | |
13753 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13754 | { | |
13755 | if (!wxPyCheckForApp()) SWIG_fail; | |
13756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13757 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
13758 | wxPyEndAllowThreads(__tstate); | |
13759 | if (PyErr_Occurred()) SWIG_fail; | |
13760 | } | |
13761 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13762 | return resultobj; | |
13763 | fail: | |
13764 | return NULL; | |
d14a1e28 RD |
13765 | } |
13766 | ||
13767 | ||
0085ce49 RD |
13768 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13769 | PyObject *resultobj = 0; | |
13770 | wxString *arg1 = 0 ; | |
13771 | wxFont *result = 0 ; | |
13772 | bool temp1 = false ; | |
13773 | PyObject * obj0 = 0 ; | |
13774 | char * kwnames[] = { | |
13775 | (char *) "info", NULL | |
13776 | }; | |
13777 | ||
13778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
13779 | { | |
13780 | arg1 = wxString_in_helper(obj0); | |
13781 | if (arg1 == NULL) SWIG_fail; | |
13782 | temp1 = true; | |
13783 | } | |
13784 | { | |
13785 | if (!wxPyCheckForApp()) SWIG_fail; | |
13786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13787 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
13788 | wxPyEndAllowThreads(__tstate); | |
13789 | if (PyErr_Occurred()) SWIG_fail; | |
13790 | } | |
13791 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13792 | { | |
13793 | if (temp1) | |
13794 | delete arg1; | |
13795 | } | |
13796 | return resultobj; | |
13797 | fail: | |
13798 | { | |
13799 | if (temp1) | |
13800 | delete arg1; | |
13801 | } | |
13802 | return NULL; | |
13803 | } | |
13804 | ||
13805 | ||
13806 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13807 | PyObject *resultobj = 0; | |
13808 | int arg1 ; | |
13809 | wxFontFamily arg2 ; | |
13810 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13811 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13812 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13813 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13814 | wxFont *result = 0 ; | |
13815 | int val1 ; | |
13816 | int ecode1 = 0 ; | |
13817 | int val2 ; | |
13818 | int ecode2 = 0 ; | |
13819 | int val3 ; | |
13820 | int ecode3 = 0 ; | |
13821 | bool temp4 = false ; | |
13822 | int val5 ; | |
13823 | int ecode5 = 0 ; | |
13824 | PyObject * obj0 = 0 ; | |
13825 | PyObject * obj1 = 0 ; | |
13826 | PyObject * obj2 = 0 ; | |
13827 | PyObject * obj3 = 0 ; | |
13828 | PyObject * obj4 = 0 ; | |
13829 | char * kwnames[] = { | |
13830 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
13831 | }; | |
13832 | ||
13833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
13834 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13835 | if (!SWIG_IsOK(ecode1)) { | |
13836 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
13837 | } | |
13838 | arg1 = static_cast< int >(val1); | |
13839 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13840 | if (!SWIG_IsOK(ecode2)) { | |
13841 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13842 | } | |
13843 | arg2 = static_cast< wxFontFamily >(val2); | |
13844 | if (obj2) { | |
13845 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13846 | if (!SWIG_IsOK(ecode3)) { | |
13847 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
13848 | } | |
13849 | arg3 = static_cast< int >(val3); | |
13850 | } | |
13851 | if (obj3) { | |
093d3ff1 | 13852 | { |
0085ce49 RD |
13853 | arg4 = wxString_in_helper(obj3); |
13854 | if (arg4 == NULL) SWIG_fail; | |
13855 | temp4 = true; | |
093d3ff1 | 13856 | } |
0085ce49 RD |
13857 | } |
13858 | if (obj4) { | |
13859 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
13860 | if (!SWIG_IsOK(ecode5)) { | |
13861 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
13862 | } | |
13863 | arg5 = static_cast< wxFontEncoding >(val5); | |
13864 | } | |
13865 | { | |
13866 | if (!wxPyCheckForApp()) SWIG_fail; | |
13867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13868 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
13869 | wxPyEndAllowThreads(__tstate); | |
13870 | if (PyErr_Occurred()) SWIG_fail; | |
13871 | } | |
13872 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13873 | { | |
13874 | if (temp4) | |
13875 | delete arg4; | |
13876 | } | |
13877 | return resultobj; | |
13878 | fail: | |
13879 | { | |
13880 | if (temp4) | |
13881 | delete arg4; | |
13882 | } | |
13883 | return NULL; | |
13884 | } | |
13885 | ||
13886 | ||
13887 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13888 | PyObject *resultobj = 0; | |
13889 | wxSize *arg1 = 0 ; | |
13890 | int arg2 ; | |
13891 | int arg3 ; | |
13892 | int arg4 ; | |
13893 | bool arg5 = (bool) false ; | |
13894 | wxString const &arg6_defvalue = wxEmptyString ; | |
13895 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13896 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13897 | wxFont *result = 0 ; | |
13898 | wxSize temp1 ; | |
13899 | int val2 ; | |
13900 | int ecode2 = 0 ; | |
13901 | int val3 ; | |
13902 | int ecode3 = 0 ; | |
13903 | int val4 ; | |
13904 | int ecode4 = 0 ; | |
13905 | bool val5 ; | |
13906 | int ecode5 = 0 ; | |
13907 | bool temp6 = false ; | |
13908 | int val7 ; | |
13909 | int ecode7 = 0 ; | |
13910 | PyObject * obj0 = 0 ; | |
13911 | PyObject * obj1 = 0 ; | |
13912 | PyObject * obj2 = 0 ; | |
13913 | PyObject * obj3 = 0 ; | |
13914 | PyObject * obj4 = 0 ; | |
13915 | PyObject * obj5 = 0 ; | |
13916 | PyObject * obj6 = 0 ; | |
13917 | char * kwnames[] = { | |
13918 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
13919 | }; | |
13920 | ||
13921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13922 | { | |
13923 | arg1 = &temp1; | |
13924 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
13925 | } | |
13926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13927 | if (!SWIG_IsOK(ecode2)) { | |
13928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
13929 | } | |
13930 | arg2 = static_cast< int >(val2); | |
13931 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13932 | if (!SWIG_IsOK(ecode3)) { | |
13933 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
13934 | } | |
13935 | arg3 = static_cast< int >(val3); | |
13936 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13937 | if (!SWIG_IsOK(ecode4)) { | |
13938 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
13939 | } | |
13940 | arg4 = static_cast< int >(val4); | |
13941 | if (obj4) { | |
13942 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13943 | if (!SWIG_IsOK(ecode5)) { | |
13944 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
13945 | } | |
13946 | arg5 = static_cast< bool >(val5); | |
13947 | } | |
13948 | if (obj5) { | |
d14a1e28 | 13949 | { |
0085ce49 RD |
13950 | arg6 = wxString_in_helper(obj5); |
13951 | if (arg6 == NULL) SWIG_fail; | |
13952 | temp6 = true; | |
d14a1e28 | 13953 | } |
0085ce49 RD |
13954 | } |
13955 | if (obj6) { | |
13956 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13957 | if (!SWIG_IsOK(ecode7)) { | |
13958 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13959 | } | |
13960 | arg7 = static_cast< wxFontEncoding >(val7); | |
13961 | } | |
13962 | { | |
13963 | if (!wxPyCheckForApp()) SWIG_fail; | |
13964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13965 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13966 | wxPyEndAllowThreads(__tstate); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | } | |
13969 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13970 | { | |
13971 | if (temp6) | |
13972 | delete arg6; | |
13973 | } | |
13974 | return resultobj; | |
13975 | fail: | |
13976 | { | |
13977 | if (temp6) | |
13978 | delete arg6; | |
13979 | } | |
13980 | return NULL; | |
13981 | } | |
13982 | ||
13983 | ||
13984 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13985 | PyObject *resultobj = 0; | |
13986 | wxSize *arg1 = 0 ; | |
13987 | wxFontFamily arg2 ; | |
13988 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13989 | wxString const &arg4_defvalue = wxEmptyString ; | |
13990 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13991 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13992 | wxFont *result = 0 ; | |
13993 | wxSize temp1 ; | |
13994 | int val2 ; | |
13995 | int ecode2 = 0 ; | |
13996 | int val3 ; | |
13997 | int ecode3 = 0 ; | |
13998 | bool temp4 = false ; | |
13999 | int val5 ; | |
14000 | int ecode5 = 0 ; | |
14001 | PyObject * obj0 = 0 ; | |
14002 | PyObject * obj1 = 0 ; | |
14003 | PyObject * obj2 = 0 ; | |
14004 | PyObject * obj3 = 0 ; | |
14005 | PyObject * obj4 = 0 ; | |
14006 | char * kwnames[] = { | |
14007 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14008 | }; | |
14009 | ||
14010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14011 | { | |
14012 | arg1 = &temp1; | |
14013 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14014 | } | |
14015 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14016 | if (!SWIG_IsOK(ecode2)) { | |
14017 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14018 | } | |
14019 | arg2 = static_cast< wxFontFamily >(val2); | |
14020 | if (obj2) { | |
14021 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14022 | if (!SWIG_IsOK(ecode3)) { | |
14023 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14024 | } | |
14025 | arg3 = static_cast< int >(val3); | |
14026 | } | |
14027 | if (obj3) { | |
093d3ff1 | 14028 | { |
0085ce49 RD |
14029 | arg4 = wxString_in_helper(obj3); |
14030 | if (arg4 == NULL) SWIG_fail; | |
14031 | temp4 = true; | |
093d3ff1 | 14032 | } |
0085ce49 RD |
14033 | } |
14034 | if (obj4) { | |
14035 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14036 | if (!SWIG_IsOK(ecode5)) { | |
14037 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14038 | } | |
14039 | arg5 = static_cast< wxFontEncoding >(val5); | |
14040 | } | |
14041 | { | |
14042 | if (!wxPyCheckForApp()) SWIG_fail; | |
14043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14044 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14045 | wxPyEndAllowThreads(__tstate); | |
14046 | if (PyErr_Occurred()) SWIG_fail; | |
14047 | } | |
14048 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14049 | { | |
14050 | if (temp4) | |
14051 | delete arg4; | |
14052 | } | |
14053 | return resultobj; | |
14054 | fail: | |
14055 | { | |
14056 | if (temp4) | |
14057 | delete arg4; | |
14058 | } | |
14059 | return NULL; | |
d14a1e28 RD |
14060 | } |
14061 | ||
14062 | ||
b39fe951 | 14063 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
14064 | PyObject *resultobj = 0; |
14065 | wxFont *arg1 = (wxFont *) 0 ; | |
14066 | bool result; | |
14067 | void *argp1 = 0 ; | |
14068 | int res1 = 0 ; | |
14069 | PyObject *swig_obj[1] ; | |
14070 | ||
14071 | if (!args) SWIG_fail; | |
14072 | swig_obj[0] = args; | |
14073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14074 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
0085ce49 RD |
14076 | } |
14077 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14078 | { | |
14079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14080 | result = (bool)((wxFont const *)arg1)->IsOk(); |
0085ce49 RD |
14081 | wxPyEndAllowThreads(__tstate); |
14082 | if (PyErr_Occurred()) SWIG_fail; | |
14083 | } | |
14084 | { | |
14085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14086 | } | |
14087 | return resultobj; | |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj = 0; | |
14095 | wxFont *arg1 = (wxFont *) 0 ; | |
14096 | wxFont *arg2 = (wxFont *) 0 ; | |
14097 | bool result; | |
14098 | void *argp1 = 0 ; | |
14099 | int res1 = 0 ; | |
14100 | void *argp2 = 0 ; | |
14101 | int res2 = 0 ; | |
14102 | PyObject * obj0 = 0 ; | |
14103 | PyObject * obj1 = 0 ; | |
14104 | char * kwnames[] = { | |
14105 | (char *) "self",(char *) "other", NULL | |
14106 | }; | |
14107 | ||
14108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14110 | if (!SWIG_IsOK(res1)) { | |
14111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14112 | } | |
14113 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14114 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14115 | if (!SWIG_IsOK(res2)) { | |
14116 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14117 | } | |
14118 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14119 | { | |
14120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14121 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14122 | wxPyEndAllowThreads(__tstate); | |
14123 | if (PyErr_Occurred()) SWIG_fail; | |
14124 | } | |
14125 | { | |
14126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14127 | } | |
14128 | return resultobj; | |
14129 | fail: | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
14134 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14135 | PyObject *resultobj = 0; | |
14136 | wxFont *arg1 = (wxFont *) 0 ; | |
14137 | wxFont *arg2 = (wxFont *) 0 ; | |
14138 | bool result; | |
14139 | void *argp1 = 0 ; | |
14140 | int res1 = 0 ; | |
14141 | void *argp2 = 0 ; | |
14142 | int res2 = 0 ; | |
14143 | PyObject * obj0 = 0 ; | |
14144 | PyObject * obj1 = 0 ; | |
14145 | char * kwnames[] = { | |
14146 | (char *) "self",(char *) "other", NULL | |
14147 | }; | |
14148 | ||
14149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14151 | if (!SWIG_IsOK(res1)) { | |
14152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14153 | } | |
14154 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14155 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14156 | if (!SWIG_IsOK(res2)) { | |
14157 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14158 | } | |
14159 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14163 | wxPyEndAllowThreads(__tstate); | |
14164 | if (PyErr_Occurred()) SWIG_fail; | |
14165 | } | |
14166 | { | |
14167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14168 | } | |
14169 | return resultobj; | |
14170 | fail: | |
14171 | return NULL; | |
d14a1e28 RD |
14172 | } |
14173 | ||
14174 | ||
0085ce49 RD |
14175 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14176 | PyObject *resultobj = 0; | |
14177 | wxFont *arg1 = (wxFont *) 0 ; | |
14178 | int result; | |
14179 | void *argp1 = 0 ; | |
14180 | int res1 = 0 ; | |
14181 | PyObject *swig_obj[1] ; | |
14182 | ||
14183 | if (!args) SWIG_fail; | |
14184 | swig_obj[0] = args; | |
14185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14186 | if (!SWIG_IsOK(res1)) { | |
14187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14188 | } | |
14189 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14190 | { | |
14191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14192 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14193 | wxPyEndAllowThreads(__tstate); | |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
14196 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14197 | return resultobj; | |
14198 | fail: | |
14199 | return NULL; | |
d14a1e28 RD |
14200 | } |
14201 | ||
14202 | ||
0085ce49 RD |
14203 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14204 | PyObject *resultobj = 0; | |
14205 | wxFont *arg1 = (wxFont *) 0 ; | |
14206 | wxSize result; | |
14207 | void *argp1 = 0 ; | |
14208 | int res1 = 0 ; | |
14209 | PyObject *swig_obj[1] ; | |
14210 | ||
14211 | if (!args) SWIG_fail; | |
14212 | swig_obj[0] = args; | |
14213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14214 | if (!SWIG_IsOK(res1)) { | |
14215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14216 | } | |
14217 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14218 | { | |
14219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14220 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14221 | wxPyEndAllowThreads(__tstate); | |
14222 | if (PyErr_Occurred()) SWIG_fail; | |
14223 | } | |
14224 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14225 | return resultobj; | |
14226 | fail: | |
14227 | return NULL; | |
d14a1e28 RD |
14228 | } |
14229 | ||
14230 | ||
0085ce49 RD |
14231 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14232 | PyObject *resultobj = 0; | |
14233 | wxFont *arg1 = (wxFont *) 0 ; | |
14234 | bool result; | |
14235 | void *argp1 = 0 ; | |
14236 | int res1 = 0 ; | |
14237 | PyObject *swig_obj[1] ; | |
14238 | ||
14239 | if (!args) SWIG_fail; | |
14240 | swig_obj[0] = args; | |
14241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14242 | if (!SWIG_IsOK(res1)) { | |
14243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14244 | } | |
14245 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14249 | wxPyEndAllowThreads(__tstate); | |
14250 | if (PyErr_Occurred()) SWIG_fail; | |
14251 | } | |
14252 | { | |
14253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14254 | } | |
14255 | return resultobj; | |
14256 | fail: | |
14257 | return NULL; | |
d14a1e28 RD |
14258 | } |
14259 | ||
14260 | ||
0085ce49 RD |
14261 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14262 | PyObject *resultobj = 0; | |
14263 | wxFont *arg1 = (wxFont *) 0 ; | |
14264 | int result; | |
14265 | void *argp1 = 0 ; | |
14266 | int res1 = 0 ; | |
14267 | PyObject *swig_obj[1] ; | |
14268 | ||
14269 | if (!args) SWIG_fail; | |
14270 | swig_obj[0] = args; | |
14271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14272 | if (!SWIG_IsOK(res1)) { | |
14273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14274 | } | |
14275 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14276 | { | |
14277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14278 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14279 | wxPyEndAllowThreads(__tstate); | |
14280 | if (PyErr_Occurred()) SWIG_fail; | |
14281 | } | |
14282 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14283 | return resultobj; | |
14284 | fail: | |
14285 | return NULL; | |
d14a1e28 RD |
14286 | } |
14287 | ||
14288 | ||
0085ce49 RD |
14289 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14290 | PyObject *resultobj = 0; | |
14291 | wxFont *arg1 = (wxFont *) 0 ; | |
14292 | int result; | |
14293 | void *argp1 = 0 ; | |
14294 | int res1 = 0 ; | |
14295 | PyObject *swig_obj[1] ; | |
14296 | ||
14297 | if (!args) SWIG_fail; | |
14298 | swig_obj[0] = args; | |
14299 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14300 | if (!SWIG_IsOK(res1)) { | |
14301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14302 | } | |
14303 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14304 | { | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14307 | wxPyEndAllowThreads(__tstate); | |
14308 | if (PyErr_Occurred()) SWIG_fail; | |
14309 | } | |
14310 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14311 | return resultobj; | |
14312 | fail: | |
14313 | return NULL; | |
d14a1e28 RD |
14314 | } |
14315 | ||
14316 | ||
0085ce49 RD |
14317 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14318 | PyObject *resultobj = 0; | |
14319 | wxFont *arg1 = (wxFont *) 0 ; | |
14320 | int result; | |
14321 | void *argp1 = 0 ; | |
14322 | int res1 = 0 ; | |
14323 | PyObject *swig_obj[1] ; | |
14324 | ||
14325 | if (!args) SWIG_fail; | |
14326 | swig_obj[0] = args; | |
14327 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14328 | if (!SWIG_IsOK(res1)) { | |
14329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14330 | } | |
14331 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14335 | wxPyEndAllowThreads(__tstate); | |
14336 | if (PyErr_Occurred()) SWIG_fail; | |
14337 | } | |
14338 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14339 | return resultobj; | |
14340 | fail: | |
14341 | return NULL; | |
d14a1e28 RD |
14342 | } |
14343 | ||
14344 | ||
0085ce49 RD |
14345 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14346 | PyObject *resultobj = 0; | |
14347 | wxFont *arg1 = (wxFont *) 0 ; | |
14348 | bool result; | |
14349 | void *argp1 = 0 ; | |
14350 | int res1 = 0 ; | |
14351 | PyObject *swig_obj[1] ; | |
14352 | ||
14353 | if (!args) SWIG_fail; | |
14354 | swig_obj[0] = args; | |
14355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14356 | if (!SWIG_IsOK(res1)) { | |
14357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14358 | } | |
14359 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14360 | { | |
14361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14362 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14363 | wxPyEndAllowThreads(__tstate); | |
14364 | if (PyErr_Occurred()) SWIG_fail; | |
14365 | } | |
14366 | { | |
14367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14368 | } | |
14369 | return resultobj; | |
14370 | fail: | |
14371 | return NULL; | |
d14a1e28 RD |
14372 | } |
14373 | ||
14374 | ||
0085ce49 RD |
14375 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14376 | PyObject *resultobj = 0; | |
14377 | wxFont *arg1 = (wxFont *) 0 ; | |
14378 | wxString result; | |
14379 | void *argp1 = 0 ; | |
14380 | int res1 = 0 ; | |
14381 | PyObject *swig_obj[1] ; | |
14382 | ||
14383 | if (!args) SWIG_fail; | |
14384 | swig_obj[0] = args; | |
14385 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14386 | if (!SWIG_IsOK(res1)) { | |
14387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14388 | } | |
14389 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14390 | { | |
14391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14392 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
14396 | { | |
14397 | #if wxUSE_UNICODE | |
14398 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14399 | #else | |
14400 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14401 | #endif | |
14402 | } | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | return NULL; | |
d14a1e28 RD |
14406 | } |
14407 | ||
14408 | ||
0085ce49 RD |
14409 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14410 | PyObject *resultobj = 0; | |
14411 | wxFont *arg1 = (wxFont *) 0 ; | |
14412 | wxFontEncoding result; | |
14413 | void *argp1 = 0 ; | |
14414 | int res1 = 0 ; | |
14415 | PyObject *swig_obj[1] ; | |
14416 | ||
14417 | if (!args) SWIG_fail; | |
14418 | swig_obj[0] = args; | |
14419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14420 | if (!SWIG_IsOK(res1)) { | |
14421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14422 | } | |
14423 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14424 | { | |
14425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14426 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
14430 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14431 | return resultobj; | |
14432 | fail: | |
14433 | return NULL; | |
d14a1e28 RD |
14434 | } |
14435 | ||
14436 | ||
0085ce49 RD |
14437 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14438 | PyObject *resultobj = 0; | |
14439 | wxFont *arg1 = (wxFont *) 0 ; | |
14440 | wxNativeFontInfo *result = 0 ; | |
14441 | void *argp1 = 0 ; | |
14442 | int res1 = 0 ; | |
14443 | PyObject *swig_obj[1] ; | |
14444 | ||
14445 | if (!args) SWIG_fail; | |
14446 | swig_obj[0] = args; | |
14447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14448 | if (!SWIG_IsOK(res1)) { | |
14449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14450 | } | |
14451 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14452 | { | |
14453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14454 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14455 | wxPyEndAllowThreads(__tstate); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
14458 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14459 | return resultobj; | |
14460 | fail: | |
14461 | return NULL; | |
d14a1e28 RD |
14462 | } |
14463 | ||
14464 | ||
0085ce49 RD |
14465 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14466 | PyObject *resultobj = 0; | |
14467 | wxFont *arg1 = (wxFont *) 0 ; | |
14468 | bool result; | |
14469 | void *argp1 = 0 ; | |
14470 | int res1 = 0 ; | |
14471 | PyObject *swig_obj[1] ; | |
14472 | ||
14473 | if (!args) SWIG_fail; | |
14474 | swig_obj[0] = args; | |
14475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14476 | if (!SWIG_IsOK(res1)) { | |
14477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14478 | } | |
14479 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14483 | wxPyEndAllowThreads(__tstate); | |
14484 | if (PyErr_Occurred()) SWIG_fail; | |
14485 | } | |
14486 | { | |
14487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14488 | } | |
14489 | return resultobj; | |
14490 | fail: | |
14491 | return NULL; | |
d14a1e28 RD |
14492 | } |
14493 | ||
14494 | ||
0085ce49 RD |
14495 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14496 | PyObject *resultobj = 0; | |
14497 | wxFont *arg1 = (wxFont *) 0 ; | |
14498 | wxString result; | |
14499 | void *argp1 = 0 ; | |
14500 | int res1 = 0 ; | |
14501 | PyObject *swig_obj[1] ; | |
14502 | ||
14503 | if (!args) SWIG_fail; | |
14504 | swig_obj[0] = args; | |
14505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14506 | if (!SWIG_IsOK(res1)) { | |
14507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14508 | } | |
14509 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14510 | { | |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14513 | wxPyEndAllowThreads(__tstate); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | } | |
14516 | { | |
14517 | #if wxUSE_UNICODE | |
14518 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14519 | #else | |
14520 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14521 | #endif | |
14522 | } | |
14523 | return resultobj; | |
14524 | fail: | |
14525 | return NULL; | |
d14a1e28 RD |
14526 | } |
14527 | ||
14528 | ||
0085ce49 RD |
14529 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14530 | PyObject *resultobj = 0; | |
14531 | wxFont *arg1 = (wxFont *) 0 ; | |
14532 | wxString result; | |
14533 | void *argp1 = 0 ; | |
14534 | int res1 = 0 ; | |
14535 | PyObject *swig_obj[1] ; | |
14536 | ||
14537 | if (!args) SWIG_fail; | |
14538 | swig_obj[0] = args; | |
14539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14540 | if (!SWIG_IsOK(res1)) { | |
14541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14542 | } | |
14543 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14544 | { | |
14545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14546 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14547 | wxPyEndAllowThreads(__tstate); | |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
14549 | } | |
14550 | { | |
14551 | #if wxUSE_UNICODE | |
14552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14553 | #else | |
14554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14555 | #endif | |
14556 | } | |
14557 | return resultobj; | |
14558 | fail: | |
14559 | return NULL; | |
14560 | } | |
14561 | ||
14562 | ||
14563 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14564 | PyObject *resultobj = 0; | |
14565 | wxFont *arg1 = (wxFont *) 0 ; | |
14566 | int arg2 ; | |
14567 | void *argp1 = 0 ; | |
14568 | int res1 = 0 ; | |
14569 | int val2 ; | |
14570 | int ecode2 = 0 ; | |
14571 | PyObject * obj0 = 0 ; | |
14572 | PyObject * obj1 = 0 ; | |
14573 | char * kwnames[] = { | |
14574 | (char *) "self",(char *) "pointSize", NULL | |
14575 | }; | |
14576 | ||
14577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14579 | if (!SWIG_IsOK(res1)) { | |
14580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14581 | } | |
14582 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14583 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14584 | if (!SWIG_IsOK(ecode2)) { | |
14585 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14586 | } | |
14587 | arg2 = static_cast< int >(val2); | |
14588 | { | |
14589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14590 | (arg1)->SetPointSize(arg2); | |
14591 | wxPyEndAllowThreads(__tstate); | |
14592 | if (PyErr_Occurred()) SWIG_fail; | |
14593 | } | |
14594 | resultobj = SWIG_Py_Void(); | |
14595 | return resultobj; | |
14596 | fail: | |
14597 | return NULL; | |
14598 | } | |
14599 | ||
14600 | ||
14601 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14602 | PyObject *resultobj = 0; | |
14603 | wxFont *arg1 = (wxFont *) 0 ; | |
14604 | wxSize *arg2 = 0 ; | |
14605 | void *argp1 = 0 ; | |
14606 | int res1 = 0 ; | |
14607 | wxSize temp2 ; | |
14608 | PyObject * obj0 = 0 ; | |
14609 | PyObject * obj1 = 0 ; | |
14610 | char * kwnames[] = { | |
14611 | (char *) "self",(char *) "pixelSize", NULL | |
14612 | }; | |
14613 | ||
14614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14616 | if (!SWIG_IsOK(res1)) { | |
14617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14618 | } | |
14619 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14620 | { | |
14621 | arg2 = &temp2; | |
14622 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14623 | } | |
14624 | { | |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
14630 | resultobj = SWIG_Py_Void(); | |
14631 | return resultobj; | |
14632 | fail: | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14638 | PyObject *resultobj = 0; | |
14639 | wxFont *arg1 = (wxFont *) 0 ; | |
14640 | int arg2 ; | |
14641 | void *argp1 = 0 ; | |
14642 | int res1 = 0 ; | |
14643 | int val2 ; | |
14644 | int ecode2 = 0 ; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | PyObject * obj1 = 0 ; | |
14647 | char * kwnames[] = { | |
14648 | (char *) "self",(char *) "family", NULL | |
14649 | }; | |
14650 | ||
14651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14653 | if (!SWIG_IsOK(res1)) { | |
14654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14655 | } | |
14656 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14657 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14658 | if (!SWIG_IsOK(ecode2)) { | |
14659 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14660 | } | |
14661 | arg2 = static_cast< int >(val2); | |
14662 | { | |
14663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14664 | (arg1)->SetFamily(arg2); | |
14665 | wxPyEndAllowThreads(__tstate); | |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
14667 | } | |
14668 | resultobj = SWIG_Py_Void(); | |
14669 | return resultobj; | |
14670 | fail: | |
14671 | return NULL; | |
14672 | } | |
14673 | ||
14674 | ||
14675 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14676 | PyObject *resultobj = 0; | |
14677 | wxFont *arg1 = (wxFont *) 0 ; | |
14678 | int arg2 ; | |
14679 | void *argp1 = 0 ; | |
14680 | int res1 = 0 ; | |
14681 | int val2 ; | |
14682 | int ecode2 = 0 ; | |
14683 | PyObject * obj0 = 0 ; | |
14684 | PyObject * obj1 = 0 ; | |
14685 | char * kwnames[] = { | |
14686 | (char *) "self",(char *) "style", NULL | |
14687 | }; | |
14688 | ||
14689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14691 | if (!SWIG_IsOK(res1)) { | |
14692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14693 | } | |
14694 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14695 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14696 | if (!SWIG_IsOK(ecode2)) { | |
14697 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
14698 | } | |
14699 | arg2 = static_cast< int >(val2); | |
14700 | { | |
14701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14702 | (arg1)->SetStyle(arg2); | |
14703 | wxPyEndAllowThreads(__tstate); | |
14704 | if (PyErr_Occurred()) SWIG_fail; | |
14705 | } | |
14706 | resultobj = SWIG_Py_Void(); | |
14707 | return resultobj; | |
14708 | fail: | |
14709 | return NULL; | |
14710 | } | |
14711 | ||
14712 | ||
14713 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14714 | PyObject *resultobj = 0; | |
14715 | wxFont *arg1 = (wxFont *) 0 ; | |
14716 | int arg2 ; | |
14717 | void *argp1 = 0 ; | |
14718 | int res1 = 0 ; | |
14719 | int val2 ; | |
14720 | int ecode2 = 0 ; | |
14721 | PyObject * obj0 = 0 ; | |
14722 | PyObject * obj1 = 0 ; | |
14723 | char * kwnames[] = { | |
14724 | (char *) "self",(char *) "weight", NULL | |
14725 | }; | |
14726 | ||
14727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
14728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14729 | if (!SWIG_IsOK(res1)) { | |
14730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14731 | } | |
14732 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14733 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14734 | if (!SWIG_IsOK(ecode2)) { | |
14735 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
14736 | } | |
14737 | arg2 = static_cast< int >(val2); | |
14738 | { | |
14739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14740 | (arg1)->SetWeight(arg2); | |
14741 | wxPyEndAllowThreads(__tstate); | |
14742 | if (PyErr_Occurred()) SWIG_fail; | |
14743 | } | |
14744 | resultobj = SWIG_Py_Void(); | |
14745 | return resultobj; | |
14746 | fail: | |
14747 | return NULL; | |
14748 | } | |
14749 | ||
14750 | ||
14751 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14752 | PyObject *resultobj = 0; | |
14753 | wxFont *arg1 = (wxFont *) 0 ; | |
14754 | wxString *arg2 = 0 ; | |
704eda0c | 14755 | bool result; |
0085ce49 RD |
14756 | void *argp1 = 0 ; |
14757 | int res1 = 0 ; | |
14758 | bool temp2 = false ; | |
14759 | PyObject * obj0 = 0 ; | |
14760 | PyObject * obj1 = 0 ; | |
14761 | char * kwnames[] = { | |
14762 | (char *) "self",(char *) "faceName", NULL | |
14763 | }; | |
14764 | ||
14765 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
14766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14767 | if (!SWIG_IsOK(res1)) { | |
14768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14769 | } | |
14770 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14771 | { | |
14772 | arg2 = wxString_in_helper(obj1); | |
14773 | if (arg2 == NULL) SWIG_fail; | |
14774 | temp2 = true; | |
14775 | } | |
14776 | { | |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14778 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
14779 | wxPyEndAllowThreads(__tstate); |
14780 | if (PyErr_Occurred()) SWIG_fail; | |
14781 | } | |
704eda0c RD |
14782 | { |
14783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14784 | } | |
0085ce49 RD |
14785 | { |
14786 | if (temp2) | |
14787 | delete arg2; | |
14788 | } | |
14789 | return resultobj; | |
14790 | fail: | |
14791 | { | |
14792 | if (temp2) | |
14793 | delete arg2; | |
14794 | } | |
14795 | return NULL; | |
14796 | } | |
14797 | ||
14798 | ||
14799 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14800 | PyObject *resultobj = 0; | |
14801 | wxFont *arg1 = (wxFont *) 0 ; | |
14802 | bool arg2 ; | |
14803 | void *argp1 = 0 ; | |
14804 | int res1 = 0 ; | |
14805 | bool val2 ; | |
14806 | int ecode2 = 0 ; | |
14807 | PyObject * obj0 = 0 ; | |
14808 | PyObject * obj1 = 0 ; | |
14809 | char * kwnames[] = { | |
14810 | (char *) "self",(char *) "underlined", NULL | |
14811 | }; | |
14812 | ||
14813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
14814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14815 | if (!SWIG_IsOK(res1)) { | |
14816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14817 | } | |
14818 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14819 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14820 | if (!SWIG_IsOK(ecode2)) { | |
14821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
14822 | } | |
14823 | arg2 = static_cast< bool >(val2); | |
14824 | { | |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | (arg1)->SetUnderlined(arg2); | |
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | resultobj = SWIG_Py_Void(); | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj = 0; | |
14839 | wxFont *arg1 = (wxFont *) 0 ; | |
14840 | wxFontEncoding arg2 ; | |
14841 | void *argp1 = 0 ; | |
14842 | int res1 = 0 ; | |
14843 | int val2 ; | |
14844 | int ecode2 = 0 ; | |
14845 | PyObject * obj0 = 0 ; | |
14846 | PyObject * obj1 = 0 ; | |
14847 | char * kwnames[] = { | |
14848 | (char *) "self",(char *) "encoding", NULL | |
14849 | }; | |
14850 | ||
14851 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
14852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14853 | if (!SWIG_IsOK(res1)) { | |
14854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14855 | } | |
14856 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14857 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14858 | if (!SWIG_IsOK(ecode2)) { | |
14859 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14860 | } | |
14861 | arg2 = static_cast< wxFontEncoding >(val2); | |
14862 | { | |
14863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14864 | (arg1)->SetEncoding(arg2); | |
14865 | wxPyEndAllowThreads(__tstate); | |
14866 | if (PyErr_Occurred()) SWIG_fail; | |
14867 | } | |
14868 | resultobj = SWIG_Py_Void(); | |
14869 | return resultobj; | |
14870 | fail: | |
14871 | return NULL; | |
14872 | } | |
14873 | ||
14874 | ||
14875 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14876 | PyObject *resultobj = 0; | |
14877 | wxFont *arg1 = (wxFont *) 0 ; | |
14878 | wxNativeFontInfo *arg2 = 0 ; | |
14879 | void *argp1 = 0 ; | |
14880 | int res1 = 0 ; | |
14881 | void *argp2 = 0 ; | |
14882 | int res2 = 0 ; | |
14883 | PyObject * obj0 = 0 ; | |
14884 | PyObject * obj1 = 0 ; | |
14885 | char * kwnames[] = { | |
14886 | (char *) "self",(char *) "info", NULL | |
14887 | }; | |
14888 | ||
14889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
14890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14891 | if (!SWIG_IsOK(res1)) { | |
14892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14893 | } | |
14894 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14895 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14896 | if (!SWIG_IsOK(res2)) { | |
14897 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
14898 | } | |
14899 | if (!argp2) { | |
14900 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
14901 | } | |
14902 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
14903 | { | |
14904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14905 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
14909 | resultobj = SWIG_Py_Void(); | |
14910 | return resultobj; | |
14911 | fail: | |
14912 | return NULL; | |
14913 | } | |
14914 | ||
14915 | ||
14916 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14917 | PyObject *resultobj = 0; | |
14918 | wxFont *arg1 = (wxFont *) 0 ; | |
14919 | wxString *arg2 = 0 ; | |
704eda0c | 14920 | bool result; |
0085ce49 RD |
14921 | void *argp1 = 0 ; |
14922 | int res1 = 0 ; | |
14923 | bool temp2 = false ; | |
14924 | PyObject * obj0 = 0 ; | |
14925 | PyObject * obj1 = 0 ; | |
14926 | char * kwnames[] = { | |
14927 | (char *) "self",(char *) "info", NULL | |
14928 | }; | |
14929 | ||
14930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
14931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14932 | if (!SWIG_IsOK(res1)) { | |
14933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14934 | } | |
14935 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14936 | { | |
14937 | arg2 = wxString_in_helper(obj1); | |
14938 | if (arg2 == NULL) SWIG_fail; | |
14939 | temp2 = true; | |
14940 | } | |
14941 | { | |
14942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14943 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
14944 | wxPyEndAllowThreads(__tstate); |
14945 | if (PyErr_Occurred()) SWIG_fail; | |
14946 | } | |
704eda0c RD |
14947 | { |
14948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14949 | } | |
0085ce49 RD |
14950 | { |
14951 | if (temp2) | |
14952 | delete arg2; | |
14953 | } | |
14954 | return resultobj; | |
14955 | fail: | |
14956 | { | |
14957 | if (temp2) | |
14958 | delete arg2; | |
14959 | } | |
14960 | return NULL; | |
d14a1e28 RD |
14961 | } |
14962 | ||
14963 | ||
0085ce49 RD |
14964 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14965 | PyObject *resultobj = 0; | |
14966 | wxFont *arg1 = (wxFont *) 0 ; | |
14967 | wxString *arg2 = 0 ; | |
704eda0c | 14968 | bool result; |
0085ce49 RD |
14969 | void *argp1 = 0 ; |
14970 | int res1 = 0 ; | |
14971 | bool temp2 = false ; | |
14972 | PyObject * obj0 = 0 ; | |
14973 | PyObject * obj1 = 0 ; | |
14974 | char * kwnames[] = { | |
14975 | (char *) "self",(char *) "info", NULL | |
14976 | }; | |
14977 | ||
14978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
14979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14980 | if (!SWIG_IsOK(res1)) { | |
14981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14982 | } | |
14983 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14984 | { | |
14985 | arg2 = wxString_in_helper(obj1); | |
14986 | if (arg2 == NULL) SWIG_fail; | |
14987 | temp2 = true; | |
14988 | } | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14991 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
14992 | wxPyEndAllowThreads(__tstate); |
14993 | if (PyErr_Occurred()) SWIG_fail; | |
14994 | } | |
704eda0c RD |
14995 | { |
14996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14997 | } | |
0085ce49 RD |
14998 | { |
14999 | if (temp2) | |
15000 | delete arg2; | |
15001 | } | |
15002 | return resultobj; | |
15003 | fail: | |
15004 | { | |
15005 | if (temp2) | |
15006 | delete arg2; | |
15007 | } | |
15008 | return NULL; | |
d14a1e28 RD |
15009 | } |
15010 | ||
15011 | ||
0085ce49 RD |
15012 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15013 | PyObject *resultobj = 0; | |
15014 | wxFont *arg1 = (wxFont *) 0 ; | |
15015 | wxString result; | |
15016 | void *argp1 = 0 ; | |
15017 | int res1 = 0 ; | |
15018 | PyObject *swig_obj[1] ; | |
15019 | ||
15020 | if (!args) SWIG_fail; | |
15021 | swig_obj[0] = args; | |
15022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15023 | if (!SWIG_IsOK(res1)) { | |
15024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15025 | } | |
15026 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15027 | { | |
15028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15029 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
15033 | { | |
15034 | #if wxUSE_UNICODE | |
15035 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15036 | #else | |
15037 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15038 | #endif | |
15039 | } | |
15040 | return resultobj; | |
15041 | fail: | |
15042 | return NULL; | |
d14a1e28 RD |
15043 | } |
15044 | ||
15045 | ||
0085ce49 RD |
15046 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15047 | PyObject *resultobj = 0; | |
15048 | wxFont *arg1 = (wxFont *) 0 ; | |
15049 | wxString result; | |
15050 | void *argp1 = 0 ; | |
15051 | int res1 = 0 ; | |
15052 | PyObject *swig_obj[1] ; | |
15053 | ||
15054 | if (!args) SWIG_fail; | |
15055 | swig_obj[0] = args; | |
15056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15057 | if (!SWIG_IsOK(res1)) { | |
15058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15059 | } | |
15060 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15061 | { | |
15062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15063 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15064 | wxPyEndAllowThreads(__tstate); | |
15065 | if (PyErr_Occurred()) SWIG_fail; | |
15066 | } | |
15067 | { | |
15068 | #if wxUSE_UNICODE | |
15069 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15070 | #else | |
15071 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15072 | #endif | |
15073 | } | |
15074 | return resultobj; | |
15075 | fail: | |
15076 | return NULL; | |
d14a1e28 RD |
15077 | } |
15078 | ||
15079 | ||
0085ce49 RD |
15080 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15081 | PyObject *resultobj = 0; | |
15082 | wxFont *arg1 = (wxFont *) 0 ; | |
15083 | wxString result; | |
15084 | void *argp1 = 0 ; | |
15085 | int res1 = 0 ; | |
15086 | PyObject *swig_obj[1] ; | |
15087 | ||
15088 | if (!args) SWIG_fail; | |
15089 | swig_obj[0] = args; | |
15090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15091 | if (!SWIG_IsOK(res1)) { | |
15092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15093 | } | |
15094 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15095 | { | |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15098 | wxPyEndAllowThreads(__tstate); | |
15099 | if (PyErr_Occurred()) SWIG_fail; | |
15100 | } | |
15101 | { | |
d14a1e28 | 15102 | #if wxUSE_UNICODE |
0085ce49 | 15103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15104 | #else |
0085ce49 | 15105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15106 | #endif |
0085ce49 RD |
15107 | } |
15108 | return resultobj; | |
15109 | fail: | |
15110 | return NULL; | |
15111 | } | |
15112 | ||
15113 | ||
15114 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15115 | PyObject *resultobj = 0; | |
15116 | wxFont *arg1 = (wxFont *) 0 ; | |
15117 | bool arg2 = (bool) true ; | |
15118 | void *argp1 = 0 ; | |
15119 | int res1 = 0 ; | |
15120 | bool val2 ; | |
15121 | int ecode2 = 0 ; | |
15122 | PyObject * obj0 = 0 ; | |
15123 | PyObject * obj1 = 0 ; | |
15124 | char * kwnames[] = { | |
15125 | (char *) "self",(char *) "no", NULL | |
15126 | }; | |
15127 | ||
15128 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15130 | if (!SWIG_IsOK(res1)) { | |
15131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15132 | } | |
15133 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15134 | if (obj1) { | |
15135 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15136 | if (!SWIG_IsOK(ecode2)) { | |
15137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15138 | } | |
15139 | arg2 = static_cast< bool >(val2); | |
15140 | } | |
15141 | { | |
15142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15143 | (arg1)->SetNoAntiAliasing(arg2); | |
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15147 | resultobj = SWIG_Py_Void(); | |
15148 | return resultobj; | |
15149 | fail: | |
15150 | return NULL; | |
d14a1e28 RD |
15151 | } |
15152 | ||
15153 | ||
0085ce49 RD |
15154 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15155 | PyObject *resultobj = 0; | |
15156 | wxFont *arg1 = (wxFont *) 0 ; | |
15157 | bool result; | |
15158 | void *argp1 = 0 ; | |
15159 | int res1 = 0 ; | |
15160 | PyObject *swig_obj[1] ; | |
15161 | ||
15162 | if (!args) SWIG_fail; | |
15163 | swig_obj[0] = args; | |
15164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15165 | if (!SWIG_IsOK(res1)) { | |
15166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15167 | } | |
15168 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15169 | { | |
15170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15171 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | { | |
15176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15177 | } | |
15178 | return resultobj; | |
15179 | fail: | |
15180 | return NULL; | |
d14a1e28 RD |
15181 | } |
15182 | ||
15183 | ||
0085ce49 RD |
15184 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15185 | PyObject *resultobj = 0; | |
15186 | wxFontEncoding result; | |
15187 | ||
15188 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15189 | { | |
15190 | if (!wxPyCheckForApp()) SWIG_fail; | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
15196 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15197 | return resultobj; | |
15198 | fail: | |
15199 | return NULL; | |
d14a1e28 RD |
15200 | } |
15201 | ||
15202 | ||
0085ce49 RD |
15203 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15204 | PyObject *resultobj = 0; | |
15205 | wxFontEncoding arg1 ; | |
15206 | int val1 ; | |
15207 | int ecode1 = 0 ; | |
15208 | PyObject * obj0 = 0 ; | |
15209 | char * kwnames[] = { | |
15210 | (char *) "encoding", NULL | |
15211 | }; | |
15212 | ||
15213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15214 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15215 | if (!SWIG_IsOK(ecode1)) { | |
15216 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15217 | } | |
15218 | arg1 = static_cast< wxFontEncoding >(val1); | |
15219 | { | |
15220 | if (!wxPyCheckForApp()) SWIG_fail; | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | wxFont::SetDefaultEncoding(arg1); | |
15223 | wxPyEndAllowThreads(__tstate); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | } | |
15226 | resultobj = SWIG_Py_Void(); | |
15227 | return resultobj; | |
15228 | fail: | |
15229 | return NULL; | |
d14a1e28 RD |
15230 | } |
15231 | ||
15232 | ||
0085ce49 RD |
15233 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15234 | PyObject *obj; | |
15235 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15236 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15237 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15238 | } |
15239 | ||
0085ce49 RD |
15240 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15241 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15242 | } |
15243 | ||
0085ce49 RD |
15244 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15245 | PyObject *resultobj = 0; | |
15246 | wxPyFontEnumerator *result = 0 ; | |
15247 | ||
15248 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15249 | { | |
15250 | if (!wxPyCheckForApp()) SWIG_fail; | |
15251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15252 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15253 | wxPyEndAllowThreads(__tstate); | |
15254 | if (PyErr_Occurred()) SWIG_fail; | |
15255 | } | |
15256 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15257 | return resultobj; | |
15258 | fail: | |
15259 | return NULL; | |
d14a1e28 RD |
15260 | } |
15261 | ||
15262 | ||
0085ce49 RD |
15263 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15264 | PyObject *resultobj = 0; | |
15265 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15266 | void *argp1 = 0 ; | |
15267 | int res1 = 0 ; | |
15268 | PyObject *swig_obj[1] ; | |
15269 | ||
15270 | if (!args) SWIG_fail; | |
15271 | swig_obj[0] = args; | |
15272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15273 | if (!SWIG_IsOK(res1)) { | |
15274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15275 | } | |
15276 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15277 | { | |
15278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15279 | delete arg1; | |
d14a1e28 | 15280 | |
0085ce49 RD |
15281 | wxPyEndAllowThreads(__tstate); |
15282 | if (PyErr_Occurred()) SWIG_fail; | |
15283 | } | |
15284 | resultobj = SWIG_Py_Void(); | |
15285 | return resultobj; | |
15286 | fail: | |
15287 | return NULL; | |
15288 | } | |
15289 | ||
15290 | ||
15291 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15292 | PyObject *resultobj = 0; | |
15293 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15294 | PyObject *arg2 = (PyObject *) 0 ; | |
15295 | PyObject *arg3 = (PyObject *) 0 ; | |
15296 | bool arg4 ; | |
15297 | void *argp1 = 0 ; | |
15298 | int res1 = 0 ; | |
15299 | bool val4 ; | |
15300 | int ecode4 = 0 ; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | PyObject * obj1 = 0 ; | |
15303 | PyObject * obj2 = 0 ; | |
15304 | PyObject * obj3 = 0 ; | |
15305 | char * kwnames[] = { | |
15306 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15307 | }; | |
15308 | ||
15309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15311 | if (!SWIG_IsOK(res1)) { | |
15312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15313 | } | |
15314 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15315 | arg2 = obj1; | |
15316 | arg3 = obj2; | |
15317 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
15318 | if (!SWIG_IsOK(ecode4)) { | |
15319 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
15320 | } | |
15321 | arg4 = static_cast< bool >(val4); | |
15322 | { | |
15323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15324 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15325 | wxPyEndAllowThreads(__tstate); | |
15326 | if (PyErr_Occurred()) SWIG_fail; | |
15327 | } | |
15328 | resultobj = SWIG_Py_Void(); | |
15329 | return resultobj; | |
15330 | fail: | |
15331 | return NULL; | |
15332 | } | |
15333 | ||
15334 | ||
15335 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15336 | PyObject *resultobj = 0; | |
15337 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15338 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15339 | bool arg3 = (bool) false ; | |
15340 | bool result; | |
15341 | void *argp1 = 0 ; | |
15342 | int res1 = 0 ; | |
15343 | int val2 ; | |
15344 | int ecode2 = 0 ; | |
15345 | bool val3 ; | |
15346 | int ecode3 = 0 ; | |
15347 | PyObject * obj0 = 0 ; | |
15348 | PyObject * obj1 = 0 ; | |
15349 | PyObject * obj2 = 0 ; | |
15350 | char * kwnames[] = { | |
15351 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15352 | }; | |
15353 | ||
15354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15356 | if (!SWIG_IsOK(res1)) { | |
15357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15358 | } | |
15359 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15360 | if (obj1) { | |
15361 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15362 | if (!SWIG_IsOK(ecode2)) { | |
15363 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15364 | } | |
15365 | arg2 = static_cast< wxFontEncoding >(val2); | |
15366 | } | |
15367 | if (obj2) { | |
15368 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15369 | if (!SWIG_IsOK(ecode3)) { | |
15370 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15371 | } | |
15372 | arg3 = static_cast< bool >(val3); | |
15373 | } | |
15374 | { | |
15375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15376 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15377 | wxPyEndAllowThreads(__tstate); | |
15378 | if (PyErr_Occurred()) SWIG_fail; | |
15379 | } | |
15380 | { | |
15381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15382 | } | |
15383 | return resultobj; | |
15384 | fail: | |
15385 | return NULL; | |
15386 | } | |
15387 | ||
15388 | ||
15389 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15390 | PyObject *resultobj = 0; | |
15391 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15392 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15393 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15394 | bool result; | |
15395 | void *argp1 = 0 ; | |
15396 | int res1 = 0 ; | |
15397 | bool temp2 = false ; | |
15398 | PyObject * obj0 = 0 ; | |
15399 | PyObject * obj1 = 0 ; | |
15400 | char * kwnames[] = { | |
15401 | (char *) "self",(char *) "facename", NULL | |
15402 | }; | |
15403 | ||
15404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15406 | if (!SWIG_IsOK(res1)) { | |
15407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15408 | } | |
15409 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15410 | if (obj1) { | |
d14a1e28 | 15411 | { |
0085ce49 RD |
15412 | arg2 = wxString_in_helper(obj1); |
15413 | if (arg2 == NULL) SWIG_fail; | |
15414 | temp2 = true; | |
d14a1e28 | 15415 | } |
0085ce49 RD |
15416 | } |
15417 | { | |
15418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15419 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15420 | wxPyEndAllowThreads(__tstate); | |
15421 | if (PyErr_Occurred()) SWIG_fail; | |
15422 | } | |
15423 | { | |
15424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15425 | } | |
15426 | { | |
15427 | if (temp2) | |
15428 | delete arg2; | |
15429 | } | |
15430 | return resultobj; | |
15431 | fail: | |
15432 | { | |
15433 | if (temp2) | |
15434 | delete arg2; | |
15435 | } | |
15436 | return NULL; | |
d14a1e28 RD |
15437 | } |
15438 | ||
15439 | ||
0085ce49 RD |
15440 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15441 | PyObject *resultobj = 0; | |
0085ce49 | 15442 | PyObject *result = 0 ; |
0085ce49 | 15443 | |
704eda0c | 15444 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15445 | { |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15447 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15448 | wxPyEndAllowThreads(__tstate); |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
15451 | resultobj = result; | |
15452 | return resultobj; | |
15453 | fail: | |
15454 | return NULL; | |
d14a1e28 RD |
15455 | } |
15456 | ||
15457 | ||
0085ce49 RD |
15458 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15459 | PyObject *resultobj = 0; | |
0085ce49 | 15460 | PyObject *result = 0 ; |
0085ce49 | 15461 | |
704eda0c | 15462 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15463 | { |
15464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15465 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15466 | wxPyEndAllowThreads(__tstate); |
15467 | if (PyErr_Occurred()) SWIG_fail; | |
15468 | } | |
15469 | resultobj = result; | |
15470 | return resultobj; | |
15471 | fail: | |
15472 | return NULL; | |
d14a1e28 RD |
15473 | } |
15474 | ||
15475 | ||
704eda0c RD |
15476 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15477 | PyObject *resultobj = 0; | |
15478 | wxString *arg1 = 0 ; | |
15479 | bool result; | |
15480 | bool temp1 = false ; | |
15481 | PyObject * obj0 = 0 ; | |
15482 | char * kwnames[] = { | |
15483 | (char *) "str", NULL | |
15484 | }; | |
15485 | ||
15486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15487 | { | |
15488 | arg1 = wxString_in_helper(obj0); | |
15489 | if (arg1 == NULL) SWIG_fail; | |
15490 | temp1 = true; | |
15491 | } | |
15492 | { | |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | { | |
15499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15500 | } | |
15501 | { | |
15502 | if (temp1) | |
15503 | delete arg1; | |
15504 | } | |
15505 | return resultobj; | |
15506 | fail: | |
15507 | { | |
15508 | if (temp1) | |
15509 | delete arg1; | |
15510 | } | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
0085ce49 RD |
15515 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15516 | PyObject *obj; | |
15517 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15518 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15519 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15520 | } |
15521 | ||
0085ce49 RD |
15522 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15523 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15524 | } |
15525 | ||
0085ce49 RD |
15526 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15527 | PyObject *resultobj = 0; | |
15528 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15529 | int arg2 ; | |
15530 | void *argp1 = 0 ; | |
15531 | int res1 = 0 ; | |
15532 | int val2 ; | |
15533 | int ecode2 = 0 ; | |
15534 | PyObject *swig_obj[2] ; | |
15535 | ||
15536 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15538 | if (!SWIG_IsOK(res1)) { | |
15539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15540 | } | |
15541 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15542 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15543 | if (!SWIG_IsOK(ecode2)) { | |
15544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15545 | } | |
15546 | arg2 = static_cast< int >(val2); | |
15547 | if (arg1) (arg1)->Language = arg2; | |
15548 | ||
15549 | resultobj = SWIG_Py_Void(); | |
15550 | return resultobj; | |
15551 | fail: | |
15552 | return NULL; | |
d14a1e28 RD |
15553 | } |
15554 | ||
15555 | ||
0085ce49 RD |
15556 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15557 | PyObject *resultobj = 0; | |
15558 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15559 | int result; | |
15560 | void *argp1 = 0 ; | |
15561 | int res1 = 0 ; | |
15562 | PyObject *swig_obj[1] ; | |
15563 | ||
15564 | if (!args) SWIG_fail; | |
15565 | swig_obj[0] = args; | |
15566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15567 | if (!SWIG_IsOK(res1)) { | |
15568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15569 | } | |
15570 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15571 | result = (int) ((arg1)->Language); | |
15572 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15573 | return resultobj; | |
15574 | fail: | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
15579 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15580 | PyObject *resultobj = 0; | |
15581 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15582 | wxString *arg2 = (wxString *) 0 ; | |
15583 | void *argp1 = 0 ; | |
15584 | int res1 = 0 ; | |
15585 | bool temp2 = false ; | |
15586 | PyObject *swig_obj[2] ; | |
15587 | ||
15588 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15590 | if (!SWIG_IsOK(res1)) { | |
15591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15592 | } | |
15593 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15594 | { | |
15595 | arg2 = wxString_in_helper(swig_obj[1]); | |
15596 | if (arg2 == NULL) SWIG_fail; | |
15597 | temp2 = true; | |
15598 | } | |
15599 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15600 | ||
15601 | resultobj = SWIG_Py_Void(); | |
15602 | { | |
15603 | if (temp2) | |
15604 | delete arg2; | |
15605 | } | |
15606 | return resultobj; | |
15607 | fail: | |
15608 | { | |
15609 | if (temp2) | |
15610 | delete arg2; | |
15611 | } | |
15612 | return NULL; | |
d14a1e28 RD |
15613 | } |
15614 | ||
15615 | ||
0085ce49 RD |
15616 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15617 | PyObject *resultobj = 0; | |
15618 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15619 | wxString *result = 0 ; | |
15620 | void *argp1 = 0 ; | |
15621 | int res1 = 0 ; | |
15622 | PyObject *swig_obj[1] ; | |
15623 | ||
15624 | if (!args) SWIG_fail; | |
15625 | swig_obj[0] = args; | |
15626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15627 | if (!SWIG_IsOK(res1)) { | |
15628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15629 | } | |
15630 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15631 | result = (wxString *)& ((arg1)->CanonicalName); | |
15632 | { | |
093d3ff1 | 15633 | #if wxUSE_UNICODE |
0085ce49 | 15634 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15635 | #else |
0085ce49 | 15636 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15637 | #endif |
0085ce49 RD |
15638 | } |
15639 | return resultobj; | |
15640 | fail: | |
15641 | return NULL; | |
d14a1e28 RD |
15642 | } |
15643 | ||
15644 | ||
0085ce49 RD |
15645 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15646 | PyObject *resultobj = 0; | |
15647 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15648 | wxString *arg2 = (wxString *) 0 ; | |
15649 | void *argp1 = 0 ; | |
15650 | int res1 = 0 ; | |
15651 | bool temp2 = false ; | |
15652 | PyObject *swig_obj[2] ; | |
15653 | ||
15654 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15656 | if (!SWIG_IsOK(res1)) { | |
15657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15658 | } | |
15659 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15660 | { | |
15661 | arg2 = wxString_in_helper(swig_obj[1]); | |
15662 | if (arg2 == NULL) SWIG_fail; | |
15663 | temp2 = true; | |
15664 | } | |
15665 | if (arg1) (arg1)->Description = *arg2; | |
15666 | ||
15667 | resultobj = SWIG_Py_Void(); | |
15668 | { | |
15669 | if (temp2) | |
15670 | delete arg2; | |
15671 | } | |
15672 | return resultobj; | |
15673 | fail: | |
15674 | { | |
15675 | if (temp2) | |
15676 | delete arg2; | |
15677 | } | |
15678 | return NULL; | |
d14a1e28 RD |
15679 | } |
15680 | ||
15681 | ||
0085ce49 RD |
15682 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15683 | PyObject *resultobj = 0; | |
15684 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15685 | wxString *result = 0 ; | |
15686 | void *argp1 = 0 ; | |
15687 | int res1 = 0 ; | |
15688 | PyObject *swig_obj[1] ; | |
15689 | ||
15690 | if (!args) SWIG_fail; | |
15691 | swig_obj[0] = args; | |
15692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15693 | if (!SWIG_IsOK(res1)) { | |
15694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15695 | } | |
15696 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15697 | result = (wxString *)& ((arg1)->Description); | |
15698 | { | |
d14a1e28 | 15699 | #if wxUSE_UNICODE |
0085ce49 | 15700 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 15701 | #else |
0085ce49 | 15702 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 15703 | #endif |
0085ce49 RD |
15704 | } |
15705 | return resultobj; | |
15706 | fail: | |
15707 | return NULL; | |
15708 | } | |
15709 | ||
15710 | ||
15711 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15712 | PyObject *obj; | |
15713 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15714 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
15715 | return SWIG_Py_Void(); | |
15716 | } | |
15717 | ||
15718 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15719 | PyObject *resultobj = 0; | |
15720 | int arg1 = (int) -1 ; | |
15721 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15722 | wxLocale *result = 0 ; | |
15723 | int val1 ; | |
15724 | int ecode1 = 0 ; | |
15725 | int val2 ; | |
15726 | int ecode2 = 0 ; | |
15727 | PyObject * obj0 = 0 ; | |
15728 | PyObject * obj1 = 0 ; | |
15729 | char * kwnames[] = { | |
15730 | (char *) "language",(char *) "flags", NULL | |
15731 | }; | |
15732 | ||
15733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
15734 | if (obj0) { | |
15735 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15736 | if (!SWIG_IsOK(ecode1)) { | |
15737 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
15738 | } | |
15739 | arg1 = static_cast< int >(val1); | |
15740 | } | |
15741 | if (obj1) { | |
15742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15743 | if (!SWIG_IsOK(ecode2)) { | |
15744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
15745 | } | |
15746 | arg2 = static_cast< int >(val2); | |
15747 | } | |
15748 | { | |
15749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15750 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
15751 | wxPyEndAllowThreads(__tstate); | |
15752 | if (PyErr_Occurred()) SWIG_fail; | |
15753 | } | |
15754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
15755 | return resultobj; | |
15756 | fail: | |
15757 | return NULL; | |
d14a1e28 RD |
15758 | } |
15759 | ||
15760 | ||
0085ce49 RD |
15761 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15762 | PyObject *resultobj = 0; | |
15763 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15764 | void *argp1 = 0 ; | |
15765 | int res1 = 0 ; | |
15766 | PyObject *swig_obj[1] ; | |
15767 | ||
15768 | if (!args) SWIG_fail; | |
15769 | swig_obj[0] = args; | |
15770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
15771 | if (!SWIG_IsOK(res1)) { | |
15772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15773 | } | |
15774 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15775 | { | |
15776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15777 | delete arg1; | |
d14a1e28 | 15778 | |
0085ce49 RD |
15779 | wxPyEndAllowThreads(__tstate); |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
15782 | resultobj = SWIG_Py_Void(); | |
15783 | return resultobj; | |
15784 | fail: | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
15789 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15790 | PyObject *resultobj = 0; | |
15791 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15792 | wxString *arg2 = 0 ; | |
15793 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15794 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15795 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15796 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15797 | bool arg5 = (bool) true ; | |
15798 | bool arg6 = (bool) false ; | |
15799 | bool result; | |
15800 | void *argp1 = 0 ; | |
15801 | int res1 = 0 ; | |
15802 | bool temp2 = false ; | |
15803 | bool temp3 = false ; | |
15804 | bool temp4 = false ; | |
15805 | bool val5 ; | |
15806 | int ecode5 = 0 ; | |
15807 | bool val6 ; | |
15808 | int ecode6 = 0 ; | |
15809 | PyObject * obj0 = 0 ; | |
15810 | PyObject * obj1 = 0 ; | |
15811 | PyObject * obj2 = 0 ; | |
15812 | PyObject * obj3 = 0 ; | |
15813 | PyObject * obj4 = 0 ; | |
15814 | PyObject * obj5 = 0 ; | |
15815 | char * kwnames[] = { | |
15816 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
15817 | }; | |
15818 | ||
15819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15821 | if (!SWIG_IsOK(res1)) { | |
15822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15823 | } | |
15824 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15825 | { | |
15826 | arg2 = wxString_in_helper(obj1); | |
15827 | if (arg2 == NULL) SWIG_fail; | |
15828 | temp2 = true; | |
15829 | } | |
15830 | if (obj2) { | |
d14a1e28 | 15831 | { |
0085ce49 RD |
15832 | arg3 = wxString_in_helper(obj2); |
15833 | if (arg3 == NULL) SWIG_fail; | |
15834 | temp3 = true; | |
d14a1e28 | 15835 | } |
0085ce49 RD |
15836 | } |
15837 | if (obj3) { | |
093d3ff1 | 15838 | { |
0085ce49 RD |
15839 | arg4 = wxString_in_helper(obj3); |
15840 | if (arg4 == NULL) SWIG_fail; | |
15841 | temp4 = true; | |
093d3ff1 | 15842 | } |
0085ce49 RD |
15843 | } |
15844 | if (obj4) { | |
15845 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
15846 | if (!SWIG_IsOK(ecode5)) { | |
15847 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
15848 | } | |
15849 | arg5 = static_cast< bool >(val5); | |
15850 | } | |
15851 | if (obj5) { | |
15852 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
15853 | if (!SWIG_IsOK(ecode6)) { | |
15854 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
15855 | } | |
15856 | arg6 = static_cast< bool >(val6); | |
15857 | } | |
15858 | { | |
15859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15860 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
15861 | wxPyEndAllowThreads(__tstate); | |
15862 | if (PyErr_Occurred()) SWIG_fail; | |
15863 | } | |
15864 | { | |
15865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15866 | } | |
15867 | { | |
15868 | if (temp2) | |
15869 | delete arg2; | |
15870 | } | |
15871 | { | |
15872 | if (temp3) | |
15873 | delete arg3; | |
15874 | } | |
15875 | { | |
15876 | if (temp4) | |
15877 | delete arg4; | |
15878 | } | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | { | |
15882 | if (temp2) | |
15883 | delete arg2; | |
15884 | } | |
15885 | { | |
15886 | if (temp3) | |
15887 | delete arg3; | |
15888 | } | |
15889 | { | |
15890 | if (temp4) | |
15891 | delete arg4; | |
15892 | } | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15898 | PyObject *resultobj = 0; | |
15899 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15900 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
15901 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15902 | bool result; | |
15903 | void *argp1 = 0 ; | |
15904 | int res1 = 0 ; | |
15905 | int val2 ; | |
15906 | int ecode2 = 0 ; | |
15907 | int val3 ; | |
15908 | int ecode3 = 0 ; | |
15909 | PyObject * obj0 = 0 ; | |
15910 | PyObject * obj1 = 0 ; | |
15911 | PyObject * obj2 = 0 ; | |
15912 | char * kwnames[] = { | |
15913 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
15914 | }; | |
15915 | ||
15916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15918 | if (!SWIG_IsOK(res1)) { | |
15919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15920 | } | |
15921 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15922 | if (obj1) { | |
15923 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15924 | if (!SWIG_IsOK(ecode2)) { | |
15925 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
15926 | } | |
15927 | arg2 = static_cast< int >(val2); | |
15928 | } | |
15929 | if (obj2) { | |
15930 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15931 | if (!SWIG_IsOK(ecode3)) { | |
15932 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
15933 | } | |
15934 | arg3 = static_cast< int >(val3); | |
15935 | } | |
15936 | { | |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15938 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
15939 | wxPyEndAllowThreads(__tstate); | |
15940 | if (PyErr_Occurred()) SWIG_fail; | |
15941 | } | |
15942 | { | |
15943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15944 | } | |
15945 | return resultobj; | |
15946 | fail: | |
15947 | return NULL; | |
093d3ff1 RD |
15948 | } |
15949 | ||
15950 | ||
0085ce49 RD |
15951 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15952 | PyObject *resultobj = 0; | |
15953 | int result; | |
15954 | ||
15955 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
15956 | { | |
15957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15958 | result = (int)wxLocale::GetSystemLanguage(); | |
15959 | wxPyEndAllowThreads(__tstate); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | } | |
15962 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15963 | return resultobj; | |
15964 | fail: | |
15965 | return NULL; | |
d14a1e28 RD |
15966 | } |
15967 | ||
15968 | ||
0085ce49 RD |
15969 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15970 | PyObject *resultobj = 0; | |
15971 | wxFontEncoding result; | |
15972 | ||
15973 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
15974 | { | |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15976 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
15977 | wxPyEndAllowThreads(__tstate); | |
15978 | if (PyErr_Occurred()) SWIG_fail; | |
15979 | } | |
15980 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15981 | return resultobj; | |
15982 | fail: | |
15983 | return NULL; | |
d14a1e28 RD |
15984 | } |
15985 | ||
15986 | ||
0085ce49 RD |
15987 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15988 | PyObject *resultobj = 0; | |
15989 | wxString result; | |
15990 | ||
15991 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
15992 | { | |
15993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15994 | result = wxLocale::GetSystemEncodingName(); | |
15995 | wxPyEndAllowThreads(__tstate); | |
15996 | if (PyErr_Occurred()) SWIG_fail; | |
15997 | } | |
15998 | { | |
d14a1e28 | 15999 | #if wxUSE_UNICODE |
0085ce49 | 16000 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16001 | #else |
0085ce49 | 16002 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16003 | #endif |
0085ce49 RD |
16004 | } |
16005 | return resultobj; | |
16006 | fail: | |
16007 | return NULL; | |
d14a1e28 RD |
16008 | } |
16009 | ||
16010 | ||
0085ce49 RD |
16011 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16012 | PyObject *resultobj = 0; | |
16013 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16014 | bool result; | |
16015 | void *argp1 = 0 ; | |
16016 | int res1 = 0 ; | |
16017 | PyObject *swig_obj[1] ; | |
16018 | ||
16019 | if (!args) SWIG_fail; | |
16020 | swig_obj[0] = args; | |
16021 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16022 | if (!SWIG_IsOK(res1)) { | |
16023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16024 | } | |
16025 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16026 | { | |
16027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16028 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16029 | wxPyEndAllowThreads(__tstate); | |
16030 | if (PyErr_Occurred()) SWIG_fail; | |
16031 | } | |
16032 | { | |
16033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16034 | } | |
16035 | return resultobj; | |
16036 | fail: | |
16037 | return NULL; | |
093d3ff1 | 16038 | } |
0085ce49 RD |
16039 | |
16040 | ||
16041 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16042 | PyObject *resultobj = 0; | |
16043 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16044 | wxString result; | |
16045 | void *argp1 = 0 ; | |
16046 | int res1 = 0 ; | |
16047 | PyObject *swig_obj[1] ; | |
16048 | ||
16049 | if (!args) SWIG_fail; | |
16050 | swig_obj[0] = args; | |
16051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16052 | if (!SWIG_IsOK(res1)) { | |
16053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16054 | } | |
16055 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16056 | { | |
16057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16058 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16059 | wxPyEndAllowThreads(__tstate); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | { | |
16063 | #if wxUSE_UNICODE | |
16064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16065 | #else | |
16066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16067 | #endif | |
16068 | } | |
16069 | return resultobj; | |
16070 | fail: | |
16071 | return NULL; | |
d14a1e28 RD |
16072 | } |
16073 | ||
16074 | ||
0085ce49 RD |
16075 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16076 | PyObject *resultobj = 0; | |
16077 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16078 | int result; | |
16079 | void *argp1 = 0 ; | |
16080 | int res1 = 0 ; | |
16081 | PyObject *swig_obj[1] ; | |
16082 | ||
16083 | if (!args) SWIG_fail; | |
16084 | swig_obj[0] = args; | |
16085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16086 | if (!SWIG_IsOK(res1)) { | |
16087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16088 | } | |
16089 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16090 | { | |
16091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16092 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
16096 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
d14a1e28 RD |
16100 | } |
16101 | ||
16102 | ||
0085ce49 RD |
16103 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16104 | PyObject *resultobj = 0; | |
16105 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16106 | wxString result; | |
16107 | void *argp1 = 0 ; | |
16108 | int res1 = 0 ; | |
16109 | PyObject *swig_obj[1] ; | |
16110 | ||
16111 | if (!args) SWIG_fail; | |
16112 | swig_obj[0] = args; | |
16113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16114 | if (!SWIG_IsOK(res1)) { | |
16115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16116 | } | |
16117 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16118 | { | |
16119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16120 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16121 | wxPyEndAllowThreads(__tstate); | |
16122 | if (PyErr_Occurred()) SWIG_fail; | |
16123 | } | |
16124 | { | |
16125 | #if wxUSE_UNICODE | |
16126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16127 | #else | |
16128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16129 | #endif | |
16130 | } | |
16131 | return resultobj; | |
16132 | fail: | |
16133 | return NULL; | |
d14a1e28 RD |
16134 | } |
16135 | ||
16136 | ||
0085ce49 RD |
16137 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16138 | PyObject *resultobj = 0; | |
16139 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16140 | wxString result; | |
16141 | void *argp1 = 0 ; | |
16142 | int res1 = 0 ; | |
16143 | PyObject *swig_obj[1] ; | |
16144 | ||
16145 | if (!args) SWIG_fail; | |
16146 | swig_obj[0] = args; | |
16147 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16148 | if (!SWIG_IsOK(res1)) { | |
16149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16150 | } | |
16151 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16152 | { | |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16155 | wxPyEndAllowThreads(__tstate); | |
16156 | if (PyErr_Occurred()) SWIG_fail; | |
16157 | } | |
16158 | { | |
16159 | #if wxUSE_UNICODE | |
16160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16161 | #else | |
16162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16163 | #endif | |
16164 | } | |
16165 | return resultobj; | |
16166 | fail: | |
16167 | return NULL; | |
d14a1e28 RD |
16168 | } |
16169 | ||
16170 | ||
0085ce49 RD |
16171 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16172 | PyObject *resultobj = 0; | |
16173 | wxString *arg1 = 0 ; | |
16174 | bool temp1 = false ; | |
16175 | PyObject * obj0 = 0 ; | |
16176 | char * kwnames[] = { | |
16177 | (char *) "prefix", NULL | |
16178 | }; | |
16179 | ||
16180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16181 | { | |
16182 | arg1 = wxString_in_helper(obj0); | |
16183 | if (arg1 == NULL) SWIG_fail; | |
16184 | temp1 = true; | |
16185 | } | |
16186 | { | |
16187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16188 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16189 | wxPyEndAllowThreads(__tstate); | |
16190 | if (PyErr_Occurred()) SWIG_fail; | |
16191 | } | |
16192 | resultobj = SWIG_Py_Void(); | |
16193 | { | |
16194 | if (temp1) | |
16195 | delete arg1; | |
16196 | } | |
16197 | return resultobj; | |
16198 | fail: | |
16199 | { | |
16200 | if (temp1) | |
16201 | delete arg1; | |
16202 | } | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
16207 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16208 | PyObject *resultobj = 0; | |
16209 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16210 | wxString *arg2 = 0 ; | |
16211 | bool result; | |
16212 | void *argp1 = 0 ; | |
16213 | int res1 = 0 ; | |
16214 | bool temp2 = false ; | |
16215 | PyObject * obj0 = 0 ; | |
16216 | PyObject * obj1 = 0 ; | |
16217 | char * kwnames[] = { | |
16218 | (char *) "self",(char *) "szDomain", NULL | |
16219 | }; | |
16220 | ||
16221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16223 | if (!SWIG_IsOK(res1)) { | |
16224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16225 | } | |
16226 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16227 | { | |
16228 | arg2 = wxString_in_helper(obj1); | |
16229 | if (arg2 == NULL) SWIG_fail; | |
16230 | temp2 = true; | |
16231 | } | |
16232 | { | |
16233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16234 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16235 | wxPyEndAllowThreads(__tstate); | |
16236 | if (PyErr_Occurred()) SWIG_fail; | |
16237 | } | |
16238 | { | |
16239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16240 | } | |
16241 | { | |
16242 | if (temp2) | |
16243 | delete arg2; | |
16244 | } | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | { | |
16248 | if (temp2) | |
16249 | delete arg2; | |
16250 | } | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
33d6fd3b RD |
16255 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16256 | PyObject *resultobj = 0; | |
16257 | int arg1 ; | |
16258 | bool result; | |
16259 | int val1 ; | |
16260 | int ecode1 = 0 ; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | char * kwnames[] = { | |
16263 | (char *) "lang", NULL | |
16264 | }; | |
16265 | ||
16266 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16267 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16268 | if (!SWIG_IsOK(ecode1)) { | |
16269 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16270 | } | |
16271 | arg1 = static_cast< int >(val1); | |
16272 | { | |
16273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16274 | result = (bool)wxLocale::IsAvailable(arg1); | |
16275 | wxPyEndAllowThreads(__tstate); | |
16276 | if (PyErr_Occurred()) SWIG_fail; | |
16277 | } | |
16278 | { | |
16279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16280 | } | |
16281 | return resultobj; | |
16282 | fail: | |
16283 | return NULL; | |
16284 | } | |
16285 | ||
16286 | ||
0085ce49 RD |
16287 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16288 | PyObject *resultobj = 0; | |
16289 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16290 | wxString *arg2 = 0 ; | |
16291 | bool result; | |
16292 | void *argp1 = 0 ; | |
16293 | int res1 = 0 ; | |
16294 | bool temp2 = false ; | |
16295 | PyObject * obj0 = 0 ; | |
16296 | PyObject * obj1 = 0 ; | |
16297 | char * kwnames[] = { | |
16298 | (char *) "self",(char *) "szDomain", NULL | |
16299 | }; | |
16300 | ||
16301 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16303 | if (!SWIG_IsOK(res1)) { | |
16304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16305 | } | |
16306 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16307 | { | |
16308 | arg2 = wxString_in_helper(obj1); | |
16309 | if (arg2 == NULL) SWIG_fail; | |
16310 | temp2 = true; | |
16311 | } | |
16312 | { | |
16313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16314 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16315 | wxPyEndAllowThreads(__tstate); | |
16316 | if (PyErr_Occurred()) SWIG_fail; | |
16317 | } | |
16318 | { | |
16319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16320 | } | |
16321 | { | |
16322 | if (temp2) | |
16323 | delete arg2; | |
16324 | } | |
16325 | return resultobj; | |
16326 | fail: | |
16327 | { | |
16328 | if (temp2) | |
16329 | delete arg2; | |
16330 | } | |
16331 | return NULL; | |
d14a1e28 RD |
16332 | } |
16333 | ||
16334 | ||
0085ce49 RD |
16335 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16336 | PyObject *resultobj = 0; | |
16337 | int arg1 ; | |
16338 | wxLanguageInfo *result = 0 ; | |
16339 | int val1 ; | |
16340 | int ecode1 = 0 ; | |
16341 | PyObject * obj0 = 0 ; | |
16342 | char * kwnames[] = { | |
16343 | (char *) "lang", NULL | |
16344 | }; | |
16345 | ||
16346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16347 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16348 | if (!SWIG_IsOK(ecode1)) { | |
16349 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16350 | } | |
16351 | arg1 = static_cast< int >(val1); | |
16352 | { | |
16353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16354 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16355 | wxPyEndAllowThreads(__tstate); | |
16356 | if (PyErr_Occurred()) SWIG_fail; | |
16357 | } | |
16358 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16359 | return resultobj; | |
16360 | fail: | |
16361 | return NULL; | |
16362 | } | |
16363 | ||
16364 | ||
16365 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16366 | PyObject *resultobj = 0; | |
16367 | int arg1 ; | |
16368 | wxString result; | |
16369 | int val1 ; | |
16370 | int ecode1 = 0 ; | |
16371 | PyObject * obj0 = 0 ; | |
16372 | char * kwnames[] = { | |
16373 | (char *) "lang", NULL | |
16374 | }; | |
16375 | ||
16376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16377 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16378 | if (!SWIG_IsOK(ecode1)) { | |
16379 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16380 | } | |
16381 | arg1 = static_cast< int >(val1); | |
16382 | { | |
16383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16384 | result = wxLocale::GetLanguageName(arg1); | |
16385 | wxPyEndAllowThreads(__tstate); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | } | |
16388 | { | |
16389 | #if wxUSE_UNICODE | |
16390 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16391 | #else | |
16392 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16393 | #endif | |
16394 | } | |
16395 | return resultobj; | |
16396 | fail: | |
16397 | return NULL; | |
d14a1e28 RD |
16398 | } |
16399 | ||
16400 | ||
0085ce49 RD |
16401 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16402 | PyObject *resultobj = 0; | |
16403 | wxString *arg1 = 0 ; | |
16404 | wxLanguageInfo *result = 0 ; | |
16405 | bool temp1 = false ; | |
16406 | PyObject * obj0 = 0 ; | |
16407 | char * kwnames[] = { | |
16408 | (char *) "locale", NULL | |
16409 | }; | |
16410 | ||
16411 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16412 | { | |
16413 | arg1 = wxString_in_helper(obj0); | |
16414 | if (arg1 == NULL) SWIG_fail; | |
16415 | temp1 = true; | |
16416 | } | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16419 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16420 | wxPyEndAllowThreads(__tstate); | |
16421 | if (PyErr_Occurred()) SWIG_fail; | |
16422 | } | |
16423 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16424 | { | |
16425 | if (temp1) | |
16426 | delete arg1; | |
16427 | } | |
16428 | return resultobj; | |
16429 | fail: | |
16430 | { | |
16431 | if (temp1) | |
16432 | delete arg1; | |
16433 | } | |
16434 | return NULL; | |
16435 | } | |
16436 | ||
16437 | ||
16438 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16439 | PyObject *resultobj = 0; | |
16440 | wxLanguageInfo *arg1 = 0 ; | |
16441 | void *argp1 = 0 ; | |
16442 | int res1 = 0 ; | |
16443 | PyObject * obj0 = 0 ; | |
16444 | char * kwnames[] = { | |
16445 | (char *) "info", NULL | |
16446 | }; | |
16447 | ||
16448 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16449 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16450 | if (!SWIG_IsOK(res1)) { | |
16451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16452 | } | |
16453 | if (!argp1) { | |
16454 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16455 | } | |
16456 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16457 | { | |
16458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16459 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16460 | wxPyEndAllowThreads(__tstate); | |
16461 | if (PyErr_Occurred()) SWIG_fail; | |
16462 | } | |
16463 | resultobj = SWIG_Py_Void(); | |
16464 | return resultobj; | |
16465 | fail: | |
16466 | return NULL; | |
16467 | } | |
16468 | ||
16469 | ||
16470 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16471 | PyObject *resultobj = 0; | |
16472 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16473 | wxString *arg2 = 0 ; | |
16474 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16475 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16476 | wxString result; | |
16477 | void *argp1 = 0 ; | |
16478 | int res1 = 0 ; | |
16479 | bool temp2 = false ; | |
16480 | bool temp3 = false ; | |
16481 | PyObject * obj0 = 0 ; | |
16482 | PyObject * obj1 = 0 ; | |
16483 | PyObject * obj2 = 0 ; | |
16484 | char * kwnames[] = { | |
16485 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16486 | }; | |
16487 | ||
16488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16490 | if (!SWIG_IsOK(res1)) { | |
16491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16492 | } | |
16493 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16494 | { | |
16495 | arg2 = wxString_in_helper(obj1); | |
16496 | if (arg2 == NULL) SWIG_fail; | |
16497 | temp2 = true; | |
16498 | } | |
16499 | if (obj2) { | |
16500 | { | |
16501 | arg3 = wxString_in_helper(obj2); | |
16502 | if (arg3 == NULL) SWIG_fail; | |
16503 | temp3 = true; | |
16504 | } | |
16505 | } | |
16506 | { | |
16507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16508 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16509 | wxPyEndAllowThreads(__tstate); | |
16510 | if (PyErr_Occurred()) SWIG_fail; | |
16511 | } | |
16512 | { | |
16513 | #if wxUSE_UNICODE | |
16514 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16515 | #else | |
16516 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16517 | #endif | |
16518 | } | |
16519 | { | |
16520 | if (temp2) | |
16521 | delete arg2; | |
16522 | } | |
16523 | { | |
16524 | if (temp3) | |
16525 | delete arg3; | |
16526 | } | |
16527 | return resultobj; | |
16528 | fail: | |
16529 | { | |
16530 | if (temp2) | |
16531 | delete arg2; | |
16532 | } | |
16533 | { | |
16534 | if (temp3) | |
16535 | delete arg3; | |
16536 | } | |
16537 | return NULL; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16542 | PyObject *resultobj = 0; | |
16543 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16544 | wxString *result = 0 ; | |
16545 | void *argp1 = 0 ; | |
16546 | int res1 = 0 ; | |
16547 | PyObject *swig_obj[1] ; | |
16548 | ||
16549 | if (!args) SWIG_fail; | |
16550 | swig_obj[0] = args; | |
16551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16552 | if (!SWIG_IsOK(res1)) { | |
16553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16554 | } | |
16555 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16556 | { | |
16557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16558 | { | |
16559 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16560 | result = (wxString *) &_result_ref; | |
16561 | } | |
16562 | wxPyEndAllowThreads(__tstate); | |
16563 | if (PyErr_Occurred()) SWIG_fail; | |
16564 | } | |
16565 | { | |
16566 | #if wxUSE_UNICODE | |
16567 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16568 | #else | |
16569 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16570 | #endif | |
16571 | } | |
16572 | return resultobj; | |
16573 | fail: | |
16574 | return NULL; | |
16575 | } | |
16576 | ||
16577 | ||
16578 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16579 | PyObject *obj; | |
16580 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16581 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16582 | return SWIG_Py_Void(); | |
16583 | } | |
16584 | ||
16585 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16586 | return SWIG_Python_InitShadowInstance(args); | |
16587 | } | |
16588 | ||
16589 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16590 | PyObject *resultobj = 0; | |
16591 | int arg1 = (int) -1 ; | |
16592 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16593 | wxPyLocale *result = 0 ; | |
16594 | int val1 ; | |
16595 | int ecode1 = 0 ; | |
16596 | int val2 ; | |
16597 | int ecode2 = 0 ; | |
16598 | PyObject * obj0 = 0 ; | |
16599 | PyObject * obj1 = 0 ; | |
16600 | char * kwnames[] = { | |
16601 | (char *) "language",(char *) "flags", NULL | |
16602 | }; | |
16603 | ||
16604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16605 | if (obj0) { | |
16606 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16607 | if (!SWIG_IsOK(ecode1)) { | |
16608 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16609 | } | |
16610 | arg1 = static_cast< int >(val1); | |
16611 | } | |
16612 | if (obj1) { | |
16613 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16614 | if (!SWIG_IsOK(ecode2)) { | |
16615 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16616 | } | |
16617 | arg2 = static_cast< int >(val2); | |
16618 | } | |
16619 | { | |
16620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16621 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16622 | wxPyEndAllowThreads(__tstate); | |
16623 | if (PyErr_Occurred()) SWIG_fail; | |
16624 | } | |
16625 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16626 | return resultobj; | |
16627 | fail: | |
16628 | return NULL; | |
16629 | } | |
16630 | ||
16631 | ||
16632 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16633 | PyObject *resultobj = 0; | |
16634 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16635 | void *argp1 = 0 ; | |
16636 | int res1 = 0 ; | |
16637 | PyObject *swig_obj[1] ; | |
16638 | ||
16639 | if (!args) SWIG_fail; | |
16640 | swig_obj[0] = args; | |
16641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16642 | if (!SWIG_IsOK(res1)) { | |
16643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16644 | } | |
16645 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16646 | { | |
16647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16648 | delete arg1; | |
16649 | ||
0085ce49 RD |
16650 | wxPyEndAllowThreads(__tstate); |
16651 | if (PyErr_Occurred()) SWIG_fail; | |
16652 | } | |
fc46b7f3 | 16653 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16654 | return resultobj; |
16655 | fail: | |
0085ce49 | 16656 | return NULL; |
d14a1e28 RD |
16657 | } |
16658 | ||
16659 | ||
fc46b7f3 | 16660 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16661 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16662 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16663 | PyObject *arg2 = (PyObject *) 0 ; | |
16664 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
16665 | void *argp1 = 0 ; |
16666 | int res1 = 0 ; | |
16667 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
16668 | PyObject * obj1 = 0 ; |
16669 | PyObject * obj2 = 0 ; | |
0085ce49 | 16670 | char * kwnames[] = { |
fc46b7f3 | 16671 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
16672 | }; |
16673 | ||
fc46b7f3 RD |
16674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16676 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 16678 | } |
fc46b7f3 RD |
16679 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16680 | arg2 = obj1; | |
16681 | arg3 = obj2; | |
0085ce49 RD |
16682 | { |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16684 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
16685 | wxPyEndAllowThreads(__tstate); |
16686 | if (PyErr_Occurred()) SWIG_fail; | |
16687 | } | |
16688 | resultobj = SWIG_Py_Void(); | |
16689 | return resultobj; | |
16690 | fail: | |
16691 | return NULL; | |
16692 | } | |
16693 | ||
16694 | ||
fc46b7f3 | 16695 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16696 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16697 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16698 | wxChar *arg2 = (wxChar *) 0 ; | |
16699 | wxChar *arg3 = (wxChar *) NULL ; | |
16700 | wxChar *result = 0 ; | |
0085ce49 RD |
16701 | void *argp1 = 0 ; |
16702 | int res1 = 0 ; | |
fc46b7f3 RD |
16703 | void *argp2 = 0 ; |
16704 | int res2 = 0 ; | |
16705 | void *argp3 = 0 ; | |
16706 | int res3 = 0 ; | |
0085ce49 RD |
16707 | PyObject * obj0 = 0 ; |
16708 | PyObject * obj1 = 0 ; | |
16709 | PyObject * obj2 = 0 ; | |
16710 | char * kwnames[] = { | |
16711 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16712 | }; | |
16713 | ||
fc46b7f3 RD |
16714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16716 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 16718 | } |
fc46b7f3 RD |
16719 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16720 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16721 | if (!SWIG_IsOK(res2)) { | |
16722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
0085ce49 | 16723 | } |
fc46b7f3 | 16724 | arg2 = reinterpret_cast< wxChar * >(argp2); |
0085ce49 | 16725 | if (obj2) { |
fc46b7f3 RD |
16726 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
16727 | if (!SWIG_IsOK(res3)) { | |
16728 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
b6294124 | 16729 | } |
fc46b7f3 | 16730 | arg3 = reinterpret_cast< wxChar * >(argp3); |
0085ce49 RD |
16731 | } |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16734 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
0085ce49 RD |
16735 | wxPyEndAllowThreads(__tstate); |
16736 | if (PyErr_Occurred()) SWIG_fail; | |
16737 | } | |
fc46b7f3 | 16738 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16739 | return resultobj; |
16740 | fail: | |
0085ce49 | 16741 | return NULL; |
b6294124 RD |
16742 | } |
16743 | ||
16744 | ||
fc46b7f3 | 16745 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16746 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16747 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16748 | wxChar *arg2 = (wxChar *) 0 ; | |
16749 | wxChar *arg3 = (wxChar *) 0 ; | |
16750 | size_t arg4 ; | |
16751 | wxChar *arg5 = (wxChar *) NULL ; | |
16752 | wxChar *result = 0 ; | |
0085ce49 RD |
16753 | void *argp1 = 0 ; |
16754 | int res1 = 0 ; | |
fc46b7f3 RD |
16755 | void *argp2 = 0 ; |
16756 | int res2 = 0 ; | |
16757 | void *argp3 = 0 ; | |
16758 | int res3 = 0 ; | |
16759 | size_t val4 ; | |
16760 | int ecode4 = 0 ; | |
16761 | void *argp5 = 0 ; | |
16762 | int res5 = 0 ; | |
16763 | PyObject * obj0 = 0 ; | |
16764 | PyObject * obj1 = 0 ; | |
16765 | PyObject * obj2 = 0 ; | |
16766 | PyObject * obj3 = 0 ; | |
16767 | PyObject * obj4 = 0 ; | |
16768 | char * kwnames[] = { | |
16769 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
16770 | }; | |
0085ce49 | 16771 | |
fc46b7f3 RD |
16772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
16773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16774 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
16775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
16776 | } | |
16777 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16778 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16779 | if (!SWIG_IsOK(res2)) { | |
16780 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
16781 | } | |
16782 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
16783 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16784 | if (!SWIG_IsOK(res3)) { | |
16785 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
16786 | } | |
16787 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
16788 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
16789 | if (!SWIG_IsOK(ecode4)) { | |
16790 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
16791 | } | |
16792 | arg4 = static_cast< size_t >(val4); | |
16793 | if (obj4) { | |
16794 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16795 | if (!SWIG_IsOK(res5)) { | |
16796 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
16797 | } | |
16798 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
0085ce49 | 16799 | } |
0085ce49 RD |
16800 | { |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16802 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
0085ce49 RD |
16803 | wxPyEndAllowThreads(__tstate); |
16804 | if (PyErr_Occurred()) SWIG_fail; | |
16805 | } | |
fc46b7f3 | 16806 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16807 | return resultobj; |
16808 | fail: | |
16809 | return NULL; | |
d14a1e28 RD |
16810 | } |
16811 | ||
16812 | ||
fc46b7f3 | 16813 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16814 | PyObject *obj; |
16815 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 16816 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 16817 | return SWIG_Py_Void(); |
d14a1e28 RD |
16818 | } |
16819 | ||
fc46b7f3 | 16820 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16821 | return SWIG_Python_InitShadowInstance(args); |
16822 | } | |
d14a1e28 | 16823 | |
0085ce49 RD |
16824 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16825 | PyObject *resultobj = 0; | |
16826 | wxLocale *result = 0 ; | |
16827 | ||
16828 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
16829 | { | |
16830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16831 | result = (wxLocale *)wxGetLocale(); | |
16832 | wxPyEndAllowThreads(__tstate); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | } | |
16835 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16836 | return resultobj; | |
16837 | fail: | |
16838 | return NULL; | |
d14a1e28 RD |
16839 | } |
16840 | ||
16841 | ||
0085ce49 RD |
16842 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
16843 | PyObject *resultobj = 0; | |
16844 | wxString *arg1 = 0 ; | |
16845 | wxString result; | |
16846 | bool temp1 = false ; | |
16847 | ||
16848 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
16849 | { | |
16850 | arg1 = wxString_in_helper(swig_obj[0]); | |
16851 | if (arg1 == NULL) SWIG_fail; | |
16852 | temp1 = true; | |
16853 | } | |
16854 | { | |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16856 | result = wxGetTranslation((wxString const &)*arg1); | |
16857 | wxPyEndAllowThreads(__tstate); | |
16858 | if (PyErr_Occurred()) SWIG_fail; | |
16859 | } | |
16860 | { | |
093d3ff1 | 16861 | #if wxUSE_UNICODE |
0085ce49 | 16862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16863 | #else |
0085ce49 | 16864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16865 | #endif |
0085ce49 RD |
16866 | } |
16867 | { | |
16868 | if (temp1) | |
16869 | delete arg1; | |
16870 | } | |
16871 | return resultobj; | |
16872 | fail: | |
16873 | { | |
16874 | if (temp1) | |
16875 | delete arg1; | |
16876 | } | |
16877 | return NULL; | |
b6294124 RD |
16878 | } |
16879 | ||
16880 | ||
0085ce49 | 16881 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
16882 | PyObject *resultobj = 0; |
16883 | wxString *arg1 = 0 ; | |
16884 | wxString *arg2 = 0 ; | |
16885 | wxString result; | |
16886 | bool temp1 = false ; | |
16887 | bool temp2 = false ; | |
16888 | ||
16889 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
16890 | { | |
16891 | arg1 = wxString_in_helper(swig_obj[0]); | |
16892 | if (arg1 == NULL) SWIG_fail; | |
16893 | temp1 = true; | |
16894 | } | |
16895 | { | |
16896 | arg2 = wxString_in_helper(swig_obj[1]); | |
16897 | if (arg2 == NULL) SWIG_fail; | |
16898 | temp2 = true; | |
16899 | } | |
16900 | { | |
16901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16902 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | { | |
16907 | #if wxUSE_UNICODE | |
16908 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16909 | #else | |
16910 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16911 | #endif | |
16912 | } | |
16913 | { | |
16914 | if (temp1) | |
16915 | delete arg1; | |
16916 | } | |
16917 | { | |
16918 | if (temp2) | |
16919 | delete arg2; | |
16920 | } | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | { | |
16924 | if (temp1) | |
16925 | delete arg1; | |
16926 | } | |
16927 | { | |
16928 | if (temp2) | |
16929 | delete arg2; | |
16930 | } | |
16931 | return NULL; | |
16932 | } | |
16933 | ||
16934 | ||
16935 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
16936 | PyObject *resultobj = 0; |
16937 | wxString *arg1 = 0 ; | |
16938 | wxString *arg2 = 0 ; | |
16939 | size_t arg3 ; | |
16940 | wxString result; | |
16941 | bool temp1 = false ; | |
16942 | bool temp2 = false ; | |
16943 | size_t val3 ; | |
16944 | int ecode3 = 0 ; | |
16945 | ||
16946 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
16947 | { | |
16948 | arg1 = wxString_in_helper(swig_obj[0]); | |
16949 | if (arg1 == NULL) SWIG_fail; | |
16950 | temp1 = true; | |
16951 | } | |
16952 | { | |
16953 | arg2 = wxString_in_helper(swig_obj[1]); | |
16954 | if (arg2 == NULL) SWIG_fail; | |
16955 | temp2 = true; | |
16956 | } | |
16957 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
16958 | if (!SWIG_IsOK(ecode3)) { | |
16959 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
16960 | } | |
16961 | arg3 = static_cast< size_t >(val3); | |
16962 | { | |
16963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16964 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
16965 | wxPyEndAllowThreads(__tstate); | |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
16967 | } | |
16968 | { | |
16969 | #if wxUSE_UNICODE | |
16970 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16971 | #else | |
16972 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16973 | #endif | |
16974 | } | |
16975 | { | |
16976 | if (temp1) | |
16977 | delete arg1; | |
16978 | } | |
16979 | { | |
16980 | if (temp2) | |
16981 | delete arg2; | |
16982 | } | |
16983 | return resultobj; | |
16984 | fail: | |
16985 | { | |
16986 | if (temp1) | |
16987 | delete arg1; | |
16988 | } | |
16989 | { | |
16990 | if (temp2) | |
16991 | delete arg2; | |
16992 | } | |
16993 | return NULL; | |
d14a1e28 RD |
16994 | } |
16995 | ||
16996 | ||
fc46b7f3 RD |
16997 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
16998 | PyObject *resultobj = 0; | |
16999 | wxString *arg1 = 0 ; | |
17000 | wxString *arg2 = 0 ; | |
17001 | size_t arg3 ; | |
17002 | wxString *arg4 = 0 ; | |
17003 | wxString result; | |
17004 | bool temp1 = false ; | |
17005 | bool temp2 = false ; | |
17006 | size_t val3 ; | |
17007 | int ecode3 = 0 ; | |
17008 | bool temp4 = false ; | |
17009 | ||
17010 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17011 | { | |
17012 | arg1 = wxString_in_helper(swig_obj[0]); | |
17013 | if (arg1 == NULL) SWIG_fail; | |
17014 | temp1 = true; | |
17015 | } | |
17016 | { | |
17017 | arg2 = wxString_in_helper(swig_obj[1]); | |
17018 | if (arg2 == NULL) SWIG_fail; | |
17019 | temp2 = true; | |
17020 | } | |
17021 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17022 | if (!SWIG_IsOK(ecode3)) { | |
17023 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17024 | } | |
17025 | arg3 = static_cast< size_t >(val3); | |
17026 | { | |
17027 | arg4 = wxString_in_helper(swig_obj[3]); | |
17028 | if (arg4 == NULL) SWIG_fail; | |
17029 | temp4 = true; | |
17030 | } | |
17031 | { | |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17034 | wxPyEndAllowThreads(__tstate); | |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
17036 | } | |
17037 | { | |
17038 | #if wxUSE_UNICODE | |
17039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17040 | #else | |
17041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17042 | #endif | |
17043 | } | |
17044 | { | |
17045 | if (temp1) | |
17046 | delete arg1; | |
17047 | } | |
17048 | { | |
17049 | if (temp2) | |
17050 | delete arg2; | |
17051 | } | |
17052 | { | |
17053 | if (temp4) | |
17054 | delete arg4; | |
17055 | } | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | { | |
17059 | if (temp1) | |
17060 | delete arg1; | |
17061 | } | |
17062 | { | |
17063 | if (temp2) | |
17064 | delete arg2; | |
17065 | } | |
17066 | { | |
17067 | if (temp4) | |
17068 | delete arg4; | |
17069 | } | |
17070 | return NULL; | |
17071 | } | |
17072 | ||
17073 | ||
0085ce49 RD |
17074 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17075 | int argc; | |
fc46b7f3 | 17076 | PyObject *argv[5]; |
0085ce49 | 17077 | |
fc46b7f3 | 17078 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
17079 | --argc; |
17080 | if (argc == 1) { | |
17081 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17082 | } | |
fc46b7f3 | 17083 | if (argc == 2) { |
0085ce49 RD |
17084 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17085 | } | |
fc46b7f3 RD |
17086 | if (argc == 3) { |
17087 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17088 | } | |
17089 | if (argc == 4) { | |
17090 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17091 | } | |
0085ce49 RD |
17092 | |
17093 | fail: | |
17094 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17095 | return NULL; | |
d14a1e28 RD |
17096 | } |
17097 | ||
17098 | ||
0085ce49 RD |
17099 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17100 | PyObject *resultobj = 0; | |
17101 | wxEncodingConverter *result = 0 ; | |
17102 | ||
17103 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17104 | { | |
17105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17106 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17107 | wxPyEndAllowThreads(__tstate); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | } | |
17110 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17111 | return resultobj; | |
17112 | fail: | |
17113 | return NULL; | |
d14a1e28 RD |
17114 | } |
17115 | ||
17116 | ||
0085ce49 RD |
17117 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17118 | PyObject *resultobj = 0; | |
17119 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17120 | void *argp1 = 0 ; | |
17121 | int res1 = 0 ; | |
17122 | PyObject *swig_obj[1] ; | |
17123 | ||
17124 | if (!args) SWIG_fail; | |
17125 | swig_obj[0] = args; | |
17126 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17127 | if (!SWIG_IsOK(res1)) { | |
17128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17129 | } | |
17130 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17131 | { | |
17132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17133 | delete arg1; | |
d14a1e28 | 17134 | |
0085ce49 RD |
17135 | wxPyEndAllowThreads(__tstate); |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | } | |
17138 | resultobj = SWIG_Py_Void(); | |
17139 | return resultobj; | |
17140 | fail: | |
17141 | return NULL; | |
17142 | } | |
17143 | ||
17144 | ||
17145 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17146 | PyObject *resultobj = 0; | |
17147 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17148 | wxFontEncoding arg2 ; | |
17149 | wxFontEncoding arg3 ; | |
17150 | int arg4 = (int) wxCONVERT_STRICT ; | |
17151 | bool result; | |
17152 | void *argp1 = 0 ; | |
17153 | int res1 = 0 ; | |
17154 | int val2 ; | |
17155 | int ecode2 = 0 ; | |
17156 | int val3 ; | |
17157 | int ecode3 = 0 ; | |
17158 | int val4 ; | |
17159 | int ecode4 = 0 ; | |
17160 | PyObject * obj0 = 0 ; | |
17161 | PyObject * obj1 = 0 ; | |
17162 | PyObject * obj2 = 0 ; | |
17163 | PyObject * obj3 = 0 ; | |
17164 | char * kwnames[] = { | |
17165 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17166 | }; | |
17167 | ||
17168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17170 | if (!SWIG_IsOK(res1)) { | |
17171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17172 | } | |
17173 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17174 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17175 | if (!SWIG_IsOK(ecode2)) { | |
17176 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17177 | } | |
17178 | arg2 = static_cast< wxFontEncoding >(val2); | |
17179 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17180 | if (!SWIG_IsOK(ecode3)) { | |
17181 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17182 | } | |
17183 | arg3 = static_cast< wxFontEncoding >(val3); | |
17184 | if (obj3) { | |
17185 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17186 | if (!SWIG_IsOK(ecode4)) { | |
17187 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17188 | } | |
17189 | arg4 = static_cast< int >(val4); | |
17190 | } | |
17191 | { | |
17192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17193 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17194 | wxPyEndAllowThreads(__tstate); | |
17195 | if (PyErr_Occurred()) SWIG_fail; | |
17196 | } | |
17197 | { | |
17198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17199 | } | |
17200 | return resultobj; | |
17201 | fail: | |
17202 | return NULL; | |
17203 | } | |
17204 | ||
17205 | ||
17206 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17207 | PyObject *resultobj = 0; | |
17208 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17209 | wxString *arg2 = 0 ; | |
17210 | wxString result; | |
17211 | void *argp1 = 0 ; | |
17212 | int res1 = 0 ; | |
17213 | bool temp2 = false ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | PyObject * obj1 = 0 ; | |
17216 | char * kwnames[] = { | |
17217 | (char *) "self",(char *) "input", NULL | |
17218 | }; | |
17219 | ||
17220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17222 | if (!SWIG_IsOK(res1)) { | |
17223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17224 | } | |
17225 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17226 | { | |
17227 | arg2 = wxString_in_helper(obj1); | |
17228 | if (arg2 == NULL) SWIG_fail; | |
17229 | temp2 = true; | |
17230 | } | |
17231 | { | |
17232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17233 | result = (arg1)->Convert((wxString const &)*arg2); | |
17234 | wxPyEndAllowThreads(__tstate); | |
17235 | if (PyErr_Occurred()) SWIG_fail; | |
17236 | } | |
17237 | { | |
17238 | #if wxUSE_UNICODE | |
17239 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17240 | #else | |
17241 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17242 | #endif | |
17243 | } | |
17244 | { | |
17245 | if (temp2) | |
17246 | delete arg2; | |
17247 | } | |
17248 | return resultobj; | |
17249 | fail: | |
17250 | { | |
17251 | if (temp2) | |
17252 | delete arg2; | |
17253 | } | |
17254 | return NULL; | |
17255 | } | |
17256 | ||
17257 | ||
17258 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17259 | PyObject *resultobj = 0; | |
17260 | wxFontEncoding arg1 ; | |
17261 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17262 | wxFontEncodingArray result; | |
17263 | int val1 ; | |
17264 | int ecode1 = 0 ; | |
17265 | int val2 ; | |
17266 | int ecode2 = 0 ; | |
17267 | PyObject * obj0 = 0 ; | |
17268 | PyObject * obj1 = 0 ; | |
17269 | char * kwnames[] = { | |
17270 | (char *) "enc",(char *) "platform", NULL | |
17271 | }; | |
17272 | ||
17273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17274 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17275 | if (!SWIG_IsOK(ecode1)) { | |
17276 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17277 | } | |
17278 | arg1 = static_cast< wxFontEncoding >(val1); | |
17279 | if (obj1) { | |
17280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17281 | if (!SWIG_IsOK(ecode2)) { | |
17282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17283 | } | |
17284 | arg2 = static_cast< int >(val2); | |
17285 | } | |
17286 | { | |
17287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17288 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | { | |
17293 | resultobj = PyList_New(0); | |
17294 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17295 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17296 | PyList_Append(resultobj, number); | |
17297 | Py_DECREF(number); | |
093d3ff1 | 17298 | } |
0085ce49 RD |
17299 | } |
17300 | return resultobj; | |
17301 | fail: | |
17302 | return NULL; | |
d14a1e28 RD |
17303 | } |
17304 | ||
17305 | ||
0085ce49 RD |
17306 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17307 | PyObject *resultobj = 0; | |
17308 | wxFontEncoding arg1 ; | |
17309 | wxFontEncodingArray result; | |
17310 | int val1 ; | |
17311 | int ecode1 = 0 ; | |
17312 | PyObject * obj0 = 0 ; | |
17313 | char * kwnames[] = { | |
17314 | (char *) "enc", NULL | |
17315 | }; | |
17316 | ||
17317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17318 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17319 | if (!SWIG_IsOK(ecode1)) { | |
17320 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17321 | } | |
17322 | arg1 = static_cast< wxFontEncoding >(val1); | |
17323 | { | |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17325 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17326 | wxPyEndAllowThreads(__tstate); | |
17327 | if (PyErr_Occurred()) SWIG_fail; | |
17328 | } | |
17329 | { | |
17330 | resultobj = PyList_New(0); | |
17331 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17332 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17333 | PyList_Append(resultobj, number); | |
17334 | Py_DECREF(number); | |
093d3ff1 | 17335 | } |
0085ce49 RD |
17336 | } |
17337 | return resultobj; | |
17338 | fail: | |
17339 | return NULL; | |
17340 | } | |
17341 | ||
17342 | ||
17343 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17344 | PyObject *resultobj = 0; | |
17345 | wxFontEncoding arg1 ; | |
17346 | wxFontEncoding arg2 ; | |
17347 | bool result; | |
17348 | int val1 ; | |
17349 | int ecode1 = 0 ; | |
17350 | int val2 ; | |
17351 | int ecode2 = 0 ; | |
17352 | PyObject * obj0 = 0 ; | |
17353 | PyObject * obj1 = 0 ; | |
17354 | char * kwnames[] = { | |
17355 | (char *) "encIn",(char *) "encOut", NULL | |
17356 | }; | |
17357 | ||
17358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17359 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17360 | if (!SWIG_IsOK(ecode1)) { | |
17361 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17362 | } | |
17363 | arg1 = static_cast< wxFontEncoding >(val1); | |
17364 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17365 | if (!SWIG_IsOK(ecode2)) { | |
17366 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17367 | } | |
17368 | arg2 = static_cast< wxFontEncoding >(val2); | |
17369 | { | |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17372 | wxPyEndAllowThreads(__tstate); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | } | |
17375 | { | |
17376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17377 | } | |
17378 | return resultobj; | |
17379 | fail: | |
17380 | return NULL; | |
d14a1e28 RD |
17381 | } |
17382 | ||
17383 | ||
0085ce49 RD |
17384 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17385 | PyObject *obj; | |
17386 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17387 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17388 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17389 | } |
17390 | ||
0085ce49 RD |
17391 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17392 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17393 | } |
17394 | ||
0085ce49 RD |
17395 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17396 | PyObject *resultobj = 0; | |
17397 | wxDC *arg1 = (wxDC *) 0 ; | |
17398 | void *argp1 = 0 ; | |
17399 | int res1 = 0 ; | |
17400 | PyObject *swig_obj[1] ; | |
17401 | ||
17402 | if (!args) SWIG_fail; | |
17403 | swig_obj[0] = args; | |
17404 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17405 | if (!SWIG_IsOK(res1)) { | |
17406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17407 | } | |
17408 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17409 | { | |
17410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17411 | delete arg1; | |
d14a1e28 | 17412 | |
0085ce49 RD |
17413 | wxPyEndAllowThreads(__tstate); |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | } | |
17416 | resultobj = SWIG_Py_Void(); | |
17417 | return resultobj; | |
17418 | fail: | |
17419 | return NULL; | |
17420 | } | |
17421 | ||
17422 | ||
17423 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17424 | PyObject *resultobj = 0; | |
17425 | wxDC *arg1 = (wxDC *) 0 ; | |
17426 | int arg2 ; | |
17427 | int arg3 ; | |
17428 | wxColour *arg4 = 0 ; | |
17429 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17430 | bool result; | |
17431 | void *argp1 = 0 ; | |
17432 | int res1 = 0 ; | |
17433 | int val2 ; | |
17434 | int ecode2 = 0 ; | |
17435 | int val3 ; | |
17436 | int ecode3 = 0 ; | |
17437 | wxColour temp4 ; | |
17438 | int val5 ; | |
17439 | int ecode5 = 0 ; | |
17440 | PyObject * obj0 = 0 ; | |
17441 | PyObject * obj1 = 0 ; | |
17442 | PyObject * obj2 = 0 ; | |
17443 | PyObject * obj3 = 0 ; | |
17444 | PyObject * obj4 = 0 ; | |
17445 | char * kwnames[] = { | |
17446 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17447 | }; | |
17448 | ||
17449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17451 | if (!SWIG_IsOK(res1)) { | |
17452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17453 | } | |
17454 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17455 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17456 | if (!SWIG_IsOK(ecode2)) { | |
17457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17458 | } | |
17459 | arg2 = static_cast< int >(val2); | |
17460 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17461 | if (!SWIG_IsOK(ecode3)) { | |
17462 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17463 | } | |
17464 | arg3 = static_cast< int >(val3); | |
17465 | { | |
17466 | arg4 = &temp4; | |
17467 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17468 | } | |
17469 | if (obj4) { | |
17470 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17471 | if (!SWIG_IsOK(ecode5)) { | |
17472 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17473 | } | |
17474 | arg5 = static_cast< int >(val5); | |
17475 | } | |
17476 | { | |
17477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17478 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17479 | wxPyEndAllowThreads(__tstate); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
17482 | { | |
17483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17484 | } | |
17485 | return resultobj; | |
17486 | fail: | |
17487 | return NULL; | |
17488 | } | |
17489 | ||
17490 | ||
17491 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17492 | PyObject *resultobj = 0; | |
17493 | wxDC *arg1 = (wxDC *) 0 ; | |
17494 | wxPoint *arg2 = 0 ; | |
17495 | wxColour *arg3 = 0 ; | |
17496 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17497 | bool result; | |
17498 | void *argp1 = 0 ; | |
17499 | int res1 = 0 ; | |
17500 | wxPoint temp2 ; | |
17501 | wxColour temp3 ; | |
17502 | int val4 ; | |
17503 | int ecode4 = 0 ; | |
17504 | PyObject * obj0 = 0 ; | |
17505 | PyObject * obj1 = 0 ; | |
17506 | PyObject * obj2 = 0 ; | |
17507 | PyObject * obj3 = 0 ; | |
17508 | char * kwnames[] = { | |
17509 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17510 | }; | |
17511 | ||
17512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17514 | if (!SWIG_IsOK(res1)) { | |
17515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17516 | } | |
17517 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17518 | { | |
17519 | arg2 = &temp2; | |
17520 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17521 | } | |
17522 | { | |
17523 | arg3 = &temp3; | |
17524 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17525 | } | |
17526 | if (obj3) { | |
17527 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17528 | if (!SWIG_IsOK(ecode4)) { | |
17529 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17530 | } | |
17531 | arg4 = static_cast< int >(val4); | |
17532 | } | |
17533 | { | |
17534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17535 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17536 | wxPyEndAllowThreads(__tstate); | |
17537 | if (PyErr_Occurred()) SWIG_fail; | |
17538 | } | |
17539 | { | |
17540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17541 | } | |
17542 | return resultobj; | |
17543 | fail: | |
17544 | return NULL; | |
17545 | } | |
17546 | ||
17547 | ||
17548 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17549 | PyObject *resultobj = 0; | |
17550 | wxDC *arg1 = (wxDC *) 0 ; | |
17551 | wxRect *arg2 = 0 ; | |
17552 | wxColour *arg3 = 0 ; | |
17553 | wxColour *arg4 = 0 ; | |
17554 | wxPoint *arg5 = 0 ; | |
17555 | void *argp1 = 0 ; | |
17556 | int res1 = 0 ; | |
17557 | wxRect temp2 ; | |
17558 | wxColour temp3 ; | |
17559 | wxColour temp4 ; | |
17560 | wxPoint temp5 ; | |
17561 | PyObject * obj0 = 0 ; | |
17562 | PyObject * obj1 = 0 ; | |
17563 | PyObject * obj2 = 0 ; | |
17564 | PyObject * obj3 = 0 ; | |
17565 | PyObject * obj4 = 0 ; | |
17566 | char * kwnames[] = { | |
17567 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17568 | }; | |
17569 | ||
17570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17572 | if (!SWIG_IsOK(res1)) { | |
17573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17574 | } | |
17575 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17576 | { | |
17577 | arg2 = &temp2; | |
17578 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17579 | } | |
17580 | { | |
17581 | arg3 = &temp3; | |
17582 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17583 | } | |
17584 | { | |
17585 | arg4 = &temp4; | |
17586 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17587 | } | |
17588 | { | |
17589 | arg5 = &temp5; | |
17590 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17591 | } | |
17592 | { | |
17593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17594 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17595 | wxPyEndAllowThreads(__tstate); | |
17596 | if (PyErr_Occurred()) SWIG_fail; | |
17597 | } | |
17598 | resultobj = SWIG_Py_Void(); | |
17599 | return resultobj; | |
17600 | fail: | |
17601 | return NULL; | |
17602 | } | |
17603 | ||
17604 | ||
17605 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17606 | PyObject *resultobj = 0; | |
17607 | wxDC *arg1 = (wxDC *) 0 ; | |
17608 | wxRect *arg2 = 0 ; | |
17609 | wxColour *arg3 = 0 ; | |
17610 | wxColour *arg4 = 0 ; | |
17611 | wxDirection arg5 = (wxDirection) wxEAST ; | |
17612 | void *argp1 = 0 ; | |
17613 | int res1 = 0 ; | |
17614 | wxRect temp2 ; | |
17615 | wxColour temp3 ; | |
17616 | wxColour temp4 ; | |
17617 | int val5 ; | |
17618 | int ecode5 = 0 ; | |
17619 | PyObject * obj0 = 0 ; | |
17620 | PyObject * obj1 = 0 ; | |
17621 | PyObject * obj2 = 0 ; | |
17622 | PyObject * obj3 = 0 ; | |
17623 | PyObject * obj4 = 0 ; | |
17624 | char * kwnames[] = { | |
17625 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
17626 | }; | |
17627 | ||
17628 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17630 | if (!SWIG_IsOK(res1)) { | |
17631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17632 | } | |
17633 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17634 | { | |
17635 | arg2 = &temp2; | |
17636 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17637 | } | |
17638 | { | |
17639 | arg3 = &temp3; | |
17640 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17641 | } | |
17642 | { | |
17643 | arg4 = &temp4; | |
17644 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17645 | } | |
17646 | if (obj4) { | |
17647 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17648 | if (!SWIG_IsOK(ecode5)) { | |
17649 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
17650 | } | |
17651 | arg5 = static_cast< wxDirection >(val5); | |
17652 | } | |
17653 | { | |
17654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17655 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
17659 | resultobj = SWIG_Py_Void(); | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17667 | PyObject *resultobj = 0; | |
17668 | wxDC *arg1 = (wxDC *) 0 ; | |
17669 | int arg2 ; | |
17670 | int arg3 ; | |
17671 | wxColour result; | |
17672 | void *argp1 = 0 ; | |
17673 | int res1 = 0 ; | |
17674 | int val2 ; | |
17675 | int ecode2 = 0 ; | |
17676 | int val3 ; | |
17677 | int ecode3 = 0 ; | |
17678 | PyObject * obj0 = 0 ; | |
17679 | PyObject * obj1 = 0 ; | |
17680 | PyObject * obj2 = 0 ; | |
17681 | char * kwnames[] = { | |
17682 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17683 | }; | |
17684 | ||
17685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17687 | if (!SWIG_IsOK(res1)) { | |
17688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17689 | } | |
17690 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17691 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17692 | if (!SWIG_IsOK(ecode2)) { | |
17693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
17694 | } | |
17695 | arg2 = static_cast< int >(val2); | |
17696 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17697 | if (!SWIG_IsOK(ecode3)) { | |
17698 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
17699 | } | |
17700 | arg3 = static_cast< int >(val3); | |
17701 | { | |
17702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17703 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17708 | return resultobj; | |
17709 | fail: | |
17710 | return NULL; | |
17711 | } | |
17712 | ||
17713 | ||
17714 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17715 | PyObject *resultobj = 0; | |
17716 | wxDC *arg1 = (wxDC *) 0 ; | |
17717 | wxPoint *arg2 = 0 ; | |
17718 | wxColour result; | |
17719 | void *argp1 = 0 ; | |
17720 | int res1 = 0 ; | |
17721 | wxPoint temp2 ; | |
17722 | PyObject * obj0 = 0 ; | |
17723 | PyObject * obj1 = 0 ; | |
17724 | char * kwnames[] = { | |
17725 | (char *) "self",(char *) "pt", NULL | |
17726 | }; | |
17727 | ||
17728 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17730 | if (!SWIG_IsOK(res1)) { | |
17731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17732 | } | |
17733 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17734 | { | |
17735 | arg2 = &temp2; | |
17736 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17737 | } | |
17738 | { | |
17739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17740 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
17741 | wxPyEndAllowThreads(__tstate); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
17744 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17745 | return resultobj; | |
17746 | fail: | |
17747 | return NULL; | |
17748 | } | |
17749 | ||
17750 | ||
17751 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17752 | PyObject *resultobj = 0; | |
17753 | wxDC *arg1 = (wxDC *) 0 ; | |
17754 | int arg2 ; | |
17755 | int arg3 ; | |
17756 | int arg4 ; | |
17757 | int arg5 ; | |
17758 | void *argp1 = 0 ; | |
17759 | int res1 = 0 ; | |
17760 | int val2 ; | |
17761 | int ecode2 = 0 ; | |
17762 | int val3 ; | |
17763 | int ecode3 = 0 ; | |
17764 | int val4 ; | |
17765 | int ecode4 = 0 ; | |
17766 | int val5 ; | |
17767 | int ecode5 = 0 ; | |
17768 | PyObject * obj0 = 0 ; | |
17769 | PyObject * obj1 = 0 ; | |
17770 | PyObject * obj2 = 0 ; | |
17771 | PyObject * obj3 = 0 ; | |
17772 | PyObject * obj4 = 0 ; | |
17773 | char * kwnames[] = { | |
17774 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
17775 | }; | |
17776 | ||
17777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17779 | if (!SWIG_IsOK(res1)) { | |
17780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17781 | } | |
17782 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17783 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17784 | if (!SWIG_IsOK(ecode2)) { | |
17785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
17786 | } | |
17787 | arg2 = static_cast< int >(val2); | |
17788 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17789 | if (!SWIG_IsOK(ecode3)) { | |
17790 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
17791 | } | |
17792 | arg3 = static_cast< int >(val3); | |
17793 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17794 | if (!SWIG_IsOK(ecode4)) { | |
17795 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
17796 | } | |
17797 | arg4 = static_cast< int >(val4); | |
17798 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17799 | if (!SWIG_IsOK(ecode5)) { | |
17800 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
17801 | } | |
17802 | arg5 = static_cast< int >(val5); | |
17803 | { | |
17804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17805 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
17806 | wxPyEndAllowThreads(__tstate); | |
17807 | if (PyErr_Occurred()) SWIG_fail; | |
17808 | } | |
17809 | resultobj = SWIG_Py_Void(); | |
17810 | return resultobj; | |
17811 | fail: | |
17812 | return NULL; | |
17813 | } | |
17814 | ||
17815 | ||
17816 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17817 | PyObject *resultobj = 0; | |
17818 | wxDC *arg1 = (wxDC *) 0 ; | |
17819 | wxPoint *arg2 = 0 ; | |
17820 | wxPoint *arg3 = 0 ; | |
17821 | void *argp1 = 0 ; | |
17822 | int res1 = 0 ; | |
17823 | wxPoint temp2 ; | |
17824 | wxPoint temp3 ; | |
17825 | PyObject * obj0 = 0 ; | |
17826 | PyObject * obj1 = 0 ; | |
17827 | PyObject * obj2 = 0 ; | |
17828 | char * kwnames[] = { | |
17829 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
17830 | }; | |
17831 | ||
17832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17834 | if (!SWIG_IsOK(res1)) { | |
17835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17836 | } | |
17837 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17838 | { | |
17839 | arg2 = &temp2; | |
17840 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17841 | } | |
17842 | { | |
17843 | arg3 = &temp3; | |
17844 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17845 | } | |
17846 | { | |
17847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17848 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
17849 | wxPyEndAllowThreads(__tstate); | |
17850 | if (PyErr_Occurred()) SWIG_fail; | |
17851 | } | |
17852 | resultobj = SWIG_Py_Void(); | |
17853 | return resultobj; | |
17854 | fail: | |
17855 | return NULL; | |
17856 | } | |
17857 | ||
17858 | ||
17859 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17860 | PyObject *resultobj = 0; | |
17861 | wxDC *arg1 = (wxDC *) 0 ; | |
17862 | int arg2 ; | |
17863 | int arg3 ; | |
17864 | void *argp1 = 0 ; | |
17865 | int res1 = 0 ; | |
17866 | int val2 ; | |
17867 | int ecode2 = 0 ; | |
17868 | int val3 ; | |
17869 | int ecode3 = 0 ; | |
17870 | PyObject * obj0 = 0 ; | |
17871 | PyObject * obj1 = 0 ; | |
17872 | PyObject * obj2 = 0 ; | |
17873 | char * kwnames[] = { | |
17874 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17875 | }; | |
17876 | ||
17877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17879 | if (!SWIG_IsOK(res1)) { | |
17880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17881 | } | |
17882 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17884 | if (!SWIG_IsOK(ecode2)) { | |
17885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
17886 | } | |
17887 | arg2 = static_cast< int >(val2); | |
17888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17889 | if (!SWIG_IsOK(ecode3)) { | |
17890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
17891 | } | |
17892 | arg3 = static_cast< int >(val3); | |
17893 | { | |
17894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17895 | (arg1)->CrossHair(arg2,arg3); | |
17896 | wxPyEndAllowThreads(__tstate); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | } | |
17899 | resultobj = SWIG_Py_Void(); | |
17900 | return resultobj; | |
17901 | fail: | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
17906 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17907 | PyObject *resultobj = 0; | |
17908 | wxDC *arg1 = (wxDC *) 0 ; | |
17909 | wxPoint *arg2 = 0 ; | |
17910 | void *argp1 = 0 ; | |
17911 | int res1 = 0 ; | |
17912 | wxPoint temp2 ; | |
17913 | PyObject * obj0 = 0 ; | |
17914 | PyObject * obj1 = 0 ; | |
17915 | char * kwnames[] = { | |
17916 | (char *) "self",(char *) "pt", NULL | |
17917 | }; | |
17918 | ||
17919 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17921 | if (!SWIG_IsOK(res1)) { | |
17922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17923 | } | |
17924 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17925 | { | |
17926 | arg2 = &temp2; | |
17927 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17928 | } | |
17929 | { | |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
17935 | resultobj = SWIG_Py_Void(); | |
17936 | return resultobj; | |
17937 | fail: | |
17938 | return NULL; | |
17939 | } | |
17940 | ||
17941 | ||
17942 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17943 | PyObject *resultobj = 0; | |
17944 | wxDC *arg1 = (wxDC *) 0 ; | |
17945 | int arg2 ; | |
17946 | int arg3 ; | |
17947 | int arg4 ; | |
17948 | int arg5 ; | |
17949 | int arg6 ; | |
17950 | int arg7 ; | |
17951 | void *argp1 = 0 ; | |
17952 | int res1 = 0 ; | |
17953 | int val2 ; | |
17954 | int ecode2 = 0 ; | |
17955 | int val3 ; | |
17956 | int ecode3 = 0 ; | |
17957 | int val4 ; | |
17958 | int ecode4 = 0 ; | |
17959 | int val5 ; | |
17960 | int ecode5 = 0 ; | |
17961 | int val6 ; | |
17962 | int ecode6 = 0 ; | |
17963 | int val7 ; | |
17964 | int ecode7 = 0 ; | |
17965 | PyObject * obj0 = 0 ; | |
17966 | PyObject * obj1 = 0 ; | |
17967 | PyObject * obj2 = 0 ; | |
17968 | PyObject * obj3 = 0 ; | |
17969 | PyObject * obj4 = 0 ; | |
17970 | PyObject * obj5 = 0 ; | |
17971 | PyObject * obj6 = 0 ; | |
17972 | char * kwnames[] = { | |
17973 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
17974 | }; | |
17975 | ||
17976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17978 | if (!SWIG_IsOK(res1)) { | |
17979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17980 | } | |
17981 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17983 | if (!SWIG_IsOK(ecode2)) { | |
17984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
17985 | } | |
17986 | arg2 = static_cast< int >(val2); | |
17987 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17988 | if (!SWIG_IsOK(ecode3)) { | |
17989 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
17990 | } | |
17991 | arg3 = static_cast< int >(val3); | |
17992 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17993 | if (!SWIG_IsOK(ecode4)) { | |
17994 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
17995 | } | |
17996 | arg4 = static_cast< int >(val4); | |
17997 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17998 | if (!SWIG_IsOK(ecode5)) { | |
17999 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18000 | } | |
18001 | arg5 = static_cast< int >(val5); | |
18002 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18003 | if (!SWIG_IsOK(ecode6)) { | |
18004 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18005 | } | |
18006 | arg6 = static_cast< int >(val6); | |
18007 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18008 | if (!SWIG_IsOK(ecode7)) { | |
18009 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18010 | } | |
18011 | arg7 = static_cast< int >(val7); | |
18012 | { | |
18013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18014 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18015 | wxPyEndAllowThreads(__tstate); | |
18016 | if (PyErr_Occurred()) SWIG_fail; | |
18017 | } | |
18018 | resultobj = SWIG_Py_Void(); | |
18019 | return resultobj; | |
18020 | fail: | |
18021 | return NULL; | |
18022 | } | |
18023 | ||
18024 | ||
18025 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18026 | PyObject *resultobj = 0; | |
18027 | wxDC *arg1 = (wxDC *) 0 ; | |
18028 | wxPoint *arg2 = 0 ; | |
18029 | wxPoint *arg3 = 0 ; | |
18030 | wxPoint *arg4 = 0 ; | |
18031 | void *argp1 = 0 ; | |
18032 | int res1 = 0 ; | |
18033 | wxPoint temp2 ; | |
18034 | wxPoint temp3 ; | |
18035 | wxPoint temp4 ; | |
18036 | PyObject * obj0 = 0 ; | |
18037 | PyObject * obj1 = 0 ; | |
18038 | PyObject * obj2 = 0 ; | |
18039 | PyObject * obj3 = 0 ; | |
18040 | char * kwnames[] = { | |
18041 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18042 | }; | |
18043 | ||
18044 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18046 | if (!SWIG_IsOK(res1)) { | |
18047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18048 | } | |
18049 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18050 | { | |
18051 | arg2 = &temp2; | |
18052 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18053 | } | |
18054 | { | |
18055 | arg3 = &temp3; | |
18056 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18057 | } | |
18058 | { | |
18059 | arg4 = &temp4; | |
18060 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18061 | } | |
18062 | { | |
18063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18064 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
18068 | resultobj = SWIG_Py_Void(); | |
18069 | return resultobj; | |
18070 | fail: | |
18071 | return NULL; | |
18072 | } | |
18073 | ||
18074 | ||
18075 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18076 | PyObject *resultobj = 0; | |
18077 | wxDC *arg1 = (wxDC *) 0 ; | |
18078 | int arg2 ; | |
18079 | int arg3 ; | |
18080 | int arg4 ; | |
18081 | int arg5 ; | |
18082 | void *argp1 = 0 ; | |
18083 | int res1 = 0 ; | |
18084 | int val2 ; | |
18085 | int ecode2 = 0 ; | |
18086 | int val3 ; | |
18087 | int ecode3 = 0 ; | |
18088 | int val4 ; | |
18089 | int ecode4 = 0 ; | |
18090 | int val5 ; | |
18091 | int ecode5 = 0 ; | |
18092 | PyObject * obj0 = 0 ; | |
18093 | PyObject * obj1 = 0 ; | |
18094 | PyObject * obj2 = 0 ; | |
18095 | PyObject * obj3 = 0 ; | |
18096 | PyObject * obj4 = 0 ; | |
18097 | char * kwnames[] = { | |
18098 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18099 | }; | |
18100 | ||
18101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18103 | if (!SWIG_IsOK(res1)) { | |
18104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18105 | } | |
18106 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18107 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18108 | if (!SWIG_IsOK(ecode2)) { | |
18109 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18110 | } | |
18111 | arg2 = static_cast< int >(val2); | |
18112 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18113 | if (!SWIG_IsOK(ecode3)) { | |
18114 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18115 | } | |
18116 | arg3 = static_cast< int >(val3); | |
18117 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18118 | if (!SWIG_IsOK(ecode4)) { | |
18119 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18120 | } | |
18121 | arg4 = static_cast< int >(val4); | |
18122 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18123 | if (!SWIG_IsOK(ecode5)) { | |
18124 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18125 | } | |
18126 | arg5 = static_cast< int >(val5); | |
18127 | { | |
18128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18129 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18130 | wxPyEndAllowThreads(__tstate); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | } | |
18133 | resultobj = SWIG_Py_Void(); | |
18134 | return resultobj; | |
18135 | fail: | |
18136 | return NULL; | |
18137 | } | |
18138 | ||
18139 | ||
18140 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18141 | PyObject *resultobj = 0; | |
18142 | wxDC *arg1 = (wxDC *) 0 ; | |
18143 | wxRect *arg2 = 0 ; | |
18144 | void *argp1 = 0 ; | |
18145 | int res1 = 0 ; | |
18146 | wxRect temp2 ; | |
18147 | PyObject * obj0 = 0 ; | |
18148 | PyObject * obj1 = 0 ; | |
18149 | char * kwnames[] = { | |
18150 | (char *) "self",(char *) "rect", NULL | |
18151 | }; | |
18152 | ||
18153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18155 | if (!SWIG_IsOK(res1)) { | |
18156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18157 | } | |
18158 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18159 | { | |
18160 | arg2 = &temp2; | |
18161 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18162 | } | |
18163 | { | |
18164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18165 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18166 | wxPyEndAllowThreads(__tstate); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | resultobj = SWIG_Py_Void(); | |
18170 | return resultobj; | |
18171 | fail: | |
18172 | return NULL; | |
18173 | } | |
18174 | ||
18175 | ||
18176 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18177 | PyObject *resultobj = 0; | |
18178 | wxDC *arg1 = (wxDC *) 0 ; | |
18179 | int arg2 ; | |
18180 | int arg3 ; | |
18181 | int arg4 ; | |
18182 | int arg5 ; | |
18183 | double arg6 ; | |
18184 | double arg7 ; | |
18185 | void *argp1 = 0 ; | |
18186 | int res1 = 0 ; | |
18187 | int val2 ; | |
18188 | int ecode2 = 0 ; | |
18189 | int val3 ; | |
18190 | int ecode3 = 0 ; | |
18191 | int val4 ; | |
18192 | int ecode4 = 0 ; | |
18193 | int val5 ; | |
18194 | int ecode5 = 0 ; | |
18195 | double val6 ; | |
18196 | int ecode6 = 0 ; | |
18197 | double val7 ; | |
18198 | int ecode7 = 0 ; | |
18199 | PyObject * obj0 = 0 ; | |
18200 | PyObject * obj1 = 0 ; | |
18201 | PyObject * obj2 = 0 ; | |
18202 | PyObject * obj3 = 0 ; | |
18203 | PyObject * obj4 = 0 ; | |
18204 | PyObject * obj5 = 0 ; | |
18205 | PyObject * obj6 = 0 ; | |
18206 | char * kwnames[] = { | |
18207 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18208 | }; | |
18209 | ||
18210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18212 | if (!SWIG_IsOK(res1)) { | |
18213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18214 | } | |
18215 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18216 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18217 | if (!SWIG_IsOK(ecode2)) { | |
18218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18219 | } | |
18220 | arg2 = static_cast< int >(val2); | |
18221 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18222 | if (!SWIG_IsOK(ecode3)) { | |
18223 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18224 | } | |
18225 | arg3 = static_cast< int >(val3); | |
18226 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18227 | if (!SWIG_IsOK(ecode4)) { | |
18228 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18229 | } | |
18230 | arg4 = static_cast< int >(val4); | |
18231 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18232 | if (!SWIG_IsOK(ecode5)) { | |
18233 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18234 | } | |
18235 | arg5 = static_cast< int >(val5); | |
18236 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18237 | if (!SWIG_IsOK(ecode6)) { | |
18238 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18239 | } | |
18240 | arg6 = static_cast< double >(val6); | |
18241 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18242 | if (!SWIG_IsOK(ecode7)) { | |
18243 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18244 | } | |
18245 | arg7 = static_cast< double >(val7); | |
18246 | { | |
18247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18248 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18249 | wxPyEndAllowThreads(__tstate); | |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
18251 | } | |
18252 | resultobj = SWIG_Py_Void(); | |
18253 | return resultobj; | |
18254 | fail: | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
18259 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18260 | PyObject *resultobj = 0; | |
18261 | wxDC *arg1 = (wxDC *) 0 ; | |
18262 | wxPoint *arg2 = 0 ; | |
18263 | wxSize *arg3 = 0 ; | |
18264 | double arg4 ; | |
18265 | double arg5 ; | |
18266 | void *argp1 = 0 ; | |
18267 | int res1 = 0 ; | |
18268 | wxPoint temp2 ; | |
18269 | wxSize temp3 ; | |
18270 | double val4 ; | |
18271 | int ecode4 = 0 ; | |
18272 | double val5 ; | |
18273 | int ecode5 = 0 ; | |
18274 | PyObject * obj0 = 0 ; | |
18275 | PyObject * obj1 = 0 ; | |
18276 | PyObject * obj2 = 0 ; | |
18277 | PyObject * obj3 = 0 ; | |
18278 | PyObject * obj4 = 0 ; | |
18279 | char * kwnames[] = { | |
18280 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18281 | }; | |
18282 | ||
18283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18285 | if (!SWIG_IsOK(res1)) { | |
18286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18287 | } | |
18288 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18289 | { | |
18290 | arg2 = &temp2; | |
18291 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18292 | } | |
18293 | { | |
18294 | arg3 = &temp3; | |
18295 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18296 | } | |
18297 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18298 | if (!SWIG_IsOK(ecode4)) { | |
18299 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18300 | } | |
18301 | arg4 = static_cast< double >(val4); | |
18302 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18303 | if (!SWIG_IsOK(ecode5)) { | |
18304 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18305 | } | |
18306 | arg5 = static_cast< double >(val5); | |
18307 | { | |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18310 | wxPyEndAllowThreads(__tstate); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
18312 | } | |
18313 | resultobj = SWIG_Py_Void(); | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18321 | PyObject *resultobj = 0; | |
18322 | wxDC *arg1 = (wxDC *) 0 ; | |
18323 | int arg2 ; | |
18324 | int arg3 ; | |
18325 | void *argp1 = 0 ; | |
18326 | int res1 = 0 ; | |
18327 | int val2 ; | |
18328 | int ecode2 = 0 ; | |
18329 | int val3 ; | |
18330 | int ecode3 = 0 ; | |
18331 | PyObject * obj0 = 0 ; | |
18332 | PyObject * obj1 = 0 ; | |
18333 | PyObject * obj2 = 0 ; | |
18334 | char * kwnames[] = { | |
18335 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18336 | }; | |
18337 | ||
18338 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18339 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18340 | if (!SWIG_IsOK(res1)) { | |
18341 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18342 | } | |
18343 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18344 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18345 | if (!SWIG_IsOK(ecode2)) { | |
18346 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18347 | } | |
18348 | arg2 = static_cast< int >(val2); | |
18349 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18350 | if (!SWIG_IsOK(ecode3)) { | |
18351 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18352 | } | |
18353 | arg3 = static_cast< int >(val3); | |
18354 | { | |
18355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18356 | (arg1)->DrawPoint(arg2,arg3); | |
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | resultobj = SWIG_Py_Void(); | |
18361 | return resultobj; | |
18362 | fail: | |
18363 | return NULL; | |
18364 | } | |
18365 | ||
18366 | ||
18367 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18368 | PyObject *resultobj = 0; | |
18369 | wxDC *arg1 = (wxDC *) 0 ; | |
18370 | wxPoint *arg2 = 0 ; | |
18371 | void *argp1 = 0 ; | |
18372 | int res1 = 0 ; | |
18373 | wxPoint temp2 ; | |
18374 | PyObject * obj0 = 0 ; | |
18375 | PyObject * obj1 = 0 ; | |
18376 | char * kwnames[] = { | |
18377 | (char *) "self",(char *) "pt", NULL | |
18378 | }; | |
18379 | ||
18380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18382 | if (!SWIG_IsOK(res1)) { | |
18383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18384 | } | |
18385 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18386 | { | |
18387 | arg2 = &temp2; | |
18388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18389 | } | |
18390 | { | |
18391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18392 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18393 | wxPyEndAllowThreads(__tstate); | |
18394 | if (PyErr_Occurred()) SWIG_fail; | |
18395 | } | |
18396 | resultobj = SWIG_Py_Void(); | |
18397 | return resultobj; | |
18398 | fail: | |
18399 | return NULL; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18404 | PyObject *resultobj = 0; | |
18405 | wxDC *arg1 = (wxDC *) 0 ; | |
18406 | int arg2 ; | |
18407 | int arg3 ; | |
18408 | int arg4 ; | |
18409 | int arg5 ; | |
18410 | void *argp1 = 0 ; | |
18411 | int res1 = 0 ; | |
18412 | int val2 ; | |
18413 | int ecode2 = 0 ; | |
18414 | int val3 ; | |
18415 | int ecode3 = 0 ; | |
18416 | int val4 ; | |
18417 | int ecode4 = 0 ; | |
18418 | int val5 ; | |
18419 | int ecode5 = 0 ; | |
18420 | PyObject * obj0 = 0 ; | |
18421 | PyObject * obj1 = 0 ; | |
18422 | PyObject * obj2 = 0 ; | |
18423 | PyObject * obj3 = 0 ; | |
18424 | PyObject * obj4 = 0 ; | |
18425 | char * kwnames[] = { | |
18426 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18427 | }; | |
18428 | ||
18429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18430 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18431 | if (!SWIG_IsOK(res1)) { | |
18432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18433 | } | |
18434 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18435 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18436 | if (!SWIG_IsOK(ecode2)) { | |
18437 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18438 | } | |
18439 | arg2 = static_cast< int >(val2); | |
18440 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18441 | if (!SWIG_IsOK(ecode3)) { | |
18442 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18443 | } | |
18444 | arg3 = static_cast< int >(val3); | |
18445 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18446 | if (!SWIG_IsOK(ecode4)) { | |
18447 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18448 | } | |
18449 | arg4 = static_cast< int >(val4); | |
18450 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18451 | if (!SWIG_IsOK(ecode5)) { | |
18452 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18453 | } | |
18454 | arg5 = static_cast< int >(val5); | |
18455 | { | |
18456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18457 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18458 | wxPyEndAllowThreads(__tstate); | |
18459 | if (PyErr_Occurred()) SWIG_fail; | |
18460 | } | |
18461 | resultobj = SWIG_Py_Void(); | |
18462 | return resultobj; | |
18463 | fail: | |
18464 | return NULL; | |
18465 | } | |
18466 | ||
18467 | ||
18468 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18469 | PyObject *resultobj = 0; | |
18470 | wxDC *arg1 = (wxDC *) 0 ; | |
18471 | wxRect *arg2 = 0 ; | |
18472 | void *argp1 = 0 ; | |
18473 | int res1 = 0 ; | |
18474 | wxRect temp2 ; | |
18475 | PyObject * obj0 = 0 ; | |
18476 | PyObject * obj1 = 0 ; | |
18477 | char * kwnames[] = { | |
18478 | (char *) "self",(char *) "rect", NULL | |
18479 | }; | |
18480 | ||
18481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18483 | if (!SWIG_IsOK(res1)) { | |
18484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18485 | } | |
18486 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18487 | { | |
18488 | arg2 = &temp2; | |
18489 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18490 | } | |
18491 | { | |
18492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18493 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18494 | wxPyEndAllowThreads(__tstate); | |
18495 | if (PyErr_Occurred()) SWIG_fail; | |
18496 | } | |
18497 | resultobj = SWIG_Py_Void(); | |
18498 | return resultobj; | |
18499 | fail: | |
18500 | return NULL; | |
18501 | } | |
18502 | ||
18503 | ||
18504 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18505 | PyObject *resultobj = 0; | |
18506 | wxDC *arg1 = (wxDC *) 0 ; | |
18507 | wxPoint *arg2 = 0 ; | |
18508 | wxSize *arg3 = 0 ; | |
18509 | void *argp1 = 0 ; | |
18510 | int res1 = 0 ; | |
18511 | wxPoint temp2 ; | |
18512 | wxSize temp3 ; | |
18513 | PyObject * obj0 = 0 ; | |
18514 | PyObject * obj1 = 0 ; | |
18515 | PyObject * obj2 = 0 ; | |
18516 | char * kwnames[] = { | |
18517 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18518 | }; | |
18519 | ||
18520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18522 | if (!SWIG_IsOK(res1)) { | |
18523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18524 | } | |
18525 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18526 | { | |
18527 | arg2 = &temp2; | |
18528 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18529 | } | |
18530 | { | |
18531 | arg3 = &temp3; | |
18532 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18533 | } | |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | resultobj = SWIG_Py_Void(); | |
18541 | return resultobj; | |
18542 | fail: | |
18543 | return NULL; | |
18544 | } | |
18545 | ||
18546 | ||
18547 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18548 | PyObject *resultobj = 0; | |
18549 | wxDC *arg1 = (wxDC *) 0 ; | |
18550 | int arg2 ; | |
18551 | int arg3 ; | |
18552 | int arg4 ; | |
18553 | int arg5 ; | |
18554 | double arg6 ; | |
18555 | void *argp1 = 0 ; | |
18556 | int res1 = 0 ; | |
18557 | int val2 ; | |
18558 | int ecode2 = 0 ; | |
18559 | int val3 ; | |
18560 | int ecode3 = 0 ; | |
18561 | int val4 ; | |
18562 | int ecode4 = 0 ; | |
18563 | int val5 ; | |
18564 | int ecode5 = 0 ; | |
18565 | double val6 ; | |
18566 | int ecode6 = 0 ; | |
18567 | PyObject * obj0 = 0 ; | |
18568 | PyObject * obj1 = 0 ; | |
18569 | PyObject * obj2 = 0 ; | |
18570 | PyObject * obj3 = 0 ; | |
18571 | PyObject * obj4 = 0 ; | |
18572 | PyObject * obj5 = 0 ; | |
18573 | char * kwnames[] = { | |
18574 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18575 | }; | |
18576 | ||
18577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18579 | if (!SWIG_IsOK(res1)) { | |
18580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18581 | } | |
18582 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18583 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18584 | if (!SWIG_IsOK(ecode2)) { | |
18585 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18586 | } | |
18587 | arg2 = static_cast< int >(val2); | |
18588 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18589 | if (!SWIG_IsOK(ecode3)) { | |
18590 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18591 | } | |
18592 | arg3 = static_cast< int >(val3); | |
18593 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18594 | if (!SWIG_IsOK(ecode4)) { | |
18595 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18596 | } | |
18597 | arg4 = static_cast< int >(val4); | |
18598 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18599 | if (!SWIG_IsOK(ecode5)) { | |
18600 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18601 | } | |
18602 | arg5 = static_cast< int >(val5); | |
18603 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18604 | if (!SWIG_IsOK(ecode6)) { | |
18605 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
18606 | } | |
18607 | arg6 = static_cast< double >(val6); | |
18608 | { | |
18609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18610 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
18611 | wxPyEndAllowThreads(__tstate); | |
18612 | if (PyErr_Occurred()) SWIG_fail; | |
18613 | } | |
18614 | resultobj = SWIG_Py_Void(); | |
18615 | return resultobj; | |
18616 | fail: | |
18617 | return NULL; | |
18618 | } | |
18619 | ||
18620 | ||
18621 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18622 | PyObject *resultobj = 0; | |
18623 | wxDC *arg1 = (wxDC *) 0 ; | |
18624 | wxRect *arg2 = 0 ; | |
18625 | double arg3 ; | |
18626 | void *argp1 = 0 ; | |
18627 | int res1 = 0 ; | |
18628 | wxRect temp2 ; | |
18629 | double val3 ; | |
18630 | int ecode3 = 0 ; | |
18631 | PyObject * obj0 = 0 ; | |
18632 | PyObject * obj1 = 0 ; | |
18633 | PyObject * obj2 = 0 ; | |
18634 | char * kwnames[] = { | |
18635 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
18636 | }; | |
18637 | ||
18638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18640 | if (!SWIG_IsOK(res1)) { | |
18641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18642 | } | |
18643 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18644 | { | |
18645 | arg2 = &temp2; | |
18646 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18647 | } | |
18648 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
18649 | if (!SWIG_IsOK(ecode3)) { | |
18650 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
18651 | } | |
18652 | arg3 = static_cast< double >(val3); | |
18653 | { | |
18654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18655 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
18656 | wxPyEndAllowThreads(__tstate); | |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
18658 | } | |
18659 | resultobj = SWIG_Py_Void(); | |
18660 | return resultobj; | |
18661 | fail: | |
18662 | return NULL; | |
18663 | } | |
18664 | ||
18665 | ||
18666 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18667 | PyObject *resultobj = 0; | |
18668 | wxDC *arg1 = (wxDC *) 0 ; | |
18669 | wxPoint *arg2 = 0 ; | |
18670 | wxSize *arg3 = 0 ; | |
18671 | double arg4 ; | |
18672 | void *argp1 = 0 ; | |
18673 | int res1 = 0 ; | |
18674 | wxPoint temp2 ; | |
18675 | wxSize temp3 ; | |
18676 | double val4 ; | |
18677 | int ecode4 = 0 ; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | PyObject * obj1 = 0 ; | |
18680 | PyObject * obj2 = 0 ; | |
18681 | PyObject * obj3 = 0 ; | |
18682 | char * kwnames[] = { | |
18683 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
18684 | }; | |
18685 | ||
18686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18688 | if (!SWIG_IsOK(res1)) { | |
18689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18690 | } | |
18691 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18692 | { | |
18693 | arg2 = &temp2; | |
18694 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18695 | } | |
18696 | { | |
18697 | arg3 = &temp3; | |
18698 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18699 | } | |
18700 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18701 | if (!SWIG_IsOK(ecode4)) { | |
18702 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
18703 | } | |
18704 | arg4 = static_cast< double >(val4); | |
18705 | { | |
18706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18707 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
18708 | wxPyEndAllowThreads(__tstate); | |
18709 | if (PyErr_Occurred()) SWIG_fail; | |
18710 | } | |
18711 | resultobj = SWIG_Py_Void(); | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
18718 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18719 | PyObject *resultobj = 0; | |
18720 | wxDC *arg1 = (wxDC *) 0 ; | |
18721 | int arg2 ; | |
18722 | int arg3 ; | |
18723 | int arg4 ; | |
18724 | void *argp1 = 0 ; | |
18725 | int res1 = 0 ; | |
18726 | int val2 ; | |
18727 | int ecode2 = 0 ; | |
18728 | int val3 ; | |
18729 | int ecode3 = 0 ; | |
18730 | int val4 ; | |
18731 | int ecode4 = 0 ; | |
18732 | PyObject * obj0 = 0 ; | |
18733 | PyObject * obj1 = 0 ; | |
18734 | PyObject * obj2 = 0 ; | |
18735 | PyObject * obj3 = 0 ; | |
18736 | char * kwnames[] = { | |
18737 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
18738 | }; | |
18739 | ||
18740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18742 | if (!SWIG_IsOK(res1)) { | |
18743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18744 | } | |
18745 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18746 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18747 | if (!SWIG_IsOK(ecode2)) { | |
18748 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
18749 | } | |
18750 | arg2 = static_cast< int >(val2); | |
18751 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18752 | if (!SWIG_IsOK(ecode3)) { | |
18753 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
18754 | } | |
18755 | arg3 = static_cast< int >(val3); | |
18756 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18757 | if (!SWIG_IsOK(ecode4)) { | |
18758 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
18759 | } | |
18760 | arg4 = static_cast< int >(val4); | |
18761 | { | |
18762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18763 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
18764 | wxPyEndAllowThreads(__tstate); | |
18765 | if (PyErr_Occurred()) SWIG_fail; | |
18766 | } | |
18767 | resultobj = SWIG_Py_Void(); | |
18768 | return resultobj; | |
18769 | fail: | |
18770 | return NULL; | |
18771 | } | |
18772 | ||
18773 | ||
18774 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18775 | PyObject *resultobj = 0; | |
18776 | wxDC *arg1 = (wxDC *) 0 ; | |
18777 | wxPoint *arg2 = 0 ; | |
18778 | int arg3 ; | |
18779 | void *argp1 = 0 ; | |
18780 | int res1 = 0 ; | |
18781 | wxPoint temp2 ; | |
18782 | int val3 ; | |
18783 | int ecode3 = 0 ; | |
18784 | PyObject * obj0 = 0 ; | |
18785 | PyObject * obj1 = 0 ; | |
18786 | PyObject * obj2 = 0 ; | |
18787 | char * kwnames[] = { | |
18788 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
18789 | }; | |
18790 | ||
18791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18793 | if (!SWIG_IsOK(res1)) { | |
18794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18795 | } | |
18796 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18797 | { | |
18798 | arg2 = &temp2; | |
18799 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18800 | } | |
18801 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18802 | if (!SWIG_IsOK(ecode3)) { | |
18803 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
18804 | } | |
18805 | arg3 = static_cast< int >(val3); | |
18806 | { | |
18807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18808 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
18809 | wxPyEndAllowThreads(__tstate); | |
18810 | if (PyErr_Occurred()) SWIG_fail; | |
18811 | } | |
18812 | resultobj = SWIG_Py_Void(); | |
18813 | return resultobj; | |
18814 | fail: | |
18815 | return NULL; | |
18816 | } | |
18817 | ||
18818 | ||
18819 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18820 | PyObject *resultobj = 0; | |
18821 | wxDC *arg1 = (wxDC *) 0 ; | |
18822 | int arg2 ; | |
18823 | int arg3 ; | |
18824 | int arg4 ; | |
18825 | int arg5 ; | |
18826 | void *argp1 = 0 ; | |
18827 | int res1 = 0 ; | |
18828 | int val2 ; | |
18829 | int ecode2 = 0 ; | |
18830 | int val3 ; | |
18831 | int ecode3 = 0 ; | |
18832 | int val4 ; | |
18833 | int ecode4 = 0 ; | |
18834 | int val5 ; | |
18835 | int ecode5 = 0 ; | |
18836 | PyObject * obj0 = 0 ; | |
18837 | PyObject * obj1 = 0 ; | |
18838 | PyObject * obj2 = 0 ; | |
18839 | PyObject * obj3 = 0 ; | |
18840 | PyObject * obj4 = 0 ; | |
18841 | char * kwnames[] = { | |
18842 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18843 | }; | |
18844 | ||
18845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18847 | if (!SWIG_IsOK(res1)) { | |
18848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18849 | } | |
18850 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18851 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18852 | if (!SWIG_IsOK(ecode2)) { | |
18853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
18854 | } | |
18855 | arg2 = static_cast< int >(val2); | |
18856 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18857 | if (!SWIG_IsOK(ecode3)) { | |
18858 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
18859 | } | |
18860 | arg3 = static_cast< int >(val3); | |
18861 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18862 | if (!SWIG_IsOK(ecode4)) { | |
18863 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
18864 | } | |
18865 | arg4 = static_cast< int >(val4); | |
18866 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18867 | if (!SWIG_IsOK(ecode5)) { | |
18868 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
18869 | } | |
18870 | arg5 = static_cast< int >(val5); | |
18871 | { | |
18872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18873 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
18874 | wxPyEndAllowThreads(__tstate); | |
18875 | if (PyErr_Occurred()) SWIG_fail; | |
18876 | } | |
18877 | resultobj = SWIG_Py_Void(); | |
18878 | return resultobj; | |
18879 | fail: | |
18880 | return NULL; | |
18881 | } | |
18882 | ||
18883 | ||
18884 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18885 | PyObject *resultobj = 0; | |
18886 | wxDC *arg1 = (wxDC *) 0 ; | |
18887 | wxRect *arg2 = 0 ; | |
18888 | void *argp1 = 0 ; | |
18889 | int res1 = 0 ; | |
18890 | wxRect temp2 ; | |
18891 | PyObject * obj0 = 0 ; | |
18892 | PyObject * obj1 = 0 ; | |
18893 | char * kwnames[] = { | |
18894 | (char *) "self",(char *) "rect", NULL | |
18895 | }; | |
18896 | ||
18897 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18899 | if (!SWIG_IsOK(res1)) { | |
18900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18901 | } | |
18902 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18903 | { | |
18904 | arg2 = &temp2; | |
18905 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18906 | } | |
18907 | { | |
18908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18909 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
18910 | wxPyEndAllowThreads(__tstate); | |
18911 | if (PyErr_Occurred()) SWIG_fail; | |
18912 | } | |
18913 | resultobj = SWIG_Py_Void(); | |
18914 | return resultobj; | |
18915 | fail: | |
18916 | return NULL; | |
18917 | } | |
18918 | ||
18919 | ||
18920 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18921 | PyObject *resultobj = 0; | |
18922 | wxDC *arg1 = (wxDC *) 0 ; | |
18923 | wxPoint *arg2 = 0 ; | |
18924 | wxSize *arg3 = 0 ; | |
18925 | void *argp1 = 0 ; | |
18926 | int res1 = 0 ; | |
18927 | wxPoint temp2 ; | |
18928 | wxSize temp3 ; | |
18929 | PyObject * obj0 = 0 ; | |
18930 | PyObject * obj1 = 0 ; | |
18931 | PyObject * obj2 = 0 ; | |
18932 | char * kwnames[] = { | |
18933 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18934 | }; | |
18935 | ||
18936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18938 | if (!SWIG_IsOK(res1)) { | |
18939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18940 | } | |
18941 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18942 | { | |
18943 | arg2 = &temp2; | |
18944 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18945 | } | |
18946 | { | |
18947 | arg3 = &temp3; | |
18948 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18949 | } | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18952 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18953 | wxPyEndAllowThreads(__tstate); | |
18954 | if (PyErr_Occurred()) SWIG_fail; | |
18955 | } | |
18956 | resultobj = SWIG_Py_Void(); | |
18957 | return resultobj; | |
18958 | fail: | |
18959 | return NULL; | |
18960 | } | |
18961 | ||
18962 | ||
18963 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18964 | PyObject *resultobj = 0; | |
18965 | wxDC *arg1 = (wxDC *) 0 ; | |
18966 | wxIcon *arg2 = 0 ; | |
18967 | int arg3 ; | |
18968 | int arg4 ; | |
18969 | void *argp1 = 0 ; | |
18970 | int res1 = 0 ; | |
18971 | void *argp2 = 0 ; | |
18972 | int res2 = 0 ; | |
18973 | int val3 ; | |
18974 | int ecode3 = 0 ; | |
18975 | int val4 ; | |
18976 | int ecode4 = 0 ; | |
18977 | PyObject * obj0 = 0 ; | |
18978 | PyObject * obj1 = 0 ; | |
18979 | PyObject * obj2 = 0 ; | |
18980 | PyObject * obj3 = 0 ; | |
18981 | char * kwnames[] = { | |
18982 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
18983 | }; | |
18984 | ||
18985 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18987 | if (!SWIG_IsOK(res1)) { | |
18988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18989 | } | |
18990 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18991 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
18992 | if (!SWIG_IsOK(res2)) { | |
18993 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
18994 | } | |
18995 | if (!argp2) { | |
18996 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
18997 | } | |
18998 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
18999 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19000 | if (!SWIG_IsOK(ecode3)) { | |
19001 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19002 | } | |
19003 | arg3 = static_cast< int >(val3); | |
19004 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19005 | if (!SWIG_IsOK(ecode4)) { | |
19006 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19007 | } | |
19008 | arg4 = static_cast< int >(val4); | |
19009 | { | |
19010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19011 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19012 | wxPyEndAllowThreads(__tstate); | |
19013 | if (PyErr_Occurred()) SWIG_fail; | |
19014 | } | |
19015 | resultobj = SWIG_Py_Void(); | |
19016 | return resultobj; | |
19017 | fail: | |
19018 | return NULL; | |
19019 | } | |
19020 | ||
19021 | ||
19022 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19023 | PyObject *resultobj = 0; | |
19024 | wxDC *arg1 = (wxDC *) 0 ; | |
19025 | wxIcon *arg2 = 0 ; | |
19026 | wxPoint *arg3 = 0 ; | |
19027 | void *argp1 = 0 ; | |
19028 | int res1 = 0 ; | |
19029 | void *argp2 = 0 ; | |
19030 | int res2 = 0 ; | |
19031 | wxPoint temp3 ; | |
19032 | PyObject * obj0 = 0 ; | |
19033 | PyObject * obj1 = 0 ; | |
19034 | PyObject * obj2 = 0 ; | |
19035 | char * kwnames[] = { | |
19036 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19037 | }; | |
19038 | ||
19039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19041 | if (!SWIG_IsOK(res1)) { | |
19042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19043 | } | |
19044 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19045 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19046 | if (!SWIG_IsOK(res2)) { | |
19047 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19048 | } | |
19049 | if (!argp2) { | |
19050 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19051 | } | |
19052 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19053 | { | |
19054 | arg3 = &temp3; | |
19055 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19056 | } | |
19057 | { | |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19060 | wxPyEndAllowThreads(__tstate); | |
19061 | if (PyErr_Occurred()) SWIG_fail; | |
19062 | } | |
19063 | resultobj = SWIG_Py_Void(); | |
19064 | return resultobj; | |
19065 | fail: | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19071 | PyObject *resultobj = 0; | |
19072 | wxDC *arg1 = (wxDC *) 0 ; | |
19073 | wxBitmap *arg2 = 0 ; | |
19074 | int arg3 ; | |
19075 | int arg4 ; | |
19076 | bool arg5 = (bool) false ; | |
19077 | void *argp1 = 0 ; | |
19078 | int res1 = 0 ; | |
19079 | void *argp2 = 0 ; | |
19080 | int res2 = 0 ; | |
19081 | int val3 ; | |
19082 | int ecode3 = 0 ; | |
19083 | int val4 ; | |
19084 | int ecode4 = 0 ; | |
19085 | bool val5 ; | |
19086 | int ecode5 = 0 ; | |
19087 | PyObject * obj0 = 0 ; | |
19088 | PyObject * obj1 = 0 ; | |
19089 | PyObject * obj2 = 0 ; | |
19090 | PyObject * obj3 = 0 ; | |
19091 | PyObject * obj4 = 0 ; | |
19092 | char * kwnames[] = { | |
19093 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19094 | }; | |
19095 | ||
19096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19097 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19098 | if (!SWIG_IsOK(res1)) { | |
19099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19100 | } | |
19101 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19102 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19103 | if (!SWIG_IsOK(res2)) { | |
19104 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19105 | } | |
19106 | if (!argp2) { | |
19107 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19108 | } | |
19109 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19110 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19111 | if (!SWIG_IsOK(ecode3)) { | |
19112 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19113 | } | |
19114 | arg3 = static_cast< int >(val3); | |
19115 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19116 | if (!SWIG_IsOK(ecode4)) { | |
19117 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19118 | } | |
19119 | arg4 = static_cast< int >(val4); | |
19120 | if (obj4) { | |
19121 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19122 | if (!SWIG_IsOK(ecode5)) { | |
19123 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19124 | } | |
19125 | arg5 = static_cast< bool >(val5); | |
19126 | } | |
19127 | { | |
19128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19129 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19130 | wxPyEndAllowThreads(__tstate); | |
19131 | if (PyErr_Occurred()) SWIG_fail; | |
19132 | } | |
19133 | resultobj = SWIG_Py_Void(); | |
19134 | return resultobj; | |
19135 | fail: | |
19136 | return NULL; | |
19137 | } | |
19138 | ||
19139 | ||
19140 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19141 | PyObject *resultobj = 0; | |
19142 | wxDC *arg1 = (wxDC *) 0 ; | |
19143 | wxBitmap *arg2 = 0 ; | |
19144 | wxPoint *arg3 = 0 ; | |
19145 | bool arg4 = (bool) false ; | |
19146 | void *argp1 = 0 ; | |
19147 | int res1 = 0 ; | |
19148 | void *argp2 = 0 ; | |
19149 | int res2 = 0 ; | |
19150 | wxPoint temp3 ; | |
19151 | bool val4 ; | |
19152 | int ecode4 = 0 ; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | PyObject * obj1 = 0 ; | |
19155 | PyObject * obj2 = 0 ; | |
19156 | PyObject * obj3 = 0 ; | |
19157 | char * kwnames[] = { | |
19158 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19159 | }; | |
19160 | ||
19161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19163 | if (!SWIG_IsOK(res1)) { | |
19164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19165 | } | |
19166 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19167 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19168 | if (!SWIG_IsOK(res2)) { | |
19169 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19170 | } | |
19171 | if (!argp2) { | |
19172 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19173 | } | |
19174 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19175 | { | |
19176 | arg3 = &temp3; | |
19177 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19178 | } | |
19179 | if (obj3) { | |
19180 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19181 | if (!SWIG_IsOK(ecode4)) { | |
19182 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19183 | } | |
19184 | arg4 = static_cast< bool >(val4); | |
19185 | } | |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19189 | wxPyEndAllowThreads(__tstate); | |
19190 | if (PyErr_Occurred()) SWIG_fail; | |
19191 | } | |
19192 | resultobj = SWIG_Py_Void(); | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | return NULL; | |
19196 | } | |
19197 | ||
19198 | ||
19199 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19200 | PyObject *resultobj = 0; | |
19201 | wxDC *arg1 = (wxDC *) 0 ; | |
19202 | wxString *arg2 = 0 ; | |
19203 | int arg3 ; | |
19204 | int arg4 ; | |
19205 | void *argp1 = 0 ; | |
19206 | int res1 = 0 ; | |
19207 | bool temp2 = false ; | |
19208 | int val3 ; | |
19209 | int ecode3 = 0 ; | |
19210 | int val4 ; | |
19211 | int ecode4 = 0 ; | |
19212 | PyObject * obj0 = 0 ; | |
19213 | PyObject * obj1 = 0 ; | |
19214 | PyObject * obj2 = 0 ; | |
19215 | PyObject * obj3 = 0 ; | |
19216 | char * kwnames[] = { | |
19217 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19218 | }; | |
19219 | ||
19220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19222 | if (!SWIG_IsOK(res1)) { | |
19223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19224 | } | |
19225 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19226 | { | |
19227 | arg2 = wxString_in_helper(obj1); | |
19228 | if (arg2 == NULL) SWIG_fail; | |
19229 | temp2 = true; | |
19230 | } | |
19231 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19232 | if (!SWIG_IsOK(ecode3)) { | |
19233 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19234 | } | |
19235 | arg3 = static_cast< int >(val3); | |
19236 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19237 | if (!SWIG_IsOK(ecode4)) { | |
19238 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19239 | } | |
19240 | arg4 = static_cast< int >(val4); | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19244 | wxPyEndAllowThreads(__tstate); | |
19245 | if (PyErr_Occurred()) SWIG_fail; | |
19246 | } | |
19247 | resultobj = SWIG_Py_Void(); | |
19248 | { | |
19249 | if (temp2) | |
19250 | delete arg2; | |
19251 | } | |
19252 | return resultobj; | |
19253 | fail: | |
19254 | { | |
19255 | if (temp2) | |
19256 | delete arg2; | |
19257 | } | |
19258 | return NULL; | |
19259 | } | |
19260 | ||
19261 | ||
19262 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19263 | PyObject *resultobj = 0; | |
19264 | wxDC *arg1 = (wxDC *) 0 ; | |
19265 | wxString *arg2 = 0 ; | |
19266 | wxPoint *arg3 = 0 ; | |
19267 | void *argp1 = 0 ; | |
19268 | int res1 = 0 ; | |
19269 | bool temp2 = false ; | |
19270 | wxPoint temp3 ; | |
19271 | PyObject * obj0 = 0 ; | |
19272 | PyObject * obj1 = 0 ; | |
19273 | PyObject * obj2 = 0 ; | |
19274 | char * kwnames[] = { | |
19275 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19276 | }; | |
19277 | ||
19278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19280 | if (!SWIG_IsOK(res1)) { | |
19281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19282 | } | |
19283 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19284 | { | |
19285 | arg2 = wxString_in_helper(obj1); | |
19286 | if (arg2 == NULL) SWIG_fail; | |
19287 | temp2 = true; | |
19288 | } | |
19289 | { | |
19290 | arg3 = &temp3; | |
19291 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19292 | } | |
19293 | { | |
19294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19295 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | resultobj = SWIG_Py_Void(); | |
19300 | { | |
19301 | if (temp2) | |
19302 | delete arg2; | |
19303 | } | |
19304 | return resultobj; | |
19305 | fail: | |
19306 | { | |
19307 | if (temp2) | |
19308 | delete arg2; | |
19309 | } | |
19310 | return NULL; | |
19311 | } | |
19312 | ||
19313 | ||
19314 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19315 | PyObject *resultobj = 0; | |
19316 | wxDC *arg1 = (wxDC *) 0 ; | |
19317 | wxString *arg2 = 0 ; | |
19318 | int arg3 ; | |
19319 | int arg4 ; | |
19320 | double arg5 ; | |
19321 | void *argp1 = 0 ; | |
19322 | int res1 = 0 ; | |
19323 | bool temp2 = false ; | |
19324 | int val3 ; | |
19325 | int ecode3 = 0 ; | |
19326 | int val4 ; | |
19327 | int ecode4 = 0 ; | |
19328 | double val5 ; | |
19329 | int ecode5 = 0 ; | |
19330 | PyObject * obj0 = 0 ; | |
19331 | PyObject * obj1 = 0 ; | |
19332 | PyObject * obj2 = 0 ; | |
19333 | PyObject * obj3 = 0 ; | |
19334 | PyObject * obj4 = 0 ; | |
19335 | char * kwnames[] = { | |
19336 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19337 | }; | |
19338 | ||
19339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19341 | if (!SWIG_IsOK(res1)) { | |
19342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19343 | } | |
19344 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19345 | { | |
19346 | arg2 = wxString_in_helper(obj1); | |
19347 | if (arg2 == NULL) SWIG_fail; | |
19348 | temp2 = true; | |
19349 | } | |
19350 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19351 | if (!SWIG_IsOK(ecode3)) { | |
19352 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19353 | } | |
19354 | arg3 = static_cast< int >(val3); | |
19355 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19356 | if (!SWIG_IsOK(ecode4)) { | |
19357 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19358 | } | |
19359 | arg4 = static_cast< int >(val4); | |
19360 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19361 | if (!SWIG_IsOK(ecode5)) { | |
19362 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19363 | } | |
19364 | arg5 = static_cast< double >(val5); | |
19365 | { | |
19366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19367 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19368 | wxPyEndAllowThreads(__tstate); | |
19369 | if (PyErr_Occurred()) SWIG_fail; | |
19370 | } | |
19371 | resultobj = SWIG_Py_Void(); | |
19372 | { | |
19373 | if (temp2) | |
19374 | delete arg2; | |
19375 | } | |
19376 | return resultobj; | |
19377 | fail: | |
19378 | { | |
19379 | if (temp2) | |
19380 | delete arg2; | |
19381 | } | |
19382 | return NULL; | |
19383 | } | |
19384 | ||
19385 | ||
19386 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19387 | PyObject *resultobj = 0; | |
19388 | wxDC *arg1 = (wxDC *) 0 ; | |
19389 | wxString *arg2 = 0 ; | |
19390 | wxPoint *arg3 = 0 ; | |
19391 | double arg4 ; | |
19392 | void *argp1 = 0 ; | |
19393 | int res1 = 0 ; | |
19394 | bool temp2 = false ; | |
19395 | wxPoint temp3 ; | |
19396 | double val4 ; | |
19397 | int ecode4 = 0 ; | |
19398 | PyObject * obj0 = 0 ; | |
19399 | PyObject * obj1 = 0 ; | |
19400 | PyObject * obj2 = 0 ; | |
19401 | PyObject * obj3 = 0 ; | |
19402 | char * kwnames[] = { | |
19403 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19404 | }; | |
19405 | ||
19406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19408 | if (!SWIG_IsOK(res1)) { | |
19409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19410 | } | |
19411 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19412 | { | |
19413 | arg2 = wxString_in_helper(obj1); | |
19414 | if (arg2 == NULL) SWIG_fail; | |
19415 | temp2 = true; | |
19416 | } | |
19417 | { | |
19418 | arg3 = &temp3; | |
19419 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19420 | } | |
19421 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19422 | if (!SWIG_IsOK(ecode4)) { | |
19423 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19424 | } | |
19425 | arg4 = static_cast< double >(val4); | |
19426 | { | |
19427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19428 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19429 | wxPyEndAllowThreads(__tstate); | |
19430 | if (PyErr_Occurred()) SWIG_fail; | |
19431 | } | |
19432 | resultobj = SWIG_Py_Void(); | |
19433 | { | |
19434 | if (temp2) | |
19435 | delete arg2; | |
19436 | } | |
19437 | return resultobj; | |
19438 | fail: | |
19439 | { | |
19440 | if (temp2) | |
19441 | delete arg2; | |
19442 | } | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
19447 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19448 | PyObject *resultobj = 0; | |
19449 | wxDC *arg1 = (wxDC *) 0 ; | |
19450 | int arg2 ; | |
19451 | int arg3 ; | |
19452 | int arg4 ; | |
19453 | int arg5 ; | |
19454 | wxDC *arg6 = (wxDC *) 0 ; | |
19455 | int arg7 ; | |
19456 | int arg8 ; | |
19457 | int arg9 = (int) wxCOPY ; | |
19458 | bool arg10 = (bool) false ; | |
19459 | int arg11 = (int) -1 ; | |
19460 | int arg12 = (int) -1 ; | |
19461 | bool result; | |
19462 | void *argp1 = 0 ; | |
19463 | int res1 = 0 ; | |
19464 | int val2 ; | |
19465 | int ecode2 = 0 ; | |
19466 | int val3 ; | |
19467 | int ecode3 = 0 ; | |
19468 | int val4 ; | |
19469 | int ecode4 = 0 ; | |
19470 | int val5 ; | |
19471 | int ecode5 = 0 ; | |
19472 | void *argp6 = 0 ; | |
19473 | int res6 = 0 ; | |
19474 | int val7 ; | |
19475 | int ecode7 = 0 ; | |
19476 | int val8 ; | |
19477 | int ecode8 = 0 ; | |
19478 | int val9 ; | |
19479 | int ecode9 = 0 ; | |
19480 | bool val10 ; | |
19481 | int ecode10 = 0 ; | |
19482 | int val11 ; | |
19483 | int ecode11 = 0 ; | |
19484 | int val12 ; | |
19485 | int ecode12 = 0 ; | |
19486 | PyObject * obj0 = 0 ; | |
19487 | PyObject * obj1 = 0 ; | |
19488 | PyObject * obj2 = 0 ; | |
19489 | PyObject * obj3 = 0 ; | |
19490 | PyObject * obj4 = 0 ; | |
19491 | PyObject * obj5 = 0 ; | |
19492 | PyObject * obj6 = 0 ; | |
19493 | PyObject * obj7 = 0 ; | |
19494 | PyObject * obj8 = 0 ; | |
19495 | PyObject * obj9 = 0 ; | |
19496 | PyObject * obj10 = 0 ; | |
19497 | PyObject * obj11 = 0 ; | |
19498 | char * kwnames[] = { | |
19499 | (char *) "self",(char *) "xdest",(char *) "ydest",(char *) "width",(char *) "height",(char *) "source",(char *) "xsrc",(char *) "ysrc",(char *) "rop",(char *) "useMask",(char *) "xsrcMask",(char *) "ysrcMask", NULL | |
19500 | }; | |
19501 | ||
19502 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; | |
19503 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19504 | if (!SWIG_IsOK(res1)) { | |
19505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19506 | } | |
19507 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19508 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19509 | if (!SWIG_IsOK(ecode2)) { | |
19510 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19511 | } | |
19512 | arg2 = static_cast< int >(val2); | |
19513 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19514 | if (!SWIG_IsOK(ecode3)) { | |
19515 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19516 | } | |
19517 | arg3 = static_cast< int >(val3); | |
19518 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19519 | if (!SWIG_IsOK(ecode4)) { | |
19520 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19521 | } | |
19522 | arg4 = static_cast< int >(val4); | |
19523 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19524 | if (!SWIG_IsOK(ecode5)) { | |
19525 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19526 | } | |
19527 | arg5 = static_cast< int >(val5); | |
19528 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19529 | if (!SWIG_IsOK(res6)) { | |
19530 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19531 | } | |
19532 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19533 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19534 | if (!SWIG_IsOK(ecode7)) { | |
19535 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19536 | } | |
19537 | arg7 = static_cast< int >(val7); | |
19538 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19539 | if (!SWIG_IsOK(ecode8)) { | |
19540 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19541 | } | |
19542 | arg8 = static_cast< int >(val8); | |
19543 | if (obj8) { | |
19544 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19545 | if (!SWIG_IsOK(ecode9)) { | |
19546 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19547 | } | |
19548 | arg9 = static_cast< int >(val9); | |
19549 | } | |
19550 | if (obj9) { | |
19551 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19552 | if (!SWIG_IsOK(ecode10)) { | |
19553 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19554 | } | |
19555 | arg10 = static_cast< bool >(val10); | |
19556 | } | |
19557 | if (obj10) { | |
19558 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19559 | if (!SWIG_IsOK(ecode11)) { | |
19560 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19561 | } | |
19562 | arg11 = static_cast< int >(val11); | |
19563 | } | |
19564 | if (obj11) { | |
19565 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19566 | if (!SWIG_IsOK(ecode12)) { | |
19567 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19568 | } | |
19569 | arg12 = static_cast< int >(val12); | |
19570 | } | |
19571 | { | |
19572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19573 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19574 | wxPyEndAllowThreads(__tstate); | |
19575 | if (PyErr_Occurred()) SWIG_fail; | |
19576 | } | |
19577 | { | |
19578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19579 | } | |
19580 | return resultobj; | |
19581 | fail: | |
19582 | return NULL; | |
19583 | } | |
19584 | ||
19585 | ||
19586 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19587 | PyObject *resultobj = 0; | |
19588 | wxDC *arg1 = (wxDC *) 0 ; | |
19589 | wxPoint *arg2 = 0 ; | |
19590 | wxSize *arg3 = 0 ; | |
19591 | wxDC *arg4 = (wxDC *) 0 ; | |
19592 | wxPoint *arg5 = 0 ; | |
19593 | int arg6 = (int) wxCOPY ; | |
19594 | bool arg7 = (bool) false ; | |
19595 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19596 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19597 | bool result; | |
19598 | void *argp1 = 0 ; | |
19599 | int res1 = 0 ; | |
19600 | wxPoint temp2 ; | |
19601 | wxSize temp3 ; | |
19602 | void *argp4 = 0 ; | |
19603 | int res4 = 0 ; | |
19604 | wxPoint temp5 ; | |
19605 | int val6 ; | |
19606 | int ecode6 = 0 ; | |
19607 | bool val7 ; | |
19608 | int ecode7 = 0 ; | |
19609 | wxPoint temp8 ; | |
19610 | PyObject * obj0 = 0 ; | |
19611 | PyObject * obj1 = 0 ; | |
19612 | PyObject * obj2 = 0 ; | |
19613 | PyObject * obj3 = 0 ; | |
19614 | PyObject * obj4 = 0 ; | |
19615 | PyObject * obj5 = 0 ; | |
19616 | PyObject * obj6 = 0 ; | |
19617 | PyObject * obj7 = 0 ; | |
19618 | char * kwnames[] = { | |
19619 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
19620 | }; | |
19621 | ||
19622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
19623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19624 | if (!SWIG_IsOK(res1)) { | |
19625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19626 | } | |
19627 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19628 | { | |
19629 | arg2 = &temp2; | |
19630 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19631 | } | |
19632 | { | |
19633 | arg3 = &temp3; | |
19634 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19635 | } | |
19636 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19637 | if (!SWIG_IsOK(res4)) { | |
19638 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
19639 | } | |
19640 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
19641 | { | |
19642 | arg5 = &temp5; | |
19643 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19644 | } | |
19645 | if (obj5) { | |
19646 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19647 | if (!SWIG_IsOK(ecode6)) { | |
19648 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
19649 | } | |
19650 | arg6 = static_cast< int >(val6); | |
19651 | } | |
19652 | if (obj6) { | |
19653 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
19654 | if (!SWIG_IsOK(ecode7)) { | |
19655 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
19656 | } | |
19657 | arg7 = static_cast< bool >(val7); | |
19658 | } | |
19659 | if (obj7) { | |
093d3ff1 | 19660 | { |
0085ce49 RD |
19661 | arg8 = &temp8; |
19662 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 19663 | } |
0085ce49 RD |
19664 | } |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
19671 | { | |
19672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19673 | } | |
19674 | return resultobj; | |
19675 | fail: | |
19676 | return NULL; | |
19677 | } | |
19678 | ||
19679 | ||
19680 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19681 | PyObject *resultobj = 0; | |
19682 | wxDC *arg1 = (wxDC *) 0 ; | |
19683 | int arg2 ; | |
19684 | int arg3 ; | |
19685 | int arg4 ; | |
19686 | int arg5 ; | |
19687 | void *argp1 = 0 ; | |
19688 | int res1 = 0 ; | |
19689 | int val2 ; | |
19690 | int ecode2 = 0 ; | |
19691 | int val3 ; | |
19692 | int ecode3 = 0 ; | |
19693 | int val4 ; | |
19694 | int ecode4 = 0 ; | |
19695 | int val5 ; | |
19696 | int ecode5 = 0 ; | |
19697 | PyObject * obj0 = 0 ; | |
19698 | PyObject * obj1 = 0 ; | |
19699 | PyObject * obj2 = 0 ; | |
19700 | PyObject * obj3 = 0 ; | |
19701 | PyObject * obj4 = 0 ; | |
19702 | char * kwnames[] = { | |
19703 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19704 | }; | |
19705 | ||
19706 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19708 | if (!SWIG_IsOK(res1)) { | |
19709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19710 | } | |
19711 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19712 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19713 | if (!SWIG_IsOK(ecode2)) { | |
19714 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
19715 | } | |
19716 | arg2 = static_cast< int >(val2); | |
19717 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19718 | if (!SWIG_IsOK(ecode3)) { | |
19719 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
19720 | } | |
19721 | arg3 = static_cast< int >(val3); | |
19722 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19723 | if (!SWIG_IsOK(ecode4)) { | |
19724 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
19725 | } | |
19726 | arg4 = static_cast< int >(val4); | |
19727 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19728 | if (!SWIG_IsOK(ecode5)) { | |
19729 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
19730 | } | |
19731 | arg5 = static_cast< int >(val5); | |
19732 | { | |
19733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19734 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
19735 | wxPyEndAllowThreads(__tstate); | |
19736 | if (PyErr_Occurred()) SWIG_fail; | |
19737 | } | |
19738 | resultobj = SWIG_Py_Void(); | |
19739 | return resultobj; | |
19740 | fail: | |
19741 | return NULL; | |
19742 | } | |
19743 | ||
19744 | ||
19745 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19746 | PyObject *resultobj = 0; | |
19747 | wxDC *arg1 = (wxDC *) 0 ; | |
19748 | wxPoint *arg2 = 0 ; | |
19749 | wxSize *arg3 = 0 ; | |
19750 | void *argp1 = 0 ; | |
19751 | int res1 = 0 ; | |
19752 | wxPoint temp2 ; | |
19753 | wxSize temp3 ; | |
19754 | PyObject * obj0 = 0 ; | |
19755 | PyObject * obj1 = 0 ; | |
19756 | PyObject * obj2 = 0 ; | |
19757 | char * kwnames[] = { | |
19758 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19759 | }; | |
19760 | ||
19761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19763 | if (!SWIG_IsOK(res1)) { | |
19764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19765 | } | |
19766 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19767 | { | |
19768 | arg2 = &temp2; | |
19769 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19770 | } | |
19771 | { | |
19772 | arg3 = &temp3; | |
19773 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19774 | } | |
19775 | { | |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19778 | wxPyEndAllowThreads(__tstate); | |
19779 | if (PyErr_Occurred()) SWIG_fail; | |
19780 | } | |
19781 | resultobj = SWIG_Py_Void(); | |
19782 | return resultobj; | |
19783 | fail: | |
19784 | return NULL; | |
19785 | } | |
19786 | ||
19787 | ||
19788 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19789 | PyObject *resultobj = 0; | |
19790 | wxDC *arg1 = (wxDC *) 0 ; | |
19791 | wxRegion *arg2 = 0 ; | |
19792 | void *argp1 = 0 ; | |
19793 | int res1 = 0 ; | |
19794 | void *argp2 = 0 ; | |
19795 | int res2 = 0 ; | |
19796 | PyObject * obj0 = 0 ; | |
19797 | PyObject * obj1 = 0 ; | |
19798 | char * kwnames[] = { | |
19799 | (char *) "self",(char *) "region", NULL | |
19800 | }; | |
19801 | ||
19802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
19803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19804 | if (!SWIG_IsOK(res1)) { | |
19805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19806 | } | |
19807 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19808 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
19809 | if (!SWIG_IsOK(res2)) { | |
19810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
19811 | } | |
19812 | if (!argp2) { | |
19813 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
19814 | } | |
19815 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
19816 | { | |
19817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19818 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
19819 | wxPyEndAllowThreads(__tstate); | |
19820 | if (PyErr_Occurred()) SWIG_fail; | |
19821 | } | |
19822 | resultobj = SWIG_Py_Void(); | |
19823 | return resultobj; | |
19824 | fail: | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj = 0; | |
19831 | wxDC *arg1 = (wxDC *) 0 ; | |
19832 | wxRect *arg2 = 0 ; | |
19833 | void *argp1 = 0 ; | |
19834 | int res1 = 0 ; | |
19835 | wxRect temp2 ; | |
19836 | PyObject * obj0 = 0 ; | |
19837 | PyObject * obj1 = 0 ; | |
19838 | char * kwnames[] = { | |
19839 | (char *) "self",(char *) "rect", NULL | |
19840 | }; | |
19841 | ||
19842 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19844 | if (!SWIG_IsOK(res1)) { | |
19845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19846 | } | |
19847 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19848 | { | |
19849 | arg2 = &temp2; | |
19850 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19851 | } | |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | resultobj = SWIG_Py_Void(); | |
19859 | return resultobj; | |
19860 | fail: | |
19861 | return NULL; | |
19862 | } | |
19863 | ||
19864 | ||
19865 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19866 | PyObject *resultobj = 0; | |
19867 | wxDC *arg1 = (wxDC *) 0 ; | |
19868 | int arg2 ; | |
19869 | wxPoint *arg3 = (wxPoint *) 0 ; | |
19870 | int arg4 = (int) 0 ; | |
19871 | int arg5 = (int) 0 ; | |
19872 | void *argp1 = 0 ; | |
19873 | int res1 = 0 ; | |
19874 | int val4 ; | |
19875 | int ecode4 = 0 ; | |
19876 | int val5 ; | |
19877 | int ecode5 = 0 ; | |
19878 | PyObject * obj0 = 0 ; | |
19879 | PyObject * obj1 = 0 ; | |
19880 | PyObject * obj2 = 0 ; | |
19881 | PyObject * obj3 = 0 ; | |
19882 | char * kwnames[] = { | |
19883 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
19884 | }; | |
19885 | ||
19886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19888 | if (!SWIG_IsOK(res1)) { | |
19889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19890 | } | |
19891 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19892 | { | |
19893 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
19894 | if (arg3 == NULL) SWIG_fail; | |
19895 | } | |
19896 | if (obj2) { | |
19897 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
19898 | if (!SWIG_IsOK(ecode4)) { | |
19899 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
19900 | } | |
19901 | arg4 = static_cast< int >(val4); | |
19902 | } | |
19903 | if (obj3) { | |
19904 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
19905 | if (!SWIG_IsOK(ecode5)) { | |
19906 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
19907 | } | |
19908 | arg5 = static_cast< int >(val5); | |
19909 | } | |
19910 | { | |
19911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19912 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
19913 | wxPyEndAllowThreads(__tstate); | |
19914 | if (PyErr_Occurred()) SWIG_fail; | |
19915 | } | |
19916 | resultobj = SWIG_Py_Void(); | |
19917 | { | |
19918 | if (arg3) delete [] arg3; | |
19919 | } | |
19920 | return resultobj; | |
19921 | fail: | |
19922 | { | |
19923 | if (arg3) delete [] arg3; | |
19924 | } | |
19925 | return NULL; | |
19926 | } | |
19927 | ||
19928 | ||
19929 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19930 | PyObject *resultobj = 0; | |
19931 | wxDC *arg1 = (wxDC *) 0 ; | |
19932 | int arg2 ; | |
19933 | wxPoint *arg3 = (wxPoint *) 0 ; | |
19934 | int arg4 = (int) 0 ; | |
19935 | int arg5 = (int) 0 ; | |
19936 | int arg6 = (int) wxODDEVEN_RULE ; | |
19937 | void *argp1 = 0 ; | |
19938 | int res1 = 0 ; | |
19939 | int val4 ; | |
19940 | int ecode4 = 0 ; | |
19941 | int val5 ; | |
19942 | int ecode5 = 0 ; | |
19943 | int val6 ; | |
19944 | int ecode6 = 0 ; | |
19945 | PyObject * obj0 = 0 ; | |
19946 | PyObject * obj1 = 0 ; | |
19947 | PyObject * obj2 = 0 ; | |
19948 | PyObject * obj3 = 0 ; | |
19949 | PyObject * obj4 = 0 ; | |
19950 | char * kwnames[] = { | |
19951 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
19952 | }; | |
19953 | ||
19954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19956 | if (!SWIG_IsOK(res1)) { | |
19957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19958 | } | |
19959 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19960 | { | |
19961 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
19962 | if (arg3 == NULL) SWIG_fail; | |
19963 | } | |
19964 | if (obj2) { | |
19965 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
19966 | if (!SWIG_IsOK(ecode4)) { | |
19967 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
19968 | } | |
19969 | arg4 = static_cast< int >(val4); | |
19970 | } | |
19971 | if (obj3) { | |
19972 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
19973 | if (!SWIG_IsOK(ecode5)) { | |
19974 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
19975 | } | |
19976 | arg5 = static_cast< int >(val5); | |
19977 | } | |
19978 | if (obj4) { | |
19979 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
19980 | if (!SWIG_IsOK(ecode6)) { | |
19981 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
19982 | } | |
19983 | arg6 = static_cast< int >(val6); | |
19984 | } | |
19985 | { | |
19986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19987 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
19988 | wxPyEndAllowThreads(__tstate); | |
19989 | if (PyErr_Occurred()) SWIG_fail; | |
19990 | } | |
19991 | resultobj = SWIG_Py_Void(); | |
19992 | { | |
19993 | if (arg3) delete [] arg3; | |
19994 | } | |
19995 | return resultobj; | |
19996 | fail: | |
19997 | { | |
19998 | if (arg3) delete [] arg3; | |
19999 | } | |
20000 | return NULL; | |
20001 | } | |
20002 | ||
20003 | ||
20004 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20005 | PyObject *resultobj = 0; | |
20006 | wxDC *arg1 = (wxDC *) 0 ; | |
20007 | wxString *arg2 = 0 ; | |
20008 | wxRect *arg3 = 0 ; | |
20009 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20010 | int arg5 = (int) -1 ; | |
20011 | void *argp1 = 0 ; | |
20012 | int res1 = 0 ; | |
20013 | bool temp2 = false ; | |
20014 | wxRect temp3 ; | |
20015 | int val4 ; | |
20016 | int ecode4 = 0 ; | |
20017 | int val5 ; | |
20018 | int ecode5 = 0 ; | |
20019 | PyObject * obj0 = 0 ; | |
20020 | PyObject * obj1 = 0 ; | |
20021 | PyObject * obj2 = 0 ; | |
20022 | PyObject * obj3 = 0 ; | |
20023 | PyObject * obj4 = 0 ; | |
20024 | char * kwnames[] = { | |
20025 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20026 | }; | |
20027 | ||
20028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20030 | if (!SWIG_IsOK(res1)) { | |
20031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20032 | } | |
20033 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20034 | { | |
20035 | arg2 = wxString_in_helper(obj1); | |
20036 | if (arg2 == NULL) SWIG_fail; | |
20037 | temp2 = true; | |
20038 | } | |
20039 | { | |
20040 | arg3 = &temp3; | |
20041 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20042 | } | |
20043 | if (obj3) { | |
20044 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20045 | if (!SWIG_IsOK(ecode4)) { | |
20046 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20047 | } | |
20048 | arg4 = static_cast< int >(val4); | |
20049 | } | |
20050 | if (obj4) { | |
20051 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20052 | if (!SWIG_IsOK(ecode5)) { | |
20053 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20054 | } | |
20055 | arg5 = static_cast< int >(val5); | |
20056 | } | |
20057 | { | |
20058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20059 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | resultobj = SWIG_Py_Void(); | |
20064 | { | |
20065 | if (temp2) | |
20066 | delete arg2; | |
20067 | } | |
20068 | return resultobj; | |
20069 | fail: | |
20070 | { | |
20071 | if (temp2) | |
20072 | delete arg2; | |
20073 | } | |
20074 | return NULL; | |
20075 | } | |
20076 | ||
20077 | ||
20078 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20079 | PyObject *resultobj = 0; | |
20080 | wxDC *arg1 = (wxDC *) 0 ; | |
20081 | wxString *arg2 = 0 ; | |
20082 | wxBitmap *arg3 = 0 ; | |
20083 | wxRect *arg4 = 0 ; | |
20084 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20085 | int arg6 = (int) -1 ; | |
20086 | wxRect result; | |
20087 | void *argp1 = 0 ; | |
20088 | int res1 = 0 ; | |
20089 | bool temp2 = false ; | |
20090 | void *argp3 = 0 ; | |
20091 | int res3 = 0 ; | |
20092 | wxRect temp4 ; | |
20093 | int val5 ; | |
20094 | int ecode5 = 0 ; | |
20095 | int val6 ; | |
20096 | int ecode6 = 0 ; | |
20097 | PyObject * obj0 = 0 ; | |
20098 | PyObject * obj1 = 0 ; | |
20099 | PyObject * obj2 = 0 ; | |
20100 | PyObject * obj3 = 0 ; | |
20101 | PyObject * obj4 = 0 ; | |
20102 | PyObject * obj5 = 0 ; | |
20103 | char * kwnames[] = { | |
20104 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20105 | }; | |
20106 | ||
20107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20109 | if (!SWIG_IsOK(res1)) { | |
20110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20111 | } | |
20112 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20113 | { | |
20114 | arg2 = wxString_in_helper(obj1); | |
20115 | if (arg2 == NULL) SWIG_fail; | |
20116 | temp2 = true; | |
20117 | } | |
20118 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20119 | if (!SWIG_IsOK(res3)) { | |
20120 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20121 | } | |
20122 | if (!argp3) { | |
20123 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20124 | } | |
20125 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20126 | { | |
20127 | arg4 = &temp4; | |
20128 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20129 | } | |
20130 | if (obj4) { | |
20131 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20132 | if (!SWIG_IsOK(ecode5)) { | |
20133 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20134 | } | |
20135 | arg5 = static_cast< int >(val5); | |
20136 | } | |
20137 | if (obj5) { | |
20138 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20139 | if (!SWIG_IsOK(ecode6)) { | |
20140 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20141 | } | |
20142 | arg6 = static_cast< int >(val6); | |
20143 | } | |
20144 | { | |
20145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20146 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20147 | wxPyEndAllowThreads(__tstate); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
20150 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20151 | { | |
20152 | if (temp2) | |
20153 | delete arg2; | |
20154 | } | |
20155 | return resultobj; | |
20156 | fail: | |
20157 | { | |
20158 | if (temp2) | |
20159 | delete arg2; | |
20160 | } | |
20161 | return NULL; | |
20162 | } | |
20163 | ||
20164 | ||
20165 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20166 | PyObject *resultobj = 0; | |
20167 | wxDC *arg1 = (wxDC *) 0 ; | |
20168 | int arg2 ; | |
20169 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20170 | void *argp1 = 0 ; | |
20171 | int res1 = 0 ; | |
20172 | PyObject * obj0 = 0 ; | |
20173 | PyObject * obj1 = 0 ; | |
20174 | char * kwnames[] = { | |
20175 | (char *) "self",(char *) "points", NULL | |
20176 | }; | |
20177 | ||
20178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20179 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20180 | if (!SWIG_IsOK(res1)) { | |
20181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20182 | } | |
20183 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20184 | { | |
20185 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20186 | if (arg3 == NULL) SWIG_fail; | |
20187 | } | |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | (arg1)->DrawSpline(arg2,arg3); | |
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
20194 | resultobj = SWIG_Py_Void(); | |
20195 | { | |
20196 | if (arg3) delete [] arg3; | |
20197 | } | |
20198 | return resultobj; | |
20199 | fail: | |
20200 | { | |
20201 | if (arg3) delete [] arg3; | |
20202 | } | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
20207 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20208 | PyObject *resultobj = 0; | |
20209 | wxDC *arg1 = (wxDC *) 0 ; | |
20210 | void *argp1 = 0 ; | |
20211 | int res1 = 0 ; | |
20212 | PyObject *swig_obj[1] ; | |
20213 | ||
20214 | if (!args) SWIG_fail; | |
20215 | swig_obj[0] = args; | |
20216 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20217 | if (!SWIG_IsOK(res1)) { | |
20218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20219 | } | |
20220 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20221 | { | |
20222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20223 | (arg1)->Clear(); | |
20224 | wxPyEndAllowThreads(__tstate); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | resultobj = SWIG_Py_Void(); | |
20228 | return resultobj; | |
20229 | fail: | |
20230 | return NULL; | |
20231 | } | |
20232 | ||
20233 | ||
20234 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20235 | PyObject *resultobj = 0; | |
20236 | wxDC *arg1 = (wxDC *) 0 ; | |
20237 | wxString *arg2 = 0 ; | |
20238 | bool result; | |
20239 | void *argp1 = 0 ; | |
20240 | int res1 = 0 ; | |
20241 | bool temp2 = false ; | |
20242 | PyObject * obj0 = 0 ; | |
20243 | PyObject * obj1 = 0 ; | |
20244 | char * kwnames[] = { | |
20245 | (char *) "self",(char *) "message", NULL | |
20246 | }; | |
20247 | ||
20248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
20249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20250 | if (!SWIG_IsOK(res1)) { | |
20251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20252 | } | |
20253 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20254 | { | |
20255 | arg2 = wxString_in_helper(obj1); | |
20256 | if (arg2 == NULL) SWIG_fail; | |
20257 | temp2 = true; | |
20258 | } | |
20259 | { | |
20260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20261 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20262 | wxPyEndAllowThreads(__tstate); | |
20263 | if (PyErr_Occurred()) SWIG_fail; | |
20264 | } | |
20265 | { | |
20266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20267 | } | |
20268 | { | |
20269 | if (temp2) | |
20270 | delete arg2; | |
20271 | } | |
20272 | return resultobj; | |
20273 | fail: | |
20274 | { | |
20275 | if (temp2) | |
20276 | delete arg2; | |
20277 | } | |
20278 | return NULL; | |
20279 | } | |
20280 | ||
20281 | ||
20282 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20283 | PyObject *resultobj = 0; | |
20284 | wxDC *arg1 = (wxDC *) 0 ; | |
20285 | void *argp1 = 0 ; | |
20286 | int res1 = 0 ; | |
20287 | PyObject *swig_obj[1] ; | |
20288 | ||
20289 | if (!args) SWIG_fail; | |
20290 | swig_obj[0] = args; | |
20291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20292 | if (!SWIG_IsOK(res1)) { | |
20293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20294 | } | |
20295 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20296 | { | |
20297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20298 | (arg1)->EndDoc(); | |
20299 | wxPyEndAllowThreads(__tstate); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | } | |
20302 | resultobj = SWIG_Py_Void(); | |
20303 | return resultobj; | |
20304 | fail: | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
20309 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20310 | PyObject *resultobj = 0; | |
20311 | wxDC *arg1 = (wxDC *) 0 ; | |
20312 | void *argp1 = 0 ; | |
20313 | int res1 = 0 ; | |
20314 | PyObject *swig_obj[1] ; | |
20315 | ||
20316 | if (!args) SWIG_fail; | |
20317 | swig_obj[0] = args; | |
20318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20319 | if (!SWIG_IsOK(res1)) { | |
20320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20321 | } | |
20322 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20323 | { | |
20324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20325 | (arg1)->StartPage(); | |
20326 | wxPyEndAllowThreads(__tstate); | |
20327 | if (PyErr_Occurred()) SWIG_fail; | |
20328 | } | |
20329 | resultobj = SWIG_Py_Void(); | |
20330 | return resultobj; | |
20331 | fail: | |
20332 | return NULL; | |
20333 | } | |
20334 | ||
20335 | ||
20336 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20337 | PyObject *resultobj = 0; | |
20338 | wxDC *arg1 = (wxDC *) 0 ; | |
20339 | void *argp1 = 0 ; | |
20340 | int res1 = 0 ; | |
20341 | PyObject *swig_obj[1] ; | |
20342 | ||
20343 | if (!args) SWIG_fail; | |
20344 | swig_obj[0] = args; | |
20345 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20346 | if (!SWIG_IsOK(res1)) { | |
20347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20348 | } | |
20349 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20350 | { | |
20351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20352 | (arg1)->EndPage(); | |
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
20356 | resultobj = SWIG_Py_Void(); | |
20357 | return resultobj; | |
20358 | fail: | |
20359 | return NULL; | |
20360 | } | |
20361 | ||
20362 | ||
20363 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20364 | PyObject *resultobj = 0; | |
20365 | wxDC *arg1 = (wxDC *) 0 ; | |
20366 | wxFont *arg2 = 0 ; | |
20367 | void *argp1 = 0 ; | |
20368 | int res1 = 0 ; | |
20369 | void *argp2 = 0 ; | |
20370 | int res2 = 0 ; | |
20371 | PyObject * obj0 = 0 ; | |
20372 | PyObject * obj1 = 0 ; | |
20373 | char * kwnames[] = { | |
20374 | (char *) "self",(char *) "font", NULL | |
20375 | }; | |
20376 | ||
20377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20379 | if (!SWIG_IsOK(res1)) { | |
20380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20381 | } | |
20382 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20383 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20384 | if (!SWIG_IsOK(res2)) { | |
20385 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20386 | } | |
20387 | if (!argp2) { | |
20388 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20389 | } | |
20390 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20391 | { | |
20392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20393 | (arg1)->SetFont((wxFont const &)*arg2); | |
20394 | wxPyEndAllowThreads(__tstate); | |
20395 | if (PyErr_Occurred()) SWIG_fail; | |
20396 | } | |
20397 | resultobj = SWIG_Py_Void(); | |
20398 | return resultobj; | |
20399 | fail: | |
20400 | return NULL; | |
20401 | } | |
20402 | ||
20403 | ||
20404 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20405 | PyObject *resultobj = 0; | |
20406 | wxDC *arg1 = (wxDC *) 0 ; | |
20407 | wxPen *arg2 = 0 ; | |
20408 | void *argp1 = 0 ; | |
20409 | int res1 = 0 ; | |
20410 | void *argp2 = 0 ; | |
20411 | int res2 = 0 ; | |
20412 | PyObject * obj0 = 0 ; | |
20413 | PyObject * obj1 = 0 ; | |
20414 | char * kwnames[] = { | |
20415 | (char *) "self",(char *) "pen", NULL | |
20416 | }; | |
20417 | ||
20418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20420 | if (!SWIG_IsOK(res1)) { | |
20421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20422 | } | |
20423 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20424 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20425 | if (!SWIG_IsOK(res2)) { | |
20426 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20427 | } | |
20428 | if (!argp2) { | |
20429 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20430 | } | |
20431 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20432 | { | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | (arg1)->SetPen((wxPen const &)*arg2); | |
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | resultobj = SWIG_Py_Void(); | |
20439 | return resultobj; | |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
20445 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20446 | PyObject *resultobj = 0; | |
20447 | wxDC *arg1 = (wxDC *) 0 ; | |
20448 | wxBrush *arg2 = 0 ; | |
20449 | void *argp1 = 0 ; | |
20450 | int res1 = 0 ; | |
20451 | void *argp2 = 0 ; | |
20452 | int res2 = 0 ; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | PyObject * obj1 = 0 ; | |
20455 | char * kwnames[] = { | |
20456 | (char *) "self",(char *) "brush", NULL | |
20457 | }; | |
20458 | ||
20459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20461 | if (!SWIG_IsOK(res1)) { | |
20462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20463 | } | |
20464 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20465 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20466 | if (!SWIG_IsOK(res2)) { | |
20467 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20468 | } | |
20469 | if (!argp2) { | |
20470 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20471 | } | |
20472 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20473 | { | |
20474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20475 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20476 | wxPyEndAllowThreads(__tstate); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | } | |
20479 | resultobj = SWIG_Py_Void(); | |
20480 | return resultobj; | |
20481 | fail: | |
20482 | return NULL; | |
20483 | } | |
20484 | ||
20485 | ||
20486 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20487 | PyObject *resultobj = 0; | |
20488 | wxDC *arg1 = (wxDC *) 0 ; | |
20489 | wxBrush *arg2 = 0 ; | |
20490 | void *argp1 = 0 ; | |
20491 | int res1 = 0 ; | |
20492 | void *argp2 = 0 ; | |
20493 | int res2 = 0 ; | |
20494 | PyObject * obj0 = 0 ; | |
20495 | PyObject * obj1 = 0 ; | |
20496 | char * kwnames[] = { | |
20497 | (char *) "self",(char *) "brush", NULL | |
20498 | }; | |
20499 | ||
20500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20502 | if (!SWIG_IsOK(res1)) { | |
20503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20504 | } | |
20505 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20506 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20507 | if (!SWIG_IsOK(res2)) { | |
20508 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20509 | } | |
20510 | if (!argp2) { | |
20511 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20512 | } | |
20513 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20514 | { | |
20515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20516 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
20517 | wxPyEndAllowThreads(__tstate); | |
20518 | if (PyErr_Occurred()) SWIG_fail; | |
20519 | } | |
20520 | resultobj = SWIG_Py_Void(); | |
20521 | return resultobj; | |
20522 | fail: | |
20523 | return NULL; | |
20524 | } | |
20525 | ||
20526 | ||
20527 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20528 | PyObject *resultobj = 0; | |
20529 | wxDC *arg1 = (wxDC *) 0 ; | |
20530 | int arg2 ; | |
20531 | void *argp1 = 0 ; | |
20532 | int res1 = 0 ; | |
20533 | int val2 ; | |
20534 | int ecode2 = 0 ; | |
20535 | PyObject * obj0 = 0 ; | |
20536 | PyObject * obj1 = 0 ; | |
20537 | char * kwnames[] = { | |
20538 | (char *) "self",(char *) "mode", NULL | |
20539 | }; | |
20540 | ||
20541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
20542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20543 | if (!SWIG_IsOK(res1)) { | |
20544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20545 | } | |
20546 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20547 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20548 | if (!SWIG_IsOK(ecode2)) { | |
20549 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
20550 | } | |
20551 | arg2 = static_cast< int >(val2); | |
20552 | { | |
20553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20554 | (arg1)->SetBackgroundMode(arg2); | |
20555 | wxPyEndAllowThreads(__tstate); | |
20556 | if (PyErr_Occurred()) SWIG_fail; | |
20557 | } | |
20558 | resultobj = SWIG_Py_Void(); | |
20559 | return resultobj; | |
20560 | fail: | |
20561 | return NULL; | |
20562 | } | |
20563 | ||
20564 | ||
20565 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20566 | PyObject *resultobj = 0; | |
20567 | wxDC *arg1 = (wxDC *) 0 ; | |
20568 | wxPalette *arg2 = 0 ; | |
20569 | void *argp1 = 0 ; | |
20570 | int res1 = 0 ; | |
20571 | void *argp2 = 0 ; | |
20572 | int res2 = 0 ; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | PyObject * obj1 = 0 ; | |
20575 | char * kwnames[] = { | |
20576 | (char *) "self",(char *) "palette", NULL | |
20577 | }; | |
20578 | ||
20579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
20580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20581 | if (!SWIG_IsOK(res1)) { | |
20582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20583 | } | |
20584 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20585 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
20586 | if (!SWIG_IsOK(res2)) { | |
20587 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20588 | } | |
20589 | if (!argp2) { | |
20590 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20591 | } | |
20592 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
20593 | { | |
20594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20595 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | resultobj = SWIG_Py_Void(); | |
20600 | return resultobj; | |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
20606 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20607 | PyObject *resultobj = 0; | |
20608 | wxDC *arg1 = (wxDC *) 0 ; | |
20609 | void *argp1 = 0 ; | |
20610 | int res1 = 0 ; | |
20611 | PyObject *swig_obj[1] ; | |
20612 | ||
20613 | if (!args) SWIG_fail; | |
20614 | swig_obj[0] = args; | |
20615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20616 | if (!SWIG_IsOK(res1)) { | |
20617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20618 | } | |
20619 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20620 | { | |
20621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20622 | (arg1)->DestroyClippingRegion(); | |
20623 | wxPyEndAllowThreads(__tstate); | |
20624 | if (PyErr_Occurred()) SWIG_fail; | |
20625 | } | |
20626 | resultobj = SWIG_Py_Void(); | |
20627 | return resultobj; | |
20628 | fail: | |
20629 | return NULL; | |
20630 | } | |
20631 | ||
20632 | ||
20633 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20634 | PyObject *resultobj = 0; | |
20635 | wxDC *arg1 = (wxDC *) 0 ; | |
20636 | int *arg2 = (int *) 0 ; | |
20637 | int *arg3 = (int *) 0 ; | |
20638 | int *arg4 = (int *) 0 ; | |
20639 | int *arg5 = (int *) 0 ; | |
20640 | void *argp1 = 0 ; | |
20641 | int res1 = 0 ; | |
20642 | int temp2 ; | |
20643 | int res2 = SWIG_TMPOBJ ; | |
20644 | int temp3 ; | |
20645 | int res3 = SWIG_TMPOBJ ; | |
20646 | int temp4 ; | |
20647 | int res4 = SWIG_TMPOBJ ; | |
20648 | int temp5 ; | |
20649 | int res5 = SWIG_TMPOBJ ; | |
20650 | PyObject *swig_obj[1] ; | |
20651 | ||
20652 | arg2 = &temp2; | |
20653 | arg3 = &temp3; | |
20654 | arg4 = &temp4; | |
20655 | arg5 = &temp5; | |
20656 | if (!args) SWIG_fail; | |
20657 | swig_obj[0] = args; | |
20658 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20659 | if (!SWIG_IsOK(res1)) { | |
20660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20661 | } | |
20662 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20663 | { | |
20664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20665 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
20666 | wxPyEndAllowThreads(__tstate); | |
20667 | if (PyErr_Occurred()) SWIG_fail; | |
20668 | } | |
20669 | resultobj = SWIG_Py_Void(); | |
20670 | if (SWIG_IsTmpObj(res2)) { | |
20671 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20672 | } else { | |
20673 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20674 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20675 | } | |
20676 | if (SWIG_IsTmpObj(res3)) { | |
20677 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20678 | } else { | |
20679 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20680 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20681 | } | |
20682 | if (SWIG_IsTmpObj(res4)) { | |
20683 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20684 | } else { | |
20685 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20686 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20687 | } | |
20688 | if (SWIG_IsTmpObj(res5)) { | |
20689 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20690 | } else { | |
20691 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20692 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20693 | } | |
20694 | return resultobj; | |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
20700 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20701 | PyObject *resultobj = 0; | |
20702 | wxDC *arg1 = (wxDC *) 0 ; | |
20703 | wxRect result; | |
20704 | void *argp1 = 0 ; | |
20705 | int res1 = 0 ; | |
20706 | PyObject *swig_obj[1] ; | |
20707 | ||
20708 | if (!args) SWIG_fail; | |
20709 | swig_obj[0] = args; | |
20710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20711 | if (!SWIG_IsOK(res1)) { | |
20712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20713 | } | |
20714 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20715 | { | |
20716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20717 | result = wxDC_GetClippingRect(arg1); | |
20718 | wxPyEndAllowThreads(__tstate); | |
20719 | if (PyErr_Occurred()) SWIG_fail; | |
20720 | } | |
20721 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20722 | return resultobj; | |
20723 | fail: | |
20724 | return NULL; | |
20725 | } | |
20726 | ||
20727 | ||
20728 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20729 | PyObject *resultobj = 0; | |
20730 | wxDC *arg1 = (wxDC *) 0 ; | |
20731 | int result; | |
20732 | void *argp1 = 0 ; | |
20733 | int res1 = 0 ; | |
20734 | PyObject *swig_obj[1] ; | |
20735 | ||
20736 | if (!args) SWIG_fail; | |
20737 | swig_obj[0] = args; | |
20738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20739 | if (!SWIG_IsOK(res1)) { | |
20740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20741 | } | |
20742 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20743 | { | |
20744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20745 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
20746 | wxPyEndAllowThreads(__tstate); | |
20747 | if (PyErr_Occurred()) SWIG_fail; | |
20748 | } | |
20749 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20750 | return resultobj; | |
20751 | fail: | |
20752 | return NULL; | |
20753 | } | |
20754 | ||
20755 | ||
20756 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20757 | PyObject *resultobj = 0; | |
20758 | wxDC *arg1 = (wxDC *) 0 ; | |
20759 | int result; | |
20760 | void *argp1 = 0 ; | |
20761 | int res1 = 0 ; | |
20762 | PyObject *swig_obj[1] ; | |
20763 | ||
20764 | if (!args) SWIG_fail; | |
20765 | swig_obj[0] = args; | |
20766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20767 | if (!SWIG_IsOK(res1)) { | |
20768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20769 | } | |
20770 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20771 | { | |
20772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20773 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
20774 | wxPyEndAllowThreads(__tstate); | |
20775 | if (PyErr_Occurred()) SWIG_fail; | |
20776 | } | |
20777 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20778 | return resultobj; | |
20779 | fail: | |
20780 | return NULL; | |
20781 | } | |
20782 | ||
20783 | ||
20784 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20785 | PyObject *resultobj = 0; | |
20786 | wxDC *arg1 = (wxDC *) 0 ; | |
20787 | wxString *arg2 = 0 ; | |
20788 | int *arg3 = (int *) 0 ; | |
20789 | int *arg4 = (int *) 0 ; | |
20790 | void *argp1 = 0 ; | |
20791 | int res1 = 0 ; | |
20792 | bool temp2 = false ; | |
20793 | int temp3 ; | |
20794 | int res3 = SWIG_TMPOBJ ; | |
20795 | int temp4 ; | |
20796 | int res4 = SWIG_TMPOBJ ; | |
20797 | PyObject * obj0 = 0 ; | |
20798 | PyObject * obj1 = 0 ; | |
20799 | char * kwnames[] = { | |
20800 | (char *) "self",(char *) "string", NULL | |
20801 | }; | |
20802 | ||
20803 | arg3 = &temp3; | |
20804 | arg4 = &temp4; | |
20805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
20806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20807 | if (!SWIG_IsOK(res1)) { | |
20808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20809 | } | |
20810 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20811 | { | |
20812 | arg2 = wxString_in_helper(obj1); | |
20813 | if (arg2 == NULL) SWIG_fail; | |
20814 | temp2 = true; | |
20815 | } | |
20816 | { | |
20817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20818 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
20819 | wxPyEndAllowThreads(__tstate); | |
20820 | if (PyErr_Occurred()) SWIG_fail; | |
20821 | } | |
20822 | resultobj = SWIG_Py_Void(); | |
20823 | if (SWIG_IsTmpObj(res3)) { | |
20824 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20825 | } else { | |
20826 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20827 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20828 | } | |
20829 | if (SWIG_IsTmpObj(res4)) { | |
20830 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20831 | } else { | |
20832 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20833 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20834 | } | |
20835 | { | |
20836 | if (temp2) | |
20837 | delete arg2; | |
20838 | } | |
20839 | return resultobj; | |
20840 | fail: | |
20841 | { | |
20842 | if (temp2) | |
20843 | delete arg2; | |
20844 | } | |
20845 | return NULL; | |
20846 | } | |
20847 | ||
20848 | ||
20849 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20850 | PyObject *resultobj = 0; | |
20851 | wxDC *arg1 = (wxDC *) 0 ; | |
20852 | wxString *arg2 = 0 ; | |
20853 | int *arg3 = (int *) 0 ; | |
20854 | int *arg4 = (int *) 0 ; | |
20855 | int *arg5 = (int *) 0 ; | |
20856 | int *arg6 = (int *) 0 ; | |
20857 | wxFont *arg7 = (wxFont *) NULL ; | |
20858 | void *argp1 = 0 ; | |
20859 | int res1 = 0 ; | |
20860 | bool temp2 = false ; | |
20861 | int temp3 ; | |
20862 | int res3 = SWIG_TMPOBJ ; | |
20863 | int temp4 ; | |
20864 | int res4 = SWIG_TMPOBJ ; | |
20865 | int temp5 ; | |
20866 | int res5 = SWIG_TMPOBJ ; | |
20867 | int temp6 ; | |
20868 | int res6 = SWIG_TMPOBJ ; | |
20869 | void *argp7 = 0 ; | |
20870 | int res7 = 0 ; | |
20871 | PyObject * obj0 = 0 ; | |
20872 | PyObject * obj1 = 0 ; | |
20873 | PyObject * obj2 = 0 ; | |
20874 | char * kwnames[] = { | |
20875 | (char *) "self",(char *) "string",(char *) "font", NULL | |
20876 | }; | |
20877 | ||
20878 | arg3 = &temp3; | |
20879 | arg4 = &temp4; | |
20880 | arg5 = &temp5; | |
20881 | arg6 = &temp6; | |
20882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20884 | if (!SWIG_IsOK(res1)) { | |
20885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20886 | } | |
20887 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20888 | { | |
20889 | arg2 = wxString_in_helper(obj1); | |
20890 | if (arg2 == NULL) SWIG_fail; | |
20891 | temp2 = true; | |
20892 | } | |
20893 | if (obj2) { | |
20894 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
20895 | if (!SWIG_IsOK(res7)) { | |
20896 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 20897 | } |
0085ce49 RD |
20898 | arg7 = reinterpret_cast< wxFont * >(argp7); |
20899 | } | |
20900 | { | |
20901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20902 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
20903 | wxPyEndAllowThreads(__tstate); | |
20904 | if (PyErr_Occurred()) SWIG_fail; | |
20905 | } | |
20906 | resultobj = SWIG_Py_Void(); | |
20907 | if (SWIG_IsTmpObj(res3)) { | |
20908 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20909 | } else { | |
20910 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20911 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20912 | } | |
20913 | if (SWIG_IsTmpObj(res4)) { | |
20914 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20915 | } else { | |
20916 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20917 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20918 | } | |
20919 | if (SWIG_IsTmpObj(res5)) { | |
20920 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20921 | } else { | |
20922 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20923 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20924 | } | |
20925 | if (SWIG_IsTmpObj(res6)) { | |
20926 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
20927 | } else { | |
20928 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20929 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
20930 | } | |
20931 | { | |
20932 | if (temp2) | |
20933 | delete arg2; | |
20934 | } | |
20935 | return resultobj; | |
20936 | fail: | |
20937 | { | |
20938 | if (temp2) | |
20939 | delete arg2; | |
20940 | } | |
20941 | return NULL; | |
20942 | } | |
20943 | ||
20944 | ||
20945 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20946 | PyObject *resultobj = 0; | |
20947 | wxDC *arg1 = (wxDC *) 0 ; | |
20948 | wxString *arg2 = 0 ; | |
20949 | int *arg3 = (int *) 0 ; | |
20950 | int *arg4 = (int *) 0 ; | |
20951 | int *arg5 = (int *) 0 ; | |
20952 | wxFont *arg6 = (wxFont *) NULL ; | |
20953 | void *argp1 = 0 ; | |
20954 | int res1 = 0 ; | |
20955 | bool temp2 = false ; | |
20956 | int temp3 ; | |
20957 | int res3 = SWIG_TMPOBJ ; | |
20958 | int temp4 ; | |
20959 | int res4 = SWIG_TMPOBJ ; | |
20960 | int temp5 ; | |
20961 | int res5 = SWIG_TMPOBJ ; | |
20962 | void *argp6 = 0 ; | |
20963 | int res6 = 0 ; | |
20964 | PyObject * obj0 = 0 ; | |
20965 | PyObject * obj1 = 0 ; | |
20966 | PyObject * obj2 = 0 ; | |
20967 | char * kwnames[] = { | |
20968 | (char *) "self",(char *) "text",(char *) "font", NULL | |
20969 | }; | |
20970 | ||
20971 | arg3 = &temp3; | |
20972 | arg4 = &temp4; | |
20973 | arg5 = &temp5; | |
20974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20976 | if (!SWIG_IsOK(res1)) { | |
20977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20978 | } | |
20979 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20980 | { | |
20981 | arg2 = wxString_in_helper(obj1); | |
20982 | if (arg2 == NULL) SWIG_fail; | |
20983 | temp2 = true; | |
20984 | } | |
20985 | if (obj2) { | |
20986 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
20987 | if (!SWIG_IsOK(res6)) { | |
20988 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 20989 | } |
0085ce49 RD |
20990 | arg6 = reinterpret_cast< wxFont * >(argp6); |
20991 | } | |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
20995 | wxPyEndAllowThreads(__tstate); | |
20996 | if (PyErr_Occurred()) SWIG_fail; | |
20997 | } | |
20998 | resultobj = SWIG_Py_Void(); | |
20999 | if (SWIG_IsTmpObj(res3)) { | |
21000 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21001 | } else { | |
21002 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21003 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21004 | } | |
21005 | if (SWIG_IsTmpObj(res4)) { | |
21006 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21007 | } else { | |
21008 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21009 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21010 | } | |
21011 | if (SWIG_IsTmpObj(res5)) { | |
21012 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21013 | } else { | |
21014 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21015 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21016 | } | |
21017 | { | |
21018 | if (temp2) | |
21019 | delete arg2; | |
21020 | } | |
21021 | return resultobj; | |
21022 | fail: | |
21023 | { | |
21024 | if (temp2) | |
21025 | delete arg2; | |
21026 | } | |
21027 | return NULL; | |
21028 | } | |
21029 | ||
21030 | ||
21031 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21032 | PyObject *resultobj = 0; | |
21033 | wxDC *arg1 = (wxDC *) 0 ; | |
21034 | wxString *arg2 = 0 ; | |
21035 | wxArrayInt result; | |
21036 | void *argp1 = 0 ; | |
21037 | int res1 = 0 ; | |
21038 | bool temp2 = false ; | |
21039 | PyObject * obj0 = 0 ; | |
21040 | PyObject * obj1 = 0 ; | |
21041 | char * kwnames[] = { | |
21042 | (char *) "self",(char *) "text", NULL | |
21043 | }; | |
21044 | ||
21045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21047 | if (!SWIG_IsOK(res1)) { | |
21048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21049 | } | |
21050 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21051 | { | |
21052 | arg2 = wxString_in_helper(obj1); | |
21053 | if (arg2 == NULL) SWIG_fail; | |
21054 | temp2 = true; | |
21055 | } | |
21056 | { | |
21057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21058 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21059 | wxPyEndAllowThreads(__tstate); | |
21060 | if (PyErr_Occurred()) SWIG_fail; | |
21061 | } | |
21062 | { | |
b39fe951 | 21063 | resultobj = wxArrayInt2PyList_helper(result); |
0085ce49 RD |
21064 | } |
21065 | { | |
21066 | if (temp2) | |
21067 | delete arg2; | |
21068 | } | |
21069 | return resultobj; | |
21070 | fail: | |
21071 | { | |
21072 | if (temp2) | |
21073 | delete arg2; | |
21074 | } | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21080 | PyObject *resultobj = 0; | |
21081 | wxDC *arg1 = (wxDC *) 0 ; | |
21082 | wxSize result; | |
21083 | void *argp1 = 0 ; | |
21084 | int res1 = 0 ; | |
21085 | PyObject *swig_obj[1] ; | |
21086 | ||
21087 | if (!args) SWIG_fail; | |
21088 | swig_obj[0] = args; | |
21089 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21090 | if (!SWIG_IsOK(res1)) { | |
21091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21092 | } | |
21093 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21094 | { | |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21096 | result = (arg1)->GetSize(); | |
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21101 | return resultobj; | |
21102 | fail: | |
21103 | return NULL; | |
21104 | } | |
21105 | ||
21106 | ||
21107 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21108 | PyObject *resultobj = 0; | |
21109 | wxDC *arg1 = (wxDC *) 0 ; | |
21110 | int *arg2 = (int *) 0 ; | |
21111 | int *arg3 = (int *) 0 ; | |
21112 | void *argp1 = 0 ; | |
21113 | int res1 = 0 ; | |
21114 | int temp2 ; | |
21115 | int res2 = SWIG_TMPOBJ ; | |
21116 | int temp3 ; | |
21117 | int res3 = SWIG_TMPOBJ ; | |
21118 | PyObject *swig_obj[1] ; | |
21119 | ||
21120 | arg2 = &temp2; | |
21121 | arg3 = &temp3; | |
21122 | if (!args) SWIG_fail; | |
21123 | swig_obj[0] = args; | |
21124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21125 | if (!SWIG_IsOK(res1)) { | |
21126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21127 | } | |
21128 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21129 | { | |
21130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21131 | (arg1)->GetSize(arg2,arg3); | |
21132 | wxPyEndAllowThreads(__tstate); | |
21133 | if (PyErr_Occurred()) SWIG_fail; | |
21134 | } | |
21135 | resultobj = SWIG_Py_Void(); | |
21136 | if (SWIG_IsTmpObj(res2)) { | |
21137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21138 | } else { | |
21139 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21141 | } | |
21142 | if (SWIG_IsTmpObj(res3)) { | |
21143 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21144 | } else { | |
21145 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21146 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21147 | } | |
21148 | return resultobj; | |
21149 | fail: | |
21150 | return NULL; | |
21151 | } | |
21152 | ||
21153 | ||
21154 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21155 | PyObject *resultobj = 0; | |
21156 | wxDC *arg1 = (wxDC *) 0 ; | |
21157 | wxSize result; | |
21158 | void *argp1 = 0 ; | |
21159 | int res1 = 0 ; | |
21160 | PyObject *swig_obj[1] ; | |
21161 | ||
21162 | if (!args) SWIG_fail; | |
21163 | swig_obj[0] = args; | |
21164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21165 | if (!SWIG_IsOK(res1)) { | |
21166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21167 | } | |
21168 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21169 | { | |
21170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21171 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21172 | wxPyEndAllowThreads(__tstate); | |
21173 | if (PyErr_Occurred()) SWIG_fail; | |
21174 | } | |
21175 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21176 | return resultobj; | |
21177 | fail: | |
21178 | return NULL; | |
21179 | } | |
21180 | ||
21181 | ||
21182 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21183 | PyObject *resultobj = 0; | |
21184 | wxDC *arg1 = (wxDC *) 0 ; | |
21185 | int *arg2 = (int *) 0 ; | |
21186 | int *arg3 = (int *) 0 ; | |
21187 | void *argp1 = 0 ; | |
21188 | int res1 = 0 ; | |
21189 | int temp2 ; | |
21190 | int res2 = SWIG_TMPOBJ ; | |
21191 | int temp3 ; | |
21192 | int res3 = SWIG_TMPOBJ ; | |
21193 | PyObject *swig_obj[1] ; | |
21194 | ||
21195 | arg2 = &temp2; | |
21196 | arg3 = &temp3; | |
21197 | if (!args) SWIG_fail; | |
21198 | swig_obj[0] = args; | |
21199 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21200 | if (!SWIG_IsOK(res1)) { | |
21201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21202 | } | |
21203 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | resultobj = SWIG_Py_Void(); | |
21211 | if (SWIG_IsTmpObj(res2)) { | |
21212 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21213 | } else { | |
21214 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21215 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21216 | } | |
21217 | if (SWIG_IsTmpObj(res3)) { | |
21218 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21219 | } else { | |
21220 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21221 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21222 | } | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
21229 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21230 | PyObject *resultobj = 0; | |
21231 | wxDC *arg1 = (wxDC *) 0 ; | |
21232 | int arg2 ; | |
21233 | int result; | |
21234 | void *argp1 = 0 ; | |
21235 | int res1 = 0 ; | |
21236 | int val2 ; | |
21237 | int ecode2 = 0 ; | |
21238 | PyObject * obj0 = 0 ; | |
21239 | PyObject * obj1 = 0 ; | |
21240 | char * kwnames[] = { | |
21241 | (char *) "self",(char *) "x", NULL | |
21242 | }; | |
21243 | ||
21244 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21245 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21246 | if (!SWIG_IsOK(res1)) { | |
21247 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21248 | } | |
21249 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21250 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21251 | if (!SWIG_IsOK(ecode2)) { | |
21252 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21253 | } | |
21254 | arg2 = static_cast< int >(val2); | |
21255 | { | |
21256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21257 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
21268 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21269 | PyObject *resultobj = 0; | |
21270 | wxDC *arg1 = (wxDC *) 0 ; | |
21271 | int arg2 ; | |
21272 | int result; | |
21273 | void *argp1 = 0 ; | |
21274 | int res1 = 0 ; | |
21275 | int val2 ; | |
21276 | int ecode2 = 0 ; | |
21277 | PyObject * obj0 = 0 ; | |
21278 | PyObject * obj1 = 0 ; | |
21279 | char * kwnames[] = { | |
21280 | (char *) "self",(char *) "y", NULL | |
21281 | }; | |
21282 | ||
21283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21285 | if (!SWIG_IsOK(res1)) { | |
21286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21287 | } | |
21288 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21289 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21290 | if (!SWIG_IsOK(ecode2)) { | |
21291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21292 | } | |
21293 | arg2 = static_cast< int >(val2); | |
21294 | { | |
21295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21296 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21297 | wxPyEndAllowThreads(__tstate); | |
21298 | if (PyErr_Occurred()) SWIG_fail; | |
21299 | } | |
21300 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21301 | return resultobj; | |
21302 | fail: | |
21303 | return NULL; | |
21304 | } | |
21305 | ||
21306 | ||
21307 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21308 | PyObject *resultobj = 0; | |
21309 | wxDC *arg1 = (wxDC *) 0 ; | |
21310 | int arg2 ; | |
21311 | int result; | |
21312 | void *argp1 = 0 ; | |
21313 | int res1 = 0 ; | |
21314 | int val2 ; | |
21315 | int ecode2 = 0 ; | |
21316 | PyObject * obj0 = 0 ; | |
21317 | PyObject * obj1 = 0 ; | |
21318 | char * kwnames[] = { | |
21319 | (char *) "self",(char *) "x", NULL | |
21320 | }; | |
21321 | ||
21322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21324 | if (!SWIG_IsOK(res1)) { | |
21325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21326 | } | |
21327 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21328 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21329 | if (!SWIG_IsOK(ecode2)) { | |
21330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
21331 | } | |
21332 | arg2 = static_cast< int >(val2); | |
21333 | { | |
21334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21335 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21347 | PyObject *resultobj = 0; | |
21348 | wxDC *arg1 = (wxDC *) 0 ; | |
21349 | int arg2 ; | |
21350 | int result; | |
21351 | void *argp1 = 0 ; | |
21352 | int res1 = 0 ; | |
21353 | int val2 ; | |
21354 | int ecode2 = 0 ; | |
21355 | PyObject * obj0 = 0 ; | |
21356 | PyObject * obj1 = 0 ; | |
21357 | char * kwnames[] = { | |
21358 | (char *) "self",(char *) "y", NULL | |
21359 | }; | |
21360 | ||
21361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21363 | if (!SWIG_IsOK(res1)) { | |
21364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21365 | } | |
21366 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21367 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21368 | if (!SWIG_IsOK(ecode2)) { | |
21369 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
21370 | } | |
21371 | arg2 = static_cast< int >(val2); | |
21372 | { | |
21373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21374 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj = 0; | |
21387 | wxDC *arg1 = (wxDC *) 0 ; | |
21388 | int arg2 ; | |
21389 | int result; | |
21390 | void *argp1 = 0 ; | |
21391 | int res1 = 0 ; | |
21392 | int val2 ; | |
21393 | int ecode2 = 0 ; | |
21394 | PyObject * obj0 = 0 ; | |
21395 | PyObject * obj1 = 0 ; | |
21396 | char * kwnames[] = { | |
21397 | (char *) "self",(char *) "x", NULL | |
21398 | }; | |
21399 | ||
21400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21402 | if (!SWIG_IsOK(res1)) { | |
21403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21404 | } | |
21405 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21406 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21407 | if (!SWIG_IsOK(ecode2)) { | |
21408 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21409 | } | |
21410 | arg2 = static_cast< int >(val2); | |
21411 | { | |
21412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21413 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
21417 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21418 | return resultobj; | |
21419 | fail: | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
21424 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21425 | PyObject *resultobj = 0; | |
21426 | wxDC *arg1 = (wxDC *) 0 ; | |
21427 | int arg2 ; | |
21428 | int result; | |
21429 | void *argp1 = 0 ; | |
21430 | int res1 = 0 ; | |
21431 | int val2 ; | |
21432 | int ecode2 = 0 ; | |
21433 | PyObject * obj0 = 0 ; | |
21434 | PyObject * obj1 = 0 ; | |
21435 | char * kwnames[] = { | |
21436 | (char *) "self",(char *) "y", NULL | |
21437 | }; | |
21438 | ||
21439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21441 | if (!SWIG_IsOK(res1)) { | |
21442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21443 | } | |
21444 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21446 | if (!SWIG_IsOK(ecode2)) { | |
21447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21448 | } | |
21449 | arg2 = static_cast< int >(val2); | |
21450 | { | |
21451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21452 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21453 | wxPyEndAllowThreads(__tstate); | |
21454 | if (PyErr_Occurred()) SWIG_fail; | |
21455 | } | |
21456 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21457 | return resultobj; | |
21458 | fail: | |
21459 | return NULL; | |
21460 | } | |
21461 | ||
21462 | ||
21463 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21464 | PyObject *resultobj = 0; | |
21465 | wxDC *arg1 = (wxDC *) 0 ; | |
21466 | int arg2 ; | |
21467 | int result; | |
21468 | void *argp1 = 0 ; | |
21469 | int res1 = 0 ; | |
21470 | int val2 ; | |
21471 | int ecode2 = 0 ; | |
21472 | PyObject * obj0 = 0 ; | |
21473 | PyObject * obj1 = 0 ; | |
21474 | char * kwnames[] = { | |
21475 | (char *) "self",(char *) "x", NULL | |
21476 | }; | |
21477 | ||
21478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21480 | if (!SWIG_IsOK(res1)) { | |
21481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21482 | } | |
21483 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21484 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21485 | if (!SWIG_IsOK(ecode2)) { | |
21486 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21487 | } | |
21488 | arg2 = static_cast< int >(val2); | |
21489 | { | |
21490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21491 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21492 | wxPyEndAllowThreads(__tstate); | |
21493 | if (PyErr_Occurred()) SWIG_fail; | |
21494 | } | |
21495 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21496 | return resultobj; | |
21497 | fail: | |
21498 | return NULL; | |
21499 | } | |
21500 | ||
21501 | ||
21502 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21503 | PyObject *resultobj = 0; | |
21504 | wxDC *arg1 = (wxDC *) 0 ; | |
21505 | int arg2 ; | |
21506 | int result; | |
21507 | void *argp1 = 0 ; | |
21508 | int res1 = 0 ; | |
21509 | int val2 ; | |
21510 | int ecode2 = 0 ; | |
21511 | PyObject * obj0 = 0 ; | |
21512 | PyObject * obj1 = 0 ; | |
21513 | char * kwnames[] = { | |
21514 | (char *) "self",(char *) "y", NULL | |
21515 | }; | |
21516 | ||
21517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21519 | if (!SWIG_IsOK(res1)) { | |
21520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21521 | } | |
21522 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21523 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21524 | if (!SWIG_IsOK(ecode2)) { | |
21525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
21526 | } | |
21527 | arg2 = static_cast< int >(val2); | |
21528 | { | |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21535 | return resultobj; | |
21536 | fail: | |
21537 | return NULL; | |
21538 | } | |
21539 | ||
21540 | ||
21541 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21542 | PyObject *resultobj = 0; | |
21543 | wxDC *arg1 = (wxDC *) 0 ; | |
21544 | bool result; | |
21545 | void *argp1 = 0 ; | |
21546 | int res1 = 0 ; | |
21547 | PyObject *swig_obj[1] ; | |
21548 | ||
21549 | if (!args) SWIG_fail; | |
21550 | swig_obj[0] = args; | |
21551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21552 | if (!SWIG_IsOK(res1)) { | |
21553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21554 | } | |
21555 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21556 | { | |
21557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21558 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
21559 | wxPyEndAllowThreads(__tstate); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | } | |
21562 | { | |
21563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21564 | } | |
21565 | return resultobj; | |
21566 | fail: | |
21567 | return NULL; | |
21568 | } | |
21569 | ||
21570 | ||
21571 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21572 | PyObject *resultobj = 0; | |
21573 | wxDC *arg1 = (wxDC *) 0 ; | |
21574 | bool result; | |
21575 | void *argp1 = 0 ; | |
21576 | int res1 = 0 ; | |
21577 | PyObject *swig_obj[1] ; | |
21578 | ||
21579 | if (!args) SWIG_fail; | |
21580 | swig_obj[0] = args; | |
21581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21582 | if (!SWIG_IsOK(res1)) { | |
21583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21584 | } | |
21585 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21586 | { | |
21587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21588 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
21592 | { | |
21593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21594 | } | |
21595 | return resultobj; | |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
21601 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21602 | PyObject *resultobj = 0; | |
21603 | wxDC *arg1 = (wxDC *) 0 ; | |
21604 | int result; | |
21605 | void *argp1 = 0 ; | |
21606 | int res1 = 0 ; | |
21607 | PyObject *swig_obj[1] ; | |
21608 | ||
21609 | if (!args) SWIG_fail; | |
21610 | swig_obj[0] = args; | |
21611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21612 | if (!SWIG_IsOK(res1)) { | |
21613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21614 | } | |
21615 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21616 | { | |
21617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21618 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
21619 | wxPyEndAllowThreads(__tstate); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | } | |
21622 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21623 | return resultobj; | |
21624 | fail: | |
21625 | return NULL; | |
21626 | } | |
21627 | ||
21628 | ||
21629 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21630 | PyObject *resultobj = 0; | |
21631 | wxDC *arg1 = (wxDC *) 0 ; | |
21632 | wxSize result; | |
21633 | void *argp1 = 0 ; | |
21634 | int res1 = 0 ; | |
21635 | PyObject *swig_obj[1] ; | |
21636 | ||
21637 | if (!args) SWIG_fail; | |
21638 | swig_obj[0] = args; | |
21639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21640 | if (!SWIG_IsOK(res1)) { | |
21641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21642 | } | |
21643 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21644 | { | |
21645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21646 | result = ((wxDC const *)arg1)->GetPPI(); | |
21647 | wxPyEndAllowThreads(__tstate); | |
21648 | if (PyErr_Occurred()) SWIG_fail; | |
21649 | } | |
21650 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21651 | return resultobj; | |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
b39fe951 | 21657 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
21658 | PyObject *resultobj = 0; |
21659 | wxDC *arg1 = (wxDC *) 0 ; | |
21660 | bool result; | |
21661 | void *argp1 = 0 ; | |
21662 | int res1 = 0 ; | |
21663 | PyObject *swig_obj[1] ; | |
21664 | ||
21665 | if (!args) SWIG_fail; | |
21666 | swig_obj[0] = args; | |
21667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21668 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 21669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
0085ce49 RD |
21670 | } |
21671 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21672 | { | |
21673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 21674 | result = (bool)((wxDC const *)arg1)->IsOk(); |
0085ce49 RD |
21675 | wxPyEndAllowThreads(__tstate); |
21676 | if (PyErr_Occurred()) SWIG_fail; | |
21677 | } | |
21678 | { | |
21679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21680 | } | |
21681 | return resultobj; | |
21682 | fail: | |
21683 | return NULL; | |
21684 | } | |
21685 | ||
21686 | ||
21687 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21688 | PyObject *resultobj = 0; | |
21689 | wxDC *arg1 = (wxDC *) 0 ; | |
21690 | int result; | |
21691 | void *argp1 = 0 ; | |
21692 | int res1 = 0 ; | |
21693 | PyObject *swig_obj[1] ; | |
21694 | ||
21695 | if (!args) SWIG_fail; | |
21696 | swig_obj[0] = args; | |
21697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21698 | if (!SWIG_IsOK(res1)) { | |
21699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21700 | } | |
21701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21702 | { | |
21703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21704 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
21705 | wxPyEndAllowThreads(__tstate); | |
21706 | if (PyErr_Occurred()) SWIG_fail; | |
21707 | } | |
21708 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21709 | return resultobj; | |
21710 | fail: | |
21711 | return NULL; | |
21712 | } | |
21713 | ||
21714 | ||
21715 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21716 | PyObject *resultobj = 0; | |
21717 | wxDC *arg1 = (wxDC *) 0 ; | |
21718 | wxBrush *result = 0 ; | |
21719 | void *argp1 = 0 ; | |
21720 | int res1 = 0 ; | |
21721 | PyObject *swig_obj[1] ; | |
21722 | ||
21723 | if (!args) SWIG_fail; | |
21724 | swig_obj[0] = args; | |
21725 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21726 | if (!SWIG_IsOK(res1)) { | |
21727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21728 | } | |
21729 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21730 | { | |
21731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21732 | { |
0085ce49 RD |
21733 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
21734 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21735 | } |
0085ce49 RD |
21736 | wxPyEndAllowThreads(__tstate); |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
21739 | { | |
21740 | wxBrush* resultptr = new wxBrush(*result); | |
21741 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21742 | } | |
21743 | return resultobj; | |
21744 | fail: | |
21745 | return NULL; | |
21746 | } | |
21747 | ||
21748 | ||
21749 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21750 | PyObject *resultobj = 0; | |
21751 | wxDC *arg1 = (wxDC *) 0 ; | |
21752 | wxBrush *result = 0 ; | |
21753 | void *argp1 = 0 ; | |
21754 | int res1 = 0 ; | |
21755 | PyObject *swig_obj[1] ; | |
21756 | ||
21757 | if (!args) SWIG_fail; | |
21758 | swig_obj[0] = args; | |
21759 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21760 | if (!SWIG_IsOK(res1)) { | |
21761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21762 | } | |
21763 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21764 | { | |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21766 | { |
0085ce49 RD |
21767 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
21768 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21769 | } |
0085ce49 RD |
21770 | wxPyEndAllowThreads(__tstate); |
21771 | if (PyErr_Occurred()) SWIG_fail; | |
21772 | } | |
21773 | { | |
21774 | wxBrush* resultptr = new wxBrush(*result); | |
21775 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21776 | } | |
21777 | return resultobj; | |
21778 | fail: | |
21779 | return NULL; | |
21780 | } | |
21781 | ||
21782 | ||
21783 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21784 | PyObject *resultobj = 0; | |
21785 | wxDC *arg1 = (wxDC *) 0 ; | |
21786 | wxFont *result = 0 ; | |
21787 | void *argp1 = 0 ; | |
21788 | int res1 = 0 ; | |
21789 | PyObject *swig_obj[1] ; | |
21790 | ||
21791 | if (!args) SWIG_fail; | |
21792 | swig_obj[0] = args; | |
21793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21794 | if (!SWIG_IsOK(res1)) { | |
21795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21796 | } | |
21797 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21798 | { | |
21799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21800 | { |
0085ce49 RD |
21801 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
21802 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 21803 | } |
0085ce49 RD |
21804 | wxPyEndAllowThreads(__tstate); |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | } | |
21807 | { | |
21808 | wxFont* resultptr = new wxFont(*result); | |
21809 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
21810 | } | |
21811 | return resultobj; | |
21812 | fail: | |
21813 | return NULL; | |
21814 | } | |
21815 | ||
21816 | ||
21817 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21818 | PyObject *resultobj = 0; | |
21819 | wxDC *arg1 = (wxDC *) 0 ; | |
21820 | wxPen *result = 0 ; | |
21821 | void *argp1 = 0 ; | |
21822 | int res1 = 0 ; | |
21823 | PyObject *swig_obj[1] ; | |
21824 | ||
21825 | if (!args) SWIG_fail; | |
21826 | swig_obj[0] = args; | |
21827 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21828 | if (!SWIG_IsOK(res1)) { | |
21829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21830 | } | |
21831 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21832 | { | |
21833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21834 | { |
0085ce49 RD |
21835 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
21836 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 21837 | } |
0085ce49 RD |
21838 | wxPyEndAllowThreads(__tstate); |
21839 | if (PyErr_Occurred()) SWIG_fail; | |
21840 | } | |
21841 | { | |
21842 | wxPen* resultptr = new wxPen(*result); | |
21843 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
21844 | } | |
21845 | return resultobj; | |
21846 | fail: | |
21847 | return NULL; | |
21848 | } | |
21849 | ||
21850 | ||
21851 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21852 | PyObject *resultobj = 0; | |
21853 | wxDC *arg1 = (wxDC *) 0 ; | |
21854 | wxColour *result = 0 ; | |
21855 | void *argp1 = 0 ; | |
21856 | int res1 = 0 ; | |
21857 | PyObject *swig_obj[1] ; | |
21858 | ||
21859 | if (!args) SWIG_fail; | |
21860 | swig_obj[0] = args; | |
21861 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21862 | if (!SWIG_IsOK(res1)) { | |
21863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21864 | } | |
21865 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21866 | { | |
21867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21868 | { |
0085ce49 RD |
21869 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
21870 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 21871 | } |
0085ce49 RD |
21872 | wxPyEndAllowThreads(__tstate); |
21873 | if (PyErr_Occurred()) SWIG_fail; | |
21874 | } | |
21875 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
21876 | return resultobj; | |
21877 | fail: | |
21878 | return NULL; | |
21879 | } | |
21880 | ||
21881 | ||
21882 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21883 | PyObject *resultobj = 0; | |
21884 | wxDC *arg1 = (wxDC *) 0 ; | |
21885 | wxColour *result = 0 ; | |
21886 | void *argp1 = 0 ; | |
21887 | int res1 = 0 ; | |
21888 | PyObject *swig_obj[1] ; | |
21889 | ||
21890 | if (!args) SWIG_fail; | |
21891 | swig_obj[0] = args; | |
21892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21893 | if (!SWIG_IsOK(res1)) { | |
21894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21895 | } | |
21896 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21897 | { | |
21898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21899 | { |
0085ce49 RD |
21900 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
21901 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 21902 | } |
0085ce49 RD |
21903 | wxPyEndAllowThreads(__tstate); |
21904 | if (PyErr_Occurred()) SWIG_fail; | |
21905 | } | |
21906 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
21907 | return resultobj; | |
21908 | fail: | |
21909 | return NULL; | |
21910 | } | |
21911 | ||
21912 | ||
21913 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21914 | PyObject *resultobj = 0; | |
21915 | wxDC *arg1 = (wxDC *) 0 ; | |
21916 | wxColour *arg2 = 0 ; | |
21917 | void *argp1 = 0 ; | |
21918 | int res1 = 0 ; | |
21919 | wxColour temp2 ; | |
21920 | PyObject * obj0 = 0 ; | |
21921 | PyObject * obj1 = 0 ; | |
21922 | char * kwnames[] = { | |
21923 | (char *) "self",(char *) "colour", NULL | |
21924 | }; | |
21925 | ||
21926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21928 | if (!SWIG_IsOK(res1)) { | |
21929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21930 | } | |
21931 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21932 | { | |
21933 | arg2 = &temp2; | |
21934 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21935 | } | |
21936 | { | |
21937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21938 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
21939 | wxPyEndAllowThreads(__tstate); | |
21940 | if (PyErr_Occurred()) SWIG_fail; | |
21941 | } | |
21942 | resultobj = SWIG_Py_Void(); | |
21943 | return resultobj; | |
21944 | fail: | |
21945 | return NULL; | |
21946 | } | |
21947 | ||
21948 | ||
21949 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21950 | PyObject *resultobj = 0; | |
21951 | wxDC *arg1 = (wxDC *) 0 ; | |
21952 | wxColour *arg2 = 0 ; | |
21953 | void *argp1 = 0 ; | |
21954 | int res1 = 0 ; | |
21955 | wxColour temp2 ; | |
21956 | PyObject * obj0 = 0 ; | |
21957 | PyObject * obj1 = 0 ; | |
21958 | char * kwnames[] = { | |
21959 | (char *) "self",(char *) "colour", NULL | |
21960 | }; | |
21961 | ||
21962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21964 | if (!SWIG_IsOK(res1)) { | |
21965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21966 | } | |
21967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21968 | { | |
21969 | arg2 = &temp2; | |
21970 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21971 | } | |
21972 | { | |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21974 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
21975 | wxPyEndAllowThreads(__tstate); | |
21976 | if (PyErr_Occurred()) SWIG_fail; | |
21977 | } | |
21978 | resultobj = SWIG_Py_Void(); | |
21979 | return resultobj; | |
21980 | fail: | |
21981 | return NULL; | |
21982 | } | |
21983 | ||
21984 | ||
21985 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21986 | PyObject *resultobj = 0; | |
21987 | wxDC *arg1 = (wxDC *) 0 ; | |
21988 | int result; | |
21989 | void *argp1 = 0 ; | |
21990 | int res1 = 0 ; | |
21991 | PyObject *swig_obj[1] ; | |
21992 | ||
21993 | if (!args) SWIG_fail; | |
21994 | swig_obj[0] = args; | |
21995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21996 | if (!SWIG_IsOK(res1)) { | |
21997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21998 | } | |
21999 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22000 | { | |
22001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22002 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22007 | return resultobj; | |
22008 | fail: | |
22009 | return NULL; | |
22010 | } | |
22011 | ||
22012 | ||
22013 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj = 0; | |
22015 | wxDC *arg1 = (wxDC *) 0 ; | |
22016 | int arg2 ; | |
22017 | void *argp1 = 0 ; | |
22018 | int res1 = 0 ; | |
22019 | int val2 ; | |
22020 | int ecode2 = 0 ; | |
22021 | PyObject * obj0 = 0 ; | |
22022 | PyObject * obj1 = 0 ; | |
22023 | char * kwnames[] = { | |
22024 | (char *) "self",(char *) "mode", NULL | |
22025 | }; | |
22026 | ||
22027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22029 | if (!SWIG_IsOK(res1)) { | |
22030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22031 | } | |
22032 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22033 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22034 | if (!SWIG_IsOK(ecode2)) { | |
22035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22036 | } | |
22037 | arg2 = static_cast< int >(val2); | |
22038 | { | |
22039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22040 | (arg1)->SetMapMode(arg2); | |
22041 | wxPyEndAllowThreads(__tstate); | |
22042 | if (PyErr_Occurred()) SWIG_fail; | |
22043 | } | |
22044 | resultobj = SWIG_Py_Void(); | |
22045 | return resultobj; | |
22046 | fail: | |
22047 | return NULL; | |
22048 | } | |
22049 | ||
22050 | ||
22051 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22052 | PyObject *resultobj = 0; | |
22053 | wxDC *arg1 = (wxDC *) 0 ; | |
22054 | double *arg2 = (double *) 0 ; | |
22055 | double *arg3 = (double *) 0 ; | |
22056 | void *argp1 = 0 ; | |
22057 | int res1 = 0 ; | |
22058 | double temp2 ; | |
22059 | int res2 = SWIG_TMPOBJ ; | |
22060 | double temp3 ; | |
22061 | int res3 = SWIG_TMPOBJ ; | |
22062 | PyObject *swig_obj[1] ; | |
22063 | ||
22064 | arg2 = &temp2; | |
22065 | arg3 = &temp3; | |
22066 | if (!args) SWIG_fail; | |
22067 | swig_obj[0] = args; | |
22068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22069 | if (!SWIG_IsOK(res1)) { | |
22070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22071 | } | |
22072 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22073 | { | |
22074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22075 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22076 | wxPyEndAllowThreads(__tstate); | |
22077 | if (PyErr_Occurred()) SWIG_fail; | |
22078 | } | |
22079 | resultobj = SWIG_Py_Void(); | |
22080 | if (SWIG_IsTmpObj(res2)) { | |
22081 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22082 | } else { | |
22083 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22084 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22085 | } | |
22086 | if (SWIG_IsTmpObj(res3)) { | |
22087 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22088 | } else { | |
22089 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22090 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22091 | } | |
22092 | return resultobj; | |
22093 | fail: | |
22094 | return NULL; | |
22095 | } | |
22096 | ||
22097 | ||
22098 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22099 | PyObject *resultobj = 0; | |
22100 | wxDC *arg1 = (wxDC *) 0 ; | |
22101 | double arg2 ; | |
22102 | double arg3 ; | |
22103 | void *argp1 = 0 ; | |
22104 | int res1 = 0 ; | |
22105 | double val2 ; | |
22106 | int ecode2 = 0 ; | |
22107 | double val3 ; | |
22108 | int ecode3 = 0 ; | |
22109 | PyObject * obj0 = 0 ; | |
22110 | PyObject * obj1 = 0 ; | |
22111 | PyObject * obj2 = 0 ; | |
22112 | char * kwnames[] = { | |
22113 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22114 | }; | |
22115 | ||
22116 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22117 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22118 | if (!SWIG_IsOK(res1)) { | |
22119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22120 | } | |
22121 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22122 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22123 | if (!SWIG_IsOK(ecode2)) { | |
22124 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22125 | } | |
22126 | arg2 = static_cast< double >(val2); | |
22127 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22128 | if (!SWIG_IsOK(ecode3)) { | |
22129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22130 | } | |
22131 | arg3 = static_cast< double >(val3); | |
22132 | { | |
22133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22134 | (arg1)->SetUserScale(arg2,arg3); | |
22135 | wxPyEndAllowThreads(__tstate); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
22138 | resultobj = SWIG_Py_Void(); | |
22139 | return resultobj; | |
22140 | fail: | |
22141 | return NULL; | |
22142 | } | |
22143 | ||
22144 | ||
22145 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22146 | PyObject *resultobj = 0; | |
22147 | wxDC *arg1 = (wxDC *) 0 ; | |
22148 | double *arg2 = (double *) 0 ; | |
22149 | double *arg3 = (double *) 0 ; | |
22150 | void *argp1 = 0 ; | |
22151 | int res1 = 0 ; | |
22152 | double temp2 ; | |
22153 | int res2 = SWIG_TMPOBJ ; | |
22154 | double temp3 ; | |
22155 | int res3 = SWIG_TMPOBJ ; | |
22156 | PyObject *swig_obj[1] ; | |
22157 | ||
22158 | arg2 = &temp2; | |
22159 | arg3 = &temp3; | |
22160 | if (!args) SWIG_fail; | |
22161 | swig_obj[0] = args; | |
22162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22163 | if (!SWIG_IsOK(res1)) { | |
22164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22165 | } | |
22166 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22167 | { | |
22168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22169 | (arg1)->GetLogicalScale(arg2,arg3); | |
22170 | wxPyEndAllowThreads(__tstate); | |
22171 | if (PyErr_Occurred()) SWIG_fail; | |
22172 | } | |
22173 | resultobj = SWIG_Py_Void(); | |
22174 | if (SWIG_IsTmpObj(res2)) { | |
22175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22176 | } else { | |
22177 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22179 | } | |
22180 | if (SWIG_IsTmpObj(res3)) { | |
22181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22182 | } else { | |
22183 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22185 | } | |
22186 | return resultobj; | |
22187 | fail: | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
22192 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22193 | PyObject *resultobj = 0; | |
22194 | wxDC *arg1 = (wxDC *) 0 ; | |
22195 | double arg2 ; | |
22196 | double arg3 ; | |
22197 | void *argp1 = 0 ; | |
22198 | int res1 = 0 ; | |
22199 | double val2 ; | |
22200 | int ecode2 = 0 ; | |
22201 | double val3 ; | |
22202 | int ecode3 = 0 ; | |
22203 | PyObject * obj0 = 0 ; | |
22204 | PyObject * obj1 = 0 ; | |
22205 | PyObject * obj2 = 0 ; | |
22206 | char * kwnames[] = { | |
22207 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22208 | }; | |
22209 | ||
22210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22212 | if (!SWIG_IsOK(res1)) { | |
22213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22214 | } | |
22215 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22216 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22217 | if (!SWIG_IsOK(ecode2)) { | |
22218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22219 | } | |
22220 | arg2 = static_cast< double >(val2); | |
22221 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22222 | if (!SWIG_IsOK(ecode3)) { | |
22223 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22224 | } | |
22225 | arg3 = static_cast< double >(val3); | |
22226 | { | |
22227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22228 | (arg1)->SetLogicalScale(arg2,arg3); | |
22229 | wxPyEndAllowThreads(__tstate); | |
22230 | if (PyErr_Occurred()) SWIG_fail; | |
22231 | } | |
22232 | resultobj = SWIG_Py_Void(); | |
22233 | return resultobj; | |
22234 | fail: | |
22235 | return NULL; | |
22236 | } | |
22237 | ||
22238 | ||
22239 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22240 | PyObject *resultobj = 0; | |
22241 | wxDC *arg1 = (wxDC *) 0 ; | |
22242 | wxPoint result; | |
22243 | void *argp1 = 0 ; | |
22244 | int res1 = 0 ; | |
22245 | PyObject *swig_obj[1] ; | |
22246 | ||
22247 | if (!args) SWIG_fail; | |
22248 | swig_obj[0] = args; | |
22249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22250 | if (!SWIG_IsOK(res1)) { | |
22251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22252 | } | |
22253 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22254 | { | |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
22260 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22261 | return resultobj; | |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
22267 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22268 | PyObject *resultobj = 0; | |
22269 | wxDC *arg1 = (wxDC *) 0 ; | |
22270 | int *arg2 = (int *) 0 ; | |
22271 | int *arg3 = (int *) 0 ; | |
22272 | void *argp1 = 0 ; | |
22273 | int res1 = 0 ; | |
22274 | int temp2 ; | |
22275 | int res2 = SWIG_TMPOBJ ; | |
22276 | int temp3 ; | |
22277 | int res3 = SWIG_TMPOBJ ; | |
22278 | PyObject *swig_obj[1] ; | |
22279 | ||
22280 | arg2 = &temp2; | |
22281 | arg3 = &temp3; | |
22282 | if (!args) SWIG_fail; | |
22283 | swig_obj[0] = args; | |
22284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22285 | if (!SWIG_IsOK(res1)) { | |
22286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22287 | } | |
22288 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22292 | wxPyEndAllowThreads(__tstate); | |
22293 | if (PyErr_Occurred()) SWIG_fail; | |
22294 | } | |
22295 | resultobj = SWIG_Py_Void(); | |
22296 | if (SWIG_IsTmpObj(res2)) { | |
22297 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22298 | } else { | |
22299 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22300 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22301 | } | |
22302 | if (SWIG_IsTmpObj(res3)) { | |
22303 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22304 | } else { | |
22305 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22306 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22307 | } | |
22308 | return resultobj; | |
22309 | fail: | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
22314 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22315 | PyObject *resultobj = 0; | |
22316 | wxDC *arg1 = (wxDC *) 0 ; | |
22317 | int arg2 ; | |
22318 | int arg3 ; | |
22319 | void *argp1 = 0 ; | |
22320 | int res1 = 0 ; | |
22321 | int val2 ; | |
22322 | int ecode2 = 0 ; | |
22323 | int val3 ; | |
22324 | int ecode3 = 0 ; | |
22325 | PyObject * obj0 = 0 ; | |
22326 | PyObject * obj1 = 0 ; | |
22327 | PyObject * obj2 = 0 ; | |
22328 | char * kwnames[] = { | |
22329 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22330 | }; | |
22331 | ||
22332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22334 | if (!SWIG_IsOK(res1)) { | |
22335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22336 | } | |
22337 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22338 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22339 | if (!SWIG_IsOK(ecode2)) { | |
22340 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22341 | } | |
22342 | arg2 = static_cast< int >(val2); | |
22343 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22344 | if (!SWIG_IsOK(ecode3)) { | |
22345 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22346 | } | |
22347 | arg3 = static_cast< int >(val3); | |
22348 | { | |
22349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22350 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
22351 | wxPyEndAllowThreads(__tstate); | |
22352 | if (PyErr_Occurred()) SWIG_fail; | |
22353 | } | |
22354 | resultobj = SWIG_Py_Void(); | |
22355 | return resultobj; | |
22356 | fail: | |
22357 | return NULL; | |
22358 | } | |
22359 | ||
22360 | ||
22361 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22362 | PyObject *resultobj = 0; | |
22363 | wxDC *arg1 = (wxDC *) 0 ; | |
22364 | wxPoint *arg2 = 0 ; | |
22365 | void *argp1 = 0 ; | |
22366 | int res1 = 0 ; | |
22367 | wxPoint temp2 ; | |
22368 | PyObject * obj0 = 0 ; | |
22369 | PyObject * obj1 = 0 ; | |
22370 | char * kwnames[] = { | |
22371 | (char *) "self",(char *) "point", NULL | |
22372 | }; | |
22373 | ||
22374 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22376 | if (!SWIG_IsOK(res1)) { | |
22377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22378 | } | |
22379 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22380 | { | |
22381 | arg2 = &temp2; | |
22382 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22383 | } | |
22384 | { | |
22385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22386 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
22390 | resultobj = SWIG_Py_Void(); | |
22391 | return resultobj; | |
22392 | fail: | |
22393 | return NULL; | |
22394 | } | |
22395 | ||
22396 | ||
22397 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22398 | PyObject *resultobj = 0; | |
22399 | wxDC *arg1 = (wxDC *) 0 ; | |
22400 | wxPoint result; | |
22401 | void *argp1 = 0 ; | |
22402 | int res1 = 0 ; | |
22403 | PyObject *swig_obj[1] ; | |
22404 | ||
22405 | if (!args) SWIG_fail; | |
22406 | swig_obj[0] = args; | |
22407 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22408 | if (!SWIG_IsOK(res1)) { | |
22409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22410 | } | |
22411 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22412 | { | |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22415 | wxPyEndAllowThreads(__tstate); | |
22416 | if (PyErr_Occurred()) SWIG_fail; | |
22417 | } | |
22418 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22419 | return resultobj; | |
22420 | fail: | |
22421 | return NULL; | |
22422 | } | |
22423 | ||
22424 | ||
22425 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22426 | PyObject *resultobj = 0; | |
22427 | wxDC *arg1 = (wxDC *) 0 ; | |
22428 | int *arg2 = (int *) 0 ; | |
22429 | int *arg3 = (int *) 0 ; | |
22430 | void *argp1 = 0 ; | |
22431 | int res1 = 0 ; | |
22432 | int temp2 ; | |
22433 | int res2 = SWIG_TMPOBJ ; | |
22434 | int temp3 ; | |
22435 | int res3 = SWIG_TMPOBJ ; | |
22436 | PyObject *swig_obj[1] ; | |
22437 | ||
22438 | arg2 = &temp2; | |
22439 | arg3 = &temp3; | |
22440 | if (!args) SWIG_fail; | |
22441 | swig_obj[0] = args; | |
22442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22443 | if (!SWIG_IsOK(res1)) { | |
22444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22445 | } | |
22446 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22447 | { | |
22448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22449 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22450 | wxPyEndAllowThreads(__tstate); | |
22451 | if (PyErr_Occurred()) SWIG_fail; | |
22452 | } | |
22453 | resultobj = SWIG_Py_Void(); | |
22454 | if (SWIG_IsTmpObj(res2)) { | |
22455 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22456 | } else { | |
22457 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22458 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22459 | } | |
22460 | if (SWIG_IsTmpObj(res3)) { | |
22461 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22462 | } else { | |
22463 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22464 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22465 | } | |
22466 | return resultobj; | |
22467 | fail: | |
22468 | return NULL; | |
22469 | } | |
22470 | ||
22471 | ||
22472 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22473 | PyObject *resultobj = 0; | |
22474 | wxDC *arg1 = (wxDC *) 0 ; | |
22475 | int arg2 ; | |
22476 | int arg3 ; | |
22477 | void *argp1 = 0 ; | |
22478 | int res1 = 0 ; | |
22479 | int val2 ; | |
22480 | int ecode2 = 0 ; | |
22481 | int val3 ; | |
22482 | int ecode3 = 0 ; | |
22483 | PyObject * obj0 = 0 ; | |
22484 | PyObject * obj1 = 0 ; | |
22485 | PyObject * obj2 = 0 ; | |
22486 | char * kwnames[] = { | |
22487 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22488 | }; | |
22489 | ||
22490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22492 | if (!SWIG_IsOK(res1)) { | |
22493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22494 | } | |
22495 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22496 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22497 | if (!SWIG_IsOK(ecode2)) { | |
22498 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22499 | } | |
22500 | arg2 = static_cast< int >(val2); | |
22501 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22502 | if (!SWIG_IsOK(ecode3)) { | |
22503 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22504 | } | |
22505 | arg3 = static_cast< int >(val3); | |
22506 | { | |
22507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22508 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
22509 | wxPyEndAllowThreads(__tstate); | |
22510 | if (PyErr_Occurred()) SWIG_fail; | |
22511 | } | |
22512 | resultobj = SWIG_Py_Void(); | |
22513 | return resultobj; | |
22514 | fail: | |
22515 | return NULL; | |
22516 | } | |
22517 | ||
22518 | ||
22519 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22520 | PyObject *resultobj = 0; | |
22521 | wxDC *arg1 = (wxDC *) 0 ; | |
22522 | wxPoint *arg2 = 0 ; | |
22523 | void *argp1 = 0 ; | |
22524 | int res1 = 0 ; | |
22525 | wxPoint temp2 ; | |
22526 | PyObject * obj0 = 0 ; | |
22527 | PyObject * obj1 = 0 ; | |
22528 | char * kwnames[] = { | |
22529 | (char *) "self",(char *) "point", NULL | |
22530 | }; | |
22531 | ||
22532 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22533 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22534 | if (!SWIG_IsOK(res1)) { | |
22535 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22536 | } | |
22537 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22538 | { | |
22539 | arg2 = &temp2; | |
22540 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22541 | } | |
22542 | { | |
22543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22544 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
22545 | wxPyEndAllowThreads(__tstate); | |
22546 | if (PyErr_Occurred()) SWIG_fail; | |
22547 | } | |
22548 | resultobj = SWIG_Py_Void(); | |
22549 | return resultobj; | |
22550 | fail: | |
22551 | return NULL; | |
22552 | } | |
22553 | ||
22554 | ||
22555 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22556 | PyObject *resultobj = 0; | |
22557 | wxDC *arg1 = (wxDC *) 0 ; | |
22558 | bool arg2 ; | |
22559 | bool arg3 ; | |
22560 | void *argp1 = 0 ; | |
22561 | int res1 = 0 ; | |
22562 | bool val2 ; | |
22563 | int ecode2 = 0 ; | |
22564 | bool val3 ; | |
22565 | int ecode3 = 0 ; | |
22566 | PyObject * obj0 = 0 ; | |
22567 | PyObject * obj1 = 0 ; | |
22568 | PyObject * obj2 = 0 ; | |
22569 | char * kwnames[] = { | |
22570 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
22571 | }; | |
22572 | ||
22573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22575 | if (!SWIG_IsOK(res1)) { | |
22576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22577 | } | |
22578 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22579 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22580 | if (!SWIG_IsOK(ecode2)) { | |
22581 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
22582 | } | |
22583 | arg2 = static_cast< bool >(val2); | |
22584 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22585 | if (!SWIG_IsOK(ecode3)) { | |
22586 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
22587 | } | |
22588 | arg3 = static_cast< bool >(val3); | |
22589 | { | |
22590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22591 | (arg1)->SetAxisOrientation(arg2,arg3); | |
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
22595 | resultobj = SWIG_Py_Void(); | |
22596 | return resultobj; | |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
22602 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22603 | PyObject *resultobj = 0; | |
22604 | wxDC *arg1 = (wxDC *) 0 ; | |
22605 | int result; | |
22606 | void *argp1 = 0 ; | |
22607 | int res1 = 0 ; | |
22608 | PyObject *swig_obj[1] ; | |
22609 | ||
22610 | if (!args) SWIG_fail; | |
22611 | swig_obj[0] = args; | |
22612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22613 | if (!SWIG_IsOK(res1)) { | |
22614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22615 | } | |
22616 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
22620 | wxPyEndAllowThreads(__tstate); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
22622 | } | |
22623 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22624 | return resultobj; | |
22625 | fail: | |
22626 | return NULL; | |
22627 | } | |
22628 | ||
22629 | ||
22630 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22631 | PyObject *resultobj = 0; | |
22632 | wxDC *arg1 = (wxDC *) 0 ; | |
22633 | int arg2 ; | |
22634 | void *argp1 = 0 ; | |
22635 | int res1 = 0 ; | |
22636 | int val2 ; | |
22637 | int ecode2 = 0 ; | |
22638 | PyObject * obj0 = 0 ; | |
22639 | PyObject * obj1 = 0 ; | |
22640 | char * kwnames[] = { | |
22641 | (char *) "self",(char *) "function", NULL | |
22642 | }; | |
22643 | ||
22644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
22645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22646 | if (!SWIG_IsOK(res1)) { | |
22647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22648 | } | |
22649 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22650 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22651 | if (!SWIG_IsOK(ecode2)) { | |
22652 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
22653 | } | |
22654 | arg2 = static_cast< int >(val2); | |
22655 | { | |
22656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22657 | (arg1)->SetLogicalFunction(arg2); | |
22658 | wxPyEndAllowThreads(__tstate); | |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
22660 | } | |
22661 | resultobj = SWIG_Py_Void(); | |
22662 | return resultobj; | |
22663 | fail: | |
22664 | return NULL; | |
22665 | } | |
22666 | ||
22667 | ||
22668 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22669 | PyObject *resultobj = 0; | |
22670 | wxDC *arg1 = (wxDC *) 0 ; | |
22671 | void *argp1 = 0 ; | |
22672 | int res1 = 0 ; | |
22673 | PyObject *swig_obj[1] ; | |
22674 | ||
22675 | if (!args) SWIG_fail; | |
22676 | swig_obj[0] = args; | |
22677 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22678 | if (!SWIG_IsOK(res1)) { | |
22679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22680 | } | |
22681 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22682 | { | |
22683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22684 | (arg1)->ComputeScaleAndOrigin(); | |
22685 | wxPyEndAllowThreads(__tstate); | |
22686 | if (PyErr_Occurred()) SWIG_fail; | |
22687 | } | |
22688 | resultobj = SWIG_Py_Void(); | |
22689 | return resultobj; | |
22690 | fail: | |
22691 | return NULL; | |
22692 | } | |
22693 | ||
22694 | ||
22695 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22696 | PyObject *resultobj = 0; | |
22697 | wxDC *arg1 = (wxDC *) 0 ; | |
22698 | int arg2 ; | |
22699 | int arg3 ; | |
22700 | void *argp1 = 0 ; | |
22701 | int res1 = 0 ; | |
22702 | int val2 ; | |
22703 | int ecode2 = 0 ; | |
22704 | int val3 ; | |
22705 | int ecode3 = 0 ; | |
22706 | PyObject * obj0 = 0 ; | |
22707 | PyObject * obj1 = 0 ; | |
22708 | PyObject * obj2 = 0 ; | |
22709 | char * kwnames[] = { | |
22710 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22711 | }; | |
22712 | ||
22713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22715 | if (!SWIG_IsOK(res1)) { | |
22716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22717 | } | |
22718 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22719 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22720 | if (!SWIG_IsOK(ecode2)) { | |
22721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
22722 | } | |
22723 | arg2 = static_cast< int >(val2); | |
22724 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22725 | if (!SWIG_IsOK(ecode3)) { | |
22726 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
22727 | } | |
22728 | arg3 = static_cast< int >(val3); | |
22729 | { | |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | (arg1)->CalcBoundingBox(arg2,arg3); | |
22732 | wxPyEndAllowThreads(__tstate); | |
22733 | if (PyErr_Occurred()) SWIG_fail; | |
22734 | } | |
22735 | resultobj = SWIG_Py_Void(); | |
22736 | return resultobj; | |
22737 | fail: | |
22738 | return NULL; | |
22739 | } | |
22740 | ||
22741 | ||
22742 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22743 | PyObject *resultobj = 0; | |
22744 | wxDC *arg1 = (wxDC *) 0 ; | |
22745 | wxPoint *arg2 = 0 ; | |
22746 | void *argp1 = 0 ; | |
22747 | int res1 = 0 ; | |
22748 | wxPoint temp2 ; | |
22749 | PyObject * obj0 = 0 ; | |
22750 | PyObject * obj1 = 0 ; | |
22751 | char * kwnames[] = { | |
22752 | (char *) "self",(char *) "point", NULL | |
22753 | }; | |
22754 | ||
22755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22757 | if (!SWIG_IsOK(res1)) { | |
22758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22759 | } | |
22760 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22761 | { | |
22762 | arg2 = &temp2; | |
22763 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22764 | } | |
22765 | { | |
22766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22767 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
22768 | wxPyEndAllowThreads(__tstate); | |
22769 | if (PyErr_Occurred()) SWIG_fail; | |
22770 | } | |
22771 | resultobj = SWIG_Py_Void(); | |
22772 | return resultobj; | |
22773 | fail: | |
22774 | return NULL; | |
22775 | } | |
22776 | ||
22777 | ||
22778 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22779 | PyObject *resultobj = 0; | |
22780 | wxDC *arg1 = (wxDC *) 0 ; | |
22781 | void *argp1 = 0 ; | |
22782 | int res1 = 0 ; | |
22783 | PyObject *swig_obj[1] ; | |
22784 | ||
22785 | if (!args) SWIG_fail; | |
22786 | swig_obj[0] = args; | |
22787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22788 | if (!SWIG_IsOK(res1)) { | |
22789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22790 | } | |
22791 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22792 | { | |
22793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22794 | (arg1)->ResetBoundingBox(); | |
22795 | wxPyEndAllowThreads(__tstate); | |
22796 | if (PyErr_Occurred()) SWIG_fail; | |
22797 | } | |
22798 | resultobj = SWIG_Py_Void(); | |
22799 | return resultobj; | |
22800 | fail: | |
22801 | return NULL; | |
22802 | } | |
22803 | ||
22804 | ||
22805 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22806 | PyObject *resultobj = 0; | |
22807 | wxDC *arg1 = (wxDC *) 0 ; | |
22808 | int result; | |
22809 | void *argp1 = 0 ; | |
22810 | int res1 = 0 ; | |
22811 | PyObject *swig_obj[1] ; | |
22812 | ||
22813 | if (!args) SWIG_fail; | |
22814 | swig_obj[0] = args; | |
22815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22816 | if (!SWIG_IsOK(res1)) { | |
22817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22818 | } | |
22819 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22820 | { | |
22821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22822 | result = (int)((wxDC const *)arg1)->MinX(); | |
22823 | wxPyEndAllowThreads(__tstate); | |
22824 | if (PyErr_Occurred()) SWIG_fail; | |
22825 | } | |
22826 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22827 | return resultobj; | |
22828 | fail: | |
22829 | return NULL; | |
22830 | } | |
22831 | ||
22832 | ||
22833 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22834 | PyObject *resultobj = 0; | |
22835 | wxDC *arg1 = (wxDC *) 0 ; | |
22836 | int result; | |
22837 | void *argp1 = 0 ; | |
22838 | int res1 = 0 ; | |
22839 | PyObject *swig_obj[1] ; | |
22840 | ||
22841 | if (!args) SWIG_fail; | |
22842 | swig_obj[0] = args; | |
22843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22844 | if (!SWIG_IsOK(res1)) { | |
22845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22846 | } | |
22847 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22848 | { | |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | result = (int)((wxDC const *)arg1)->MaxX(); | |
22851 | wxPyEndAllowThreads(__tstate); | |
22852 | if (PyErr_Occurred()) SWIG_fail; | |
22853 | } | |
22854 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22855 | return resultobj; | |
22856 | fail: | |
22857 | return NULL; | |
22858 | } | |
22859 | ||
22860 | ||
22861 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22862 | PyObject *resultobj = 0; | |
22863 | wxDC *arg1 = (wxDC *) 0 ; | |
22864 | int result; | |
22865 | void *argp1 = 0 ; | |
22866 | int res1 = 0 ; | |
22867 | PyObject *swig_obj[1] ; | |
22868 | ||
22869 | if (!args) SWIG_fail; | |
22870 | swig_obj[0] = args; | |
22871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22872 | if (!SWIG_IsOK(res1)) { | |
22873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22874 | } | |
22875 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22876 | { | |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | result = (int)((wxDC const *)arg1)->MinY(); | |
22879 | wxPyEndAllowThreads(__tstate); | |
22880 | if (PyErr_Occurred()) SWIG_fail; | |
22881 | } | |
22882 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22883 | return resultobj; | |
22884 | fail: | |
22885 | return NULL; | |
22886 | } | |
22887 | ||
22888 | ||
22889 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22890 | PyObject *resultobj = 0; | |
22891 | wxDC *arg1 = (wxDC *) 0 ; | |
22892 | int result; | |
22893 | void *argp1 = 0 ; | |
22894 | int res1 = 0 ; | |
22895 | PyObject *swig_obj[1] ; | |
22896 | ||
22897 | if (!args) SWIG_fail; | |
22898 | swig_obj[0] = args; | |
22899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22900 | if (!SWIG_IsOK(res1)) { | |
22901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22902 | } | |
22903 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22904 | { | |
22905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22906 | result = (int)((wxDC const *)arg1)->MaxY(); | |
22907 | wxPyEndAllowThreads(__tstate); | |
22908 | if (PyErr_Occurred()) SWIG_fail; | |
22909 | } | |
22910 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22911 | return resultobj; | |
22912 | fail: | |
22913 | return NULL; | |
22914 | } | |
22915 | ||
22916 | ||
22917 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22918 | PyObject *resultobj = 0; | |
22919 | wxDC *arg1 = (wxDC *) 0 ; | |
22920 | int *arg2 = (int *) 0 ; | |
22921 | int *arg3 = (int *) 0 ; | |
22922 | int *arg4 = (int *) 0 ; | |
22923 | int *arg5 = (int *) 0 ; | |
22924 | void *argp1 = 0 ; | |
22925 | int res1 = 0 ; | |
22926 | int temp2 ; | |
22927 | int res2 = SWIG_TMPOBJ ; | |
22928 | int temp3 ; | |
22929 | int res3 = SWIG_TMPOBJ ; | |
22930 | int temp4 ; | |
22931 | int res4 = SWIG_TMPOBJ ; | |
22932 | int temp5 ; | |
22933 | int res5 = SWIG_TMPOBJ ; | |
22934 | PyObject *swig_obj[1] ; | |
22935 | ||
22936 | arg2 = &temp2; | |
22937 | arg3 = &temp3; | |
22938 | arg4 = &temp4; | |
22939 | arg5 = &temp5; | |
22940 | if (!args) SWIG_fail; | |
22941 | swig_obj[0] = args; | |
22942 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22943 | if (!SWIG_IsOK(res1)) { | |
22944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22945 | } | |
22946 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22947 | { | |
22948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22949 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | resultobj = SWIG_Py_Void(); | |
22954 | if (SWIG_IsTmpObj(res2)) { | |
22955 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22956 | } else { | |
22957 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22958 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22959 | } | |
22960 | if (SWIG_IsTmpObj(res3)) { | |
22961 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22962 | } else { | |
22963 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22964 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22965 | } | |
22966 | if (SWIG_IsTmpObj(res4)) { | |
22967 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
22968 | } else { | |
22969 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22970 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
22971 | } | |
22972 | if (SWIG_IsTmpObj(res5)) { | |
22973 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
22974 | } else { | |
22975 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22976 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
22977 | } | |
22978 | return resultobj; | |
22979 | fail: | |
22980 | return NULL; | |
22981 | } | |
22982 | ||
22983 | ||
b39fe951 RD |
22984 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
22985 | PyObject *resultobj = 0; | |
22986 | wxDC *arg1 = (wxDC *) 0 ; | |
22987 | wxLayoutDirection result; | |
22988 | void *argp1 = 0 ; | |
22989 | int res1 = 0 ; | |
22990 | PyObject *swig_obj[1] ; | |
22991 | ||
22992 | if (!args) SWIG_fail; | |
22993 | swig_obj[0] = args; | |
22994 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22995 | if (!SWIG_IsOK(res1)) { | |
22996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22997 | } | |
22998 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22999 | { | |
23000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23001 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23002 | wxPyEndAllowThreads(__tstate); | |
23003 | if (PyErr_Occurred()) SWIG_fail; | |
23004 | } | |
23005 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23006 | return resultobj; | |
23007 | fail: | |
23008 | return NULL; | |
23009 | } | |
23010 | ||
23011 | ||
23012 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23013 | PyObject *resultobj = 0; | |
23014 | wxDC *arg1 = (wxDC *) 0 ; | |
23015 | wxLayoutDirection arg2 ; | |
23016 | void *argp1 = 0 ; | |
23017 | int res1 = 0 ; | |
23018 | int val2 ; | |
23019 | int ecode2 = 0 ; | |
23020 | PyObject * obj0 = 0 ; | |
23021 | PyObject * obj1 = 0 ; | |
23022 | char * kwnames[] = { | |
23023 | (char *) "self",(char *) "dir", NULL | |
23024 | }; | |
23025 | ||
23026 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23028 | if (!SWIG_IsOK(res1)) { | |
23029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23030 | } | |
23031 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23032 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23033 | if (!SWIG_IsOK(ecode2)) { | |
23034 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23035 | } | |
23036 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23037 | { | |
23038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23039 | (arg1)->SetLayoutDirection(arg2); | |
23040 | wxPyEndAllowThreads(__tstate); | |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
23042 | } | |
23043 | resultobj = SWIG_Py_Void(); | |
23044 | return resultobj; | |
23045 | fail: | |
23046 | return NULL; | |
23047 | } | |
23048 | ||
23049 | ||
0085ce49 RD |
23050 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23051 | PyObject *resultobj = 0; | |
23052 | wxDC *arg1 = (wxDC *) 0 ; | |
23053 | PyObject *arg2 = (PyObject *) 0 ; | |
23054 | PyObject *arg3 = (PyObject *) 0 ; | |
23055 | PyObject *arg4 = (PyObject *) 0 ; | |
23056 | PyObject *result = 0 ; | |
23057 | void *argp1 = 0 ; | |
23058 | int res1 = 0 ; | |
23059 | PyObject * obj0 = 0 ; | |
23060 | PyObject * obj1 = 0 ; | |
23061 | PyObject * obj2 = 0 ; | |
23062 | PyObject * obj3 = 0 ; | |
23063 | char * kwnames[] = { | |
23064 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23065 | }; | |
23066 | ||
23067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23069 | if (!SWIG_IsOK(res1)) { | |
23070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23071 | } | |
23072 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23073 | arg2 = obj1; | |
23074 | arg3 = obj2; | |
23075 | arg4 = obj3; | |
23076 | { | |
23077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23078 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23079 | wxPyEndAllowThreads(__tstate); | |
23080 | if (PyErr_Occurred()) SWIG_fail; | |
23081 | } | |
23082 | resultobj = result; | |
23083 | return resultobj; | |
23084 | fail: | |
23085 | return NULL; | |
23086 | } | |
23087 | ||
23088 | ||
23089 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23090 | PyObject *resultobj = 0; | |
23091 | wxDC *arg1 = (wxDC *) 0 ; | |
23092 | PyObject *arg2 = (PyObject *) 0 ; | |
23093 | PyObject *arg3 = (PyObject *) 0 ; | |
23094 | PyObject *arg4 = (PyObject *) 0 ; | |
23095 | PyObject *result = 0 ; | |
23096 | void *argp1 = 0 ; | |
23097 | int res1 = 0 ; | |
23098 | PyObject * obj0 = 0 ; | |
23099 | PyObject * obj1 = 0 ; | |
23100 | PyObject * obj2 = 0 ; | |
23101 | PyObject * obj3 = 0 ; | |
23102 | char * kwnames[] = { | |
23103 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23104 | }; | |
23105 | ||
23106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23108 | if (!SWIG_IsOK(res1)) { | |
23109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23110 | } | |
23111 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23112 | arg2 = obj1; | |
23113 | arg3 = obj2; | |
23114 | arg4 = obj3; | |
23115 | { | |
23116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23117 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
23121 | resultobj = result; | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
23128 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23129 | PyObject *resultobj = 0; | |
23130 | wxDC *arg1 = (wxDC *) 0 ; | |
23131 | PyObject *arg2 = (PyObject *) 0 ; | |
23132 | PyObject *arg3 = (PyObject *) 0 ; | |
23133 | PyObject *arg4 = (PyObject *) 0 ; | |
23134 | PyObject *result = 0 ; | |
23135 | void *argp1 = 0 ; | |
23136 | int res1 = 0 ; | |
23137 | PyObject * obj0 = 0 ; | |
23138 | PyObject * obj1 = 0 ; | |
23139 | PyObject * obj2 = 0 ; | |
23140 | PyObject * obj3 = 0 ; | |
23141 | char * kwnames[] = { | |
23142 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23143 | }; | |
23144 | ||
23145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23147 | if (!SWIG_IsOK(res1)) { | |
23148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23149 | } | |
23150 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23151 | arg2 = obj1; | |
23152 | arg3 = obj2; | |
23153 | arg4 = obj3; | |
23154 | { | |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23156 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23157 | wxPyEndAllowThreads(__tstate); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
23159 | } | |
23160 | resultobj = result; | |
23161 | return resultobj; | |
23162 | fail: | |
23163 | return NULL; | |
23164 | } | |
23165 | ||
23166 | ||
23167 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23168 | PyObject *resultobj = 0; | |
23169 | wxDC *arg1 = (wxDC *) 0 ; | |
23170 | PyObject *arg2 = (PyObject *) 0 ; | |
23171 | PyObject *arg3 = (PyObject *) 0 ; | |
23172 | PyObject *arg4 = (PyObject *) 0 ; | |
23173 | PyObject *result = 0 ; | |
23174 | void *argp1 = 0 ; | |
23175 | int res1 = 0 ; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | PyObject * obj1 = 0 ; | |
23178 | PyObject * obj2 = 0 ; | |
23179 | PyObject * obj3 = 0 ; | |
23180 | char * kwnames[] = { | |
23181 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23182 | }; | |
23183 | ||
23184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23186 | if (!SWIG_IsOK(res1)) { | |
23187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23188 | } | |
23189 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23190 | arg2 = obj1; | |
23191 | arg3 = obj2; | |
23192 | arg4 = obj3; | |
23193 | { | |
23194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23195 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23196 | wxPyEndAllowThreads(__tstate); | |
23197 | if (PyErr_Occurred()) SWIG_fail; | |
23198 | } | |
23199 | resultobj = result; | |
23200 | return resultobj; | |
23201 | fail: | |
23202 | return NULL; | |
23203 | } | |
23204 | ||
23205 | ||
23206 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23207 | PyObject *resultobj = 0; | |
23208 | wxDC *arg1 = (wxDC *) 0 ; | |
23209 | PyObject *arg2 = (PyObject *) 0 ; | |
23210 | PyObject *arg3 = (PyObject *) 0 ; | |
23211 | PyObject *arg4 = (PyObject *) 0 ; | |
23212 | PyObject *result = 0 ; | |
23213 | void *argp1 = 0 ; | |
23214 | int res1 = 0 ; | |
23215 | PyObject * obj0 = 0 ; | |
23216 | PyObject * obj1 = 0 ; | |
23217 | PyObject * obj2 = 0 ; | |
23218 | PyObject * obj3 = 0 ; | |
23219 | char * kwnames[] = { | |
23220 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23221 | }; | |
23222 | ||
23223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23225 | if (!SWIG_IsOK(res1)) { | |
23226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23227 | } | |
23228 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23229 | arg2 = obj1; | |
23230 | arg3 = obj2; | |
23231 | arg4 = obj3; | |
23232 | { | |
23233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23234 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
23235 | wxPyEndAllowThreads(__tstate); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
23238 | resultobj = result; | |
23239 | return resultobj; | |
23240 | fail: | |
23241 | return NULL; | |
23242 | } | |
23243 | ||
23244 | ||
23245 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23246 | PyObject *resultobj = 0; | |
23247 | wxDC *arg1 = (wxDC *) 0 ; | |
23248 | PyObject *arg2 = (PyObject *) 0 ; | |
23249 | PyObject *arg3 = (PyObject *) 0 ; | |
23250 | PyObject *arg4 = (PyObject *) 0 ; | |
23251 | PyObject *arg5 = (PyObject *) 0 ; | |
23252 | PyObject *result = 0 ; | |
23253 | void *argp1 = 0 ; | |
23254 | int res1 = 0 ; | |
23255 | PyObject * obj0 = 0 ; | |
23256 | PyObject * obj1 = 0 ; | |
23257 | PyObject * obj2 = 0 ; | |
23258 | PyObject * obj3 = 0 ; | |
23259 | PyObject * obj4 = 0 ; | |
23260 | char * kwnames[] = { | |
23261 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23262 | }; | |
23263 | ||
23264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23266 | if (!SWIG_IsOK(res1)) { | |
23267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23268 | } | |
23269 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23270 | arg2 = obj1; | |
23271 | arg3 = obj2; | |
23272 | arg4 = obj3; | |
23273 | arg5 = obj4; | |
23274 | { | |
23275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23276 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23277 | wxPyEndAllowThreads(__tstate); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | } | |
23280 | resultobj = result; | |
23281 | return resultobj; | |
23282 | fail: | |
23283 | return NULL; | |
23284 | } | |
23285 | ||
23286 | ||
23287 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23288 | PyObject *obj; | |
23289 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23290 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23291 | return SWIG_Py_Void(); | |
23292 | } | |
23293 | ||
70d7cb34 RD |
23294 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23295 | PyObject *resultobj = 0; | |
23296 | wxDC *arg1 = 0 ; | |
23297 | wxColour *arg2 = 0 ; | |
23298 | wxDCTextColourChanger *result = 0 ; | |
23299 | void *argp1 = 0 ; | |
23300 | int res1 = 0 ; | |
23301 | wxColour temp2 ; | |
23302 | PyObject * obj0 = 0 ; | |
23303 | PyObject * obj1 = 0 ; | |
23304 | char * kwnames[] = { | |
23305 | (char *) "dc",(char *) "col", NULL | |
23306 | }; | |
23307 | ||
23308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23309 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23310 | if (!SWIG_IsOK(res1)) { | |
23311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23312 | } | |
23313 | if (!argp1) { | |
23314 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23315 | } | |
23316 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23317 | { | |
23318 | arg2 = &temp2; | |
23319 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23320 | } | |
23321 | { | |
23322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23323 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
23324 | wxPyEndAllowThreads(__tstate); | |
23325 | if (PyErr_Occurred()) SWIG_fail; | |
23326 | } | |
23327 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
23328 | return resultobj; | |
23329 | fail: | |
23330 | return NULL; | |
23331 | } | |
23332 | ||
23333 | ||
23334 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23335 | PyObject *resultobj = 0; | |
23336 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
23337 | void *argp1 = 0 ; | |
23338 | int res1 = 0 ; | |
23339 | PyObject *swig_obj[1] ; | |
23340 | ||
23341 | if (!args) SWIG_fail; | |
23342 | swig_obj[0] = args; | |
23343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
23344 | if (!SWIG_IsOK(res1)) { | |
23345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
23346 | } | |
23347 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
23348 | { | |
23349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23350 | delete arg1; | |
23351 | ||
23352 | wxPyEndAllowThreads(__tstate); | |
23353 | if (PyErr_Occurred()) SWIG_fail; | |
23354 | } | |
23355 | resultobj = SWIG_Py_Void(); | |
23356 | return resultobj; | |
23357 | fail: | |
23358 | return NULL; | |
23359 | } | |
23360 | ||
23361 | ||
23362 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23363 | PyObject *obj; | |
23364 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23365 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
23366 | return SWIG_Py_Void(); | |
23367 | } | |
23368 | ||
23369 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23370 | return SWIG_Python_InitShadowInstance(args); | |
23371 | } | |
23372 | ||
23373 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23374 | PyObject *resultobj = 0; | |
23375 | wxDC *arg1 = 0 ; | |
23376 | wxPen *arg2 = 0 ; | |
23377 | wxDCPenChanger *result = 0 ; | |
23378 | void *argp1 = 0 ; | |
23379 | int res1 = 0 ; | |
23380 | void *argp2 = 0 ; | |
23381 | int res2 = 0 ; | |
23382 | PyObject * obj0 = 0 ; | |
23383 | PyObject * obj1 = 0 ; | |
23384 | char * kwnames[] = { | |
23385 | (char *) "dc",(char *) "pen", NULL | |
23386 | }; | |
23387 | ||
23388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23389 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23390 | if (!SWIG_IsOK(res1)) { | |
23391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23392 | } | |
23393 | if (!argp1) { | |
23394 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23395 | } | |
23396 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23397 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
23398 | if (!SWIG_IsOK(res2)) { | |
23399 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23400 | } | |
23401 | if (!argp2) { | |
23402 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
23403 | } | |
23404 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
23405 | { | |
23406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23407 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
23408 | wxPyEndAllowThreads(__tstate); | |
23409 | if (PyErr_Occurred()) SWIG_fail; | |
23410 | } | |
23411 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
23412 | return resultobj; | |
23413 | fail: | |
23414 | return NULL; | |
23415 | } | |
23416 | ||
23417 | ||
23418 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23419 | PyObject *resultobj = 0; | |
23420 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
23421 | void *argp1 = 0 ; | |
23422 | int res1 = 0 ; | |
23423 | PyObject *swig_obj[1] ; | |
23424 | ||
23425 | if (!args) SWIG_fail; | |
23426 | swig_obj[0] = args; | |
23427 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
23428 | if (!SWIG_IsOK(res1)) { | |
23429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
23430 | } | |
23431 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
23432 | { | |
23433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23434 | delete arg1; | |
23435 | ||
23436 | wxPyEndAllowThreads(__tstate); | |
23437 | if (PyErr_Occurred()) SWIG_fail; | |
23438 | } | |
23439 | resultobj = SWIG_Py_Void(); | |
23440 | return resultobj; | |
23441 | fail: | |
23442 | return NULL; | |
23443 | } | |
23444 | ||
23445 | ||
23446 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23447 | PyObject *obj; | |
23448 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23449 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
23450 | return SWIG_Py_Void(); | |
23451 | } | |
23452 | ||
23453 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23454 | return SWIG_Python_InitShadowInstance(args); | |
23455 | } | |
23456 | ||
23457 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23458 | PyObject *resultobj = 0; | |
23459 | wxDC *arg1 = 0 ; | |
23460 | wxBrush *arg2 = 0 ; | |
23461 | wxDCBrushChanger *result = 0 ; | |
23462 | void *argp1 = 0 ; | |
23463 | int res1 = 0 ; | |
23464 | void *argp2 = 0 ; | |
23465 | int res2 = 0 ; | |
23466 | PyObject * obj0 = 0 ; | |
23467 | PyObject * obj1 = 0 ; | |
23468 | char * kwnames[] = { | |
23469 | (char *) "dc",(char *) "brush", NULL | |
23470 | }; | |
23471 | ||
23472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
23473 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23474 | if (!SWIG_IsOK(res1)) { | |
23475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23476 | } | |
23477 | if (!argp1) { | |
23478 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23479 | } | |
23480 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23481 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
23482 | if (!SWIG_IsOK(res2)) { | |
23483 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23484 | } | |
23485 | if (!argp2) { | |
23486 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
23487 | } | |
23488 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
23489 | { | |
23490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23491 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
23492 | wxPyEndAllowThreads(__tstate); | |
23493 | if (PyErr_Occurred()) SWIG_fail; | |
23494 | } | |
23495 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
23496 | return resultobj; | |
23497 | fail: | |
23498 | return NULL; | |
23499 | } | |
23500 | ||
23501 | ||
23502 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23503 | PyObject *resultobj = 0; | |
23504 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
23505 | void *argp1 = 0 ; | |
23506 | int res1 = 0 ; | |
23507 | PyObject *swig_obj[1] ; | |
23508 | ||
23509 | if (!args) SWIG_fail; | |
23510 | swig_obj[0] = args; | |
23511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
23512 | if (!SWIG_IsOK(res1)) { | |
23513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
23514 | } | |
23515 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
23516 | { | |
23517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23518 | delete arg1; | |
23519 | ||
23520 | wxPyEndAllowThreads(__tstate); | |
23521 | if (PyErr_Occurred()) SWIG_fail; | |
23522 | } | |
23523 | resultobj = SWIG_Py_Void(); | |
23524 | return resultobj; | |
23525 | fail: | |
23526 | return NULL; | |
23527 | } | |
23528 | ||
23529 | ||
23530 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23531 | PyObject *obj; | |
23532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
23534 | return SWIG_Py_Void(); | |
23535 | } | |
23536 | ||
23537 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23538 | return SWIG_Python_InitShadowInstance(args); | |
23539 | } | |
23540 | ||
23541 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23542 | PyObject *resultobj = 0; | |
23543 | wxDC *arg1 = 0 ; | |
23544 | wxRegion *arg2 = 0 ; | |
23545 | wxDCClipper *result = 0 ; | |
23546 | void *argp1 = 0 ; | |
23547 | int res1 = 0 ; | |
23548 | void *argp2 = 0 ; | |
23549 | int res2 = 0 ; | |
23550 | ||
23551 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23553 | if (!SWIG_IsOK(res1)) { | |
23554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23555 | } | |
23556 | if (!argp1) { | |
23557 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23558 | } | |
23559 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23560 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
23561 | if (!SWIG_IsOK(res2)) { | |
23562 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23563 | } | |
23564 | if (!argp2) { | |
23565 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
23566 | } | |
23567 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
23568 | { | |
23569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23570 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
23571 | wxPyEndAllowThreads(__tstate); | |
23572 | if (PyErr_Occurred()) SWIG_fail; | |
23573 | } | |
23574 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23575 | return resultobj; | |
23576 | fail: | |
23577 | return NULL; | |
23578 | } | |
23579 | ||
23580 | ||
23581 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23582 | PyObject *resultobj = 0; | |
23583 | wxDC *arg1 = 0 ; | |
23584 | wxRect *arg2 = 0 ; | |
23585 | wxDCClipper *result = 0 ; | |
23586 | void *argp1 = 0 ; | |
23587 | int res1 = 0 ; | |
23588 | wxRect temp2 ; | |
23589 | ||
23590 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
23591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23592 | if (!SWIG_IsOK(res1)) { | |
23593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23594 | } | |
23595 | if (!argp1) { | |
23596 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23597 | } | |
23598 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23599 | { | |
23600 | arg2 = &temp2; | |
23601 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
23602 | } | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
23616 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23617 | PyObject *resultobj = 0; | |
23618 | wxDC *arg1 = 0 ; | |
23619 | int arg2 ; | |
23620 | int arg3 ; | |
23621 | int arg4 ; | |
23622 | int arg5 ; | |
23623 | wxDCClipper *result = 0 ; | |
23624 | void *argp1 = 0 ; | |
23625 | int res1 = 0 ; | |
23626 | int val2 ; | |
23627 | int ecode2 = 0 ; | |
23628 | int val3 ; | |
23629 | int ecode3 = 0 ; | |
23630 | int val4 ; | |
23631 | int ecode4 = 0 ; | |
23632 | int val5 ; | |
23633 | int ecode5 = 0 ; | |
23634 | ||
23635 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
23636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23637 | if (!SWIG_IsOK(res1)) { | |
23638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23639 | } | |
23640 | if (!argp1) { | |
23641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23642 | } | |
23643 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23644 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
23645 | if (!SWIG_IsOK(ecode2)) { | |
23646 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
23647 | } | |
23648 | arg2 = static_cast< int >(val2); | |
23649 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
23650 | if (!SWIG_IsOK(ecode3)) { | |
23651 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
23652 | } | |
23653 | arg3 = static_cast< int >(val3); | |
23654 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
23655 | if (!SWIG_IsOK(ecode4)) { | |
23656 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
23657 | } | |
23658 | arg4 = static_cast< int >(val4); | |
23659 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
23660 | if (!SWIG_IsOK(ecode5)) { | |
23661 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
23662 | } | |
23663 | arg5 = static_cast< int >(val5); | |
23664 | { | |
23665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23666 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
23667 | wxPyEndAllowThreads(__tstate); | |
23668 | if (PyErr_Occurred()) SWIG_fail; | |
23669 | } | |
23670 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
23671 | return resultobj; | |
23672 | fail: | |
23673 | return NULL; | |
23674 | } | |
23675 | ||
23676 | ||
23677 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
23678 | int argc; | |
23679 | PyObject *argv[6]; | |
23680 | ||
23681 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
23682 | --argc; | |
23683 | if (argc == 2) { | |
23684 | int _v = 0; | |
23685 | { | |
23686 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
23687 | _v = SWIG_CheckState(res); | |
23688 | } | |
23689 | if (!_v) goto check_1; | |
23690 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
23691 | } | |
23692 | check_1: | |
23693 | ||
23694 | if (argc == 2) { | |
23695 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
23696 | } | |
23697 | if (argc == 5) { | |
23698 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
23699 | } | |
23700 | ||
23701 | fail: | |
23702 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
23703 | return NULL; | |
23704 | } | |
23705 | ||
23706 | ||
23707 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23708 | PyObject *resultobj = 0; | |
23709 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
23710 | void *argp1 = 0 ; | |
23711 | int res1 = 0 ; | |
23712 | PyObject *swig_obj[1] ; | |
23713 | ||
23714 | if (!args) SWIG_fail; | |
23715 | swig_obj[0] = args; | |
23716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
23717 | if (!SWIG_IsOK(res1)) { | |
23718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
23719 | } | |
23720 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
23721 | { | |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | delete arg1; | |
23724 | ||
23725 | wxPyEndAllowThreads(__tstate); | |
23726 | if (PyErr_Occurred()) SWIG_fail; | |
23727 | } | |
23728 | resultobj = SWIG_Py_Void(); | |
23729 | return resultobj; | |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
23735 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23736 | PyObject *obj; | |
23737 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23738 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
23739 | return SWIG_Py_Void(); | |
23740 | } | |
23741 | ||
23742 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23743 | return SWIG_Python_InitShadowInstance(args); | |
23744 | } | |
23745 | ||
8e99bda9 | 23746 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 23747 | PyObject *resultobj = 0; |
8e99bda9 RD |
23748 | wxBitmap const &arg1_defvalue = wxNullBitmap ; |
23749 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
0085ce49 | 23750 | wxMemoryDC *result = 0 ; |
8e99bda9 RD |
23751 | void *argp1 = 0 ; |
23752 | int res1 = 0 ; | |
23753 | PyObject * obj0 = 0 ; | |
23754 | char * kwnames[] = { | |
23755 | (char *) "bitmap", NULL | |
23756 | }; | |
0085ce49 | 23757 | |
8e99bda9 RD |
23758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; |
23759 | if (obj0) { | |
23760 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23761 | if (!SWIG_IsOK(res1)) { | |
23762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
23763 | } | |
23764 | if (!argp1) { | |
23765 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
23766 | } | |
23767 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
23768 | } | |
0085ce49 RD |
23769 | { |
23770 | if (!wxPyCheckForApp()) SWIG_fail; | |
23771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e99bda9 | 23772 | result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1); |
0085ce49 RD |
23773 | wxPyEndAllowThreads(__tstate); |
23774 | if (PyErr_Occurred()) SWIG_fail; | |
23775 | } | |
23776 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
23777 | return resultobj; | |
23778 | fail: | |
23779 | return NULL; | |
23780 | } | |
23781 | ||
23782 | ||
23783 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23784 | PyObject *resultobj = 0; | |
23785 | wxDC *arg1 = (wxDC *) 0 ; | |
23786 | wxMemoryDC *result = 0 ; | |
23787 | void *argp1 = 0 ; | |
23788 | int res1 = 0 ; | |
23789 | PyObject * obj0 = 0 ; | |
23790 | char * kwnames[] = { | |
23791 | (char *) "oldDC", NULL | |
23792 | }; | |
23793 | ||
23794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
23795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23796 | if (!SWIG_IsOK(res1)) { | |
23797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23798 | } | |
23799 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23800 | { | |
23801 | if (!wxPyCheckForApp()) SWIG_fail; | |
23802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23803 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
23804 | wxPyEndAllowThreads(__tstate); | |
23805 | if (PyErr_Occurred()) SWIG_fail; | |
23806 | } | |
23807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
23808 | return resultobj; | |
23809 | fail: | |
23810 | return NULL; | |
23811 | } | |
23812 | ||
23813 | ||
23814 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23815 | PyObject *resultobj = 0; | |
23816 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
23817 | wxBitmap *arg2 = 0 ; | |
23818 | void *argp1 = 0 ; | |
23819 | int res1 = 0 ; | |
23820 | void *argp2 = 0 ; | |
23821 | int res2 = 0 ; | |
23822 | PyObject * obj0 = 0 ; | |
23823 | PyObject * obj1 = 0 ; | |
23824 | char * kwnames[] = { | |
23825 | (char *) "self",(char *) "bitmap", NULL | |
23826 | }; | |
23827 | ||
23828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
23829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
23830 | if (!SWIG_IsOK(res1)) { | |
23831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
23832 | } | |
23833 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
23834 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23835 | if (!SWIG_IsOK(res2)) { | |
23836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23837 | } | |
23838 | if (!argp2) { | |
23839 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23840 | } | |
23841 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23842 | { | |
23843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23844 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
23845 | wxPyEndAllowThreads(__tstate); | |
23846 | if (PyErr_Occurred()) SWIG_fail; | |
23847 | } | |
23848 | resultobj = SWIG_Py_Void(); | |
23849 | return resultobj; | |
23850 | fail: | |
23851 | return NULL; | |
23852 | } | |
23853 | ||
23854 | ||
23855 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23856 | PyObject *obj; | |
23857 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23858 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
23859 | return SWIG_Py_Void(); | |
23860 | } | |
23861 | ||
23862 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23863 | return SWIG_Python_InitShadowInstance(args); | |
23864 | } | |
23865 | ||
24f6c4e8 RD |
23866 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23867 | PyObject *resultobj = 0; | |
23868 | wxScreenDC *result = 0 ; | |
23869 | ||
23870 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
23871 | { | |
23872 | if (!wxPyCheckForApp()) SWIG_fail; | |
23873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23874 | result = (wxScreenDC *)new wxScreenDC(); | |
23875 | wxPyEndAllowThreads(__tstate); | |
23876 | if (PyErr_Occurred()) SWIG_fail; | |
23877 | } | |
23878 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
23879 | return resultobj; | |
23880 | fail: | |
23881 | return NULL; | |
23882 | } | |
23883 | ||
23884 | ||
23885 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23886 | PyObject *resultobj = 0; | |
23887 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23888 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23889 | bool result; | |
23890 | void *argp1 = 0 ; | |
23891 | int res1 = 0 ; | |
23892 | void *argp2 = 0 ; | |
23893 | int res2 = 0 ; | |
23894 | PyObject * obj0 = 0 ; | |
23895 | PyObject * obj1 = 0 ; | |
23896 | char * kwnames[] = { | |
23897 | (char *) "self",(char *) "window", NULL | |
23898 | }; | |
23899 | ||
23900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23902 | if (!SWIG_IsOK(res1)) { | |
23903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23904 | } | |
23905 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23906 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23907 | if (!SWIG_IsOK(res2)) { | |
23908 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
23909 | } | |
23910 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
23911 | { | |
23912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23913 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
23914 | wxPyEndAllowThreads(__tstate); | |
23915 | if (PyErr_Occurred()) SWIG_fail; | |
23916 | } | |
23917 | { | |
23918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23919 | } | |
23920 | return resultobj; | |
23921 | fail: | |
23922 | return NULL; | |
23923 | } | |
23924 | ||
23925 | ||
23926 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23927 | PyObject *resultobj = 0; | |
23928 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23929 | wxRect *arg2 = (wxRect *) NULL ; | |
23930 | bool result; | |
23931 | void *argp1 = 0 ; | |
23932 | int res1 = 0 ; | |
23933 | void *argp2 = 0 ; | |
23934 | int res2 = 0 ; | |
23935 | PyObject * obj0 = 0 ; | |
23936 | PyObject * obj1 = 0 ; | |
23937 | char * kwnames[] = { | |
23938 | (char *) "self",(char *) "rect", NULL | |
23939 | }; | |
23940 | ||
23941 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
23942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23943 | if (!SWIG_IsOK(res1)) { | |
23944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23945 | } | |
23946 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23947 | if (obj1) { | |
23948 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
23949 | if (!SWIG_IsOK(res2)) { | |
23950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
23951 | } | |
23952 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
23953 | } | |
23954 | { | |
23955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23956 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
23957 | wxPyEndAllowThreads(__tstate); | |
23958 | if (PyErr_Occurred()) SWIG_fail; | |
23959 | } | |
23960 | { | |
23961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23962 | } | |
23963 | return resultobj; | |
23964 | fail: | |
23965 | return NULL; | |
23966 | } | |
23967 | ||
23968 | ||
23969 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23970 | PyObject *resultobj = 0; | |
23971 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23972 | bool result; | |
23973 | void *argp1 = 0 ; | |
23974 | int res1 = 0 ; | |
23975 | PyObject *swig_obj[1] ; | |
23976 | ||
23977 | if (!args) SWIG_fail; | |
23978 | swig_obj[0] = args; | |
23979 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23980 | if (!SWIG_IsOK(res1)) { | |
23981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23982 | } | |
23983 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23984 | { | |
23985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23986 | result = (bool)(arg1)->EndDrawingOnTop(); | |
23987 | wxPyEndAllowThreads(__tstate); | |
23988 | if (PyErr_Occurred()) SWIG_fail; | |
23989 | } | |
23990 | { | |
23991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23992 | } | |
23993 | return resultobj; | |
23994 | fail: | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
23999 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24000 | PyObject *obj; | |
24001 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24002 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24003 | return SWIG_Py_Void(); | |
24004 | } | |
24005 | ||
24006 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24007 | return SWIG_Python_InitShadowInstance(args); | |
24008 | } | |
24009 | ||
24010 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24011 | PyObject *resultobj = 0; | |
24012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24013 | wxWindowDC *result = 0 ; | |
24014 | void *argp1 = 0 ; | |
24015 | int res1 = 0 ; | |
24016 | PyObject * obj0 = 0 ; | |
24017 | char * kwnames[] = { | |
24018 | (char *) "win", NULL | |
24019 | }; | |
24020 | ||
24021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24023 | if (!SWIG_IsOK(res1)) { | |
24024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24025 | } | |
24026 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24027 | { | |
24028 | if (!wxPyCheckForApp()) SWIG_fail; | |
24029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24030 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24035 | return resultobj; | |
24036 | fail: | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
24041 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24042 | PyObject *obj; | |
24043 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24044 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24045 | return SWIG_Py_Void(); | |
24046 | } | |
24047 | ||
24048 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24049 | return SWIG_Python_InitShadowInstance(args); | |
24050 | } | |
24051 | ||
24052 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24053 | PyObject *resultobj = 0; | |
24054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24055 | wxClientDC *result = 0 ; | |
24056 | void *argp1 = 0 ; | |
24057 | int res1 = 0 ; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | char * kwnames[] = { | |
24060 | (char *) "win", NULL | |
24061 | }; | |
24062 | ||
24063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24065 | if (!SWIG_IsOK(res1)) { | |
24066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24067 | } | |
24068 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24069 | { | |
24070 | if (!wxPyCheckForApp()) SWIG_fail; | |
24071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24072 | result = (wxClientDC *)new wxClientDC(arg1); | |
24073 | wxPyEndAllowThreads(__tstate); | |
24074 | if (PyErr_Occurred()) SWIG_fail; | |
24075 | } | |
24076 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24077 | return resultobj; | |
24078 | fail: | |
24079 | return NULL; | |
24080 | } | |
24081 | ||
24082 | ||
24083 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24084 | PyObject *obj; | |
24085 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24086 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24087 | return SWIG_Py_Void(); | |
24088 | } | |
24089 | ||
24090 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24091 | return SWIG_Python_InitShadowInstance(args); | |
24092 | } | |
24093 | ||
24094 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24095 | PyObject *resultobj = 0; | |
24096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24097 | wxPaintDC *result = 0 ; | |
24098 | void *argp1 = 0 ; | |
24099 | int res1 = 0 ; | |
24100 | PyObject * obj0 = 0 ; | |
24101 | char * kwnames[] = { | |
24102 | (char *) "win", NULL | |
24103 | }; | |
24104 | ||
24105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24107 | if (!SWIG_IsOK(res1)) { | |
24108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24109 | } | |
24110 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24111 | { | |
24112 | if (!wxPyCheckForApp()) SWIG_fail; | |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24114 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24115 | wxPyEndAllowThreads(__tstate); | |
24116 | if (PyErr_Occurred()) SWIG_fail; | |
24117 | } | |
24118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24119 | return resultobj; | |
24120 | fail: | |
24121 | return NULL; | |
24122 | } | |
24123 | ||
24124 | ||
24125 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24126 | PyObject *obj; | |
24127 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24128 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24129 | return SWIG_Py_Void(); | |
24130 | } | |
24131 | ||
24132 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24133 | return SWIG_Python_InitShadowInstance(args); | |
24134 | } | |
24135 | ||
0085ce49 RD |
24136 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24137 | PyObject *resultobj = 0; | |
24138 | wxDC *arg1 = (wxDC *) 0 ; | |
24139 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
24140 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
24141 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24142 | wxBufferedDC *result = 0 ; | |
24143 | void *argp1 = 0 ; | |
24144 | int res1 = 0 ; | |
24145 | void *argp2 = 0 ; | |
24146 | int res2 = 0 ; | |
24147 | int val3 ; | |
24148 | int ecode3 = 0 ; | |
24149 | ||
24150 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24152 | if (!SWIG_IsOK(res1)) { | |
24153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24154 | } | |
24155 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24156 | if (swig_obj[1]) { | |
24157 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24158 | if (!SWIG_IsOK(res2)) { | |
24159 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24160 | } |
0085ce49 RD |
24161 | if (!argp2) { |
24162 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24163 | } |
0085ce49 RD |
24164 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24165 | } | |
24166 | if (swig_obj[2]) { | |
24167 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24168 | if (!SWIG_IsOK(ecode3)) { | |
24169 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24170 | } | |
24171 | arg3 = static_cast< int >(val3); | |
24172 | } | |
24173 | { | |
24174 | if (!wxPyCheckForApp()) SWIG_fail; | |
24175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24176 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
24180 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24181 | return resultobj; | |
24182 | fail: | |
24183 | return NULL; | |
24184 | } | |
24185 | ||
24186 | ||
24187 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24188 | PyObject *resultobj = 0; | |
24189 | wxDC *arg1 = (wxDC *) 0 ; | |
24190 | wxSize *arg2 = 0 ; | |
24191 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24192 | wxBufferedDC *result = 0 ; | |
24193 | void *argp1 = 0 ; | |
24194 | int res1 = 0 ; | |
24195 | wxSize temp2 ; | |
24196 | int val3 ; | |
24197 | int ecode3 = 0 ; | |
24198 | ||
24199 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24201 | if (!SWIG_IsOK(res1)) { | |
24202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24203 | } | |
24204 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24205 | { | |
24206 | arg2 = &temp2; | |
24207 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24208 | } | |
24209 | if (swig_obj[2]) { | |
24210 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24211 | if (!SWIG_IsOK(ecode3)) { | |
24212 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24213 | } | |
24214 | arg3 = static_cast< int >(val3); | |
24215 | } | |
24216 | { | |
24217 | if (!wxPyCheckForApp()) SWIG_fail; | |
24218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24219 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24220 | wxPyEndAllowThreads(__tstate); | |
24221 | if (PyErr_Occurred()) SWIG_fail; | |
24222 | } | |
24223 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24224 | return resultobj; | |
24225 | fail: | |
24226 | return NULL; | |
24227 | } | |
24228 | ||
24229 | ||
24230 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24231 | int argc; | |
8e99bda9 | 24232 | PyObject *argv[4]; |
0085ce49 | 24233 | |
8e99bda9 | 24234 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
0085ce49 RD |
24235 | --argc; |
24236 | if ((argc >= 1) && (argc <= 3)) { | |
24237 | int _v = 0; | |
24238 | if (argc > 1) { | |
24239 | { | |
24240 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
24241 | _v = SWIG_CheckState(res); | |
24242 | } | |
24243 | if (!_v) goto check_1; | |
093d3ff1 | 24244 | } |
0085ce49 RD |
24245 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24246 | } | |
24247 | check_1: | |
24248 | ||
24249 | if ((argc >= 2) && (argc <= 3)) { | |
24250 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24251 | } | |
24252 | ||
24253 | fail: | |
24254 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24255 | return NULL; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24260 | PyObject *resultobj = 0; | |
24261 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24262 | void *argp1 = 0 ; | |
24263 | int res1 = 0 ; | |
24264 | PyObject *swig_obj[1] ; | |
24265 | ||
24266 | if (!args) SWIG_fail; | |
24267 | swig_obj[0] = args; | |
24268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
24269 | if (!SWIG_IsOK(res1)) { | |
24270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24271 | } | |
24272 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24273 | { | |
24274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24275 | delete arg1; | |
24276 | ||
24277 | wxPyEndAllowThreads(__tstate); | |
24278 | if (PyErr_Occurred()) SWIG_fail; | |
24279 | } | |
24280 | resultobj = SWIG_Py_Void(); | |
24281 | return resultobj; | |
24282 | fail: | |
24283 | return NULL; | |
24284 | } | |
24285 | ||
24286 | ||
24287 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24288 | PyObject *resultobj = 0; | |
24289 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24290 | void *argp1 = 0 ; | |
24291 | int res1 = 0 ; | |
24292 | PyObject *swig_obj[1] ; | |
24293 | ||
24294 | if (!args) SWIG_fail; | |
24295 | swig_obj[0] = args; | |
24296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24297 | if (!SWIG_IsOK(res1)) { | |
24298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24299 | } | |
24300 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24301 | { | |
24302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24303 | (arg1)->UnMask(); | |
24304 | wxPyEndAllowThreads(__tstate); | |
24305 | if (PyErr_Occurred()) SWIG_fail; | |
24306 | } | |
24307 | resultobj = SWIG_Py_Void(); | |
24308 | return resultobj; | |
24309 | fail: | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
24314 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24315 | PyObject *obj; | |
24316 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24317 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
24318 | return SWIG_Py_Void(); | |
24319 | } | |
24320 | ||
24321 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24322 | return SWIG_Python_InitShadowInstance(args); | |
24323 | } | |
24324 | ||
24325 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24326 | PyObject *resultobj = 0; | |
24327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24328 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
24329 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
24330 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24331 | wxBufferedPaintDC *result = 0 ; | |
24332 | void *argp1 = 0 ; | |
24333 | int res1 = 0 ; | |
24334 | void *argp2 = 0 ; | |
24335 | int res2 = 0 ; | |
24336 | int val3 ; | |
24337 | int ecode3 = 0 ; | |
24338 | PyObject * obj0 = 0 ; | |
24339 | PyObject * obj1 = 0 ; | |
24340 | PyObject * obj2 = 0 ; | |
24341 | char * kwnames[] = { | |
24342 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
24343 | }; | |
24344 | ||
24345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24347 | if (!SWIG_IsOK(res1)) { | |
24348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24349 | } | |
24350 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24351 | if (obj1) { | |
24352 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24353 | if (!SWIG_IsOK(res2)) { | |
24354 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24355 | } |
0085ce49 RD |
24356 | if (!argp2) { |
24357 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24358 | } |
0085ce49 RD |
24359 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24360 | } | |
24361 | if (obj2) { | |
24362 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24363 | if (!SWIG_IsOK(ecode3)) { | |
24364 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
24365 | } | |
24366 | arg3 = static_cast< int >(val3); | |
24367 | } | |
24368 | { | |
24369 | if (!wxPyCheckForApp()) SWIG_fail; | |
24370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24371 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
24372 | wxPyEndAllowThreads(__tstate); | |
24373 | if (PyErr_Occurred()) SWIG_fail; | |
24374 | } | |
24375 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
24376 | return resultobj; | |
24377 | fail: | |
24378 | return NULL; | |
24379 | } | |
24380 | ||
24381 | ||
24382 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24383 | PyObject *obj; | |
24384 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24385 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
24386 | return SWIG_Py_Void(); | |
24387 | } | |
24388 | ||
24389 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24390 | return SWIG_Python_InitShadowInstance(args); | |
24391 | } | |
24392 | ||
24f6c4e8 | 24393 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
24394 | PyObject *resultobj = 0; |
24395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 24396 | wxAutoBufferedPaintDC *result = 0 ; |
0085ce49 RD |
24397 | void *argp1 = 0 ; |
24398 | int res1 = 0 ; | |
24399 | PyObject * obj0 = 0 ; | |
24400 | char * kwnames[] = { | |
24401 | (char *) "win", NULL | |
24402 | }; | |
24403 | ||
24f6c4e8 | 24404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
0085ce49 RD |
24405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
24406 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 24407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
0085ce49 RD |
24408 | } |
24409 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24410 | { | |
0085ce49 | 24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 24412 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
0085ce49 RD |
24413 | wxPyEndAllowThreads(__tstate); |
24414 | if (PyErr_Occurred()) SWIG_fail; | |
24415 | } | |
24f6c4e8 | 24416 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
24417 | return resultobj; |
24418 | fail: | |
24419 | return NULL; | |
24420 | } | |
24421 | ||
24422 | ||
24f6c4e8 | 24423 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24424 | PyObject *obj; |
24425 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 24426 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
0085ce49 RD |
24427 | return SWIG_Py_Void(); |
24428 | } | |
24429 | ||
24f6c4e8 | 24430 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
24431 | return SWIG_Python_InitShadowInstance(args); |
24432 | } | |
24433 | ||
8e99bda9 RD |
24434 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24435 | PyObject *resultobj = 0; | |
24436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24437 | wxDC *result = 0 ; | |
24438 | void *argp1 = 0 ; | |
24439 | int res1 = 0 ; | |
24440 | PyObject * obj0 = 0 ; | |
24441 | char * kwnames[] = { | |
24442 | (char *) "window", NULL | |
24443 | }; | |
24444 | ||
24445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
24446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24447 | if (!SWIG_IsOK(res1)) { | |
24448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24449 | } | |
24450 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24451 | { | |
24452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24453 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
24454 | wxPyEndAllowThreads(__tstate); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
24457 | { | |
24458 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
24459 | } | |
24460 | return resultobj; | |
24461 | fail: | |
24462 | return NULL; | |
24463 | } | |
24464 | ||
24465 | ||
0085ce49 RD |
24466 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24467 | PyObject *resultobj = 0; | |
24468 | wxDC *arg1 = 0 ; | |
24469 | bool arg2 ; | |
24470 | wxMirrorDC *result = 0 ; | |
24471 | void *argp1 = 0 ; | |
24472 | int res1 = 0 ; | |
24473 | bool val2 ; | |
24474 | int ecode2 = 0 ; | |
24475 | PyObject * obj0 = 0 ; | |
24476 | PyObject * obj1 = 0 ; | |
24477 | char * kwnames[] = { | |
24478 | (char *) "dc",(char *) "mirror", NULL | |
24479 | }; | |
24480 | ||
24481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
24482 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24483 | if (!SWIG_IsOK(res1)) { | |
24484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24485 | } | |
24486 | if (!argp1) { | |
24487 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24488 | } | |
24489 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24490 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24491 | if (!SWIG_IsOK(ecode2)) { | |
24492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
24493 | } | |
24494 | arg2 = static_cast< bool >(val2); | |
24495 | { | |
24496 | if (!wxPyCheckForApp()) SWIG_fail; | |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
24499 | wxPyEndAllowThreads(__tstate); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | } | |
24502 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
24503 | return resultobj; | |
24504 | fail: | |
24505 | return NULL; | |
24506 | } | |
24507 | ||
24508 | ||
24509 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24510 | PyObject *obj; | |
24511 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24512 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
24513 | return SWIG_Py_Void(); | |
24514 | } | |
24515 | ||
24516 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24517 | return SWIG_Python_InitShadowInstance(args); | |
24518 | } | |
24519 | ||
24520 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24521 | PyObject *resultobj = 0; | |
24522 | wxPrintData *arg1 = 0 ; | |
24523 | wxPostScriptDC *result = 0 ; | |
24524 | void *argp1 = 0 ; | |
24525 | int res1 = 0 ; | |
24526 | PyObject * obj0 = 0 ; | |
24527 | char * kwnames[] = { | |
24528 | (char *) "printData", NULL | |
24529 | }; | |
24530 | ||
24531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
24532 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24533 | if (!SWIG_IsOK(res1)) { | |
24534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24535 | } | |
24536 | if (!argp1) { | |
24537 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24538 | } | |
24539 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24540 | { | |
24541 | if (!wxPyCheckForApp()) SWIG_fail; | |
24542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24543 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
24544 | wxPyEndAllowThreads(__tstate); | |
24545 | if (PyErr_Occurred()) SWIG_fail; | |
24546 | } | |
24547 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
24548 | return resultobj; | |
24549 | fail: | |
24550 | return NULL; | |
24551 | } | |
24552 | ||
24553 | ||
24554 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24555 | PyObject *resultobj = 0; | |
24556 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24557 | wxPrintData *result = 0 ; | |
24558 | void *argp1 = 0 ; | |
24559 | int res1 = 0 ; | |
24560 | PyObject *swig_obj[1] ; | |
24561 | ||
24562 | if (!args) SWIG_fail; | |
24563 | swig_obj[0] = args; | |
24564 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24565 | if (!SWIG_IsOK(res1)) { | |
24566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24567 | } | |
24568 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24569 | { | |
24570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 24571 | { |
0085ce49 RD |
24572 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24573 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 24574 | } |
0085ce49 RD |
24575 | wxPyEndAllowThreads(__tstate); |
24576 | if (PyErr_Occurred()) SWIG_fail; | |
24577 | } | |
24578 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24579 | return resultobj; | |
24580 | fail: | |
24581 | return NULL; | |
24582 | } | |
24583 | ||
24584 | ||
24585 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24586 | PyObject *resultobj = 0; | |
24587 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24588 | wxPrintData *arg2 = 0 ; | |
24589 | void *argp1 = 0 ; | |
24590 | int res1 = 0 ; | |
24591 | void *argp2 = 0 ; | |
24592 | int res2 = 0 ; | |
24593 | PyObject * obj0 = 0 ; | |
24594 | PyObject * obj1 = 0 ; | |
24595 | char * kwnames[] = { | |
24596 | (char *) "self",(char *) "data", NULL | |
24597 | }; | |
24598 | ||
24599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24601 | if (!SWIG_IsOK(res1)) { | |
24602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24603 | } | |
24604 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24605 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24606 | if (!SWIG_IsOK(res2)) { | |
24607 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24608 | } | |
24609 | if (!argp2) { | |
24610 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24611 | } | |
24612 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
24613 | { | |
24614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24615 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
24616 | wxPyEndAllowThreads(__tstate); | |
24617 | if (PyErr_Occurred()) SWIG_fail; | |
24618 | } | |
24619 | resultobj = SWIG_Py_Void(); | |
24620 | return resultobj; | |
24621 | fail: | |
24622 | return NULL; | |
24623 | } | |
24624 | ||
24625 | ||
24626 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24627 | PyObject *resultobj = 0; | |
24628 | int arg1 ; | |
24629 | int val1 ; | |
24630 | int ecode1 = 0 ; | |
24631 | PyObject * obj0 = 0 ; | |
24632 | char * kwnames[] = { | |
24633 | (char *) "ppi", NULL | |
24634 | }; | |
24635 | ||
24636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
24637 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24638 | if (!SWIG_IsOK(ecode1)) { | |
24639 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
24640 | } | |
24641 | arg1 = static_cast< int >(val1); | |
24642 | { | |
24643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24644 | wxPostScriptDC::SetResolution(arg1); | |
24645 | wxPyEndAllowThreads(__tstate); | |
24646 | if (PyErr_Occurred()) SWIG_fail; | |
24647 | } | |
24648 | resultobj = SWIG_Py_Void(); | |
24649 | return resultobj; | |
24650 | fail: | |
24651 | return NULL; | |
24652 | } | |
24653 | ||
24654 | ||
24655 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24656 | PyObject *resultobj = 0; | |
24657 | int result; | |
24658 | ||
24659 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
24660 | { | |
24661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24662 | result = (int)wxPostScriptDC::GetResolution(); | |
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
24666 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24667 | return resultobj; | |
24668 | fail: | |
24669 | return NULL; | |
24670 | } | |
24671 | ||
24672 | ||
24673 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24674 | PyObject *obj; | |
24675 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24676 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
24677 | return SWIG_Py_Void(); | |
24678 | } | |
24679 | ||
24680 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24681 | return SWIG_Python_InitShadowInstance(args); | |
24682 | } | |
24683 | ||
24684 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24685 | PyObject *resultobj = 0; | |
24686 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24687 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24688 | wxMetaFile *result = 0 ; | |
24689 | bool temp1 = false ; | |
24690 | PyObject * obj0 = 0 ; | |
24691 | char * kwnames[] = { | |
24692 | (char *) "filename", NULL | |
24693 | }; | |
24694 | ||
24695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
24696 | if (obj0) { | |
093d3ff1 | 24697 | { |
0085ce49 RD |
24698 | arg1 = wxString_in_helper(obj0); |
24699 | if (arg1 == NULL) SWIG_fail; | |
24700 | temp1 = true; | |
093d3ff1 | 24701 | } |
0085ce49 RD |
24702 | } |
24703 | { | |
24704 | if (!wxPyCheckForApp()) SWIG_fail; | |
24705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24706 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
24707 | wxPyEndAllowThreads(__tstate); | |
24708 | if (PyErr_Occurred()) SWIG_fail; | |
24709 | } | |
24710 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
24711 | { | |
24712 | if (temp1) | |
24713 | delete arg1; | |
24714 | } | |
24715 | return resultobj; | |
24716 | fail: | |
24717 | { | |
24718 | if (temp1) | |
24719 | delete arg1; | |
24720 | } | |
24721 | return NULL; | |
24722 | } | |
24723 | ||
24724 | ||
24725 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24726 | PyObject *obj; | |
24727 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24728 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
24729 | return SWIG_Py_Void(); | |
24730 | } | |
24731 | ||
24732 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24733 | return SWIG_Python_InitShadowInstance(args); | |
24734 | } | |
24735 | ||
24736 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24737 | PyObject *resultobj = 0; | |
24738 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24739 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24740 | int arg2 = (int) 0 ; | |
24741 | int arg3 = (int) 0 ; | |
24742 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
24743 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
24744 | wxMetaFileDC *result = 0 ; | |
24745 | bool temp1 = false ; | |
24746 | int val2 ; | |
24747 | int ecode2 = 0 ; | |
24748 | int val3 ; | |
24749 | int ecode3 = 0 ; | |
24750 | bool temp4 = false ; | |
24751 | PyObject * obj0 = 0 ; | |
24752 | PyObject * obj1 = 0 ; | |
24753 | PyObject * obj2 = 0 ; | |
24754 | PyObject * obj3 = 0 ; | |
24755 | char * kwnames[] = { | |
24756 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
24757 | }; | |
24758 | ||
24759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24760 | if (obj0) { | |
093d3ff1 | 24761 | { |
0085ce49 RD |
24762 | arg1 = wxString_in_helper(obj0); |
24763 | if (arg1 == NULL) SWIG_fail; | |
24764 | temp1 = true; | |
093d3ff1 | 24765 | } |
0085ce49 RD |
24766 | } |
24767 | if (obj1) { | |
24768 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24769 | if (!SWIG_IsOK(ecode2)) { | |
24770 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
24771 | } | |
24772 | arg2 = static_cast< int >(val2); | |
24773 | } | |
24774 | if (obj2) { | |
24775 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24776 | if (!SWIG_IsOK(ecode3)) { | |
24777 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
24778 | } | |
24779 | arg3 = static_cast< int >(val3); | |
24780 | } | |
24781 | if (obj3) { | |
093d3ff1 | 24782 | { |
0085ce49 RD |
24783 | arg4 = wxString_in_helper(obj3); |
24784 | if (arg4 == NULL) SWIG_fail; | |
24785 | temp4 = true; | |
093d3ff1 | 24786 | } |
0085ce49 RD |
24787 | } |
24788 | { | |
24789 | if (!wxPyCheckForApp()) SWIG_fail; | |
24790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24791 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
24796 | { | |
24797 | if (temp1) | |
24798 | delete arg1; | |
24799 | } | |
24800 | { | |
24801 | if (temp4) | |
24802 | delete arg4; | |
24803 | } | |
24804 | return resultobj; | |
24805 | fail: | |
24806 | { | |
24807 | if (temp1) | |
24808 | delete arg1; | |
24809 | } | |
24810 | { | |
24811 | if (temp4) | |
24812 | delete arg4; | |
24813 | } | |
24814 | return NULL; | |
24815 | } | |
24816 | ||
24817 | ||
24818 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24819 | PyObject *obj; | |
24820 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24821 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
24822 | return SWIG_Py_Void(); | |
24823 | } | |
24824 | ||
24825 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24826 | return SWIG_Python_InitShadowInstance(args); | |
24827 | } | |
24828 | ||
24829 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24830 | PyObject *resultobj = 0; | |
24831 | wxPrintData *arg1 = 0 ; | |
24832 | wxPrinterDC *result = 0 ; | |
24833 | void *argp1 = 0 ; | |
24834 | int res1 = 0 ; | |
24835 | PyObject * obj0 = 0 ; | |
24836 | char * kwnames[] = { | |
24837 | (char *) "printData", NULL | |
24838 | }; | |
24839 | ||
24840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
24841 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24842 | if (!SWIG_IsOK(res1)) { | |
24843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24844 | } | |
24845 | if (!argp1) { | |
24846 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24847 | } | |
24848 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24849 | { | |
24850 | if (!wxPyCheckForApp()) SWIG_fail; | |
24851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24852 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
24853 | wxPyEndAllowThreads(__tstate); | |
24854 | if (PyErr_Occurred()) SWIG_fail; | |
24855 | } | |
24856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
24857 | return resultobj; | |
24858 | fail: | |
24859 | return NULL; | |
24860 | } | |
24861 | ||
24862 | ||
24863 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24864 | PyObject *obj; | |
24865 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24866 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
24867 | return SWIG_Py_Void(); | |
24868 | } | |
24869 | ||
24870 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24871 | return SWIG_Python_InitShadowInstance(args); | |
24872 | } | |
24873 | ||
70d7cb34 RD |
24874 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24875 | PyObject *resultobj = 0; | |
24876 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
24877 | wxGraphicsObject *result = 0 ; | |
24878 | void *argp1 = 0 ; | |
24879 | int res1 = 0 ; | |
24880 | PyObject * obj0 = 0 ; | |
24881 | char * kwnames[] = { | |
24882 | (char *) "renderer", NULL | |
24883 | }; | |
24884 | ||
24885 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
24886 | if (obj0) { | |
24887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
24888 | if (!SWIG_IsOK(res1)) { | |
24889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
24890 | } | |
24891 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
24892 | } | |
24893 | { | |
24894 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
24895 | if (PyErr_Occurred()) SWIG_fail; | |
24896 | } | |
24897 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
24898 | return resultobj; | |
24899 | fail: | |
24900 | return NULL; | |
24901 | } | |
24902 | ||
24903 | ||
24904 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24905 | PyObject *resultobj = 0; | |
24906 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
24907 | void *argp1 = 0 ; | |
24908 | int res1 = 0 ; | |
24909 | PyObject *swig_obj[1] ; | |
24910 | ||
24911 | if (!args) SWIG_fail; | |
24912 | swig_obj[0] = args; | |
24913 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
24914 | if (!SWIG_IsOK(res1)) { | |
24915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
24916 | } | |
24917 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
24918 | { | |
24919 | delete arg1; | |
24920 | ||
24921 | if (PyErr_Occurred()) SWIG_fail; | |
24922 | } | |
24923 | resultobj = SWIG_Py_Void(); | |
24924 | return resultobj; | |
24925 | fail: | |
24926 | return NULL; | |
24927 | } | |
24928 | ||
24929 | ||
24930 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24931 | PyObject *resultobj = 0; | |
24932 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
24933 | bool result; | |
24934 | void *argp1 = 0 ; | |
24935 | int res1 = 0 ; | |
24936 | PyObject *swig_obj[1] ; | |
24937 | ||
24938 | if (!args) SWIG_fail; | |
24939 | swig_obj[0] = args; | |
24940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
24941 | if (!SWIG_IsOK(res1)) { | |
24942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
24943 | } | |
24944 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
24945 | { | |
24946 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
24947 | if (PyErr_Occurred()) SWIG_fail; | |
24948 | } | |
24949 | { | |
24950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24951 | } | |
24952 | return resultobj; | |
24953 | fail: | |
24954 | return NULL; | |
24955 | } | |
24956 | ||
24957 | ||
24958 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24959 | PyObject *resultobj = 0; | |
24960 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
24961 | wxGraphicsRenderer *result = 0 ; | |
24962 | void *argp1 = 0 ; | |
24963 | int res1 = 0 ; | |
24964 | PyObject *swig_obj[1] ; | |
24965 | ||
24966 | if (!args) SWIG_fail; | |
24967 | swig_obj[0] = args; | |
24968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
24969 | if (!SWIG_IsOK(res1)) { | |
24970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
24971 | } | |
24972 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
24973 | { | |
24974 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
24975 | if (PyErr_Occurred()) SWIG_fail; | |
24976 | } | |
24977 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
24978 | return resultobj; | |
24979 | fail: | |
24980 | return NULL; | |
24981 | } | |
24982 | ||
24983 | ||
24984 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24985 | PyObject *obj; | |
24986 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24987 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
24988 | return SWIG_Py_Void(); | |
24989 | } | |
24990 | ||
24991 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24992 | return SWIG_Python_InitShadowInstance(args); | |
24993 | } | |
24994 | ||
24995 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24996 | PyObject *resultobj = 0; | |
24997 | wxGraphicsPen *result = 0 ; | |
24998 | ||
24999 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
25000 | { | |
25001 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
25004 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
25005 | return resultobj; | |
25006 | fail: | |
25007 | return NULL; | |
25008 | } | |
25009 | ||
25010 | ||
25011 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25012 | PyObject *resultobj = 0; | |
25013 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
25014 | void *argp1 = 0 ; | |
25015 | int res1 = 0 ; | |
25016 | PyObject *swig_obj[1] ; | |
25017 | ||
25018 | if (!args) SWIG_fail; | |
25019 | swig_obj[0] = args; | |
25020 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
25021 | if (!SWIG_IsOK(res1)) { | |
25022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
25023 | } | |
25024 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
25025 | { | |
25026 | delete arg1; | |
25027 | ||
25028 | if (PyErr_Occurred()) SWIG_fail; | |
25029 | } | |
25030 | resultobj = SWIG_Py_Void(); | |
25031 | return resultobj; | |
25032 | fail: | |
25033 | return NULL; | |
25034 | } | |
25035 | ||
25036 | ||
25037 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25038 | PyObject *obj; | |
25039 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25040 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
25041 | return SWIG_Py_Void(); | |
25042 | } | |
25043 | ||
25044 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25045 | return SWIG_Python_InitShadowInstance(args); | |
25046 | } | |
25047 | ||
25048 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25049 | PyObject *resultobj = 0; | |
25050 | wxGraphicsBrush *result = 0 ; | |
25051 | ||
25052 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
25053 | { | |
25054 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
25055 | if (PyErr_Occurred()) SWIG_fail; | |
25056 | } | |
25057 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
25058 | return resultobj; | |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
25064 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25065 | PyObject *resultobj = 0; | |
25066 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
25067 | void *argp1 = 0 ; | |
25068 | int res1 = 0 ; | |
25069 | PyObject *swig_obj[1] ; | |
25070 | ||
25071 | if (!args) SWIG_fail; | |
25072 | swig_obj[0] = args; | |
25073 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
25074 | if (!SWIG_IsOK(res1)) { | |
25075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
25076 | } | |
25077 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
25078 | { | |
25079 | delete arg1; | |
25080 | ||
25081 | if (PyErr_Occurred()) SWIG_fail; | |
25082 | } | |
25083 | resultobj = SWIG_Py_Void(); | |
25084 | return resultobj; | |
25085 | fail: | |
25086 | return NULL; | |
25087 | } | |
25088 | ||
25089 | ||
25090 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25091 | PyObject *obj; | |
25092 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25093 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
25094 | return SWIG_Py_Void(); | |
25095 | } | |
25096 | ||
25097 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25098 | return SWIG_Python_InitShadowInstance(args); | |
25099 | } | |
25100 | ||
25101 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25102 | PyObject *resultobj = 0; | |
25103 | wxGraphicsFont *result = 0 ; | |
25104 | ||
25105 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
25106 | { | |
25107 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
25108 | if (PyErr_Occurred()) SWIG_fail; | |
25109 | } | |
25110 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | return NULL; | |
25114 | } | |
25115 | ||
25116 | ||
25117 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25118 | PyObject *resultobj = 0; | |
25119 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
25120 | void *argp1 = 0 ; | |
25121 | int res1 = 0 ; | |
25122 | PyObject *swig_obj[1] ; | |
25123 | ||
25124 | if (!args) SWIG_fail; | |
25125 | swig_obj[0] = args; | |
25126 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
25127 | if (!SWIG_IsOK(res1)) { | |
25128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
25129 | } | |
25130 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
25131 | { | |
25132 | delete arg1; | |
25133 | ||
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | } | |
25136 | resultobj = SWIG_Py_Void(); | |
25137 | return resultobj; | |
25138 | fail: | |
25139 | return NULL; | |
25140 | } | |
25141 | ||
25142 | ||
25143 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25144 | PyObject *obj; | |
25145 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25146 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
25147 | return SWIG_Py_Void(); | |
25148 | } | |
25149 | ||
25150 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25151 | return SWIG_Python_InitShadowInstance(args); | |
25152 | } | |
25153 | ||
5c8c7dd3 | 25154 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25155 | PyObject *resultobj = 0; |
5c8c7dd3 | 25156 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25157 | void *argp1 = 0 ; |
25158 | int res1 = 0 ; | |
25159 | PyObject *swig_obj[1] ; | |
25160 | ||
25161 | if (!args) SWIG_fail; | |
25162 | swig_obj[0] = args; | |
5c8c7dd3 | 25163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 25164 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25166 | } |
5c8c7dd3 | 25167 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25168 | { |
0085ce49 RD |
25169 | delete arg1; |
25170 | ||
0085ce49 RD |
25171 | if (PyErr_Occurred()) SWIG_fail; |
25172 | } | |
25173 | resultobj = SWIG_Py_Void(); | |
25174 | return resultobj; | |
25175 | fail: | |
25176 | return NULL; | |
25177 | } | |
25178 | ||
25179 | ||
5c8c7dd3 | 25180 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25181 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25182 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25183 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
25184 | void *argp1 = 0 ; |
25185 | int res1 = 0 ; | |
5c8c7dd3 RD |
25186 | void *argp2 = 0 ; |
25187 | int res2 = 0 ; | |
25188 | PyObject * obj0 = 0 ; | |
25189 | PyObject * obj1 = 0 ; | |
25190 | char * kwnames[] = { | |
25191 | (char *) "self",(char *) "t", NULL | |
25192 | }; | |
70d7cb34 | 25193 | |
5c8c7dd3 RD |
25194 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
25195 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25196 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25198 | } |
5c8c7dd3 RD |
25199 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25200 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25201 | if (!SWIG_IsOK(res2)) { | |
25202 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25203 | } | |
25204 | if (!argp2) { | |
25205 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25206 | } | |
25207 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 25208 | { |
5c8c7dd3 | 25209 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25210 | if (PyErr_Occurred()) SWIG_fail; |
25211 | } | |
5c8c7dd3 | 25212 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
25213 | return resultobj; |
25214 | fail: | |
25215 | return NULL; | |
25216 | } | |
25217 | ||
25218 | ||
5c8c7dd3 | 25219 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25220 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25221 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25222 | wxGraphicsMatrix *arg2 = 0 ; | |
0085ce49 RD |
25223 | void *argp1 = 0 ; |
25224 | int res1 = 0 ; | |
5c8c7dd3 RD |
25225 | void *argp2 = 0 ; |
25226 | int res2 = 0 ; | |
25227 | PyObject * obj0 = 0 ; | |
25228 | PyObject * obj1 = 0 ; | |
25229 | char * kwnames[] = { | |
25230 | (char *) "self",(char *) "t", NULL | |
25231 | }; | |
0085ce49 | 25232 | |
5c8c7dd3 RD |
25233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail; |
25234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25235 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25237 | } |
5c8c7dd3 RD |
25238 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25239 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25240 | if (!SWIG_IsOK(res2)) { | |
25241 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25242 | } | |
25243 | if (!argp2) { | |
25244 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25245 | } | |
25246 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
0085ce49 | 25247 | { |
5c8c7dd3 | 25248 | wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2); |
0085ce49 RD |
25249 | if (PyErr_Occurred()) SWIG_fail; |
25250 | } | |
72ef6efb | 25251 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25252 | return resultobj; |
25253 | fail: | |
25254 | return NULL; | |
25255 | } | |
25256 | ||
25257 | ||
5c8c7dd3 | 25258 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25259 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25260 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25261 | wxDouble arg2 = (wxDouble) 1.0 ; | |
25262 | wxDouble arg3 = (wxDouble) 0.0 ; | |
25263 | wxDouble arg4 = (wxDouble) 0.0 ; | |
25264 | wxDouble arg5 = (wxDouble) 1.0 ; | |
25265 | wxDouble arg6 = (wxDouble) 0.0 ; | |
25266 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
25267 | void *argp1 = 0 ; |
25268 | int res1 = 0 ; | |
5c8c7dd3 RD |
25269 | double val2 ; |
25270 | int ecode2 = 0 ; | |
25271 | double val3 ; | |
25272 | int ecode3 = 0 ; | |
25273 | double val4 ; | |
25274 | int ecode4 = 0 ; | |
25275 | double val5 ; | |
25276 | int ecode5 = 0 ; | |
25277 | double val6 ; | |
25278 | int ecode6 = 0 ; | |
25279 | double val7 ; | |
25280 | int ecode7 = 0 ; | |
25281 | PyObject * obj0 = 0 ; | |
25282 | PyObject * obj1 = 0 ; | |
25283 | PyObject * obj2 = 0 ; | |
25284 | PyObject * obj3 = 0 ; | |
25285 | PyObject * obj4 = 0 ; | |
25286 | PyObject * obj5 = 0 ; | |
25287 | PyObject * obj6 = 0 ; | |
25288 | char * kwnames[] = { | |
25289 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
25290 | }; | |
70d7cb34 | 25291 | |
5c8c7dd3 RD |
25292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
25293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25294 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25296 | } |
5c8c7dd3 RD |
25297 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25298 | if (obj1) { | |
25299 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25300 | if (!SWIG_IsOK(ecode2)) { | |
25301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25302 | } | |
25303 | arg2 = static_cast< wxDouble >(val2); | |
25304 | } | |
25305 | if (obj2) { | |
25306 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25307 | if (!SWIG_IsOK(ecode3)) { | |
25308 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25309 | } | |
25310 | arg3 = static_cast< wxDouble >(val3); | |
25311 | } | |
25312 | if (obj3) { | |
25313 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25314 | if (!SWIG_IsOK(ecode4)) { | |
25315 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25316 | } | |
25317 | arg4 = static_cast< wxDouble >(val4); | |
25318 | } | |
25319 | if (obj4) { | |
25320 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25321 | if (!SWIG_IsOK(ecode5)) { | |
25322 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25323 | } | |
25324 | arg5 = static_cast< wxDouble >(val5); | |
25325 | } | |
25326 | if (obj5) { | |
25327 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25328 | if (!SWIG_IsOK(ecode6)) { | |
25329 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25330 | } | |
25331 | arg6 = static_cast< wxDouble >(val6); | |
25332 | } | |
25333 | if (obj6) { | |
25334 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
25335 | if (!SWIG_IsOK(ecode7)) { | |
25336 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25337 | } | |
25338 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
25339 | } |
25340 | { | |
5c8c7dd3 | 25341 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
25342 | if (PyErr_Occurred()) SWIG_fail; |
25343 | } | |
25344 | resultobj = SWIG_Py_Void(); | |
25345 | return resultobj; | |
25346 | fail: | |
25347 | return NULL; | |
25348 | } | |
25349 | ||
25350 | ||
5c8c7dd3 | 25351 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25352 | PyObject *resultobj = 0; |
5c8c7dd3 | 25353 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25354 | void *argp1 = 0 ; |
25355 | int res1 = 0 ; | |
5c8c7dd3 | 25356 | PyObject *swig_obj[1] ; |
0085ce49 | 25357 | |
5c8c7dd3 RD |
25358 | if (!args) SWIG_fail; |
25359 | swig_obj[0] = args; | |
25360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 25361 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25363 | } |
5c8c7dd3 | 25364 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25365 | { |
5c8c7dd3 | 25366 | (arg1)->Invert(); |
0085ce49 RD |
25367 | if (PyErr_Occurred()) SWIG_fail; |
25368 | } | |
72ef6efb | 25369 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25370 | return resultobj; |
25371 | fail: | |
25372 | return NULL; | |
25373 | } | |
25374 | ||
25375 | ||
5c8c7dd3 | 25376 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25377 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25378 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25379 | wxGraphicsMatrix *arg2 = 0 ; | |
25380 | bool result; | |
70d7cb34 RD |
25381 | void *argp1 = 0 ; |
25382 | int res1 = 0 ; | |
5c8c7dd3 RD |
25383 | void *argp2 = 0 ; |
25384 | int res2 = 0 ; | |
25385 | PyObject * obj0 = 0 ; | |
25386 | PyObject * obj1 = 0 ; | |
25387 | char * kwnames[] = { | |
25388 | (char *) "self",(char *) "t", NULL | |
25389 | }; | |
70d7cb34 | 25390 | |
5c8c7dd3 RD |
25391 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
25392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25393 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 25395 | } |
5c8c7dd3 RD |
25396 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25397 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
25398 | if (!SWIG_IsOK(res2)) { | |
25399 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
25400 | } | |
25401 | if (!argp2) { | |
25402 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 25403 | } |
5c8c7dd3 | 25404 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 25405 | { |
5c8c7dd3 | 25406 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
25407 | if (PyErr_Occurred()) SWIG_fail; |
25408 | } | |
5c8c7dd3 RD |
25409 | { |
25410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25411 | } | |
70d7cb34 RD |
25412 | return resultobj; |
25413 | fail: | |
25414 | return NULL; | |
25415 | } | |
25416 | ||
25417 | ||
5c8c7dd3 RD |
25418 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25419 | PyObject *resultobj = 0; | |
25420 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25421 | bool result; | |
25422 | void *argp1 = 0 ; | |
25423 | int res1 = 0 ; | |
25424 | PyObject *swig_obj[1] ; | |
70d7cb34 | 25425 | |
5c8c7dd3 RD |
25426 | if (!args) SWIG_fail; |
25427 | swig_obj[0] = args; | |
25428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25429 | if (!SWIG_IsOK(res1)) { | |
25430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
70d7cb34 | 25431 | } |
5c8c7dd3 RD |
25432 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25433 | { | |
25434 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); | |
25435 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 25436 | } |
5c8c7dd3 RD |
25437 | { |
25438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25439 | } | |
25440 | return resultobj; | |
70d7cb34 | 25441 | fail: |
70d7cb34 RD |
25442 | return NULL; |
25443 | } | |
25444 | ||
25445 | ||
5c8c7dd3 | 25446 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25447 | PyObject *resultobj = 0; |
5c8c7dd3 | 25448 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
25449 | wxDouble arg2 ; |
25450 | wxDouble arg3 ; | |
0085ce49 RD |
25451 | void *argp1 = 0 ; |
25452 | int res1 = 0 ; | |
72ef6efb RD |
25453 | double val2 ; |
25454 | int ecode2 = 0 ; | |
25455 | double val3 ; | |
25456 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
25457 | PyObject * obj0 = 0 ; |
25458 | PyObject * obj1 = 0 ; | |
25459 | PyObject * obj2 = 0 ; | |
25460 | char * kwnames[] = { | |
25461 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
25462 | }; | |
72ef6efb | 25463 | |
5c8c7dd3 RD |
25464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25466 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 25468 | } |
5c8c7dd3 RD |
25469 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25470 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 25471 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25472 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
25473 | } |
25474 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25475 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 25476 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25477 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
25478 | } |
25479 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 25480 | { |
5c8c7dd3 | 25481 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
25482 | if (PyErr_Occurred()) SWIG_fail; |
25483 | } | |
25484 | resultobj = SWIG_Py_Void(); | |
25485 | return resultobj; | |
25486 | fail: | |
25487 | return NULL; | |
25488 | } | |
25489 | ||
25490 | ||
5c8c7dd3 | 25491 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25492 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25493 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25494 | wxDouble arg2 ; | |
25495 | wxDouble arg3 ; | |
70d7cb34 RD |
25496 | void *argp1 = 0 ; |
25497 | int res1 = 0 ; | |
5c8c7dd3 RD |
25498 | double val2 ; |
25499 | int ecode2 = 0 ; | |
25500 | double val3 ; | |
25501 | int ecode3 = 0 ; | |
25502 | PyObject * obj0 = 0 ; | |
25503 | PyObject * obj1 = 0 ; | |
25504 | PyObject * obj2 = 0 ; | |
25505 | char * kwnames[] = { | |
25506 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
25507 | }; | |
70d7cb34 | 25508 | |
5c8c7dd3 RD |
25509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25511 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25513 | } |
5c8c7dd3 RD |
25514 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25515 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25516 | if (!SWIG_IsOK(ecode2)) { | |
25517 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25518 | } | |
25519 | arg2 = static_cast< wxDouble >(val2); | |
25520 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25521 | if (!SWIG_IsOK(ecode3)) { | |
25522 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25523 | } | |
25524 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25525 | { |
5c8c7dd3 | 25526 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
25527 | if (PyErr_Occurred()) SWIG_fail; |
25528 | } | |
25529 | resultobj = SWIG_Py_Void(); | |
25530 | return resultobj; | |
25531 | fail: | |
25532 | return NULL; | |
25533 | } | |
25534 | ||
25535 | ||
5c8c7dd3 | 25536 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25537 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25538 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25539 | wxDouble arg2 ; | |
70d7cb34 RD |
25540 | void *argp1 = 0 ; |
25541 | int res1 = 0 ; | |
5c8c7dd3 RD |
25542 | double val2 ; |
25543 | int ecode2 = 0 ; | |
70d7cb34 RD |
25544 | PyObject * obj0 = 0 ; |
25545 | PyObject * obj1 = 0 ; | |
25546 | char * kwnames[] = { | |
5c8c7dd3 | 25547 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
25548 | }; |
25549 | ||
5c8c7dd3 RD |
25550 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
25551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 25552 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 25554 | } |
5c8c7dd3 RD |
25555 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
25556 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25557 | if (!SWIG_IsOK(ecode2)) { | |
25558 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25559 | } | |
25560 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 25561 | { |
5c8c7dd3 | 25562 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
25563 | if (PyErr_Occurred()) SWIG_fail; |
25564 | } | |
25565 | resultobj = SWIG_Py_Void(); | |
25566 | return resultobj; | |
25567 | fail: | |
25568 | return NULL; | |
25569 | } | |
25570 | ||
25571 | ||
5c8c7dd3 | 25572 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 25573 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25574 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25575 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25576 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
25577 | void *argp1 = 0 ; |
25578 | int res1 = 0 ; | |
5c8c7dd3 RD |
25579 | wxDouble temp2 ; |
25580 | int res2 = 0 ; | |
25581 | wxDouble temp3 ; | |
25582 | int res3 = 0 ; | |
25583 | PyObject * obj0 = 0 ; | |
25584 | PyObject * obj1 = 0 ; | |
25585 | PyObject * obj2 = 0 ; | |
25586 | char * kwnames[] = { | |
25587 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25588 | }; | |
72ef6efb | 25589 | |
5c8c7dd3 RD |
25590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 25592 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
25593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
25594 | } | |
25595 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25596 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25597 | double val; | |
25598 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25599 | if (!SWIG_IsOK(ecode)) { | |
25600 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25601 | } | |
25602 | temp2 = static_cast< wxDouble >(val); | |
25603 | arg2 = &temp2; | |
25604 | res2 = SWIG_AddTmpMask(ecode); | |
25605 | } | |
25606 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25607 | double val; | |
25608 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25609 | if (!SWIG_IsOK(ecode)) { | |
25610 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25611 | } | |
25612 | temp3 = static_cast< wxDouble >(val); | |
25613 | arg3 = &temp3; | |
25614 | res3 = SWIG_AddTmpMask(ecode); | |
25615 | } | |
25616 | { | |
25617 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); | |
25618 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb RD |
25619 | } |
25620 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
25621 | if (SWIG_IsTmpObj(res2)) { |
25622 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25623 | } else { | |
25624 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25625 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25626 | } | |
25627 | if (SWIG_IsTmpObj(res3)) { | |
25628 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25629 | } else { | |
25630 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25631 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25632 | } | |
72ef6efb RD |
25633 | return resultobj; |
25634 | fail: | |
25635 | return NULL; | |
25636 | } | |
25637 | ||
25638 | ||
5c8c7dd3 RD |
25639 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25640 | PyObject *resultobj = 0; | |
25641 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25642 | wxDouble *arg2 = (wxDouble *) 0 ; | |
25643 | wxDouble *arg3 = (wxDouble *) 0 ; | |
25644 | void *argp1 = 0 ; | |
25645 | int res1 = 0 ; | |
25646 | wxDouble temp2 ; | |
25647 | int res2 = 0 ; | |
25648 | wxDouble temp3 ; | |
25649 | int res3 = 0 ; | |
25650 | PyObject * obj0 = 0 ; | |
25651 | PyObject * obj1 = 0 ; | |
25652 | PyObject * obj2 = 0 ; | |
25653 | char * kwnames[] = { | |
25654 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
25655 | }; | |
25656 | ||
25657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25659 | if (!SWIG_IsOK(res1)) { | |
25660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
25661 | } | |
25662 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25663 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
25664 | double val; | |
25665 | int ecode = SWIG_AsVal_double(obj1, &val); | |
25666 | if (!SWIG_IsOK(ecode)) { | |
25667 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25668 | } | |
25669 | temp2 = static_cast< wxDouble >(val); | |
25670 | arg2 = &temp2; | |
25671 | res2 = SWIG_AddTmpMask(ecode); | |
25672 | } | |
25673 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
25674 | double val; | |
25675 | int ecode = SWIG_AsVal_double(obj2, &val); | |
25676 | if (!SWIG_IsOK(ecode)) { | |
25677 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25678 | } | |
25679 | temp3 = static_cast< wxDouble >(val); | |
25680 | arg3 = &temp3; | |
25681 | res3 = SWIG_AddTmpMask(ecode); | |
25682 | } | |
25683 | { | |
25684 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
25687 | resultobj = SWIG_Py_Void(); | |
25688 | if (SWIG_IsTmpObj(res2)) { | |
25689 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
25690 | } else { | |
25691 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25692 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
25693 | } | |
25694 | if (SWIG_IsTmpObj(res3)) { | |
25695 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
25696 | } else { | |
25697 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
25698 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
25699 | } | |
25700 | return resultobj; | |
25701 | fail: | |
25702 | return NULL; | |
25703 | } | |
25704 | ||
25705 | ||
25706 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25707 | PyObject *resultobj = 0; | |
25708 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
25709 | void *result = 0 ; | |
25710 | void *argp1 = 0 ; | |
25711 | int res1 = 0 ; | |
25712 | PyObject *swig_obj[1] ; | |
25713 | ||
25714 | if (!args) SWIG_fail; | |
25715 | swig_obj[0] = args; | |
25716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
25717 | if (!SWIG_IsOK(res1)) { | |
25718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
25719 | } | |
25720 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
25721 | { | |
25722 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
25723 | if (PyErr_Occurred()) SWIG_fail; | |
25724 | } | |
25725 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
25726 | return resultobj; | |
25727 | fail: | |
25728 | return NULL; | |
25729 | } | |
25730 | ||
25731 | ||
25732 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25733 | PyObject *obj; | |
25734 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25735 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
25736 | return SWIG_Py_Void(); | |
25737 | } | |
25738 | ||
25739 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
25740 | PyObject *resultobj = 0; |
25741 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
25742 | void *argp1 = 0 ; |
25743 | int res1 = 0 ; | |
25744 | PyObject *swig_obj[1] ; | |
25745 | ||
25746 | if (!args) SWIG_fail; | |
25747 | swig_obj[0] = args; | |
5c8c7dd3 | 25748 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 25749 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
25751 | } |
25752 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25753 | { | |
5c8c7dd3 RD |
25754 | delete arg1; |
25755 | ||
72ef6efb RD |
25756 | if (PyErr_Occurred()) SWIG_fail; |
25757 | } | |
5c8c7dd3 | 25758 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
25759 | return resultobj; |
25760 | fail: | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
5c8c7dd3 | 25765 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
25766 | PyObject *resultobj = 0; |
25767 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25768 | wxDouble arg2 ; | |
25769 | wxDouble arg3 ; | |
70d7cb34 RD |
25770 | void *argp1 = 0 ; |
25771 | int res1 = 0 ; | |
25772 | double val2 ; | |
25773 | int ecode2 = 0 ; | |
25774 | double val3 ; | |
25775 | int ecode3 = 0 ; | |
70d7cb34 | 25776 | |
5c8c7dd3 | 25777 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
25778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
25779 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 25780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
25781 | } |
25782 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25783 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
25784 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 25785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25786 | } |
25787 | arg2 = static_cast< wxDouble >(val2); | |
25788 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
25789 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 25790 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25791 | } |
25792 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25793 | { |
5c8c7dd3 | 25794 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
25795 | if (PyErr_Occurred()) SWIG_fail; |
25796 | } | |
25797 | resultobj = SWIG_Py_Void(); | |
25798 | return resultobj; | |
25799 | fail: | |
25800 | return NULL; | |
25801 | } | |
25802 | ||
25803 | ||
5c8c7dd3 | 25804 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
25805 | PyObject *resultobj = 0; |
25806 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25807 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
25808 | void *argp1 = 0 ; |
25809 | int res1 = 0 ; | |
25810 | wxPoint2D temp2 ; | |
70d7cb34 | 25811 | |
5c8c7dd3 | 25812 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
25813 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
25814 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 25815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
25816 | } |
25817 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25818 | { | |
25819 | arg2 = &temp2; | |
25820 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
25821 | } | |
70d7cb34 | 25822 | { |
5c8c7dd3 | 25823 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
25824 | if (PyErr_Occurred()) SWIG_fail; |
25825 | } | |
25826 | resultobj = SWIG_Py_Void(); | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
5c8c7dd3 | 25833 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 25834 | int argc; |
5c8c7dd3 | 25835 | PyObject *argv[4]; |
70d7cb34 | 25836 | |
5c8c7dd3 | 25837 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 25838 | --argc; |
5c8c7dd3 RD |
25839 | if (argc == 2) { |
25840 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 25841 | } |
5c8c7dd3 RD |
25842 | if (argc == 3) { |
25843 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
25844 | } |
25845 | ||
25846 | fail: | |
5c8c7dd3 | 25847 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
25848 | return NULL; |
25849 | } | |
25850 | ||
25851 | ||
5c8c7dd3 | 25852 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
25853 | PyObject *resultobj = 0; |
25854 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25855 | wxDouble arg2 ; | |
25856 | wxDouble arg3 ; | |
70d7cb34 RD |
25857 | void *argp1 = 0 ; |
25858 | int res1 = 0 ; | |
25859 | double val2 ; | |
25860 | int ecode2 = 0 ; | |
25861 | double val3 ; | |
25862 | int ecode3 = 0 ; | |
70d7cb34 | 25863 | |
5c8c7dd3 RD |
25864 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
25865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 25866 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
25868 | } |
25869 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 25870 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 25871 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25873 | } |
25874 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25875 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 25876 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25877 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25878 | } |
25879 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 25880 | { |
5c8c7dd3 | 25881 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
25882 | if (PyErr_Occurred()) SWIG_fail; |
25883 | } | |
25884 | resultobj = SWIG_Py_Void(); | |
25885 | return resultobj; | |
25886 | fail: | |
25887 | return NULL; | |
25888 | } | |
25889 | ||
25890 | ||
5c8c7dd3 | 25891 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
25892 | PyObject *resultobj = 0; |
25893 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 25894 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
25895 | void *argp1 = 0 ; |
25896 | int res1 = 0 ; | |
5c8c7dd3 | 25897 | wxPoint2D temp2 ; |
70d7cb34 | 25898 | |
5c8c7dd3 RD |
25899 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
25900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 25901 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
25903 | } |
25904 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 25905 | { |
5c8c7dd3 RD |
25906 | arg2 = &temp2; |
25907 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
25908 | } | |
25909 | { | |
25910 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
25911 | if (PyErr_Occurred()) SWIG_fail; |
25912 | } | |
25913 | resultobj = SWIG_Py_Void(); | |
25914 | return resultobj; | |
25915 | fail: | |
25916 | return NULL; | |
25917 | } | |
25918 | ||
25919 | ||
5c8c7dd3 RD |
25920 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
25921 | int argc; | |
25922 | PyObject *argv[4]; | |
70d7cb34 | 25923 | |
5c8c7dd3 RD |
25924 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
25925 | --argc; | |
25926 | if (argc == 2) { | |
25927 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 25928 | } |
5c8c7dd3 RD |
25929 | if (argc == 3) { |
25930 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 25931 | } |
5c8c7dd3 | 25932 | |
70d7cb34 | 25933 | fail: |
5c8c7dd3 | 25934 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
25935 | return NULL; |
25936 | } | |
25937 | ||
25938 | ||
5c8c7dd3 | 25939 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
25940 | PyObject *resultobj = 0; |
25941 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25942 | wxDouble arg2 ; | |
25943 | wxDouble arg3 ; | |
25944 | wxDouble arg4 ; | |
25945 | wxDouble arg5 ; | |
25946 | wxDouble arg6 ; | |
5c8c7dd3 | 25947 | wxDouble arg7 ; |
70d7cb34 RD |
25948 | void *argp1 = 0 ; |
25949 | int res1 = 0 ; | |
25950 | double val2 ; | |
25951 | int ecode2 = 0 ; | |
25952 | double val3 ; | |
25953 | int ecode3 = 0 ; | |
25954 | double val4 ; | |
25955 | int ecode4 = 0 ; | |
25956 | double val5 ; | |
25957 | int ecode5 = 0 ; | |
25958 | double val6 ; | |
25959 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
25960 | double val7 ; |
25961 | int ecode7 = 0 ; | |
70d7cb34 | 25962 | |
5c8c7dd3 RD |
25963 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
25964 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 25965 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
25967 | } |
25968 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 25969 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 25970 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 25971 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25972 | } |
25973 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 25974 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 25975 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 25976 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25977 | } |
25978 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 25979 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 25980 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 25981 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25982 | } |
25983 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 25984 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 25985 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 25986 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25987 | } |
25988 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 25989 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 25990 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 25991 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
25992 | } |
25993 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
25994 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
25995 | if (!SWIG_IsOK(ecode7)) { | |
25996 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25997 | } | |
25998 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 25999 | { |
5c8c7dd3 | 26000 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26001 | if (PyErr_Occurred()) SWIG_fail; |
26002 | } | |
26003 | resultobj = SWIG_Py_Void(); | |
26004 | return resultobj; | |
26005 | fail: | |
26006 | return NULL; | |
26007 | } | |
26008 | ||
26009 | ||
5c8c7dd3 | 26010 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26011 | PyObject *resultobj = 0; |
26012 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26013 | wxPoint2D *arg2 = 0 ; |
26014 | wxPoint2D *arg3 = 0 ; | |
26015 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
26016 | void *argp1 = 0 ; |
26017 | int res1 = 0 ; | |
5c8c7dd3 RD |
26018 | wxPoint2D temp2 ; |
26019 | wxPoint2D temp3 ; | |
26020 | wxPoint2D temp4 ; | |
70d7cb34 | 26021 | |
5c8c7dd3 RD |
26022 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
26023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26024 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26026 | } |
26027 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26028 | { |
5c8c7dd3 RD |
26029 | arg2 = &temp2; |
26030 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26031 | } |
5c8c7dd3 RD |
26032 | { |
26033 | arg3 = &temp3; | |
26034 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 26035 | } |
70d7cb34 | 26036 | { |
5c8c7dd3 RD |
26037 | arg4 = &temp4; |
26038 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
26039 | } | |
26040 | { | |
26041 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
26042 | if (PyErr_Occurred()) SWIG_fail; |
26043 | } | |
26044 | resultobj = SWIG_Py_Void(); | |
26045 | return resultobj; | |
26046 | fail: | |
26047 | return NULL; | |
26048 | } | |
26049 | ||
26050 | ||
5c8c7dd3 RD |
26051 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
26052 | int argc; | |
26053 | PyObject *argv[8]; | |
70d7cb34 | 26054 | |
5c8c7dd3 RD |
26055 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
26056 | --argc; | |
26057 | if (argc == 4) { | |
26058 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26059 | } |
5c8c7dd3 RD |
26060 | if (argc == 7) { |
26061 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26062 | } |
5c8c7dd3 | 26063 | |
70d7cb34 | 26064 | fail: |
5c8c7dd3 | 26065 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
26066 | return NULL; |
26067 | } | |
26068 | ||
26069 | ||
5c8c7dd3 | 26070 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
26071 | PyObject *resultobj = 0; |
26072 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26073 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
26074 | void *argp1 = 0 ; |
26075 | int res1 = 0 ; | |
5c8c7dd3 RD |
26076 | void *argp2 = 0 ; |
26077 | int res2 = 0 ; | |
70d7cb34 RD |
26078 | PyObject * obj0 = 0 ; |
26079 | PyObject * obj1 = 0 ; | |
26080 | char * kwnames[] = { | |
5c8c7dd3 | 26081 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
26082 | }; |
26083 | ||
5c8c7dd3 | 26084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
26085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26086 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26088 | } |
26089 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26090 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 26091 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
26092 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
26093 | } | |
26094 | if (!argp2) { | |
26095 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 26096 | } |
5c8c7dd3 | 26097 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 26098 | { |
5c8c7dd3 | 26099 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
26100 | if (PyErr_Occurred()) SWIG_fail; |
26101 | } | |
26102 | resultobj = SWIG_Py_Void(); | |
26103 | return resultobj; | |
26104 | fail: | |
26105 | return NULL; | |
26106 | } | |
26107 | ||
26108 | ||
5c8c7dd3 | 26109 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26110 | PyObject *resultobj = 0; |
26111 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
26112 | void *argp1 = 0 ; |
26113 | int res1 = 0 ; | |
5c8c7dd3 | 26114 | PyObject *swig_obj[1] ; |
70d7cb34 | 26115 | |
5c8c7dd3 RD |
26116 | if (!args) SWIG_fail; |
26117 | swig_obj[0] = args; | |
26118 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26119 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26121 | } |
26122 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26123 | { |
5c8c7dd3 | 26124 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
26125 | if (PyErr_Occurred()) SWIG_fail; |
26126 | } | |
26127 | resultobj = SWIG_Py_Void(); | |
26128 | return resultobj; | |
26129 | fail: | |
26130 | return NULL; | |
26131 | } | |
26132 | ||
26133 | ||
5c8c7dd3 | 26134 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26135 | PyObject *resultobj = 0; |
26136 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26137 | wxPoint2D result; |
70d7cb34 RD |
26138 | void *argp1 = 0 ; |
26139 | int res1 = 0 ; | |
26140 | PyObject *swig_obj[1] ; | |
26141 | ||
26142 | if (!args) SWIG_fail; | |
26143 | swig_obj[0] = args; | |
26144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26145 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
26147 | } |
26148 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26149 | { | |
5c8c7dd3 | 26150 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
26151 | if (PyErr_Occurred()) SWIG_fail; |
26152 | } | |
5c8c7dd3 | 26153 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
26154 | return resultobj; |
26155 | fail: | |
26156 | return NULL; | |
26157 | } | |
26158 | ||
26159 | ||
5c8c7dd3 | 26160 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26161 | PyObject *resultobj = 0; |
26162 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26163 | wxDouble arg2 ; | |
26164 | wxDouble arg3 ; | |
5c8c7dd3 RD |
26165 | wxDouble arg4 ; |
26166 | wxDouble arg5 ; | |
26167 | wxDouble arg6 ; | |
26168 | bool arg7 ; | |
70d7cb34 RD |
26169 | void *argp1 = 0 ; |
26170 | int res1 = 0 ; | |
26171 | double val2 ; | |
26172 | int ecode2 = 0 ; | |
26173 | double val3 ; | |
26174 | int ecode3 = 0 ; | |
5c8c7dd3 | 26175 | double val4 ; |
70d7cb34 | 26176 | int ecode4 = 0 ; |
5c8c7dd3 RD |
26177 | double val5 ; |
26178 | int ecode5 = 0 ; | |
26179 | double val6 ; | |
26180 | int ecode6 = 0 ; | |
26181 | bool val7 ; | |
26182 | int ecode7 = 0 ; | |
70d7cb34 | 26183 | |
5c8c7dd3 | 26184 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
26185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26186 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26188 | } |
26189 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26190 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26191 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26192 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26193 | } |
26194 | arg2 = static_cast< wxDouble >(val2); | |
26195 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26196 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26197 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26198 | } |
26199 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
26200 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
26201 | if (!SWIG_IsOK(ecode4)) { | |
26202 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26203 | } | |
26204 | arg4 = static_cast< wxDouble >(val4); | |
26205 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26206 | if (!SWIG_IsOK(ecode5)) { | |
26207 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26208 | } | |
26209 | arg5 = static_cast< wxDouble >(val5); | |
26210 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
26211 | if (!SWIG_IsOK(ecode6)) { | |
26212 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26213 | } | |
26214 | arg6 = static_cast< wxDouble >(val6); | |
26215 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
26216 | if (!SWIG_IsOK(ecode7)) { | |
26217 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
26218 | } | |
26219 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 26220 | { |
5c8c7dd3 | 26221 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26222 | if (PyErr_Occurred()) SWIG_fail; |
26223 | } | |
5c8c7dd3 | 26224 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26225 | return resultobj; |
26226 | fail: | |
26227 | return NULL; | |
26228 | } | |
26229 | ||
26230 | ||
5c8c7dd3 | 26231 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26232 | PyObject *resultobj = 0; |
26233 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26234 | wxPoint2D *arg2 = 0 ; |
26235 | wxDouble arg3 ; | |
26236 | wxDouble arg4 ; | |
26237 | wxDouble arg5 ; | |
26238 | bool arg6 ; | |
70d7cb34 RD |
26239 | void *argp1 = 0 ; |
26240 | int res1 = 0 ; | |
5c8c7dd3 RD |
26241 | wxPoint2D temp2 ; |
26242 | double val3 ; | |
70d7cb34 | 26243 | int ecode3 = 0 ; |
5c8c7dd3 RD |
26244 | double val4 ; |
26245 | int ecode4 = 0 ; | |
26246 | double val5 ; | |
26247 | int ecode5 = 0 ; | |
26248 | bool val6 ; | |
26249 | int ecode6 = 0 ; | |
70d7cb34 | 26250 | |
5c8c7dd3 | 26251 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
26252 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26253 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26255 | } |
26256 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26257 | { |
5c8c7dd3 RD |
26258 | arg2 = &temp2; |
26259 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26260 | } |
5c8c7dd3 RD |
26261 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
26262 | if (!SWIG_IsOK(ecode3)) { | |
26263 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26264 | } | |
26265 | arg3 = static_cast< wxDouble >(val3); | |
26266 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
26267 | if (!SWIG_IsOK(ecode4)) { | |
26268 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26269 | } | |
26270 | arg4 = static_cast< wxDouble >(val4); | |
26271 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
26272 | if (!SWIG_IsOK(ecode5)) { | |
26273 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26274 | } | |
26275 | arg5 = static_cast< wxDouble >(val5); | |
26276 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
26277 | if (!SWIG_IsOK(ecode6)) { | |
26278 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
26279 | } | |
26280 | arg6 = static_cast< bool >(val6); | |
70d7cb34 | 26281 | { |
5c8c7dd3 RD |
26282 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 26284 | } |
5c8c7dd3 | 26285 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26286 | return resultobj; |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
5c8c7dd3 | 26292 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 26293 | int argc; |
5c8c7dd3 | 26294 | PyObject *argv[8]; |
70d7cb34 | 26295 | |
5c8c7dd3 | 26296 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 26297 | --argc; |
5c8c7dd3 RD |
26298 | if (argc == 6) { |
26299 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 26300 | } |
5c8c7dd3 RD |
26301 | if (argc == 7) { |
26302 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26303 | } |
26304 | ||
26305 | fail: | |
5c8c7dd3 | 26306 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
26307 | return NULL; |
26308 | } | |
26309 | ||
26310 | ||
5c8c7dd3 | 26311 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26312 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26313 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26314 | wxDouble arg2 ; | |
26315 | wxDouble arg3 ; | |
26316 | wxDouble arg4 ; | |
26317 | wxDouble arg5 ; | |
70d7cb34 RD |
26318 | void *argp1 = 0 ; |
26319 | int res1 = 0 ; | |
5c8c7dd3 RD |
26320 | double val2 ; |
26321 | int ecode2 = 0 ; | |
26322 | double val3 ; | |
26323 | int ecode3 = 0 ; | |
26324 | double val4 ; | |
26325 | int ecode4 = 0 ; | |
26326 | double val5 ; | |
26327 | int ecode5 = 0 ; | |
26328 | PyObject * obj0 = 0 ; | |
26329 | PyObject * obj1 = 0 ; | |
26330 | PyObject * obj2 = 0 ; | |
26331 | PyObject * obj3 = 0 ; | |
26332 | PyObject * obj4 = 0 ; | |
26333 | char * kwnames[] = { | |
26334 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
26335 | }; | |
70d7cb34 | 26336 | |
5c8c7dd3 RD |
26337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26339 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26341 | } |
5c8c7dd3 RD |
26342 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26343 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26344 | if (!SWIG_IsOK(ecode2)) { | |
26345 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26346 | } | |
26347 | arg2 = static_cast< wxDouble >(val2); | |
26348 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26349 | if (!SWIG_IsOK(ecode3)) { | |
26350 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26351 | } | |
26352 | arg3 = static_cast< wxDouble >(val3); | |
26353 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26354 | if (!SWIG_IsOK(ecode4)) { | |
26355 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26356 | } | |
26357 | arg4 = static_cast< wxDouble >(val4); | |
26358 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26359 | if (!SWIG_IsOK(ecode5)) { | |
26360 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26361 | } | |
26362 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26363 | { |
5c8c7dd3 | 26364 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26365 | if (PyErr_Occurred()) SWIG_fail; |
26366 | } | |
26367 | resultobj = SWIG_Py_Void(); | |
26368 | return resultobj; | |
26369 | fail: | |
26370 | return NULL; | |
26371 | } | |
26372 | ||
26373 | ||
5c8c7dd3 | 26374 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26375 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26376 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26377 | wxDouble arg2 ; | |
26378 | wxDouble arg3 ; | |
26379 | wxDouble arg4 ; | |
26380 | wxDouble arg5 ; | |
70d7cb34 RD |
26381 | void *argp1 = 0 ; |
26382 | int res1 = 0 ; | |
5c8c7dd3 RD |
26383 | double val2 ; |
26384 | int ecode2 = 0 ; | |
26385 | double val3 ; | |
26386 | int ecode3 = 0 ; | |
26387 | double val4 ; | |
26388 | int ecode4 = 0 ; | |
26389 | double val5 ; | |
26390 | int ecode5 = 0 ; | |
70d7cb34 RD |
26391 | PyObject * obj0 = 0 ; |
26392 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26393 | PyObject * obj2 = 0 ; |
26394 | PyObject * obj3 = 0 ; | |
26395 | PyObject * obj4 = 0 ; | |
70d7cb34 | 26396 | char * kwnames[] = { |
5c8c7dd3 | 26397 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
26398 | }; |
26399 | ||
5c8c7dd3 RD |
26400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26402 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26404 | } |
5c8c7dd3 RD |
26405 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26406 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26407 | if (!SWIG_IsOK(ecode2)) { | |
26408 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26409 | } | |
26410 | arg2 = static_cast< wxDouble >(val2); | |
26411 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26412 | if (!SWIG_IsOK(ecode3)) { | |
26413 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26414 | } | |
26415 | arg3 = static_cast< wxDouble >(val3); | |
26416 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26417 | if (!SWIG_IsOK(ecode4)) { | |
26418 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26419 | } | |
26420 | arg4 = static_cast< wxDouble >(val4); | |
26421 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26422 | if (!SWIG_IsOK(ecode5)) { | |
26423 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26424 | } | |
26425 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26426 | { |
5c8c7dd3 | 26427 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26428 | if (PyErr_Occurred()) SWIG_fail; |
26429 | } | |
26430 | resultobj = SWIG_Py_Void(); | |
26431 | return resultobj; | |
26432 | fail: | |
26433 | return NULL; | |
26434 | } | |
26435 | ||
26436 | ||
5c8c7dd3 | 26437 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26438 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26439 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26440 | wxDouble arg2 ; | |
26441 | wxDouble arg3 ; | |
26442 | wxDouble arg4 ; | |
70d7cb34 RD |
26443 | void *argp1 = 0 ; |
26444 | int res1 = 0 ; | |
5c8c7dd3 RD |
26445 | double val2 ; |
26446 | int ecode2 = 0 ; | |
26447 | double val3 ; | |
26448 | int ecode3 = 0 ; | |
26449 | double val4 ; | |
26450 | int ecode4 = 0 ; | |
70d7cb34 RD |
26451 | PyObject * obj0 = 0 ; |
26452 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26453 | PyObject * obj2 = 0 ; |
26454 | PyObject * obj3 = 0 ; | |
70d7cb34 | 26455 | char * kwnames[] = { |
5c8c7dd3 | 26456 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
26457 | }; |
26458 | ||
5c8c7dd3 RD |
26459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
26460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26461 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26463 | } |
5c8c7dd3 RD |
26464 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26465 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26466 | if (!SWIG_IsOK(ecode2)) { | |
26467 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26468 | } | |
26469 | arg2 = static_cast< wxDouble >(val2); | |
26470 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26471 | if (!SWIG_IsOK(ecode3)) { | |
26472 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26473 | } | |
26474 | arg3 = static_cast< wxDouble >(val3); | |
26475 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26476 | if (!SWIG_IsOK(ecode4)) { | |
26477 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26478 | } | |
26479 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 26480 | { |
5c8c7dd3 | 26481 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
26482 | if (PyErr_Occurred()) SWIG_fail; |
26483 | } | |
26484 | resultobj = SWIG_Py_Void(); | |
26485 | return resultobj; | |
26486 | fail: | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
5c8c7dd3 | 26491 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26492 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26493 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26494 | wxDouble arg2 ; | |
26495 | wxDouble arg3 ; | |
26496 | wxDouble arg4 ; | |
26497 | wxDouble arg5 ; | |
26498 | wxDouble arg6 ; | |
70d7cb34 RD |
26499 | void *argp1 = 0 ; |
26500 | int res1 = 0 ; | |
26501 | double val2 ; | |
26502 | int ecode2 = 0 ; | |
26503 | double val3 ; | |
26504 | int ecode3 = 0 ; | |
26505 | double val4 ; | |
26506 | int ecode4 = 0 ; | |
26507 | double val5 ; | |
26508 | int ecode5 = 0 ; | |
26509 | double val6 ; | |
26510 | int ecode6 = 0 ; | |
70d7cb34 RD |
26511 | PyObject * obj0 = 0 ; |
26512 | PyObject * obj1 = 0 ; | |
26513 | PyObject * obj2 = 0 ; | |
26514 | PyObject * obj3 = 0 ; | |
26515 | PyObject * obj4 = 0 ; | |
26516 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26517 | char * kwnames[] = { |
5c8c7dd3 | 26518 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
26519 | }; |
26520 | ||
5c8c7dd3 RD |
26521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26523 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26525 | } |
5c8c7dd3 RD |
26526 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26527 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26528 | if (!SWIG_IsOK(ecode2)) { | |
26529 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26530 | } | |
26531 | arg2 = static_cast< wxDouble >(val2); | |
26532 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26533 | if (!SWIG_IsOK(ecode3)) { | |
26534 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26535 | } | |
26536 | arg3 = static_cast< wxDouble >(val3); | |
26537 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26538 | if (!SWIG_IsOK(ecode4)) { | |
26539 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26540 | } | |
26541 | arg4 = static_cast< wxDouble >(val4); | |
26542 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26543 | if (!SWIG_IsOK(ecode5)) { | |
26544 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26545 | } | |
26546 | arg5 = static_cast< wxDouble >(val5); | |
26547 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26548 | if (!SWIG_IsOK(ecode6)) { | |
26549 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26550 | } | |
26551 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26552 | { |
5c8c7dd3 | 26553 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26554 | if (PyErr_Occurred()) SWIG_fail; |
26555 | } | |
26556 | resultobj = SWIG_Py_Void(); | |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
5c8c7dd3 | 26563 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26564 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26565 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26566 | wxDouble arg2 ; | |
26567 | wxDouble arg3 ; | |
26568 | wxDouble arg4 ; | |
26569 | wxDouble arg5 ; | |
70d7cb34 RD |
26570 | void *argp1 = 0 ; |
26571 | int res1 = 0 ; | |
5c8c7dd3 RD |
26572 | double val2 ; |
26573 | int ecode2 = 0 ; | |
26574 | double val3 ; | |
26575 | int ecode3 = 0 ; | |
26576 | double val4 ; | |
26577 | int ecode4 = 0 ; | |
26578 | double val5 ; | |
26579 | int ecode5 = 0 ; | |
26580 | PyObject * obj0 = 0 ; | |
26581 | PyObject * obj1 = 0 ; | |
26582 | PyObject * obj2 = 0 ; | |
26583 | PyObject * obj3 = 0 ; | |
26584 | PyObject * obj4 = 0 ; | |
26585 | char * kwnames[] = { | |
26586 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26587 | }; | |
70d7cb34 | 26588 | |
5c8c7dd3 RD |
26589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26591 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26593 | } |
5c8c7dd3 RD |
26594 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26595 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26596 | if (!SWIG_IsOK(ecode2)) { | |
26597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26598 | } | |
26599 | arg2 = static_cast< wxDouble >(val2); | |
26600 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26601 | if (!SWIG_IsOK(ecode3)) { | |
26602 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26603 | } | |
26604 | arg3 = static_cast< wxDouble >(val3); | |
26605 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26606 | if (!SWIG_IsOK(ecode4)) { | |
26607 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26608 | } | |
26609 | arg4 = static_cast< wxDouble >(val4); | |
26610 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26611 | if (!SWIG_IsOK(ecode5)) { | |
26612 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26613 | } | |
26614 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 26615 | { |
5c8c7dd3 | 26616 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
26617 | if (PyErr_Occurred()) SWIG_fail; |
26618 | } | |
26619 | resultobj = SWIG_Py_Void(); | |
26620 | return resultobj; | |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
5c8c7dd3 | 26626 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26627 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26628 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26629 | wxDouble arg2 ; | |
26630 | wxDouble arg3 ; | |
26631 | wxDouble arg4 ; | |
26632 | wxDouble arg5 ; | |
26633 | wxDouble arg6 ; | |
70d7cb34 RD |
26634 | void *argp1 = 0 ; |
26635 | int res1 = 0 ; | |
5c8c7dd3 RD |
26636 | double val2 ; |
26637 | int ecode2 = 0 ; | |
26638 | double val3 ; | |
26639 | int ecode3 = 0 ; | |
26640 | double val4 ; | |
26641 | int ecode4 = 0 ; | |
26642 | double val5 ; | |
26643 | int ecode5 = 0 ; | |
26644 | double val6 ; | |
26645 | int ecode6 = 0 ; | |
70d7cb34 RD |
26646 | PyObject * obj0 = 0 ; |
26647 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
26648 | PyObject * obj2 = 0 ; |
26649 | PyObject * obj3 = 0 ; | |
26650 | PyObject * obj4 = 0 ; | |
26651 | PyObject * obj5 = 0 ; | |
70d7cb34 | 26652 | char * kwnames[] = { |
5c8c7dd3 | 26653 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
26654 | }; |
26655 | ||
5c8c7dd3 RD |
26656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
26657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26658 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26660 | } |
5c8c7dd3 RD |
26661 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26662 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26663 | if (!SWIG_IsOK(ecode2)) { | |
26664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26665 | } | |
26666 | arg2 = static_cast< wxDouble >(val2); | |
26667 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26668 | if (!SWIG_IsOK(ecode3)) { | |
26669 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26670 | } | |
26671 | arg3 = static_cast< wxDouble >(val3); | |
26672 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26673 | if (!SWIG_IsOK(ecode4)) { | |
26674 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26675 | } | |
26676 | arg4 = static_cast< wxDouble >(val4); | |
26677 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26678 | if (!SWIG_IsOK(ecode5)) { | |
26679 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26680 | } | |
26681 | arg5 = static_cast< wxDouble >(val5); | |
26682 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26683 | if (!SWIG_IsOK(ecode6)) { | |
26684 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26685 | } | |
26686 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 26687 | { |
5c8c7dd3 | 26688 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
26689 | if (PyErr_Occurred()) SWIG_fail; |
26690 | } | |
5c8c7dd3 | 26691 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26692 | return resultobj; |
26693 | fail: | |
26694 | return NULL; | |
26695 | } | |
26696 | ||
26697 | ||
5c8c7dd3 | 26698 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 26699 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26700 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26701 | void *result = 0 ; | |
70d7cb34 RD |
26702 | void *argp1 = 0 ; |
26703 | int res1 = 0 ; | |
26704 | PyObject *swig_obj[1] ; | |
26705 | ||
26706 | if (!args) SWIG_fail; | |
26707 | swig_obj[0] = args; | |
5c8c7dd3 | 26708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 26709 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 26711 | } |
5c8c7dd3 | 26712 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 26713 | { |
5c8c7dd3 | 26714 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
26715 | if (PyErr_Occurred()) SWIG_fail; |
26716 | } | |
5c8c7dd3 | 26717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
26718 | return resultobj; |
26719 | fail: | |
26720 | return NULL; | |
26721 | } | |
26722 | ||
26723 | ||
5c8c7dd3 | 26724 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26725 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26726 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26727 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
26728 | void *argp1 = 0 ; |
26729 | int res1 = 0 ; | |
5c8c7dd3 | 26730 | int res2 ; |
70d7cb34 RD |
26731 | PyObject * obj0 = 0 ; |
26732 | PyObject * obj1 = 0 ; | |
70d7cb34 | 26733 | char * kwnames[] = { |
5c8c7dd3 | 26734 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
26735 | }; |
26736 | ||
5c8c7dd3 RD |
26737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
26738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26739 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
26740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
26741 | } | |
26742 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26743 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
26744 | if (!SWIG_IsOK(res2)) { | |
26745 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 26746 | } |
70d7cb34 | 26747 | { |
5c8c7dd3 | 26748 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
26749 | if (PyErr_Occurred()) SWIG_fail; |
26750 | } | |
26751 | resultobj = SWIG_Py_Void(); | |
26752 | return resultobj; | |
26753 | fail: | |
26754 | return NULL; | |
26755 | } | |
26756 | ||
26757 | ||
5c8c7dd3 | 26758 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26759 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26760 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26761 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
26762 | void *argp1 = 0 ; |
26763 | int res1 = 0 ; | |
5c8c7dd3 RD |
26764 | void *argp2 = 0 ; |
26765 | int res2 = 0 ; | |
70d7cb34 RD |
26766 | PyObject * obj0 = 0 ; |
26767 | PyObject * obj1 = 0 ; | |
70d7cb34 | 26768 | char * kwnames[] = { |
5c8c7dd3 | 26769 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
26770 | }; |
26771 | ||
5c8c7dd3 RD |
26772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
26773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26774 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 26776 | } |
5c8c7dd3 RD |
26777 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26778 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26779 | if (!SWIG_IsOK(res2)) { | |
26780 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26781 | } | |
26782 | if (!argp2) { | |
26783 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26784 | } | |
26785 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 26786 | { |
5c8c7dd3 | 26787 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26788 | if (PyErr_Occurred()) SWIG_fail; |
26789 | } | |
26790 | resultobj = SWIG_Py_Void(); | |
26791 | return resultobj; | |
26792 | fail: | |
26793 | return NULL; | |
26794 | } | |
26795 | ||
26796 | ||
5c8c7dd3 | 26797 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 26798 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26799 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26800 | wxRect2DDouble result; | |
70d7cb34 RD |
26801 | void *argp1 = 0 ; |
26802 | int res1 = 0 ; | |
5c8c7dd3 | 26803 | PyObject *swig_obj[1] ; |
70d7cb34 | 26804 | |
5c8c7dd3 RD |
26805 | if (!args) SWIG_fail; |
26806 | swig_obj[0] = args; | |
26807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26808 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 26810 | } |
5c8c7dd3 | 26811 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 26812 | { |
5c8c7dd3 | 26813 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
26814 | if (PyErr_Occurred()) SWIG_fail; |
26815 | } | |
5c8c7dd3 | 26816 | resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
26817 | return resultobj; |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
5c8c7dd3 | 26823 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 26824 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26825 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26826 | wxDouble arg2 ; | |
26827 | wxDouble arg3 ; | |
26828 | int arg4 = (int) wxODDEVEN_RULE ; | |
26829 | bool result; | |
70d7cb34 RD |
26830 | void *argp1 = 0 ; |
26831 | int res1 = 0 ; | |
5c8c7dd3 RD |
26832 | double val2 ; |
26833 | int ecode2 = 0 ; | |
26834 | double val3 ; | |
26835 | int ecode3 = 0 ; | |
26836 | int val4 ; | |
26837 | int ecode4 = 0 ; | |
70d7cb34 | 26838 | |
5c8c7dd3 RD |
26839 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
26840 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26841 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 26843 | } |
5c8c7dd3 RD |
26844 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26845 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26846 | if (!SWIG_IsOK(ecode2)) { | |
26847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26848 | } | |
26849 | arg2 = static_cast< wxDouble >(val2); | |
26850 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26851 | if (!SWIG_IsOK(ecode3)) { | |
26852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26853 | } | |
26854 | arg3 = static_cast< wxDouble >(val3); | |
26855 | if (swig_obj[3]) { | |
26856 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
26857 | if (!SWIG_IsOK(ecode4)) { | |
26858 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
26859 | } | |
26860 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
26861 | } |
26862 | { | |
5c8c7dd3 | 26863 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
26864 | if (PyErr_Occurred()) SWIG_fail; |
26865 | } | |
5c8c7dd3 RD |
26866 | { |
26867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
26868 | } |
26869 | return resultobj; | |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
5c8c7dd3 | 26875 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 26876 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26877 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
26878 | wxPoint2DDouble *arg2 = 0 ; | |
26879 | int arg3 = (int) wxODDEVEN_RULE ; | |
26880 | bool result; | |
70d7cb34 RD |
26881 | void *argp1 = 0 ; |
26882 | int res1 = 0 ; | |
5c8c7dd3 | 26883 | void *argp2 = 0 ; |
70d7cb34 | 26884 | int res2 = 0 ; |
5c8c7dd3 RD |
26885 | int val3 ; |
26886 | int ecode3 = 0 ; | |
70d7cb34 | 26887 | |
5c8c7dd3 RD |
26888 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
26889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26890 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 26892 | } |
5c8c7dd3 RD |
26893 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
26894 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0); | |
26895 | if (!SWIG_IsOK(res2)) { | |
26896 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
70d7cb34 | 26897 | } |
5c8c7dd3 RD |
26898 | if (!argp2) { |
26899 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'"); | |
26900 | } | |
26901 | arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2); | |
26902 | if (swig_obj[2]) { | |
26903 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
26904 | if (!SWIG_IsOK(ecode3)) { | |
26905 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
26906 | } | |
26907 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
26908 | } |
26909 | { | |
5c8c7dd3 | 26910 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3); |
70d7cb34 RD |
26911 | if (PyErr_Occurred()) SWIG_fail; |
26912 | } | |
5c8c7dd3 RD |
26913 | { |
26914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
26915 | } |
26916 | return resultobj; | |
26917 | fail: | |
26918 | return NULL; | |
26919 | } | |
26920 | ||
26921 | ||
5c8c7dd3 RD |
26922 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
26923 | int argc; | |
26924 | PyObject *argv[5]; | |
70d7cb34 | 26925 | |
5c8c7dd3 RD |
26926 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
26927 | --argc; | |
26928 | if ((argc >= 2) && (argc <= 3)) { | |
26929 | int _v = 0; | |
26930 | { | |
26931 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0); | |
26932 | _v = SWIG_CheckState(res); | |
26933 | } | |
26934 | if (!_v) goto check_1; | |
26935 | if (argc > 2) { | |
26936 | { | |
26937 | { | |
26938 | int res = SWIG_AsVal_int(argv[2], NULL); | |
26939 | _v = SWIG_CheckState(res); | |
26940 | } | |
26941 | } | |
26942 | if (!_v) goto check_1; | |
26943 | } | |
26944 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 26945 | } |
5c8c7dd3 RD |
26946 | check_1: |
26947 | ||
26948 | if ((argc >= 3) && (argc <= 4)) { | |
26949 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 26950 | } |
5c8c7dd3 | 26951 | |
70d7cb34 | 26952 | fail: |
5c8c7dd3 | 26953 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
26954 | return NULL; |
26955 | } | |
26956 | ||
26957 | ||
5c8c7dd3 | 26958 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26959 | PyObject *obj; |
26960 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 26961 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
26962 | return SWIG_Py_Void(); |
26963 | } | |
26964 | ||
5c8c7dd3 RD |
26965 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
26966 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
26967 | return 1; | |
26968 | } | |
26969 | ||
26970 | ||
26971 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
26972 | PyObject *pyobj = 0; | |
26973 | ||
26974 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
26975 | return pyobj; | |
26976 | } | |
26977 | ||
26978 | ||
26979 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
26980 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
26981 | return 1; | |
26982 | } | |
26983 | ||
26984 | ||
26985 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
26986 | PyObject *pyobj = 0; | |
26987 | ||
26988 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
26989 | return pyobj; | |
26990 | } | |
26991 | ||
26992 | ||
26993 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
26994 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
26995 | return 1; | |
26996 | } | |
26997 | ||
26998 | ||
26999 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
27000 | PyObject *pyobj = 0; | |
27001 | ||
27002 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
27003 | return pyobj; | |
27004 | } | |
27005 | ||
27006 | ||
27007 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
27008 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
27009 | return 1; | |
27010 | } | |
27011 | ||
27012 | ||
27013 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
27014 | PyObject *pyobj = 0; | |
27015 | ||
27016 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
27017 | return pyobj; | |
27018 | } | |
27019 | ||
27020 | ||
27021 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
27022 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
27023 | return 1; | |
27024 | } | |
27025 | ||
27026 | ||
27027 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
27028 | PyObject *pyobj = 0; | |
27029 | ||
27030 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
27031 | return pyobj; | |
27032 | } | |
27033 | ||
27034 | ||
70d7cb34 RD |
27035 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27036 | PyObject *resultobj = 0; | |
27037 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27038 | void *argp1 = 0 ; | |
27039 | int res1 = 0 ; | |
27040 | PyObject *swig_obj[1] ; | |
27041 | ||
27042 | if (!args) SWIG_fail; | |
27043 | swig_obj[0] = args; | |
27044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
27045 | if (!SWIG_IsOK(res1)) { | |
27046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27047 | } | |
27048 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27049 | { | |
27050 | delete arg1; | |
27051 | ||
27052 | if (PyErr_Occurred()) SWIG_fail; | |
27053 | } | |
27054 | resultobj = SWIG_Py_Void(); | |
27055 | return resultobj; | |
27056 | fail: | |
27057 | return NULL; | |
27058 | } | |
27059 | ||
27060 | ||
27061 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27062 | PyObject *resultobj = 0; | |
27063 | wxWindowDC *arg1 = 0 ; | |
27064 | wxGraphicsContext *result = 0 ; | |
27065 | void *argp1 = 0 ; | |
27066 | int res1 = 0 ; | |
27067 | ||
27068 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27069 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27070 | if (!SWIG_IsOK(res1)) { | |
27071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27072 | } | |
27073 | if (!argp1) { | |
27074 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27075 | } | |
27076 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27077 | { | |
27078 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
27079 | if (PyErr_Occurred()) SWIG_fail; | |
27080 | } | |
27081 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27082 | return resultobj; | |
27083 | fail: | |
27084 | return NULL; | |
27085 | } | |
27086 | ||
27087 | ||
27088 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27089 | PyObject *resultobj = 0; | |
27090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27091 | wxGraphicsContext *result = 0 ; | |
27092 | void *argp1 = 0 ; | |
27093 | int res1 = 0 ; | |
27094 | ||
27095 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27096 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27097 | if (!SWIG_IsOK(res1)) { | |
27098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27099 | } | |
27100 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27101 | { | |
27102 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
27103 | if (PyErr_Occurred()) SWIG_fail; | |
27104 | } | |
27105 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27106 | return resultobj; | |
27107 | fail: | |
27108 | return NULL; | |
27109 | } | |
27110 | ||
27111 | ||
27112 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
27113 | int argc; | |
27114 | PyObject *argv[2]; | |
27115 | ||
27116 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
27117 | --argc; | |
27118 | if (argc == 1) { | |
27119 | int _v = 0; | |
27120 | { | |
27121 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
27122 | _v = SWIG_CheckState(res); | |
27123 | } | |
27124 | if (!_v) goto check_1; | |
27125 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
27126 | } | |
27127 | check_1: | |
27128 | ||
27129 | if (argc == 1) { | |
27130 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
27131 | } | |
27132 | ||
27133 | fail: | |
27134 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
27135 | return NULL; | |
27136 | } | |
27137 | ||
27138 | ||
27139 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27140 | PyObject *resultobj = 0; | |
27141 | void *arg1 = (void *) 0 ; | |
27142 | wxGraphicsContext *result = 0 ; | |
27143 | int res1 ; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | char * kwnames[] = { | |
27146 | (char *) "context", NULL | |
27147 | }; | |
27148 | ||
27149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
27150 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27151 | if (!SWIG_IsOK(res1)) { | |
27152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
27153 | } | |
27154 | { | |
27155 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
27156 | if (PyErr_Occurred()) SWIG_fail; | |
27157 | } | |
27158 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27159 | return resultobj; | |
27160 | fail: | |
27161 | return NULL; | |
27162 | } | |
27163 | ||
27164 | ||
27165 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27166 | PyObject *resultobj = 0; | |
27167 | void *arg1 = (void *) 0 ; | |
27168 | wxGraphicsContext *result = 0 ; | |
27169 | int res1 ; | |
27170 | PyObject * obj0 = 0 ; | |
27171 | char * kwnames[] = { | |
27172 | (char *) "window", NULL | |
27173 | }; | |
27174 | ||
27175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
27176 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
27177 | if (!SWIG_IsOK(res1)) { | |
27178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
27179 | } | |
27180 | { | |
27181 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
27182 | if (PyErr_Occurred()) SWIG_fail; | |
27183 | } | |
27184 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27185 | return resultobj; | |
27186 | fail: | |
27187 | return NULL; | |
27188 | } | |
27189 | ||
27190 | ||
27191 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27192 | PyObject *resultobj = 0; | |
27193 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 27194 | wxGraphicsPath result; |
70d7cb34 RD |
27195 | void *argp1 = 0 ; |
27196 | int res1 = 0 ; | |
27197 | PyObject *swig_obj[1] ; | |
27198 | ||
27199 | if (!args) SWIG_fail; | |
27200 | swig_obj[0] = args; | |
27201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27202 | if (!SWIG_IsOK(res1)) { | |
27203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27204 | } | |
27205 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27206 | { | |
5c8c7dd3 | 27207 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
27208 | if (PyErr_Occurred()) SWIG_fail; |
27209 | } | |
5c8c7dd3 | 27210 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27211 | return resultobj; |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
70d7cb34 | 27217 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27218 | PyObject *resultobj = 0; |
70d7cb34 RD |
27219 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27220 | wxPen *arg2 = 0 ; | |
27221 | wxGraphicsPen result; | |
72ef6efb RD |
27222 | void *argp1 = 0 ; |
27223 | int res1 = 0 ; | |
70d7cb34 RD |
27224 | void *argp2 = 0 ; |
27225 | int res2 = 0 ; | |
72ef6efb RD |
27226 | PyObject * obj0 = 0 ; |
27227 | PyObject * obj1 = 0 ; | |
72ef6efb | 27228 | char * kwnames[] = { |
70d7cb34 | 27229 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
27230 | }; |
27231 | ||
70d7cb34 RD |
27232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
27233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27234 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27236 | } |
70d7cb34 RD |
27237 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27238 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
27239 | if (!SWIG_IsOK(res2)) { | |
27240 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27241 | } | |
27242 | if (!argp2) { | |
27243 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
27244 | } | |
27245 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 27246 | { |
70d7cb34 | 27247 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
27248 | if (PyErr_Occurred()) SWIG_fail; |
27249 | } | |
70d7cb34 | 27250 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27251 | return resultobj; |
27252 | fail: | |
27253 | return NULL; | |
27254 | } | |
27255 | ||
27256 | ||
70d7cb34 | 27257 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27258 | PyObject *resultobj = 0; |
70d7cb34 RD |
27259 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27260 | wxBrush *arg2 = 0 ; | |
27261 | wxGraphicsBrush result; | |
72ef6efb RD |
27262 | void *argp1 = 0 ; |
27263 | int res1 = 0 ; | |
70d7cb34 RD |
27264 | void *argp2 = 0 ; |
27265 | int res2 = 0 ; | |
72ef6efb RD |
27266 | PyObject * obj0 = 0 ; |
27267 | PyObject * obj1 = 0 ; | |
72ef6efb | 27268 | char * kwnames[] = { |
70d7cb34 | 27269 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
27270 | }; |
27271 | ||
70d7cb34 RD |
27272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
27273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27274 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27276 | } |
70d7cb34 RD |
27277 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27278 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
27279 | if (!SWIG_IsOK(res2)) { | |
27280 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27281 | } | |
27282 | if (!argp2) { | |
27283 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
27284 | } | |
27285 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 27286 | { |
70d7cb34 | 27287 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
27288 | if (PyErr_Occurred()) SWIG_fail; |
27289 | } | |
70d7cb34 | 27290 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27291 | return resultobj; |
27292 | fail: | |
27293 | return NULL; | |
27294 | } | |
27295 | ||
27296 | ||
70d7cb34 | 27297 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27298 | PyObject *resultobj = 0; |
70d7cb34 | 27299 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27300 | wxDouble arg2 ; |
27301 | wxDouble arg3 ; | |
27302 | wxDouble arg4 ; | |
27303 | wxDouble arg5 ; | |
70d7cb34 RD |
27304 | wxColour *arg6 = 0 ; |
27305 | wxColour *arg7 = 0 ; | |
27306 | wxGraphicsBrush result; | |
72ef6efb RD |
27307 | void *argp1 = 0 ; |
27308 | int res1 = 0 ; | |
27309 | double val2 ; | |
27310 | int ecode2 = 0 ; | |
27311 | double val3 ; | |
27312 | int ecode3 = 0 ; | |
27313 | double val4 ; | |
27314 | int ecode4 = 0 ; | |
27315 | double val5 ; | |
27316 | int ecode5 = 0 ; | |
70d7cb34 RD |
27317 | wxColour temp6 ; |
27318 | wxColour temp7 ; | |
72ef6efb RD |
27319 | PyObject * obj0 = 0 ; |
27320 | PyObject * obj1 = 0 ; | |
27321 | PyObject * obj2 = 0 ; | |
27322 | PyObject * obj3 = 0 ; | |
27323 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
27324 | PyObject * obj5 = 0 ; |
27325 | PyObject * obj6 = 0 ; | |
72ef6efb | 27326 | char * kwnames[] = { |
70d7cb34 | 27327 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
27328 | }; |
27329 | ||
70d7cb34 RD |
27330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27332 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27334 | } |
70d7cb34 | 27335 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27336 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27337 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27338 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27339 | } |
27340 | arg2 = static_cast< wxDouble >(val2); | |
27341 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27342 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27343 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27344 | } |
27345 | arg3 = static_cast< wxDouble >(val3); | |
27346 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27347 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27348 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27349 | } |
27350 | arg4 = static_cast< wxDouble >(val4); | |
27351 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27352 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27353 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27354 | } |
27355 | arg5 = static_cast< wxDouble >(val5); | |
27356 | { | |
70d7cb34 RD |
27357 | arg6 = &temp6; |
27358 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 27359 | } |
70d7cb34 RD |
27360 | { |
27361 | arg7 = &temp7; | |
27362 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 27363 | } |
72ef6efb | 27364 | { |
70d7cb34 | 27365 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
27366 | if (PyErr_Occurred()) SWIG_fail; |
27367 | } | |
70d7cb34 | 27368 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27369 | return resultobj; |
27370 | fail: | |
27371 | return NULL; | |
27372 | } | |
27373 | ||
27374 | ||
70d7cb34 | 27375 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 27376 | PyObject *resultobj = 0; |
70d7cb34 | 27377 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
27378 | wxDouble arg2 ; |
27379 | wxDouble arg3 ; | |
27380 | wxDouble arg4 ; | |
27381 | wxDouble arg5 ; | |
27382 | wxDouble arg6 ; | |
70d7cb34 RD |
27383 | wxColour *arg7 = 0 ; |
27384 | wxColour *arg8 = 0 ; | |
27385 | wxGraphicsBrush result; | |
72ef6efb RD |
27386 | void *argp1 = 0 ; |
27387 | int res1 = 0 ; | |
27388 | double val2 ; | |
27389 | int ecode2 = 0 ; | |
27390 | double val3 ; | |
27391 | int ecode3 = 0 ; | |
27392 | double val4 ; | |
27393 | int ecode4 = 0 ; | |
27394 | double val5 ; | |
27395 | int ecode5 = 0 ; | |
27396 | double val6 ; | |
27397 | int ecode6 = 0 ; | |
70d7cb34 RD |
27398 | wxColour temp7 ; |
27399 | wxColour temp8 ; | |
72ef6efb RD |
27400 | PyObject * obj0 = 0 ; |
27401 | PyObject * obj1 = 0 ; | |
27402 | PyObject * obj2 = 0 ; | |
27403 | PyObject * obj3 = 0 ; | |
27404 | PyObject * obj4 = 0 ; | |
27405 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
27406 | PyObject * obj6 = 0 ; |
27407 | PyObject * obj7 = 0 ; | |
72ef6efb | 27408 | char * kwnames[] = { |
70d7cb34 | 27409 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
27410 | }; |
27411 | ||
70d7cb34 RD |
27412 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
27413 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27414 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 27416 | } |
70d7cb34 | 27417 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
27418 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
27419 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 27420 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
27421 | } |
27422 | arg2 = static_cast< wxDouble >(val2); | |
27423 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27424 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 27425 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
27426 | } |
27427 | arg3 = static_cast< wxDouble >(val3); | |
27428 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27429 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 27430 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
27431 | } |
27432 | arg4 = static_cast< wxDouble >(val4); | |
27433 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27434 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 27435 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
27436 | } |
27437 | arg5 = static_cast< wxDouble >(val5); | |
27438 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27439 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 27440 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
27441 | } |
27442 | arg6 = static_cast< wxDouble >(val6); | |
27443 | { | |
70d7cb34 RD |
27444 | arg7 = &temp7; |
27445 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
27446 | } | |
27447 | { | |
27448 | arg8 = &temp8; | |
27449 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
27450 | } | |
27451 | { | |
27452 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
27453 | if (PyErr_Occurred()) SWIG_fail; |
27454 | } | |
70d7cb34 | 27455 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27456 | return resultobj; |
27457 | fail: | |
27458 | return NULL; | |
27459 | } | |
27460 | ||
27461 | ||
70d7cb34 | 27462 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27463 | PyObject *resultobj = 0; |
27464 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
27465 | wxFont *arg2 = 0 ; |
27466 | wxColour const &arg3_defvalue = *wxBLACK ; | |
27467 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
27468 | wxGraphicsFont result; | |
72ef6efb RD |
27469 | void *argp1 = 0 ; |
27470 | int res1 = 0 ; | |
70d7cb34 RD |
27471 | void *argp2 = 0 ; |
27472 | int res2 = 0 ; | |
27473 | wxColour temp3 ; | |
27474 | PyObject * obj0 = 0 ; | |
27475 | PyObject * obj1 = 0 ; | |
27476 | PyObject * obj2 = 0 ; | |
27477 | char * kwnames[] = { | |
27478 | (char *) "self",(char *) "font",(char *) "col", NULL | |
27479 | }; | |
72ef6efb | 27480 | |
70d7cb34 RD |
27481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
27482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 27483 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27485 | } |
27486 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
27487 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
27488 | if (!SWIG_IsOK(res2)) { | |
27489 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27490 | } |
70d7cb34 RD |
27491 | if (!argp2) { |
27492 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 27493 | } |
70d7cb34 RD |
27494 | arg2 = reinterpret_cast< wxFont * >(argp2); |
27495 | if (obj2) { | |
27496 | { | |
27497 | arg3 = &temp3; | |
27498 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27499 | } | |
72ef6efb | 27500 | } |
72ef6efb | 27501 | { |
70d7cb34 | 27502 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
27503 | if (PyErr_Occurred()) SWIG_fail; |
27504 | } | |
70d7cb34 | 27505 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27506 | return resultobj; |
27507 | fail: | |
27508 | return NULL; | |
27509 | } | |
27510 | ||
27511 | ||
70d7cb34 | 27512 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 27513 | PyObject *resultobj = 0; |
70d7cb34 RD |
27514 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
27515 | wxDouble arg2 = (wxDouble) 1.0 ; | |
27516 | wxDouble arg3 = (wxDouble) 0.0 ; | |
27517 | wxDouble arg4 = (wxDouble) 0.0 ; | |
27518 | wxDouble arg5 = (wxDouble) 1.0 ; | |
27519 | wxDouble arg6 = (wxDouble) 0.0 ; | |
27520 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 27521 | wxGraphicsMatrix result; |
0a27f394 RD |
27522 | void *argp1 = 0 ; |
27523 | int res1 = 0 ; | |
70d7cb34 RD |
27524 | double val2 ; |
27525 | int ecode2 = 0 ; | |
27526 | double val3 ; | |
27527 | int ecode3 = 0 ; | |
27528 | double val4 ; | |
27529 | int ecode4 = 0 ; | |
27530 | double val5 ; | |
27531 | int ecode5 = 0 ; | |
27532 | double val6 ; | |
27533 | int ecode6 = 0 ; | |
27534 | double val7 ; | |
27535 | int ecode7 = 0 ; | |
27536 | PyObject * obj0 = 0 ; | |
27537 | PyObject * obj1 = 0 ; | |
27538 | PyObject * obj2 = 0 ; | |
27539 | PyObject * obj3 = 0 ; | |
27540 | PyObject * obj4 = 0 ; | |
27541 | PyObject * obj5 = 0 ; | |
27542 | PyObject * obj6 = 0 ; | |
27543 | char * kwnames[] = { | |
27544 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
27545 | }; | |
0a27f394 | 27546 | |
70d7cb34 RD |
27547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
27548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 27549 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 27550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 27551 | } |
70d7cb34 RD |
27552 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
27553 | if (obj1) { | |
27554 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27555 | if (!SWIG_IsOK(ecode2)) { | |
27556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27557 | } | |
27558 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 27559 | } |
70d7cb34 RD |
27560 | if (obj2) { |
27561 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27562 | if (!SWIG_IsOK(ecode3)) { | |
27563 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27564 | } | |
27565 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 27566 | } |
70d7cb34 RD |
27567 | if (obj3) { |
27568 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27569 | if (!SWIG_IsOK(ecode4)) { | |
27570 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27571 | } | |
27572 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 27573 | } |
70d7cb34 RD |
27574 | if (obj4) { |
27575 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27576 | if (!SWIG_IsOK(ecode5)) { | |
27577 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27578 | } | |
27579 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 27580 | } |
70d7cb34 RD |
27581 | if (obj5) { |
27582 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27583 | if (!SWIG_IsOK(ecode6)) { | |
27584 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27585 | } | |
27586 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 27587 | } |
70d7cb34 RD |
27588 | if (obj6) { |
27589 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
27590 | if (!SWIG_IsOK(ecode7)) { | |
27591 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
27592 | } | |
27593 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 27594 | } |
72ef6efb | 27595 | { |
5c8c7dd3 | 27596 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
27597 | if (PyErr_Occurred()) SWIG_fail; |
27598 | } | |
5c8c7dd3 | 27599 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
27600 | return resultobj; |
27601 | fail: | |
27602 | return NULL; | |
27603 | } | |
27604 | ||
27605 | ||
27606 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27607 | PyObject *resultobj = 0; | |
27608 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27609 | void *argp1 = 0 ; | |
27610 | int res1 = 0 ; | |
27611 | PyObject *swig_obj[1] ; | |
27612 | ||
27613 | if (!args) SWIG_fail; | |
27614 | swig_obj[0] = args; | |
27615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27616 | if (!SWIG_IsOK(res1)) { | |
27617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27618 | } | |
27619 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27620 | { | |
72ef6efb | 27621 | (arg1)->PushState(); |
72ef6efb RD |
27622 | if (PyErr_Occurred()) SWIG_fail; |
27623 | } | |
27624 | resultobj = SWIG_Py_Void(); | |
27625 | return resultobj; | |
27626 | fail: | |
27627 | return NULL; | |
27628 | } | |
27629 | ||
27630 | ||
27631 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27632 | PyObject *resultobj = 0; | |
27633 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27634 | void *argp1 = 0 ; | |
27635 | int res1 = 0 ; | |
27636 | PyObject *swig_obj[1] ; | |
27637 | ||
27638 | if (!args) SWIG_fail; | |
27639 | swig_obj[0] = args; | |
27640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27641 | if (!SWIG_IsOK(res1)) { | |
27642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27643 | } | |
27644 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27645 | { | |
72ef6efb | 27646 | (arg1)->PopState(); |
72ef6efb RD |
27647 | if (PyErr_Occurred()) SWIG_fail; |
27648 | } | |
27649 | resultobj = SWIG_Py_Void(); | |
27650 | return resultobj; | |
27651 | fail: | |
27652 | return NULL; | |
27653 | } | |
27654 | ||
27655 | ||
0a27f394 | 27656 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27657 | PyObject *resultobj = 0; |
27658 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27659 | wxRegion *arg2 = 0 ; | |
27660 | void *argp1 = 0 ; | |
27661 | int res1 = 0 ; | |
27662 | void *argp2 = 0 ; | |
27663 | int res2 = 0 ; | |
27664 | PyObject * obj0 = 0 ; | |
27665 | PyObject * obj1 = 0 ; | |
27666 | char * kwnames[] = { | |
27667 | (char *) "self",(char *) "region", NULL | |
27668 | }; | |
27669 | ||
0a27f394 | 27670 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
27671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
27672 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 27673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27674 | } |
27675 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27676 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
27677 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 27678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
27679 | } |
27680 | if (!argp2) { | |
0a27f394 | 27681 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
27682 | } |
27683 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
27684 | { | |
72ef6efb | 27685 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
27686 | if (PyErr_Occurred()) SWIG_fail; |
27687 | } | |
27688 | resultobj = SWIG_Py_Void(); | |
27689 | return resultobj; | |
27690 | fail: | |
27691 | return NULL; | |
27692 | } | |
27693 | ||
27694 | ||
0a27f394 RD |
27695 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27696 | PyObject *resultobj = 0; | |
27697 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27698 | wxDouble arg2 ; | |
27699 | wxDouble arg3 ; | |
27700 | wxDouble arg4 ; | |
27701 | wxDouble arg5 ; | |
27702 | void *argp1 = 0 ; | |
27703 | int res1 = 0 ; | |
27704 | double val2 ; | |
27705 | int ecode2 = 0 ; | |
27706 | double val3 ; | |
27707 | int ecode3 = 0 ; | |
27708 | double val4 ; | |
27709 | int ecode4 = 0 ; | |
27710 | double val5 ; | |
27711 | int ecode5 = 0 ; | |
27712 | PyObject * obj0 = 0 ; | |
27713 | PyObject * obj1 = 0 ; | |
27714 | PyObject * obj2 = 0 ; | |
27715 | PyObject * obj3 = 0 ; | |
27716 | PyObject * obj4 = 0 ; | |
27717 | char * kwnames[] = { | |
27718 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27719 | }; | |
27720 | ||
27721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27723 | if (!SWIG_IsOK(res1)) { | |
27724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27725 | } | |
27726 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27727 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27728 | if (!SWIG_IsOK(ecode2)) { | |
27729 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27730 | } | |
27731 | arg2 = static_cast< wxDouble >(val2); | |
27732 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27733 | if (!SWIG_IsOK(ecode3)) { | |
27734 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27735 | } | |
27736 | arg3 = static_cast< wxDouble >(val3); | |
27737 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27738 | if (!SWIG_IsOK(ecode4)) { | |
27739 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27740 | } | |
27741 | arg4 = static_cast< wxDouble >(val4); | |
27742 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27743 | if (!SWIG_IsOK(ecode5)) { | |
27744 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27745 | } | |
27746 | arg5 = static_cast< wxDouble >(val5); | |
27747 | { | |
27748 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
27751 | resultobj = SWIG_Py_Void(); | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
27758 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27759 | PyObject *resultobj = 0; | |
27760 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27761 | void *argp1 = 0 ; | |
27762 | int res1 = 0 ; | |
27763 | PyObject *swig_obj[1] ; | |
27764 | ||
27765 | if (!args) SWIG_fail; | |
27766 | swig_obj[0] = args; | |
27767 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27768 | if (!SWIG_IsOK(res1)) { | |
27769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27770 | } | |
27771 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27772 | { | |
27773 | (arg1)->ResetClip(); | |
27774 | if (PyErr_Occurred()) SWIG_fail; | |
27775 | } | |
27776 | resultobj = SWIG_Py_Void(); | |
27777 | return resultobj; | |
27778 | fail: | |
27779 | return NULL; | |
27780 | } | |
27781 | ||
27782 | ||
27783 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27784 | PyObject *resultobj = 0; | |
27785 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27786 | void *result = 0 ; | |
27787 | void *argp1 = 0 ; | |
27788 | int res1 = 0 ; | |
27789 | PyObject *swig_obj[1] ; | |
27790 | ||
27791 | if (!args) SWIG_fail; | |
27792 | swig_obj[0] = args; | |
27793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27794 | if (!SWIG_IsOK(res1)) { | |
27795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27796 | } | |
27797 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27798 | { | |
27799 | result = (void *)(arg1)->GetNativeContext(); | |
27800 | if (PyErr_Occurred()) SWIG_fail; | |
27801 | } | |
27802 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
27803 | return resultobj; | |
27804 | fail: | |
27805 | return NULL; | |
27806 | } | |
27807 | ||
27808 | ||
72ef6efb RD |
27809 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27810 | PyObject *resultobj = 0; | |
27811 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27812 | wxDouble arg2 ; | |
27813 | wxDouble arg3 ; | |
27814 | void *argp1 = 0 ; | |
27815 | int res1 = 0 ; | |
27816 | double val2 ; | |
27817 | int ecode2 = 0 ; | |
27818 | double val3 ; | |
27819 | int ecode3 = 0 ; | |
27820 | PyObject * obj0 = 0 ; | |
27821 | PyObject * obj1 = 0 ; | |
27822 | PyObject * obj2 = 0 ; | |
27823 | char * kwnames[] = { | |
27824 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
27825 | }; | |
27826 | ||
27827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27829 | if (!SWIG_IsOK(res1)) { | |
27830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27831 | } | |
27832 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27833 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27834 | if (!SWIG_IsOK(ecode2)) { | |
27835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27836 | } | |
27837 | arg2 = static_cast< wxDouble >(val2); | |
27838 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27839 | if (!SWIG_IsOK(ecode3)) { | |
27840 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27841 | } | |
27842 | arg3 = static_cast< wxDouble >(val3); | |
27843 | { | |
72ef6efb | 27844 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
27845 | if (PyErr_Occurred()) SWIG_fail; |
27846 | } | |
27847 | resultobj = SWIG_Py_Void(); | |
27848 | return resultobj; | |
27849 | fail: | |
27850 | return NULL; | |
27851 | } | |
27852 | ||
27853 | ||
27854 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27855 | PyObject *resultobj = 0; | |
27856 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27857 | wxDouble arg2 ; | |
27858 | wxDouble arg3 ; | |
27859 | void *argp1 = 0 ; | |
27860 | int res1 = 0 ; | |
27861 | double val2 ; | |
27862 | int ecode2 = 0 ; | |
27863 | double val3 ; | |
27864 | int ecode3 = 0 ; | |
27865 | PyObject * obj0 = 0 ; | |
27866 | PyObject * obj1 = 0 ; | |
27867 | PyObject * obj2 = 0 ; | |
27868 | char * kwnames[] = { | |
27869 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
27870 | }; | |
27871 | ||
27872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
27873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27874 | if (!SWIG_IsOK(res1)) { | |
27875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27876 | } | |
27877 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27878 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27879 | if (!SWIG_IsOK(ecode2)) { | |
27880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27881 | } | |
27882 | arg2 = static_cast< wxDouble >(val2); | |
27883 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27884 | if (!SWIG_IsOK(ecode3)) { | |
27885 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27886 | } | |
27887 | arg3 = static_cast< wxDouble >(val3); | |
27888 | { | |
72ef6efb | 27889 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
27890 | if (PyErr_Occurred()) SWIG_fail; |
27891 | } | |
27892 | resultobj = SWIG_Py_Void(); | |
27893 | return resultobj; | |
27894 | fail: | |
27895 | return NULL; | |
27896 | } | |
27897 | ||
27898 | ||
27899 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27900 | PyObject *resultobj = 0; | |
27901 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27902 | wxDouble arg2 ; | |
27903 | void *argp1 = 0 ; | |
27904 | int res1 = 0 ; | |
27905 | double val2 ; | |
27906 | int ecode2 = 0 ; | |
27907 | PyObject * obj0 = 0 ; | |
27908 | PyObject * obj1 = 0 ; | |
27909 | char * kwnames[] = { | |
27910 | (char *) "self",(char *) "angle", NULL | |
27911 | }; | |
27912 | ||
27913 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
27914 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27915 | if (!SWIG_IsOK(res1)) { | |
27916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27917 | } | |
27918 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27919 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27920 | if (!SWIG_IsOK(ecode2)) { | |
27921 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27922 | } | |
27923 | arg2 = static_cast< wxDouble >(val2); | |
27924 | { | |
72ef6efb | 27925 | (arg1)->Rotate(arg2); |
72ef6efb RD |
27926 | if (PyErr_Occurred()) SWIG_fail; |
27927 | } | |
27928 | resultobj = SWIG_Py_Void(); | |
27929 | return resultobj; | |
27930 | fail: | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
5c8c7dd3 RD |
27935 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27936 | PyObject *resultobj = 0; | |
27937 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27938 | wxGraphicsMatrix *arg2 = 0 ; | |
27939 | void *argp1 = 0 ; | |
27940 | int res1 = 0 ; | |
27941 | void *argp2 = 0 ; | |
27942 | int res2 = 0 ; | |
27943 | PyObject * obj0 = 0 ; | |
27944 | PyObject * obj1 = 0 ; | |
27945 | char * kwnames[] = { | |
27946 | (char *) "self",(char *) "matrix", NULL | |
27947 | }; | |
27948 | ||
27949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
27950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27951 | if (!SWIG_IsOK(res1)) { | |
27952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27953 | } | |
27954 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27955 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27956 | if (!SWIG_IsOK(res2)) { | |
27957 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27958 | } | |
27959 | if (!argp2) { | |
27960 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27961 | } | |
27962 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
27963 | { | |
27964 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
27965 | if (PyErr_Occurred()) SWIG_fail; | |
27966 | } | |
27967 | resultobj = SWIG_Py_Void(); | |
27968 | return resultobj; | |
27969 | fail: | |
27970 | return NULL; | |
27971 | } | |
27972 | ||
27973 | ||
27974 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27975 | PyObject *resultobj = 0; | |
27976 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27977 | wxGraphicsMatrix *arg2 = 0 ; | |
27978 | void *argp1 = 0 ; | |
27979 | int res1 = 0 ; | |
27980 | void *argp2 = 0 ; | |
27981 | int res2 = 0 ; | |
27982 | PyObject * obj0 = 0 ; | |
27983 | PyObject * obj1 = 0 ; | |
27984 | char * kwnames[] = { | |
27985 | (char *) "self",(char *) "matrix", NULL | |
27986 | }; | |
27987 | ||
27988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
27989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27990 | if (!SWIG_IsOK(res1)) { | |
27991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27992 | } | |
27993 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27994 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27995 | if (!SWIG_IsOK(res2)) { | |
27996 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27997 | } | |
27998 | if (!argp2) { | |
27999 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28000 | } | |
28001 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28002 | { | |
28003 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
28004 | if (PyErr_Occurred()) SWIG_fail; | |
28005 | } | |
28006 | resultobj = SWIG_Py_Void(); | |
28007 | return resultobj; | |
28008 | fail: | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
28013 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28014 | PyObject *resultobj = 0; | |
28015 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28016 | wxGraphicsMatrix result; | |
28017 | void *argp1 = 0 ; | |
28018 | int res1 = 0 ; | |
28019 | PyObject *swig_obj[1] ; | |
28020 | ||
28021 | if (!args) SWIG_fail; | |
28022 | swig_obj[0] = args; | |
28023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28024 | if (!SWIG_IsOK(res1)) { | |
28025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28026 | } | |
28027 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28028 | { | |
28029 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
28030 | if (PyErr_Occurred()) SWIG_fail; | |
28031 | } | |
28032 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
28033 | return resultobj; | |
28034 | fail: | |
28035 | return NULL; | |
28036 | } | |
28037 | ||
28038 | ||
70d7cb34 RD |
28039 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28040 | PyObject *resultobj = 0; | |
28041 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28042 | wxGraphicsPen *arg2 = 0 ; | |
28043 | void *argp1 = 0 ; | |
28044 | int res1 = 0 ; | |
28045 | void *argp2 = 0 ; | |
28046 | int res2 = 0 ; | |
28047 | ||
28048 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28050 | if (!SWIG_IsOK(res1)) { | |
28051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28052 | } | |
28053 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28054 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
28055 | if (!SWIG_IsOK(res2)) { | |
28056 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28057 | } | |
28058 | if (!argp2) { | |
28059 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
28060 | } | |
28061 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
28062 | { | |
28063 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
28064 | if (PyErr_Occurred()) SWIG_fail; | |
28065 | } | |
28066 | resultobj = SWIG_Py_Void(); | |
28067 | return resultobj; | |
28068 | fail: | |
28069 | return NULL; | |
28070 | } | |
28071 | ||
28072 | ||
28073 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28074 | PyObject *resultobj = 0; |
28075 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28076 | wxPen *arg2 = 0 ; | |
28077 | void *argp1 = 0 ; | |
28078 | int res1 = 0 ; | |
28079 | void *argp2 = 0 ; | |
28080 | int res2 = 0 ; | |
72ef6efb | 28081 | |
70d7cb34 RD |
28082 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28083 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28084 | if (!SWIG_IsOK(res1)) { |
28085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28086 | } | |
28087 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28088 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
28089 | if (!SWIG_IsOK(res2)) { |
28090 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28091 | } | |
28092 | if (!argp2) { | |
28093 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28094 | } | |
28095 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
28096 | { | |
72ef6efb | 28097 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
28098 | if (PyErr_Occurred()) SWIG_fail; |
28099 | } | |
28100 | resultobj = SWIG_Py_Void(); | |
28101 | return resultobj; | |
28102 | fail: | |
28103 | return NULL; | |
28104 | } | |
28105 | ||
28106 | ||
70d7cb34 RD |
28107 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
28108 | int argc; | |
28109 | PyObject *argv[3]; | |
28110 | ||
28111 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
28112 | --argc; | |
28113 | if (argc == 2) { | |
28114 | int _v = 0; | |
28115 | { | |
28116 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
28117 | _v = SWIG_CheckState(res); | |
28118 | } | |
28119 | if (!_v) goto check_1; | |
28120 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
28121 | } | |
28122 | check_1: | |
28123 | ||
28124 | if (argc == 2) { | |
28125 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
28126 | } | |
28127 | ||
28128 | fail: | |
28129 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
28130 | return NULL; | |
28131 | } | |
28132 | ||
28133 | ||
28134 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28135 | PyObject *resultobj = 0; | |
28136 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28137 | wxGraphicsBrush *arg2 = 0 ; | |
28138 | void *argp1 = 0 ; | |
28139 | int res1 = 0 ; | |
28140 | void *argp2 = 0 ; | |
28141 | int res2 = 0 ; | |
28142 | ||
28143 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
28144 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28145 | if (!SWIG_IsOK(res1)) { | |
28146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28147 | } | |
28148 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28149 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
28150 | if (!SWIG_IsOK(res2)) { | |
28151 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28152 | } | |
28153 | if (!argp2) { | |
28154 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
28155 | } | |
28156 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
28157 | { | |
28158 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
28159 | if (PyErr_Occurred()) SWIG_fail; | |
28160 | } | |
28161 | resultobj = SWIG_Py_Void(); | |
28162 | return resultobj; | |
28163 | fail: | |
28164 | return NULL; | |
28165 | } | |
28166 | ||
28167 | ||
28168 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
28169 | PyObject *resultobj = 0; |
28170 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28171 | wxBrush *arg2 = 0 ; | |
28172 | void *argp1 = 0 ; | |
28173 | int res1 = 0 ; | |
28174 | void *argp2 = 0 ; | |
28175 | int res2 = 0 ; | |
72ef6efb | 28176 | |
70d7cb34 RD |
28177 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28179 | if (!SWIG_IsOK(res1)) { |
28180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28181 | } | |
28182 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28183 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
28184 | if (!SWIG_IsOK(res2)) { |
28185 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28186 | } | |
28187 | if (!argp2) { | |
28188 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28189 | } | |
28190 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
28191 | { | |
72ef6efb | 28192 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28193 | if (PyErr_Occurred()) SWIG_fail; |
28194 | } | |
28195 | resultobj = SWIG_Py_Void(); | |
28196 | return resultobj; | |
28197 | fail: | |
28198 | return NULL; | |
28199 | } | |
28200 | ||
28201 | ||
70d7cb34 RD |
28202 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
28203 | int argc; | |
28204 | PyObject *argv[3]; | |
72ef6efb | 28205 | |
70d7cb34 RD |
28206 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
28207 | --argc; | |
28208 | if (argc == 2) { | |
28209 | int _v = 0; | |
28210 | { | |
28211 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
28212 | _v = SWIG_CheckState(res); | |
28213 | } | |
28214 | if (!_v) goto check_1; | |
28215 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 28216 | } |
70d7cb34 RD |
28217 | check_1: |
28218 | ||
28219 | if (argc == 2) { | |
28220 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 28221 | } |
70d7cb34 | 28222 | |
72ef6efb | 28223 | fail: |
70d7cb34 | 28224 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
28225 | return NULL; |
28226 | } | |
28227 | ||
28228 | ||
70d7cb34 | 28229 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28230 | PyObject *resultobj = 0; |
28231 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 28232 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
28233 | void *argp1 = 0 ; |
28234 | int res1 = 0 ; | |
70d7cb34 RD |
28235 | void *argp2 = 0 ; |
28236 | int res2 = 0 ; | |
72ef6efb | 28237 | |
70d7cb34 RD |
28238 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
28239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28240 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28242 | } |
28243 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28244 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
28245 | if (!SWIG_IsOK(res2)) { | |
28246 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28247 | } |
70d7cb34 RD |
28248 | if (!argp2) { |
28249 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 28250 | } |
70d7cb34 | 28251 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 28252 | { |
70d7cb34 | 28253 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
28254 | if (PyErr_Occurred()) SWIG_fail; |
28255 | } | |
28256 | resultobj = SWIG_Py_Void(); | |
28257 | return resultobj; | |
28258 | fail: | |
28259 | return NULL; | |
28260 | } | |
28261 | ||
28262 | ||
70d7cb34 | 28263 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
28264 | PyObject *resultobj = 0; |
28265 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28266 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
28267 | wxColour const &arg3_defvalue = *wxBLACK ; |
28268 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
28269 | void *argp1 = 0 ; |
28270 | int res1 = 0 ; | |
28271 | void *argp2 = 0 ; | |
28272 | int res2 = 0 ; | |
70d7cb34 | 28273 | wxColour temp3 ; |
72ef6efb | 28274 | |
70d7cb34 RD |
28275 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28276 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28277 | if (!SWIG_IsOK(res1)) { |
28278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28279 | } | |
28280 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 28281 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
28282 | if (!SWIG_IsOK(res2)) { |
28283 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28284 | } | |
28285 | if (!argp2) { | |
28286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
28287 | } | |
28288 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
28289 | if (swig_obj[2]) { |
28290 | { | |
28291 | arg3 = &temp3; | |
28292 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
28293 | } | |
28294 | } | |
72ef6efb | 28295 | { |
70d7cb34 | 28296 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28297 | if (PyErr_Occurred()) SWIG_fail; |
28298 | } | |
28299 | resultobj = SWIG_Py_Void(); | |
28300 | return resultobj; | |
28301 | fail: | |
28302 | return NULL; | |
28303 | } | |
28304 | ||
28305 | ||
70d7cb34 RD |
28306 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
28307 | int argc; | |
28308 | PyObject *argv[4]; | |
72ef6efb | 28309 | |
70d7cb34 RD |
28310 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
28311 | --argc; | |
28312 | if (argc == 2) { | |
28313 | int _v = 0; | |
28314 | { | |
28315 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
28316 | _v = SWIG_CheckState(res); | |
28317 | } | |
28318 | if (!_v) goto check_1; | |
28319 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 28320 | } |
70d7cb34 RD |
28321 | check_1: |
28322 | ||
28323 | if ((argc >= 2) && (argc <= 3)) { | |
28324 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 28325 | } |
70d7cb34 | 28326 | |
72ef6efb | 28327 | fail: |
70d7cb34 | 28328 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
28329 | return NULL; |
28330 | } | |
28331 | ||
28332 | ||
28333 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28334 | PyObject *resultobj = 0; | |
28335 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28336 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
28337 | void *argp1 = 0 ; |
28338 | int res1 = 0 ; | |
28339 | void *argp2 = 0 ; | |
28340 | int res2 = 0 ; | |
28341 | PyObject * obj0 = 0 ; | |
28342 | PyObject * obj1 = 0 ; | |
28343 | char * kwnames[] = { | |
28344 | (char *) "self",(char *) "path", NULL | |
28345 | }; | |
28346 | ||
28347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
28348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28349 | if (!SWIG_IsOK(res1)) { | |
28350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28351 | } | |
28352 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28353 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28354 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28355 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28356 | } | |
28357 | if (!argp2) { | |
28358 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28359 | } |
28360 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28361 | { | |
5c8c7dd3 | 28362 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
28363 | if (PyErr_Occurred()) SWIG_fail; |
28364 | } | |
28365 | resultobj = SWIG_Py_Void(); | |
28366 | return resultobj; | |
28367 | fail: | |
28368 | return NULL; | |
28369 | } | |
28370 | ||
28371 | ||
28372 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28373 | PyObject *resultobj = 0; | |
28374 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28375 | wxGraphicsPath *arg2 = 0 ; |
28376 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28377 | void *argp1 = 0 ; |
28378 | int res1 = 0 ; | |
28379 | void *argp2 = 0 ; | |
28380 | int res2 = 0 ; | |
28381 | int val3 ; | |
28382 | int ecode3 = 0 ; | |
28383 | PyObject * obj0 = 0 ; | |
28384 | PyObject * obj1 = 0 ; | |
28385 | PyObject * obj2 = 0 ; | |
28386 | char * kwnames[] = { | |
28387 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28388 | }; | |
28389 | ||
28390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28392 | if (!SWIG_IsOK(res1)) { | |
28393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28394 | } | |
28395 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28396 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28397 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28398 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28399 | } | |
28400 | if (!argp2) { | |
28401 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28402 | } |
28403 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28404 | if (obj2) { | |
28405 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28406 | if (!SWIG_IsOK(ecode3)) { | |
28407 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
28408 | } | |
28409 | arg3 = static_cast< int >(val3); | |
28410 | } | |
28411 | { | |
5c8c7dd3 | 28412 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28413 | if (PyErr_Occurred()) SWIG_fail; |
28414 | } | |
28415 | resultobj = SWIG_Py_Void(); | |
28416 | return resultobj; | |
28417 | fail: | |
28418 | return NULL; | |
28419 | } | |
28420 | ||
28421 | ||
28422 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28423 | PyObject *resultobj = 0; | |
28424 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
28425 | wxGraphicsPath *arg2 = 0 ; |
28426 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
28427 | void *argp1 = 0 ; |
28428 | int res1 = 0 ; | |
28429 | void *argp2 = 0 ; | |
28430 | int res2 = 0 ; | |
28431 | int val3 ; | |
28432 | int ecode3 = 0 ; | |
28433 | PyObject * obj0 = 0 ; | |
28434 | PyObject * obj1 = 0 ; | |
28435 | PyObject * obj2 = 0 ; | |
28436 | char * kwnames[] = { | |
28437 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
28438 | }; | |
28439 | ||
28440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28442 | if (!SWIG_IsOK(res1)) { | |
28443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28444 | } | |
28445 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 28446 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 28447 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
28448 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
28449 | } | |
28450 | if (!argp2) { | |
28451 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
28452 | } |
28453 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
28454 | if (obj2) { | |
28455 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28456 | if (!SWIG_IsOK(ecode3)) { | |
28457 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
28458 | } | |
28459 | arg3 = static_cast< int >(val3); | |
28460 | } | |
28461 | { | |
5c8c7dd3 | 28462 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
28463 | if (PyErr_Occurred()) SWIG_fail; |
28464 | } | |
28465 | resultobj = SWIG_Py_Void(); | |
28466 | return resultobj; | |
28467 | fail: | |
28468 | return NULL; | |
28469 | } | |
28470 | ||
28471 | ||
b39fe951 | 28472 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28473 | PyObject *resultobj = 0; |
28474 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28475 | wxString *arg2 = 0 ; | |
28476 | wxDouble arg3 ; | |
28477 | wxDouble arg4 ; | |
28478 | void *argp1 = 0 ; | |
28479 | int res1 = 0 ; | |
28480 | bool temp2 = false ; | |
28481 | double val3 ; | |
28482 | int ecode3 = 0 ; | |
28483 | double val4 ; | |
28484 | int ecode4 = 0 ; | |
b39fe951 RD |
28485 | PyObject * obj0 = 0 ; |
28486 | PyObject * obj1 = 0 ; | |
28487 | PyObject * obj2 = 0 ; | |
28488 | PyObject * obj3 = 0 ; | |
28489 | char * kwnames[] = { | |
28490 | (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL | |
28491 | }; | |
72ef6efb | 28492 | |
b39fe951 RD |
28493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
28494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
28495 | if (!SWIG_IsOK(res1)) { |
28496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28497 | } | |
28498 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28499 | { | |
b39fe951 | 28500 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28501 | if (arg2 == NULL) SWIG_fail; |
28502 | temp2 = true; | |
28503 | } | |
b39fe951 | 28504 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
28505 | if (!SWIG_IsOK(ecode3)) { |
28506 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28507 | } | |
28508 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 28509 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
28510 | if (!SWIG_IsOK(ecode4)) { |
28511 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28512 | } | |
28513 | arg4 = static_cast< wxDouble >(val4); | |
28514 | { | |
72ef6efb | 28515 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); |
72ef6efb RD |
28516 | if (PyErr_Occurred()) SWIG_fail; |
28517 | } | |
28518 | resultobj = SWIG_Py_Void(); | |
28519 | { | |
28520 | if (temp2) | |
28521 | delete arg2; | |
28522 | } | |
28523 | return resultobj; | |
28524 | fail: | |
28525 | { | |
28526 | if (temp2) | |
28527 | delete arg2; | |
28528 | } | |
28529 | return NULL; | |
28530 | } | |
28531 | ||
28532 | ||
b39fe951 | 28533 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28534 | PyObject *resultobj = 0; |
28535 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28536 | wxString *arg2 = 0 ; | |
28537 | wxDouble arg3 ; | |
28538 | wxDouble arg4 ; | |
28539 | wxDouble arg5 ; | |
28540 | void *argp1 = 0 ; | |
28541 | int res1 = 0 ; | |
28542 | bool temp2 = false ; | |
28543 | double val3 ; | |
28544 | int ecode3 = 0 ; | |
28545 | double val4 ; | |
28546 | int ecode4 = 0 ; | |
28547 | double val5 ; | |
28548 | int ecode5 = 0 ; | |
b39fe951 RD |
28549 | PyObject * obj0 = 0 ; |
28550 | PyObject * obj1 = 0 ; | |
28551 | PyObject * obj2 = 0 ; | |
28552 | PyObject * obj3 = 0 ; | |
28553 | PyObject * obj4 = 0 ; | |
28554 | char * kwnames[] = { | |
28555 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL | |
28556 | }; | |
72ef6efb | 28557 | |
b39fe951 RD |
28558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
28559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28560 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 28561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28562 | } |
28563 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28564 | { | |
b39fe951 | 28565 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
28566 | if (arg2 == NULL) SWIG_fail; |
28567 | temp2 = true; | |
28568 | } | |
b39fe951 | 28569 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 28570 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 28571 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28572 | } |
28573 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 28574 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 28575 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 28576 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28577 | } |
28578 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 28579 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 28580 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 28581 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28582 | } |
28583 | arg5 = static_cast< wxDouble >(val5); | |
28584 | { | |
72ef6efb | 28585 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5); |
72ef6efb RD |
28586 | if (PyErr_Occurred()) SWIG_fail; |
28587 | } | |
28588 | resultobj = SWIG_Py_Void(); | |
28589 | { | |
28590 | if (temp2) | |
28591 | delete arg2; | |
28592 | } | |
28593 | return resultobj; | |
28594 | fail: | |
28595 | { | |
28596 | if (temp2) | |
28597 | delete arg2; | |
28598 | } | |
28599 | return NULL; | |
28600 | } | |
28601 | ||
28602 | ||
be68621e | 28603 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28604 | PyObject *resultobj = 0; |
28605 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28606 | wxString *arg2 = 0 ; | |
28607 | wxDouble *arg3 = (wxDouble *) 0 ; | |
28608 | wxDouble *arg4 = (wxDouble *) 0 ; | |
28609 | wxDouble *arg5 = (wxDouble *) 0 ; | |
28610 | wxDouble *arg6 = (wxDouble *) 0 ; | |
28611 | void *argp1 = 0 ; | |
28612 | int res1 = 0 ; | |
28613 | bool temp2 = false ; | |
28614 | wxDouble temp3 ; | |
28615 | int res3 = SWIG_TMPOBJ ; | |
28616 | wxDouble temp4 ; | |
28617 | int res4 = SWIG_TMPOBJ ; | |
28618 | wxDouble temp5 ; | |
28619 | int res5 = SWIG_TMPOBJ ; | |
28620 | wxDouble temp6 ; | |
28621 | int res6 = SWIG_TMPOBJ ; | |
28622 | PyObject * obj0 = 0 ; | |
28623 | PyObject * obj1 = 0 ; | |
28624 | char * kwnames[] = { | |
28625 | (char *) "self",(char *) "text", NULL | |
28626 | }; | |
28627 | ||
28628 | arg3 = &temp3; | |
28629 | arg4 = &temp4; | |
28630 | arg5 = &temp5; | |
28631 | arg6 = &temp6; | |
be68621e | 28632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28634 | if (!SWIG_IsOK(res1)) { | |
be68621e | 28635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
28636 | } |
28637 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28638 | { | |
28639 | arg2 = wxString_in_helper(obj1); | |
28640 | if (arg2 == NULL) SWIG_fail; | |
28641 | temp2 = true; | |
28642 | } | |
28643 | { | |
72ef6efb | 28644 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
28645 | if (PyErr_Occurred()) SWIG_fail; |
28646 | } | |
28647 | resultobj = SWIG_Py_Void(); | |
28648 | if (SWIG_IsTmpObj(res3)) { | |
28649 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
28650 | } else { | |
28651 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28652 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
28653 | } | |
28654 | if (SWIG_IsTmpObj(res4)) { | |
28655 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
28656 | } else { | |
28657 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28658 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
28659 | } | |
28660 | if (SWIG_IsTmpObj(res5)) { | |
28661 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
28662 | } else { | |
28663 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28664 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
28665 | } | |
28666 | if (SWIG_IsTmpObj(res6)) { | |
28667 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
28668 | } else { | |
28669 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28670 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
28671 | } | |
28672 | { | |
28673 | if (temp2) | |
28674 | delete arg2; | |
28675 | } | |
28676 | return resultobj; | |
28677 | fail: | |
28678 | { | |
28679 | if (temp2) | |
28680 | delete arg2; | |
28681 | } | |
28682 | return NULL; | |
28683 | } | |
28684 | ||
28685 | ||
be68621e RD |
28686 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28687 | PyObject *resultobj = 0; | |
28688 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28689 | wxString *arg2 = 0 ; | |
28690 | PyObject *result = 0 ; | |
28691 | void *argp1 = 0 ; | |
28692 | int res1 = 0 ; | |
28693 | bool temp2 = false ; | |
28694 | PyObject * obj0 = 0 ; | |
28695 | PyObject * obj1 = 0 ; | |
28696 | char * kwnames[] = { | |
28697 | (char *) "self",(char *) "text", NULL | |
28698 | }; | |
28699 | ||
28700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
28701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28702 | if (!SWIG_IsOK(res1)) { | |
28703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28704 | } | |
28705 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28706 | { | |
28707 | arg2 = wxString_in_helper(obj1); | |
28708 | if (arg2 == NULL) SWIG_fail; | |
28709 | temp2 = true; | |
28710 | } | |
28711 | { | |
28712 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
28713 | if (PyErr_Occurred()) SWIG_fail; | |
28714 | } | |
28715 | resultobj = result; | |
28716 | { | |
28717 | if (temp2) | |
28718 | delete arg2; | |
28719 | } | |
28720 | return resultobj; | |
28721 | fail: | |
28722 | { | |
28723 | if (temp2) | |
28724 | delete arg2; | |
28725 | } | |
28726 | return NULL; | |
28727 | } | |
28728 | ||
28729 | ||
72ef6efb RD |
28730 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28731 | PyObject *resultobj = 0; | |
28732 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28733 | wxString *arg2 = 0 ; | |
b39fe951 | 28734 | wxArrayDouble result; |
72ef6efb RD |
28735 | void *argp1 = 0 ; |
28736 | int res1 = 0 ; | |
28737 | bool temp2 = false ; | |
72ef6efb RD |
28738 | PyObject * obj0 = 0 ; |
28739 | PyObject * obj1 = 0 ; | |
72ef6efb | 28740 | char * kwnames[] = { |
b39fe951 | 28741 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
28742 | }; |
28743 | ||
b39fe951 | 28744 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28745 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28746 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 28747 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28748 | } |
28749 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28750 | { | |
28751 | arg2 = wxString_in_helper(obj1); | |
28752 | if (arg2 == NULL) SWIG_fail; | |
28753 | temp2 = true; | |
28754 | } | |
72ef6efb | 28755 | { |
b39fe951 | 28756 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
28757 | if (PyErr_Occurred()) SWIG_fail; |
28758 | } | |
b39fe951 RD |
28759 | { |
28760 | resultobj = wxArrayDouble2PyList_helper(result); | |
28761 | } | |
72ef6efb RD |
28762 | { |
28763 | if (temp2) | |
28764 | delete arg2; | |
28765 | } | |
28766 | return resultobj; | |
28767 | fail: | |
28768 | { | |
28769 | if (temp2) | |
28770 | delete arg2; | |
28771 | } | |
28772 | return NULL; | |
28773 | } | |
28774 | ||
28775 | ||
28776 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28777 | PyObject *resultobj = 0; | |
28778 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28779 | wxBitmap *arg2 = 0 ; | |
28780 | wxDouble arg3 ; | |
28781 | wxDouble arg4 ; | |
28782 | wxDouble arg5 ; | |
28783 | wxDouble arg6 ; | |
28784 | void *argp1 = 0 ; | |
28785 | int res1 = 0 ; | |
28786 | void *argp2 = 0 ; | |
28787 | int res2 = 0 ; | |
28788 | double val3 ; | |
28789 | int ecode3 = 0 ; | |
28790 | double val4 ; | |
28791 | int ecode4 = 0 ; | |
28792 | double val5 ; | |
28793 | int ecode5 = 0 ; | |
28794 | double val6 ; | |
28795 | int ecode6 = 0 ; | |
28796 | PyObject * obj0 = 0 ; | |
28797 | PyObject * obj1 = 0 ; | |
28798 | PyObject * obj2 = 0 ; | |
28799 | PyObject * obj3 = 0 ; | |
28800 | PyObject * obj4 = 0 ; | |
28801 | PyObject * obj5 = 0 ; | |
28802 | char * kwnames[] = { | |
28803 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28804 | }; | |
28805 | ||
28806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28808 | if (!SWIG_IsOK(res1)) { | |
28809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28810 | } | |
28811 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28812 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
28813 | if (!SWIG_IsOK(res2)) { | |
28814 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
28815 | } | |
28816 | if (!argp2) { | |
28817 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
28818 | } | |
28819 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
28820 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28821 | if (!SWIG_IsOK(ecode3)) { | |
28822 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28823 | } | |
28824 | arg3 = static_cast< wxDouble >(val3); | |
28825 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28826 | if (!SWIG_IsOK(ecode4)) { | |
28827 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28828 | } | |
28829 | arg4 = static_cast< wxDouble >(val4); | |
28830 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28831 | if (!SWIG_IsOK(ecode5)) { | |
28832 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28833 | } | |
28834 | arg5 = static_cast< wxDouble >(val5); | |
28835 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28836 | if (!SWIG_IsOK(ecode6)) { | |
28837 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28838 | } | |
28839 | arg6 = static_cast< wxDouble >(val6); | |
28840 | { | |
72ef6efb | 28841 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
28842 | if (PyErr_Occurred()) SWIG_fail; |
28843 | } | |
28844 | resultobj = SWIG_Py_Void(); | |
28845 | return resultobj; | |
28846 | fail: | |
28847 | return NULL; | |
28848 | } | |
28849 | ||
28850 | ||
28851 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28852 | PyObject *resultobj = 0; | |
28853 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28854 | wxIcon *arg2 = 0 ; | |
28855 | wxDouble arg3 ; | |
28856 | wxDouble arg4 ; | |
28857 | wxDouble arg5 ; | |
28858 | wxDouble arg6 ; | |
28859 | void *argp1 = 0 ; | |
28860 | int res1 = 0 ; | |
28861 | void *argp2 = 0 ; | |
28862 | int res2 = 0 ; | |
28863 | double val3 ; | |
28864 | int ecode3 = 0 ; | |
28865 | double val4 ; | |
28866 | int ecode4 = 0 ; | |
28867 | double val5 ; | |
28868 | int ecode5 = 0 ; | |
70d7cb34 RD |
28869 | double val6 ; |
28870 | int ecode6 = 0 ; | |
28871 | PyObject * obj0 = 0 ; | |
28872 | PyObject * obj1 = 0 ; | |
28873 | PyObject * obj2 = 0 ; | |
28874 | PyObject * obj3 = 0 ; | |
28875 | PyObject * obj4 = 0 ; | |
28876 | PyObject * obj5 = 0 ; | |
28877 | char * kwnames[] = { | |
28878 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28879 | }; | |
28880 | ||
28881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
28882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28883 | if (!SWIG_IsOK(res1)) { | |
28884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28885 | } | |
28886 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28887 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
28888 | if (!SWIG_IsOK(res2)) { | |
28889 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
28890 | } | |
28891 | if (!argp2) { | |
28892 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
28893 | } | |
28894 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
28895 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28896 | if (!SWIG_IsOK(ecode3)) { | |
28897 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28898 | } | |
28899 | arg3 = static_cast< wxDouble >(val3); | |
28900 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28901 | if (!SWIG_IsOK(ecode4)) { | |
28902 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28903 | } | |
28904 | arg4 = static_cast< wxDouble >(val4); | |
28905 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28906 | if (!SWIG_IsOK(ecode5)) { | |
28907 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28908 | } | |
28909 | arg5 = static_cast< wxDouble >(val5); | |
28910 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28911 | if (!SWIG_IsOK(ecode6)) { | |
28912 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28913 | } | |
28914 | arg6 = static_cast< wxDouble >(val6); | |
28915 | { | |
28916 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
28917 | if (PyErr_Occurred()) SWIG_fail; | |
28918 | } | |
28919 | resultobj = SWIG_Py_Void(); | |
28920 | return resultobj; | |
28921 | fail: | |
28922 | return NULL; | |
28923 | } | |
28924 | ||
28925 | ||
28926 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28927 | PyObject *resultobj = 0; | |
28928 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28929 | wxDouble arg2 ; | |
28930 | wxDouble arg3 ; | |
28931 | wxDouble arg4 ; | |
28932 | wxDouble arg5 ; | |
28933 | void *argp1 = 0 ; | |
28934 | int res1 = 0 ; | |
28935 | double val2 ; | |
28936 | int ecode2 = 0 ; | |
28937 | double val3 ; | |
28938 | int ecode3 = 0 ; | |
28939 | double val4 ; | |
28940 | int ecode4 = 0 ; | |
28941 | double val5 ; | |
28942 | int ecode5 = 0 ; | |
28943 | PyObject * obj0 = 0 ; | |
28944 | PyObject * obj1 = 0 ; | |
28945 | PyObject * obj2 = 0 ; | |
28946 | PyObject * obj3 = 0 ; | |
28947 | PyObject * obj4 = 0 ; | |
28948 | char * kwnames[] = { | |
28949 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
28950 | }; | |
28951 | ||
28952 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28954 | if (!SWIG_IsOK(res1)) { | |
28955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28956 | } | |
28957 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28958 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28959 | if (!SWIG_IsOK(ecode2)) { | |
28960 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28961 | } | |
28962 | arg2 = static_cast< wxDouble >(val2); | |
28963 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28964 | if (!SWIG_IsOK(ecode3)) { | |
28965 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28966 | } | |
28967 | arg3 = static_cast< wxDouble >(val3); | |
28968 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28969 | if (!SWIG_IsOK(ecode4)) { | |
28970 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28971 | } | |
28972 | arg4 = static_cast< wxDouble >(val4); | |
28973 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28974 | if (!SWIG_IsOK(ecode5)) { | |
28975 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28976 | } | |
28977 | arg5 = static_cast< wxDouble >(val5); | |
28978 | { | |
28979 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
28980 | if (PyErr_Occurred()) SWIG_fail; | |
28981 | } | |
28982 | resultobj = SWIG_Py_Void(); | |
28983 | return resultobj; | |
28984 | fail: | |
28985 | return NULL; | |
28986 | } | |
28987 | ||
28988 | ||
28989 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28990 | PyObject *resultobj = 0; | |
28991 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28992 | size_t arg2 ; | |
28993 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
28994 | void *argp1 = 0 ; | |
28995 | int res1 = 0 ; | |
28996 | PyObject * obj0 = 0 ; | |
28997 | PyObject * obj1 = 0 ; | |
28998 | char * kwnames[] = { | |
28999 | (char *) "self",(char *) "points", NULL | |
29000 | }; | |
29001 | ||
29002 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
29003 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29004 | if (!SWIG_IsOK(res1)) { | |
29005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29006 | } | |
29007 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29008 | { | |
29009 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29010 | if (arg3 == NULL) SWIG_fail; | |
29011 | } | |
29012 | { | |
29013 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
29014 | if (PyErr_Occurred()) SWIG_fail; | |
29015 | } | |
29016 | resultobj = SWIG_Py_Void(); | |
29017 | { | |
29018 | if (arg3) delete [] arg3; | |
29019 | } | |
29020 | return resultobj; | |
29021 | fail: | |
29022 | { | |
29023 | if (arg3) delete [] arg3; | |
29024 | } | |
29025 | return NULL; | |
29026 | } | |
29027 | ||
29028 | ||
29029 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29030 | PyObject *resultobj = 0; | |
29031 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29032 | PyObject *arg2 = (PyObject *) 0 ; | |
29033 | PyObject *arg3 = (PyObject *) 0 ; | |
29034 | void *argp1 = 0 ; | |
29035 | int res1 = 0 ; | |
29036 | PyObject * obj0 = 0 ; | |
29037 | PyObject * obj1 = 0 ; | |
29038 | PyObject * obj2 = 0 ; | |
29039 | char * kwnames[] = { | |
29040 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
29041 | }; | |
29042 | ||
29043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29045 | if (!SWIG_IsOK(res1)) { | |
29046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29047 | } | |
29048 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29049 | arg2 = obj1; | |
29050 | arg3 = obj2; | |
29051 | { | |
29052 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
29053 | if (PyErr_Occurred()) SWIG_fail; | |
29054 | } | |
29055 | resultobj = SWIG_Py_Void(); | |
29056 | return resultobj; | |
29057 | fail: | |
29058 | return NULL; | |
29059 | } | |
29060 | ||
29061 | ||
29062 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29063 | PyObject *resultobj = 0; | |
29064 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29065 | size_t arg2 ; | |
29066 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
5c8c7dd3 | 29067 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
29068 | void *argp1 = 0 ; |
29069 | int res1 = 0 ; | |
29070 | int val4 ; | |
29071 | int ecode4 = 0 ; | |
29072 | PyObject * obj0 = 0 ; | |
29073 | PyObject * obj1 = 0 ; | |
29074 | PyObject * obj2 = 0 ; | |
29075 | char * kwnames[] = { | |
29076 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
29077 | }; | |
29078 | ||
29079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29081 | if (!SWIG_IsOK(res1)) { | |
29082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29083 | } | |
29084 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29085 | { | |
29086 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29087 | if (arg3 == NULL) SWIG_fail; | |
29088 | } | |
29089 | if (obj2) { | |
29090 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
29091 | if (!SWIG_IsOK(ecode4)) { | |
29092 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
29093 | } | |
29094 | arg4 = static_cast< int >(val4); | |
29095 | } | |
29096 | { | |
29097 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
29098 | if (PyErr_Occurred()) SWIG_fail; | |
29099 | } | |
29100 | resultobj = SWIG_Py_Void(); | |
29101 | { | |
29102 | if (arg3) delete [] arg3; | |
29103 | } | |
29104 | return resultobj; | |
29105 | fail: | |
29106 | { | |
29107 | if (arg3) delete [] arg3; | |
29108 | } | |
29109 | return NULL; | |
29110 | } | |
29111 | ||
29112 | ||
29113 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29114 | PyObject *resultobj = 0; | |
29115 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29116 | wxDouble arg2 ; | |
29117 | wxDouble arg3 ; | |
29118 | wxDouble arg4 ; | |
29119 | wxDouble arg5 ; | |
29120 | void *argp1 = 0 ; | |
29121 | int res1 = 0 ; | |
29122 | double val2 ; | |
29123 | int ecode2 = 0 ; | |
29124 | double val3 ; | |
29125 | int ecode3 = 0 ; | |
29126 | double val4 ; | |
29127 | int ecode4 = 0 ; | |
29128 | double val5 ; | |
29129 | int ecode5 = 0 ; | |
29130 | PyObject * obj0 = 0 ; | |
29131 | PyObject * obj1 = 0 ; | |
29132 | PyObject * obj2 = 0 ; | |
29133 | PyObject * obj3 = 0 ; | |
29134 | PyObject * obj4 = 0 ; | |
29135 | char * kwnames[] = { | |
29136 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29137 | }; | |
29138 | ||
29139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29141 | if (!SWIG_IsOK(res1)) { | |
29142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29143 | } | |
29144 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29145 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29146 | if (!SWIG_IsOK(ecode2)) { | |
29147 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29148 | } | |
29149 | arg2 = static_cast< wxDouble >(val2); | |
29150 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29151 | if (!SWIG_IsOK(ecode3)) { | |
29152 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29153 | } | |
29154 | arg3 = static_cast< wxDouble >(val3); | |
29155 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29156 | if (!SWIG_IsOK(ecode4)) { | |
29157 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29158 | } | |
29159 | arg4 = static_cast< wxDouble >(val4); | |
29160 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29161 | if (!SWIG_IsOK(ecode5)) { | |
29162 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29163 | } | |
29164 | arg5 = static_cast< wxDouble >(val5); | |
29165 | { | |
29166 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
29167 | if (PyErr_Occurred()) SWIG_fail; | |
29168 | } | |
29169 | resultobj = SWIG_Py_Void(); | |
29170 | return resultobj; | |
29171 | fail: | |
29172 | return NULL; | |
29173 | } | |
29174 | ||
29175 | ||
29176 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29177 | PyObject *resultobj = 0; | |
29178 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29179 | wxDouble arg2 ; | |
29180 | wxDouble arg3 ; | |
29181 | wxDouble arg4 ; | |
29182 | wxDouble arg5 ; | |
29183 | void *argp1 = 0 ; | |
29184 | int res1 = 0 ; | |
29185 | double val2 ; | |
29186 | int ecode2 = 0 ; | |
29187 | double val3 ; | |
29188 | int ecode3 = 0 ; | |
29189 | double val4 ; | |
29190 | int ecode4 = 0 ; | |
29191 | double val5 ; | |
29192 | int ecode5 = 0 ; | |
72ef6efb RD |
29193 | PyObject * obj0 = 0 ; |
29194 | PyObject * obj1 = 0 ; | |
29195 | PyObject * obj2 = 0 ; | |
29196 | PyObject * obj3 = 0 ; | |
29197 | PyObject * obj4 = 0 ; | |
72ef6efb | 29198 | char * kwnames[] = { |
70d7cb34 | 29199 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
29200 | }; |
29201 | ||
70d7cb34 | 29202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
29203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29204 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29206 | } |
29207 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29208 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29209 | if (!SWIG_IsOK(ecode2)) { | |
29210 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29211 | } | |
29212 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
29213 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
29214 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29216 | } |
29217 | arg3 = static_cast< wxDouble >(val3); | |
29218 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29219 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29220 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29221 | } |
29222 | arg4 = static_cast< wxDouble >(val4); | |
29223 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29224 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29225 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29226 | } |
29227 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 29228 | { |
70d7cb34 | 29229 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
29230 | if (PyErr_Occurred()) SWIG_fail; |
29231 | } | |
29232 | resultobj = SWIG_Py_Void(); | |
29233 | return resultobj; | |
29234 | fail: | |
29235 | return NULL; | |
29236 | } | |
29237 | ||
29238 | ||
70d7cb34 | 29239 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29240 | PyObject *resultobj = 0; |
29241 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29242 | wxDouble arg2 ; | |
29243 | wxDouble arg3 ; | |
29244 | wxDouble arg4 ; | |
29245 | wxDouble arg5 ; | |
70d7cb34 | 29246 | wxDouble arg6 ; |
72ef6efb RD |
29247 | void *argp1 = 0 ; |
29248 | int res1 = 0 ; | |
29249 | double val2 ; | |
29250 | int ecode2 = 0 ; | |
29251 | double val3 ; | |
29252 | int ecode3 = 0 ; | |
29253 | double val4 ; | |
29254 | int ecode4 = 0 ; | |
29255 | double val5 ; | |
29256 | int ecode5 = 0 ; | |
70d7cb34 RD |
29257 | double val6 ; |
29258 | int ecode6 = 0 ; | |
72ef6efb RD |
29259 | PyObject * obj0 = 0 ; |
29260 | PyObject * obj1 = 0 ; | |
29261 | PyObject * obj2 = 0 ; | |
29262 | PyObject * obj3 = 0 ; | |
29263 | PyObject * obj4 = 0 ; | |
70d7cb34 | 29264 | PyObject * obj5 = 0 ; |
72ef6efb | 29265 | char * kwnames[] = { |
70d7cb34 | 29266 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
29267 | }; |
29268 | ||
70d7cb34 | 29269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
29270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29271 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 29272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29273 | } |
29274 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29275 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29276 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29277 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29278 | } |
29279 | arg2 = static_cast< wxDouble >(val2); | |
29280 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29281 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29282 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29283 | } |
29284 | arg3 = static_cast< wxDouble >(val3); | |
29285 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29286 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29287 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29288 | } |
29289 | arg4 = static_cast< wxDouble >(val4); | |
29290 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29291 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29292 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29293 | } |
29294 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
29295 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
29296 | if (!SWIG_IsOK(ecode6)) { | |
29297 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29298 | } | |
29299 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 29300 | { |
70d7cb34 | 29301 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29302 | if (PyErr_Occurred()) SWIG_fail; |
29303 | } | |
29304 | resultobj = SWIG_Py_Void(); | |
29305 | return resultobj; | |
29306 | fail: | |
29307 | return NULL; | |
29308 | } | |
29309 | ||
29310 | ||
70d7cb34 | 29311 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
29312 | PyObject *resultobj = 0; |
29313 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29314 | bool result; |
72ef6efb RD |
29315 | void *argp1 = 0 ; |
29316 | int res1 = 0 ; | |
70d7cb34 | 29317 | PyObject *swig_obj[1] ; |
72ef6efb | 29318 | |
70d7cb34 RD |
29319 | if (!args) SWIG_fail; |
29320 | swig_obj[0] = args; | |
29321 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29322 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29324 | } |
29325 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 29326 | { |
70d7cb34 RD |
29327 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
29328 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 29329 | } |
72ef6efb | 29330 | { |
70d7cb34 RD |
29331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
29332 | } | |
29333 | return resultobj; | |
29334 | fail: | |
29335 | return NULL; | |
29336 | } | |
29337 | ||
29338 | ||
29339 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29340 | PyObject *obj; | |
29341 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29342 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
29343 | return SWIG_Py_Void(); | |
29344 | } | |
29345 | ||
29346 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29347 | PyObject *resultobj = 0; | |
29348 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29349 | void *argp1 = 0 ; | |
29350 | int res1 = 0 ; | |
29351 | PyObject *swig_obj[1] ; | |
29352 | ||
29353 | if (!args) SWIG_fail; | |
29354 | swig_obj[0] = args; | |
29355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
29356 | if (!SWIG_IsOK(res1)) { | |
29357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29358 | } | |
29359 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29360 | { | |
29361 | delete arg1; | |
29362 | ||
72ef6efb RD |
29363 | if (PyErr_Occurred()) SWIG_fail; |
29364 | } | |
29365 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
29366 | return resultobj; |
29367 | fail: | |
29368 | return NULL; | |
29369 | } | |
29370 | ||
29371 | ||
29372 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29373 | PyObject *resultobj = 0; | |
29374 | wxGraphicsRenderer *result = 0 ; | |
29375 | ||
29376 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 29377 | { |
70d7cb34 RD |
29378 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
29379 | if (PyErr_Occurred()) SWIG_fail; | |
29380 | } | |
29381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29382 | return resultobj; | |
29383 | fail: | |
29384 | return NULL; | |
29385 | } | |
29386 | ||
29387 | ||
29388 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29389 | PyObject *resultobj = 0; | |
29390 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29391 | wxWindowDC *arg2 = 0 ; | |
29392 | wxGraphicsContext *result = 0 ; | |
29393 | void *argp1 = 0 ; | |
29394 | int res1 = 0 ; | |
29395 | void *argp2 = 0 ; | |
29396 | int res2 = 0 ; | |
29397 | ||
29398 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29400 | if (!SWIG_IsOK(res1)) { | |
29401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29402 | } | |
29403 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29404 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
29405 | if (!SWIG_IsOK(res2)) { | |
29406 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29407 | } | |
29408 | if (!argp2) { | |
29409 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
29410 | } | |
29411 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
29412 | { | |
29413 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
29414 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29415 | } |
70d7cb34 | 29416 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29417 | return resultobj; |
29418 | fail: | |
70d7cb34 RD |
29419 | return NULL; |
29420 | } | |
29421 | ||
29422 | ||
29423 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29424 | PyObject *resultobj = 0; | |
29425 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29426 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29427 | wxGraphicsContext *result = 0 ; | |
29428 | void *argp1 = 0 ; | |
29429 | int res1 = 0 ; | |
29430 | void *argp2 = 0 ; | |
29431 | int res2 = 0 ; | |
29432 | ||
29433 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29434 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29435 | if (!SWIG_IsOK(res1)) { | |
29436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29437 | } | |
29438 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29439 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
29440 | if (!SWIG_IsOK(res2)) { | |
29441 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
29442 | } | |
29443 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 29444 | { |
70d7cb34 RD |
29445 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
29446 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 29447 | } |
70d7cb34 RD |
29448 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
29449 | return resultobj; | |
29450 | fail: | |
72ef6efb RD |
29451 | return NULL; |
29452 | } | |
29453 | ||
29454 | ||
70d7cb34 RD |
29455 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
29456 | int argc; | |
29457 | PyObject *argv[3]; | |
29458 | ||
29459 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
29460 | --argc; | |
29461 | if (argc == 2) { | |
29462 | int _v = 0; | |
29463 | { | |
29464 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
29465 | _v = SWIG_CheckState(res); | |
29466 | } | |
29467 | if (!_v) goto check_1; | |
29468 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
29469 | } | |
29470 | check_1: | |
29471 | ||
29472 | if (argc == 2) { | |
29473 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
29474 | } | |
29475 | ||
29476 | fail: | |
29477 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
29478 | return NULL; | |
29479 | } | |
29480 | ||
29481 | ||
29482 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
72ef6efb | 29483 | PyObject *resultobj = 0; |
70d7cb34 RD |
29484 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29485 | void *arg2 = (void *) 0 ; | |
29486 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
29487 | void *argp1 = 0 ; |
29488 | int res1 = 0 ; | |
70d7cb34 | 29489 | int res2 ; |
b39fe951 RD |
29490 | PyObject * obj0 = 0 ; |
29491 | PyObject * obj1 = 0 ; | |
b39fe951 | 29492 | char * kwnames[] = { |
70d7cb34 | 29493 | (char *) "self",(char *) "context", NULL |
b39fe951 | 29494 | }; |
72ef6efb | 29495 | |
70d7cb34 RD |
29496 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
29497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29498 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
29499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
29500 | } | |
29501 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29502 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
29503 | if (!SWIG_IsOK(res2)) { | |
29504 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 29505 | } |
72ef6efb | 29506 | { |
70d7cb34 | 29507 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
29508 | if (PyErr_Occurred()) SWIG_fail; |
29509 | } | |
70d7cb34 | 29510 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29511 | return resultobj; |
29512 | fail: | |
29513 | return NULL; | |
29514 | } | |
29515 | ||
29516 | ||
70d7cb34 | 29517 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29518 | PyObject *resultobj = 0; |
70d7cb34 RD |
29519 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29520 | void *arg2 = (void *) 0 ; | |
29521 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
29522 | void *argp1 = 0 ; |
29523 | int res1 = 0 ; | |
70d7cb34 | 29524 | int res2 ; |
72ef6efb RD |
29525 | PyObject * obj0 = 0 ; |
29526 | PyObject * obj1 = 0 ; | |
72ef6efb | 29527 | char * kwnames[] = { |
70d7cb34 | 29528 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
29529 | }; |
29530 | ||
70d7cb34 RD |
29531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
29532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29533 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 29535 | } |
70d7cb34 RD |
29536 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
29537 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
29538 | if (!SWIG_IsOK(res2)) { | |
29539 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
29540 | } |
29541 | { | |
70d7cb34 | 29542 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
29543 | if (PyErr_Occurred()) SWIG_fail; |
29544 | } | |
70d7cb34 | 29545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29546 | return resultobj; |
29547 | fail: | |
70d7cb34 RD |
29548 | return NULL; |
29549 | } | |
29550 | ||
29551 | ||
29552 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29553 | PyObject *resultobj = 0; | |
29554 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 29555 | wxGraphicsPath result; |
70d7cb34 RD |
29556 | void *argp1 = 0 ; |
29557 | int res1 = 0 ; | |
29558 | PyObject *swig_obj[1] ; | |
29559 | ||
29560 | if (!args) SWIG_fail; | |
29561 | swig_obj[0] = args; | |
29562 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29563 | if (!SWIG_IsOK(res1)) { | |
29564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29565 | } | |
29566 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 29567 | { |
5c8c7dd3 | 29568 | result = (arg1)->CreatePath(); |
70d7cb34 | 29569 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 29570 | } |
5c8c7dd3 | 29571 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
29572 | return resultobj; |
29573 | fail: | |
72ef6efb RD |
29574 | return NULL; |
29575 | } | |
29576 | ||
29577 | ||
70d7cb34 | 29578 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29579 | PyObject *resultobj = 0; |
70d7cb34 RD |
29580 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29581 | wxDouble arg2 = (wxDouble) 1.0 ; | |
29582 | wxDouble arg3 = (wxDouble) 0.0 ; | |
29583 | wxDouble arg4 = (wxDouble) 0.0 ; | |
29584 | wxDouble arg5 = (wxDouble) 1.0 ; | |
29585 | wxDouble arg6 = (wxDouble) 0.0 ; | |
29586 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 29587 | wxGraphicsMatrix result; |
72ef6efb RD |
29588 | void *argp1 = 0 ; |
29589 | int res1 = 0 ; | |
29590 | double val2 ; | |
29591 | int ecode2 = 0 ; | |
29592 | double val3 ; | |
29593 | int ecode3 = 0 ; | |
29594 | double val4 ; | |
29595 | int ecode4 = 0 ; | |
29596 | double val5 ; | |
29597 | int ecode5 = 0 ; | |
70d7cb34 RD |
29598 | double val6 ; |
29599 | int ecode6 = 0 ; | |
29600 | double val7 ; | |
29601 | int ecode7 = 0 ; | |
72ef6efb RD |
29602 | PyObject * obj0 = 0 ; |
29603 | PyObject * obj1 = 0 ; | |
29604 | PyObject * obj2 = 0 ; | |
29605 | PyObject * obj3 = 0 ; | |
29606 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
29607 | PyObject * obj5 = 0 ; |
29608 | PyObject * obj6 = 0 ; | |
72ef6efb | 29609 | char * kwnames[] = { |
70d7cb34 | 29610 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
29611 | }; |
29612 | ||
70d7cb34 RD |
29613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
29614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29615 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
29616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
29617 | } | |
29618 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29619 | if (obj1) { | |
29620 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29621 | if (!SWIG_IsOK(ecode2)) { | |
29622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29623 | } | |
29624 | arg2 = static_cast< wxDouble >(val2); | |
29625 | } | |
29626 | if (obj2) { | |
29627 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29628 | if (!SWIG_IsOK(ecode3)) { | |
29629 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29630 | } | |
29631 | arg3 = static_cast< wxDouble >(val3); | |
29632 | } | |
29633 | if (obj3) { | |
29634 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29635 | if (!SWIG_IsOK(ecode4)) { | |
29636 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29637 | } | |
29638 | arg4 = static_cast< wxDouble >(val4); | |
29639 | } | |
29640 | if (obj4) { | |
29641 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29642 | if (!SWIG_IsOK(ecode5)) { | |
29643 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29644 | } | |
29645 | arg5 = static_cast< wxDouble >(val5); | |
29646 | } | |
29647 | if (obj5) { | |
29648 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29649 | if (!SWIG_IsOK(ecode6)) { | |
29650 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29651 | } | |
29652 | arg6 = static_cast< wxDouble >(val6); | |
29653 | } | |
29654 | if (obj6) { | |
29655 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
29656 | if (!SWIG_IsOK(ecode7)) { | |
29657 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
29658 | } | |
29659 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 29660 | } |
72ef6efb | 29661 | { |
5c8c7dd3 | 29662 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
29663 | if (PyErr_Occurred()) SWIG_fail; |
29664 | } | |
5c8c7dd3 | 29665 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29666 | return resultobj; |
29667 | fail: | |
29668 | return NULL; | |
29669 | } | |
29670 | ||
29671 | ||
70d7cb34 | 29672 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29673 | PyObject *resultobj = 0; |
70d7cb34 RD |
29674 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
29675 | wxPen *arg2 = 0 ; | |
29676 | wxGraphicsPen result; | |
29677 | void *argp1 = 0 ; | |
29678 | int res1 = 0 ; | |
29679 | void *argp2 = 0 ; | |
29680 | int res2 = 0 ; | |
29681 | PyObject * obj0 = 0 ; | |
29682 | PyObject * obj1 = 0 ; | |
29683 | char * kwnames[] = { | |
29684 | (char *) "self",(char *) "pen", NULL | |
29685 | }; | |
29686 | ||
29687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
29688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29689 | if (!SWIG_IsOK(res1)) { | |
29690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29691 | } | |
29692 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29693 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
29694 | if (!SWIG_IsOK(res2)) { | |
29695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29696 | } | |
29697 | if (!argp2) { | |
29698 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29699 | } | |
29700 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29701 | { | |
29702 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
29703 | if (PyErr_Occurred()) SWIG_fail; | |
29704 | } | |
29705 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
29706 | return resultobj; | |
29707 | fail: | |
29708 | return NULL; | |
29709 | } | |
29710 | ||
29711 | ||
29712 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29713 | PyObject *resultobj = 0; | |
29714 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29715 | wxBrush *arg2 = 0 ; | |
29716 | wxGraphicsBrush result; | |
29717 | void *argp1 = 0 ; | |
29718 | int res1 = 0 ; | |
29719 | void *argp2 = 0 ; | |
29720 | int res2 = 0 ; | |
29721 | PyObject * obj0 = 0 ; | |
29722 | PyObject * obj1 = 0 ; | |
29723 | char * kwnames[] = { | |
29724 | (char *) "self",(char *) "brush", NULL | |
29725 | }; | |
29726 | ||
29727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
29728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29729 | if (!SWIG_IsOK(res1)) { | |
29730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29731 | } | |
29732 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29733 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
29734 | if (!SWIG_IsOK(res2)) { | |
29735 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29736 | } | |
29737 | if (!argp2) { | |
29738 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29739 | } | |
29740 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29741 | { | |
29742 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
29743 | if (PyErr_Occurred()) SWIG_fail; | |
29744 | } | |
29745 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
29746 | return resultobj; | |
29747 | fail: | |
29748 | return NULL; | |
29749 | } | |
29750 | ||
29751 | ||
29752 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29753 | PyObject *resultobj = 0; | |
29754 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
29755 | wxDouble arg2 ; |
29756 | wxDouble arg3 ; | |
29757 | wxDouble arg4 ; | |
29758 | wxDouble arg5 ; | |
70d7cb34 RD |
29759 | wxColour *arg6 = 0 ; |
29760 | wxColour *arg7 = 0 ; | |
29761 | wxGraphicsBrush result; | |
72ef6efb RD |
29762 | void *argp1 = 0 ; |
29763 | int res1 = 0 ; | |
29764 | double val2 ; | |
29765 | int ecode2 = 0 ; | |
29766 | double val3 ; | |
29767 | int ecode3 = 0 ; | |
29768 | double val4 ; | |
29769 | int ecode4 = 0 ; | |
29770 | double val5 ; | |
29771 | int ecode5 = 0 ; | |
70d7cb34 RD |
29772 | wxColour temp6 ; |
29773 | wxColour temp7 ; | |
72ef6efb RD |
29774 | PyObject * obj0 = 0 ; |
29775 | PyObject * obj1 = 0 ; | |
29776 | PyObject * obj2 = 0 ; | |
29777 | PyObject * obj3 = 0 ; | |
29778 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
29779 | PyObject * obj5 = 0 ; |
29780 | PyObject * obj6 = 0 ; | |
72ef6efb | 29781 | char * kwnames[] = { |
70d7cb34 | 29782 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
29783 | }; |
29784 | ||
70d7cb34 RD |
29785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
29786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29787 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 29789 | } |
70d7cb34 | 29790 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
29791 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29792 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29793 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29794 | } |
29795 | arg2 = static_cast< wxDouble >(val2); | |
29796 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29797 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29798 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29799 | } |
29800 | arg3 = static_cast< wxDouble >(val3); | |
29801 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29802 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29803 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29804 | } |
29805 | arg4 = static_cast< wxDouble >(val4); | |
29806 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29807 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29808 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29809 | } |
29810 | arg5 = static_cast< wxDouble >(val5); | |
29811 | { | |
70d7cb34 RD |
29812 | arg6 = &temp6; |
29813 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
29814 | } | |
29815 | { | |
29816 | arg7 = &temp7; | |
29817 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
29818 | } | |
29819 | { | |
29820 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
29821 | if (PyErr_Occurred()) SWIG_fail; |
29822 | } | |
70d7cb34 | 29823 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29824 | return resultobj; |
29825 | fail: | |
29826 | return NULL; | |
29827 | } | |
29828 | ||
29829 | ||
70d7cb34 | 29830 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 29831 | PyObject *resultobj = 0; |
70d7cb34 | 29832 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
29833 | wxDouble arg2 ; |
29834 | wxDouble arg3 ; | |
29835 | wxDouble arg4 ; | |
29836 | wxDouble arg5 ; | |
29837 | wxDouble arg6 ; | |
70d7cb34 RD |
29838 | wxColour *arg7 = 0 ; |
29839 | wxColour *arg8 = 0 ; | |
29840 | wxGraphicsBrush result; | |
72ef6efb RD |
29841 | void *argp1 = 0 ; |
29842 | int res1 = 0 ; | |
29843 | double val2 ; | |
29844 | int ecode2 = 0 ; | |
29845 | double val3 ; | |
29846 | int ecode3 = 0 ; | |
29847 | double val4 ; | |
29848 | int ecode4 = 0 ; | |
29849 | double val5 ; | |
29850 | int ecode5 = 0 ; | |
29851 | double val6 ; | |
29852 | int ecode6 = 0 ; | |
70d7cb34 RD |
29853 | wxColour temp7 ; |
29854 | wxColour temp8 ; | |
72ef6efb RD |
29855 | PyObject * obj0 = 0 ; |
29856 | PyObject * obj1 = 0 ; | |
29857 | PyObject * obj2 = 0 ; | |
29858 | PyObject * obj3 = 0 ; | |
29859 | PyObject * obj4 = 0 ; | |
29860 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
29861 | PyObject * obj6 = 0 ; |
29862 | PyObject * obj7 = 0 ; | |
72ef6efb | 29863 | char * kwnames[] = { |
70d7cb34 | 29864 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
29865 | }; |
29866 | ||
70d7cb34 RD |
29867 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
29868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 29869 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 29871 | } |
70d7cb34 | 29872 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
29873 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
29874 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 29875 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
29876 | } |
29877 | arg2 = static_cast< wxDouble >(val2); | |
29878 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29879 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 29880 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29881 | } |
29882 | arg3 = static_cast< wxDouble >(val3); | |
29883 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29884 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 29885 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29886 | } |
29887 | arg4 = static_cast< wxDouble >(val4); | |
29888 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29889 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 29890 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29891 | } |
29892 | arg5 = static_cast< wxDouble >(val5); | |
29893 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29894 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 29895 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
29896 | } |
29897 | arg6 = static_cast< wxDouble >(val6); | |
29898 | { | |
70d7cb34 RD |
29899 | arg7 = &temp7; |
29900 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
29901 | } | |
29902 | { | |
29903 | arg8 = &temp8; | |
29904 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
29905 | } | |
29906 | { | |
29907 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
29908 | if (PyErr_Occurred()) SWIG_fail; |
29909 | } | |
70d7cb34 | 29910 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
29911 | return resultobj; |
29912 | fail: | |
29913 | return NULL; | |
29914 | } | |
29915 | ||
29916 | ||
70d7cb34 RD |
29917 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29918 | PyObject *resultobj = 0; | |
29919 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
29920 | wxFont *arg2 = 0 ; | |
29921 | wxColour const &arg3_defvalue = *wxBLACK ; | |
29922 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
29923 | wxGraphicsFont result; | |
29924 | void *argp1 = 0 ; | |
29925 | int res1 = 0 ; | |
29926 | void *argp2 = 0 ; | |
29927 | int res2 = 0 ; | |
29928 | wxColour temp3 ; | |
29929 | PyObject * obj0 = 0 ; | |
29930 | PyObject * obj1 = 0 ; | |
29931 | PyObject * obj2 = 0 ; | |
29932 | char * kwnames[] = { | |
29933 | (char *) "self",(char *) "font",(char *) "col", NULL | |
29934 | }; | |
29935 | ||
29936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
29938 | if (!SWIG_IsOK(res1)) { | |
29939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
29940 | } | |
29941 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
29942 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
29943 | if (!SWIG_IsOK(res2)) { | |
29944 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29945 | } | |
29946 | if (!argp2) { | |
29947 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29948 | } | |
29949 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
29950 | if (obj2) { | |
29951 | { | |
29952 | arg3 = &temp3; | |
29953 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29954 | } | |
29955 | } | |
29956 | { | |
29957 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
29958 | if (PyErr_Occurred()) SWIG_fail; | |
29959 | } | |
29960 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
29961 | return resultobj; | |
29962 | fail: | |
29963 | return NULL; | |
29964 | } | |
29965 | ||
29966 | ||
29967 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
29968 | PyObject *obj; |
29969 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 29970 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
29971 | return SWIG_Py_Void(); |
29972 | } | |
29973 | ||
29974 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29975 | PyObject *resultobj = 0; | |
29976 | wxWindowDC *arg1 = 0 ; | |
29977 | wxGCDC *result = 0 ; | |
29978 | void *argp1 = 0 ; | |
29979 | int res1 = 0 ; | |
29980 | PyObject * obj0 = 0 ; | |
29981 | char * kwnames[] = { | |
29982 | (char *) "dc", NULL | |
29983 | }; | |
29984 | ||
29985 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail; | |
29986 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
29987 | if (!SWIG_IsOK(res1)) { | |
29988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
29989 | } | |
29990 | if (!argp1) { | |
29991 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
29992 | } | |
29993 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
29994 | { | |
29995 | if (!wxPyCheckForApp()) SWIG_fail; | |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
29998 | wxPyEndAllowThreads(__tstate); | |
29999 | if (PyErr_Occurred()) SWIG_fail; | |
30000 | } | |
30001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
30002 | return resultobj; | |
30003 | fail: | |
30004 | return NULL; | |
30005 | } | |
30006 | ||
30007 | ||
30008 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30009 | PyObject *resultobj = 0; | |
30010 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30011 | void *argp1 = 0 ; | |
30012 | int res1 = 0 ; | |
30013 | PyObject *swig_obj[1] ; | |
30014 | ||
30015 | if (!args) SWIG_fail; | |
30016 | swig_obj[0] = args; | |
30017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
30018 | if (!SWIG_IsOK(res1)) { | |
30019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30020 | } | |
30021 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30022 | { | |
72ef6efb RD |
30023 | delete arg1; |
30024 | ||
72ef6efb RD |
30025 | if (PyErr_Occurred()) SWIG_fail; |
30026 | } | |
30027 | resultobj = SWIG_Py_Void(); | |
30028 | return resultobj; | |
30029 | fail: | |
30030 | return NULL; | |
30031 | } | |
30032 | ||
30033 | ||
0a27f394 | 30034 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30035 | PyObject *resultobj = 0; |
30036 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30037 | wxGraphicsContext *result = 0 ; | |
30038 | void *argp1 = 0 ; | |
30039 | int res1 = 0 ; | |
30040 | PyObject *swig_obj[1] ; | |
30041 | ||
30042 | if (!args) SWIG_fail; | |
30043 | swig_obj[0] = args; | |
30044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30045 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 30046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
30047 | } |
30048 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30049 | { | |
0a27f394 | 30050 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
30051 | if (PyErr_Occurred()) SWIG_fail; |
30052 | } | |
30053 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30054 | return resultobj; | |
30055 | fail: | |
30056 | return NULL; | |
30057 | } | |
30058 | ||
30059 | ||
0a27f394 RD |
30060 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30061 | PyObject *resultobj = 0; | |
30062 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
30063 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
30064 | void *argp1 = 0 ; | |
30065 | int res1 = 0 ; | |
30066 | void *argp2 = 0 ; | |
30067 | int res2 = 0 ; | |
30068 | PyObject * obj0 = 0 ; | |
30069 | PyObject * obj1 = 0 ; | |
30070 | char * kwnames[] = { | |
30071 | (char *) "self",(char *) "ctx", NULL | |
30072 | }; | |
30073 | ||
30074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
30075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
30076 | if (!SWIG_IsOK(res1)) { | |
30077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
30078 | } | |
30079 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
30080 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30081 | if (!SWIG_IsOK(res2)) { | |
30082 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
30083 | } | |
30084 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
30085 | { | |
30086 | (arg1)->SetGraphicsContext(arg2); | |
30087 | if (PyErr_Occurred()) SWIG_fail; | |
30088 | } | |
30089 | resultobj = SWIG_Py_Void(); | |
30090 | return resultobj; | |
30091 | fail: | |
30092 | return NULL; | |
30093 | } | |
30094 | ||
30095 | ||
72ef6efb RD |
30096 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30097 | PyObject *obj; | |
30098 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30099 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
30100 | return SWIG_Py_Void(); | |
30101 | } | |
30102 | ||
30103 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30104 | return SWIG_Python_InitShadowInstance(args); | |
30105 | } | |
30106 | ||
b39fe951 RD |
30107 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30108 | PyObject *resultobj = 0; | |
30109 | wxOverlay *result = 0 ; | |
30110 | ||
30111 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
30112 | { | |
30113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30114 | result = (wxOverlay *)new wxOverlay(); | |
30115 | wxPyEndAllowThreads(__tstate); | |
30116 | if (PyErr_Occurred()) SWIG_fail; | |
30117 | } | |
30118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
30119 | return resultobj; | |
30120 | fail: | |
30121 | return NULL; | |
30122 | } | |
30123 | ||
30124 | ||
30125 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30126 | PyObject *resultobj = 0; | |
30127 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30128 | void *argp1 = 0 ; | |
30129 | int res1 = 0 ; | |
30130 | PyObject *swig_obj[1] ; | |
30131 | ||
30132 | if (!args) SWIG_fail; | |
30133 | swig_obj[0] = args; | |
30134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30135 | if (!SWIG_IsOK(res1)) { | |
30136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30137 | } | |
30138 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30139 | { | |
30140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30141 | delete arg1; | |
30142 | ||
30143 | wxPyEndAllowThreads(__tstate); | |
30144 | if (PyErr_Occurred()) SWIG_fail; | |
30145 | } | |
30146 | resultobj = SWIG_Py_Void(); | |
30147 | return resultobj; | |
30148 | fail: | |
30149 | return NULL; | |
30150 | } | |
30151 | ||
30152 | ||
30153 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30154 | PyObject *resultobj = 0; | |
30155 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
30156 | void *argp1 = 0 ; | |
30157 | int res1 = 0 ; | |
30158 | PyObject *swig_obj[1] ; | |
30159 | ||
30160 | if (!args) SWIG_fail; | |
30161 | swig_obj[0] = args; | |
30162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
30163 | if (!SWIG_IsOK(res1)) { | |
30164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
30165 | } | |
30166 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30167 | { | |
30168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30169 | (arg1)->Reset(); | |
30170 | wxPyEndAllowThreads(__tstate); | |
30171 | if (PyErr_Occurred()) SWIG_fail; | |
30172 | } | |
30173 | resultobj = SWIG_Py_Void(); | |
30174 | return resultobj; | |
30175 | fail: | |
30176 | return NULL; | |
30177 | } | |
30178 | ||
30179 | ||
30180 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30181 | PyObject *obj; | |
30182 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30183 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
30184 | return SWIG_Py_Void(); | |
30185 | } | |
30186 | ||
30187 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30188 | return SWIG_Python_InitShadowInstance(args); | |
30189 | } | |
30190 | ||
30191 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30192 | PyObject *resultobj = 0; | |
30193 | wxOverlay *arg1 = 0 ; | |
30194 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30195 | int arg3 ; | |
30196 | int arg4 ; | |
30197 | int arg5 ; | |
30198 | int arg6 ; | |
30199 | wxDCOverlay *result = 0 ; | |
30200 | void *argp1 = 0 ; | |
30201 | int res1 = 0 ; | |
30202 | void *argp2 = 0 ; | |
30203 | int res2 = 0 ; | |
30204 | int val3 ; | |
30205 | int ecode3 = 0 ; | |
30206 | int val4 ; | |
30207 | int ecode4 = 0 ; | |
30208 | int val5 ; | |
30209 | int ecode5 = 0 ; | |
30210 | int val6 ; | |
30211 | int ecode6 = 0 ; | |
30212 | ||
30213 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
30214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30215 | if (!SWIG_IsOK(res1)) { | |
30216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30217 | } | |
30218 | if (!argp1) { | |
30219 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30220 | } | |
30221 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30222 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30223 | if (!SWIG_IsOK(res2)) { | |
30224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30225 | } | |
30226 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30227 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
30228 | if (!SWIG_IsOK(ecode3)) { | |
30229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
30230 | } | |
30231 | arg3 = static_cast< int >(val3); | |
30232 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
30233 | if (!SWIG_IsOK(ecode4)) { | |
30234 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
30235 | } | |
30236 | arg4 = static_cast< int >(val4); | |
30237 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
30238 | if (!SWIG_IsOK(ecode5)) { | |
30239 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
30240 | } | |
30241 | arg5 = static_cast< int >(val5); | |
30242 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
30243 | if (!SWIG_IsOK(ecode6)) { | |
30244 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
30245 | } | |
30246 | arg6 = static_cast< int >(val6); | |
30247 | { | |
30248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30249 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
30250 | wxPyEndAllowThreads(__tstate); | |
30251 | if (PyErr_Occurred()) SWIG_fail; | |
30252 | } | |
30253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30254 | return resultobj; | |
30255 | fail: | |
30256 | return NULL; | |
30257 | } | |
30258 | ||
30259 | ||
30260 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30261 | PyObject *resultobj = 0; | |
30262 | wxOverlay *arg1 = 0 ; | |
30263 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
30264 | wxDCOverlay *result = 0 ; | |
30265 | void *argp1 = 0 ; | |
30266 | int res1 = 0 ; | |
30267 | void *argp2 = 0 ; | |
30268 | int res2 = 0 ; | |
30269 | ||
30270 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30271 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
30272 | if (!SWIG_IsOK(res1)) { | |
30273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30274 | } | |
30275 | if (!argp1) { | |
30276 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
30277 | } | |
30278 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
30279 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
30280 | if (!SWIG_IsOK(res2)) { | |
30281 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
30282 | } | |
30283 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30284 | { | |
30285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30286 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
30287 | wxPyEndAllowThreads(__tstate); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | } | |
30290 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
30291 | return resultobj; | |
30292 | fail: | |
30293 | return NULL; | |
30294 | } | |
30295 | ||
30296 | ||
30297 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
30298 | int argc; | |
30299 | PyObject *argv[7]; | |
30300 | ||
30301 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
30302 | --argc; | |
30303 | if (argc == 2) { | |
30304 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
30305 | } | |
30306 | if (argc == 6) { | |
30307 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
30308 | } | |
30309 | ||
30310 | fail: | |
30311 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
30312 | return NULL; | |
30313 | } | |
30314 | ||
30315 | ||
30316 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30317 | PyObject *resultobj = 0; | |
30318 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30319 | void *argp1 = 0 ; | |
30320 | int res1 = 0 ; | |
30321 | PyObject *swig_obj[1] ; | |
30322 | ||
30323 | if (!args) SWIG_fail; | |
30324 | swig_obj[0] = args; | |
30325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
30326 | if (!SWIG_IsOK(res1)) { | |
30327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30328 | } | |
30329 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30330 | { | |
30331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30332 | delete arg1; | |
30333 | ||
30334 | wxPyEndAllowThreads(__tstate); | |
30335 | if (PyErr_Occurred()) SWIG_fail; | |
30336 | } | |
30337 | resultobj = SWIG_Py_Void(); | |
30338 | return resultobj; | |
30339 | fail: | |
30340 | return NULL; | |
30341 | } | |
30342 | ||
30343 | ||
30344 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30345 | PyObject *resultobj = 0; | |
30346 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
30347 | void *argp1 = 0 ; | |
30348 | int res1 = 0 ; | |
30349 | PyObject *swig_obj[1] ; | |
30350 | ||
30351 | if (!args) SWIG_fail; | |
30352 | swig_obj[0] = args; | |
30353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
30354 | if (!SWIG_IsOK(res1)) { | |
30355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
30356 | } | |
30357 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
30358 | { | |
30359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30360 | (arg1)->Clear(); | |
30361 | wxPyEndAllowThreads(__tstate); | |
30362 | if (PyErr_Occurred()) SWIG_fail; | |
30363 | } | |
30364 | resultobj = SWIG_Py_Void(); | |
30365 | return resultobj; | |
30366 | fail: | |
30367 | return NULL; | |
30368 | } | |
30369 | ||
30370 | ||
30371 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30372 | PyObject *obj; | |
30373 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30374 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
30375 | return SWIG_Py_Void(); | |
30376 | } | |
30377 | ||
30378 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30379 | return SWIG_Python_InitShadowInstance(args); | |
30380 | } | |
30381 | ||
72ef6efb RD |
30382 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30383 | PyObject *resultobj = 0; | |
30384 | int arg1 ; | |
30385 | int arg2 ; | |
30386 | int arg3 = (int) true ; | |
30387 | int arg4 = (int) 1 ; | |
30388 | wxImageList *result = 0 ; | |
30389 | int val1 ; | |
30390 | int ecode1 = 0 ; | |
30391 | int val2 ; | |
30392 | int ecode2 = 0 ; | |
30393 | int val3 ; | |
30394 | int ecode3 = 0 ; | |
30395 | int val4 ; | |
30396 | int ecode4 = 0 ; | |
30397 | PyObject * obj0 = 0 ; | |
30398 | PyObject * obj1 = 0 ; | |
30399 | PyObject * obj2 = 0 ; | |
30400 | PyObject * obj3 = 0 ; | |
30401 | char * kwnames[] = { | |
30402 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
30403 | }; | |
30404 | ||
30405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30406 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
30407 | if (!SWIG_IsOK(ecode1)) { | |
30408 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
30409 | } | |
30410 | arg1 = static_cast< int >(val1); | |
30411 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30412 | if (!SWIG_IsOK(ecode2)) { | |
30413 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
30414 | } | |
30415 | arg2 = static_cast< int >(val2); | |
30416 | if (obj2) { | |
30417 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30418 | if (!SWIG_IsOK(ecode3)) { | |
30419 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
30420 | } | |
30421 | arg3 = static_cast< int >(val3); | |
30422 | } | |
30423 | if (obj3) { | |
30424 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30425 | if (!SWIG_IsOK(ecode4)) { | |
30426 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
30427 | } | |
30428 | arg4 = static_cast< int >(val4); | |
30429 | } | |
30430 | { | |
30431 | if (!wxPyCheckForApp()) SWIG_fail; | |
30432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30433 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
30434 | wxPyEndAllowThreads(__tstate); | |
30435 | if (PyErr_Occurred()) SWIG_fail; | |
30436 | } | |
e02c0a13 | 30437 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
30438 | return resultobj; |
30439 | fail: | |
30440 | return NULL; | |
30441 | } | |
30442 | ||
30443 | ||
30444 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30445 | PyObject *resultobj = 0; | |
30446 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30447 | void *argp1 = 0 ; | |
30448 | int res1 = 0 ; | |
30449 | PyObject *swig_obj[1] ; | |
30450 | ||
30451 | if (!args) SWIG_fail; | |
30452 | swig_obj[0] = args; | |
30453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
30454 | if (!SWIG_IsOK(res1)) { | |
30455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30456 | } | |
30457 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30458 | { | |
30459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30460 | delete arg1; | |
30461 | ||
30462 | wxPyEndAllowThreads(__tstate); | |
30463 | if (PyErr_Occurred()) SWIG_fail; | |
30464 | } | |
30465 | resultobj = SWIG_Py_Void(); | |
30466 | return resultobj; | |
30467 | fail: | |
30468 | return NULL; | |
30469 | } | |
30470 | ||
30471 | ||
30472 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30473 | PyObject *resultobj = 0; | |
30474 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30475 | wxBitmap *arg2 = 0 ; | |
30476 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
30477 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
30478 | int result; | |
30479 | void *argp1 = 0 ; | |
30480 | int res1 = 0 ; | |
30481 | void *argp2 = 0 ; | |
30482 | int res2 = 0 ; | |
30483 | void *argp3 = 0 ; | |
30484 | int res3 = 0 ; | |
30485 | PyObject * obj0 = 0 ; | |
30486 | PyObject * obj1 = 0 ; | |
30487 | PyObject * obj2 = 0 ; | |
30488 | char * kwnames[] = { | |
30489 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
30490 | }; | |
30491 | ||
30492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30494 | if (!SWIG_IsOK(res1)) { | |
30495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30496 | } | |
30497 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30498 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30499 | if (!SWIG_IsOK(res2)) { | |
30500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30501 | } | |
30502 | if (!argp2) { | |
30503 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30504 | } | |
30505 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30506 | if (obj2) { | |
30507 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30508 | if (!SWIG_IsOK(res3)) { | |
30509 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30510 | } | |
30511 | if (!argp3) { | |
30512 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30513 | } | |
30514 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
30515 | } | |
30516 | { | |
30517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30518 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
30519 | wxPyEndAllowThreads(__tstate); | |
30520 | if (PyErr_Occurred()) SWIG_fail; | |
30521 | } | |
30522 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30523 | return resultobj; | |
30524 | fail: | |
30525 | return NULL; | |
30526 | } | |
30527 | ||
30528 | ||
30529 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30530 | PyObject *resultobj = 0; | |
30531 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30532 | wxBitmap *arg2 = 0 ; | |
30533 | wxColour *arg3 = 0 ; | |
30534 | int result; | |
30535 | void *argp1 = 0 ; | |
30536 | int res1 = 0 ; | |
30537 | void *argp2 = 0 ; | |
30538 | int res2 = 0 ; | |
30539 | wxColour temp3 ; | |
30540 | PyObject * obj0 = 0 ; | |
30541 | PyObject * obj1 = 0 ; | |
30542 | PyObject * obj2 = 0 ; | |
30543 | char * kwnames[] = { | |
30544 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
30545 | }; | |
30546 | ||
30547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30549 | if (!SWIG_IsOK(res1)) { | |
30550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30551 | } | |
30552 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30553 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30554 | if (!SWIG_IsOK(res2)) { | |
30555 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30556 | } | |
30557 | if (!argp2) { | |
30558 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30559 | } | |
30560 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30561 | { | |
30562 | arg3 = &temp3; | |
30563 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30564 | } | |
30565 | { | |
30566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30567 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
30568 | wxPyEndAllowThreads(__tstate); | |
30569 | if (PyErr_Occurred()) SWIG_fail; | |
30570 | } | |
30571 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30572 | return resultobj; | |
30573 | fail: | |
30574 | return NULL; | |
30575 | } | |
30576 | ||
30577 | ||
30578 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30579 | PyObject *resultobj = 0; | |
30580 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30581 | wxIcon *arg2 = 0 ; | |
30582 | int result; | |
30583 | void *argp1 = 0 ; | |
30584 | int res1 = 0 ; | |
30585 | void *argp2 = 0 ; | |
30586 | int res2 = 0 ; | |
30587 | PyObject * obj0 = 0 ; | |
30588 | PyObject * obj1 = 0 ; | |
30589 | char * kwnames[] = { | |
30590 | (char *) "self",(char *) "icon", NULL | |
30591 | }; | |
30592 | ||
30593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
30594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30595 | if (!SWIG_IsOK(res1)) { | |
30596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30597 | } | |
0085ce49 RD |
30598 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
30599 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30600 | if (!SWIG_IsOK(res2)) { | |
30601 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30602 | } | |
30603 | if (!argp2) { | |
30604 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30605 | } | |
30606 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30607 | { | |
30608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30609 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
30610 | wxPyEndAllowThreads(__tstate); | |
30611 | if (PyErr_Occurred()) SWIG_fail; | |
30612 | } | |
30613 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30614 | return resultobj; | |
30615 | fail: | |
30616 | return NULL; | |
30617 | } | |
30618 | ||
30619 | ||
30620 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30621 | PyObject *resultobj = 0; | |
30622 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30623 | int arg2 ; | |
30624 | SwigValueWrapper<wxBitmap > result; | |
30625 | void *argp1 = 0 ; | |
30626 | int res1 = 0 ; | |
30627 | int val2 ; | |
30628 | int ecode2 = 0 ; | |
30629 | PyObject * obj0 = 0 ; | |
30630 | PyObject * obj1 = 0 ; | |
30631 | char * kwnames[] = { | |
30632 | (char *) "self",(char *) "index", NULL | |
30633 | }; | |
30634 | ||
30635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
30636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30637 | if (!SWIG_IsOK(res1)) { | |
30638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
30639 | } | |
30640 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30641 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30642 | if (!SWIG_IsOK(ecode2)) { | |
30643 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
30644 | } | |
30645 | arg2 = static_cast< int >(val2); | |
30646 | { | |
30647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30648 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
30649 | wxPyEndAllowThreads(__tstate); | |
30650 | if (PyErr_Occurred()) SWIG_fail; | |
30651 | } | |
30652 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
30653 | return resultobj; | |
30654 | fail: | |
30655 | return NULL; | |
30656 | } | |
30657 | ||
30658 | ||
30659 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30660 | PyObject *resultobj = 0; | |
30661 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30662 | int arg2 ; | |
30663 | wxIcon result; | |
30664 | void *argp1 = 0 ; | |
30665 | int res1 = 0 ; | |
30666 | int val2 ; | |
30667 | int ecode2 = 0 ; | |
30668 | PyObject * obj0 = 0 ; | |
30669 | PyObject * obj1 = 0 ; | |
30670 | char * kwnames[] = { | |
30671 | (char *) "self",(char *) "index", NULL | |
30672 | }; | |
30673 | ||
30674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
30675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30676 | if (!SWIG_IsOK(res1)) { | |
30677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
30678 | } | |
30679 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30680 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30681 | if (!SWIG_IsOK(ecode2)) { | |
30682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
30683 | } | |
30684 | arg2 = static_cast< int >(val2); | |
30685 | { | |
30686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30687 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
30688 | wxPyEndAllowThreads(__tstate); | |
30689 | if (PyErr_Occurred()) SWIG_fail; | |
30690 | } | |
30691 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
30692 | return resultobj; | |
30693 | fail: | |
30694 | return NULL; | |
30695 | } | |
30696 | ||
30697 | ||
30698 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30699 | PyObject *resultobj = 0; | |
30700 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30701 | int arg2 ; | |
30702 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
30703 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
30704 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
30705 | bool result; |
30706 | void *argp1 = 0 ; | |
30707 | int res1 = 0 ; | |
30708 | int val2 ; | |
30709 | int ecode2 = 0 ; | |
30710 | void *argp3 = 0 ; | |
30711 | int res3 = 0 ; | |
01f6b6d3 RD |
30712 | void *argp4 = 0 ; |
30713 | int res4 = 0 ; | |
0085ce49 RD |
30714 | PyObject * obj0 = 0 ; |
30715 | PyObject * obj1 = 0 ; | |
30716 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 30717 | PyObject * obj3 = 0 ; |
0085ce49 | 30718 | char * kwnames[] = { |
01f6b6d3 | 30719 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
30720 | }; |
30721 | ||
01f6b6d3 | 30722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
30723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
30724 | if (!SWIG_IsOK(res1)) { | |
30725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30726 | } | |
30727 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30728 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30729 | if (!SWIG_IsOK(ecode2)) { | |
30730 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
30731 | } | |
30732 | arg2 = static_cast< int >(val2); | |
30733 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30734 | if (!SWIG_IsOK(res3)) { | |
30735 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30736 | } | |
30737 | if (!argp3) { | |
30738 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30739 | } | |
30740 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
30741 | if (obj3) { |
30742 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30743 | if (!SWIG_IsOK(res4)) { | |
30744 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
30745 | } | |
30746 | if (!argp4) { | |
30747 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
30748 | } | |
30749 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
30750 | } | |
0085ce49 RD |
30751 | { |
30752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 30753 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
30754 | wxPyEndAllowThreads(__tstate); |
30755 | if (PyErr_Occurred()) SWIG_fail; | |
30756 | } | |
30757 | { | |
30758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30759 | } | |
30760 | return resultobj; | |
30761 | fail: | |
30762 | return NULL; | |
30763 | } | |
30764 | ||
30765 | ||
30766 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30767 | PyObject *resultobj = 0; | |
30768 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30769 | int arg2 ; | |
30770 | wxDC *arg3 = 0 ; | |
30771 | int arg4 ; | |
30772 | int arg5 ; | |
30773 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
30774 | bool arg7 = (bool) (bool)false ; | |
30775 | bool result; | |
30776 | void *argp1 = 0 ; | |
30777 | int res1 = 0 ; | |
30778 | int val2 ; | |
30779 | int ecode2 = 0 ; | |
30780 | void *argp3 = 0 ; | |
30781 | int res3 = 0 ; | |
30782 | int val4 ; | |
30783 | int ecode4 = 0 ; | |
30784 | int val5 ; | |
30785 | int ecode5 = 0 ; | |
30786 | int val6 ; | |
30787 | int ecode6 = 0 ; | |
30788 | bool val7 ; | |
30789 | int ecode7 = 0 ; | |
30790 | PyObject * obj0 = 0 ; | |
30791 | PyObject * obj1 = 0 ; | |
30792 | PyObject * obj2 = 0 ; | |
30793 | PyObject * obj3 = 0 ; | |
30794 | PyObject * obj4 = 0 ; | |
30795 | PyObject * obj5 = 0 ; | |
30796 | PyObject * obj6 = 0 ; | |
30797 | char * kwnames[] = { | |
30798 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
30799 | }; | |
30800 | ||
30801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
30802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30803 | if (!SWIG_IsOK(res1)) { | |
30804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30805 | } | |
30806 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30807 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30808 | if (!SWIG_IsOK(ecode2)) { | |
30809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
30810 | } | |
30811 | arg2 = static_cast< int >(val2); | |
30812 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
30813 | if (!SWIG_IsOK(res3)) { | |
30814 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30815 | } | |
30816 | if (!argp3) { | |
30817 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30818 | } | |
30819 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
30820 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30821 | if (!SWIG_IsOK(ecode4)) { | |
30822 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
30823 | } | |
30824 | arg4 = static_cast< int >(val4); | |
30825 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
30826 | if (!SWIG_IsOK(ecode5)) { | |
30827 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
30828 | } | |
30829 | arg5 = static_cast< int >(val5); | |
30830 | if (obj5) { | |
30831 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
30832 | if (!SWIG_IsOK(ecode6)) { | |
30833 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
30834 | } | |
30835 | arg6 = static_cast< int >(val6); | |
30836 | } | |
30837 | if (obj6) { | |
30838 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
30839 | if (!SWIG_IsOK(ecode7)) { | |
30840 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
30841 | } | |
30842 | arg7 = static_cast< bool >(val7); | |
30843 | } | |
30844 | { | |
30845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30846 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
30847 | wxPyEndAllowThreads(__tstate); | |
30848 | if (PyErr_Occurred()) SWIG_fail; | |
30849 | } | |
30850 | { | |
30851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30852 | } | |
30853 | return resultobj; | |
30854 | fail: | |
30855 | return NULL; | |
30856 | } | |
30857 | ||
30858 | ||
30859 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30860 | PyObject *resultobj = 0; | |
30861 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30862 | int result; | |
30863 | void *argp1 = 0 ; | |
30864 | int res1 = 0 ; | |
30865 | PyObject *swig_obj[1] ; | |
30866 | ||
30867 | if (!args) SWIG_fail; | |
30868 | swig_obj[0] = args; | |
30869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30870 | if (!SWIG_IsOK(res1)) { | |
30871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30872 | } | |
30873 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30874 | { | |
30875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30876 | result = (int)(arg1)->GetImageCount(); | |
30877 | wxPyEndAllowThreads(__tstate); | |
30878 | if (PyErr_Occurred()) SWIG_fail; | |
30879 | } | |
30880 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30881 | return resultobj; | |
30882 | fail: | |
30883 | return NULL; | |
30884 | } | |
30885 | ||
30886 | ||
30887 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30888 | PyObject *resultobj = 0; | |
30889 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30890 | int arg2 ; | |
30891 | bool result; | |
30892 | void *argp1 = 0 ; | |
30893 | int res1 = 0 ; | |
30894 | int val2 ; | |
30895 | int ecode2 = 0 ; | |
30896 | PyObject * obj0 = 0 ; | |
30897 | PyObject * obj1 = 0 ; | |
30898 | char * kwnames[] = { | |
30899 | (char *) "self",(char *) "index", NULL | |
30900 | }; | |
30901 | ||
30902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
30903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30904 | if (!SWIG_IsOK(res1)) { | |
30905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30906 | } | |
30907 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30908 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30909 | if (!SWIG_IsOK(ecode2)) { | |
30910 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
30911 | } | |
30912 | arg2 = static_cast< int >(val2); | |
30913 | { | |
30914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30915 | result = (bool)(arg1)->Remove(arg2); | |
30916 | wxPyEndAllowThreads(__tstate); | |
30917 | if (PyErr_Occurred()) SWIG_fail; | |
30918 | } | |
30919 | { | |
30920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30921 | } | |
30922 | return resultobj; | |
30923 | fail: | |
30924 | return NULL; | |
30925 | } | |
30926 | ||
30927 | ||
30928 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30929 | PyObject *resultobj = 0; | |
30930 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30931 | bool result; | |
30932 | void *argp1 = 0 ; | |
30933 | int res1 = 0 ; | |
30934 | PyObject *swig_obj[1] ; | |
30935 | ||
30936 | if (!args) SWIG_fail; | |
30937 | swig_obj[0] = args; | |
30938 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30939 | if (!SWIG_IsOK(res1)) { | |
30940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30941 | } | |
30942 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30943 | { | |
30944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30945 | result = (bool)(arg1)->RemoveAll(); | |
30946 | wxPyEndAllowThreads(__tstate); | |
30947 | if (PyErr_Occurred()) SWIG_fail; | |
30948 | } | |
30949 | { | |
30950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30951 | } | |
30952 | return resultobj; | |
30953 | fail: | |
30954 | return NULL; | |
30955 | } | |
30956 | ||
30957 | ||
30958 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30959 | PyObject *resultobj = 0; | |
30960 | wxImageList *arg1 = (wxImageList *) 0 ; | |
30961 | int arg2 ; | |
30962 | int *arg3 = 0 ; | |
30963 | int *arg4 = 0 ; | |
30964 | void *argp1 = 0 ; | |
30965 | int res1 = 0 ; | |
30966 | int val2 ; | |
30967 | int ecode2 = 0 ; | |
30968 | int temp3 ; | |
30969 | int res3 = SWIG_TMPOBJ ; | |
30970 | int temp4 ; | |
30971 | int res4 = SWIG_TMPOBJ ; | |
30972 | PyObject * obj0 = 0 ; | |
30973 | PyObject * obj1 = 0 ; | |
30974 | char * kwnames[] = { | |
30975 | (char *) "self",(char *) "index", NULL | |
30976 | }; | |
30977 | ||
30978 | arg3 = &temp3; | |
30979 | arg4 = &temp4; | |
30980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
30981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
30982 | if (!SWIG_IsOK(res1)) { | |
30983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
30984 | } | |
30985 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
30986 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30987 | if (!SWIG_IsOK(ecode2)) { | |
30988 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
30989 | } | |
30990 | arg2 = static_cast< int >(val2); | |
30991 | { | |
30992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30993 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
30994 | wxPyEndAllowThreads(__tstate); | |
30995 | if (PyErr_Occurred()) SWIG_fail; | |
30996 | } | |
30997 | resultobj = SWIG_Py_Void(); | |
30998 | if (SWIG_IsTmpObj(res3)) { | |
30999 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
31000 | } else { | |
31001 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31002 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
31003 | } | |
31004 | if (SWIG_IsTmpObj(res4)) { | |
31005 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
31006 | } else { | |
31007 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
31008 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
31009 | } | |
31010 | return resultobj; | |
31011 | fail: | |
31012 | return NULL; | |
31013 | } | |
31014 | ||
31015 | ||
31016 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31017 | PyObject *obj; | |
31018 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31019 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
31020 | return SWIG_Py_Void(); | |
31021 | } | |
31022 | ||
31023 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31024 | return SWIG_Python_InitShadowInstance(args); | |
31025 | } | |
31026 | ||
50efceee RD |
31027 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31028 | PyObject *resultobj = 0; | |
31029 | wxStockGDI *result = 0 ; | |
0085ce49 | 31030 | |
50efceee RD |
31031 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
31032 | { | |
31033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31034 | result = (wxStockGDI *)new wxStockGDI(); | |
31035 | wxPyEndAllowThreads(__tstate); | |
31036 | if (PyErr_Occurred()) SWIG_fail; | |
31037 | } | |
31038 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
31039 | return resultobj; | |
31040 | fail: | |
31041 | return NULL; | |
0085ce49 RD |
31042 | } |
31043 | ||
31044 | ||
50efceee RD |
31045 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31046 | PyObject *resultobj = 0; | |
31047 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31048 | void *argp1 = 0 ; | |
31049 | int res1 = 0 ; | |
31050 | PyObject *swig_obj[1] ; | |
0085ce49 | 31051 | |
50efceee RD |
31052 | if (!args) SWIG_fail; |
31053 | swig_obj[0] = args; | |
31054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
31055 | if (!SWIG_IsOK(res1)) { | |
31056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31057 | } | |
31058 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31059 | { | |
31060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31061 | delete arg1; | |
31062 | ||
31063 | wxPyEndAllowThreads(__tstate); | |
31064 | if (PyErr_Occurred()) SWIG_fail; | |
31065 | } | |
31066 | resultobj = SWIG_Py_Void(); | |
31067 | return resultobj; | |
31068 | fail: | |
31069 | return NULL; | |
0085ce49 RD |
31070 | } |
31071 | ||
31072 | ||
50efceee RD |
31073 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31074 | PyObject *resultobj = 0; | |
0085ce49 | 31075 | |
50efceee RD |
31076 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
31077 | { | |
31078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31079 | wxStockGDI::DeleteAll(); | |
31080 | wxPyEndAllowThreads(__tstate); | |
31081 | if (PyErr_Occurred()) SWIG_fail; | |
31082 | } | |
31083 | resultobj = SWIG_Py_Void(); | |
31084 | return resultobj; | |
31085 | fail: | |
31086 | return NULL; | |
0085ce49 RD |
31087 | } |
31088 | ||
31089 | ||
50efceee RD |
31090 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31091 | PyObject *resultobj = 0; | |
31092 | wxStockGDI *result = 0 ; | |
0085ce49 | 31093 | |
50efceee RD |
31094 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
31095 | { | |
31096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31097 | { | |
31098 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
31099 | result = (wxStockGDI *) &_result_ref; | |
31100 | } | |
31101 | wxPyEndAllowThreads(__tstate); | |
31102 | if (PyErr_Occurred()) SWIG_fail; | |
31103 | } | |
31104 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31105 | return resultobj; | |
31106 | fail: | |
31107 | return NULL; | |
0085ce49 RD |
31108 | } |
31109 | ||
31110 | ||
50efceee RD |
31111 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31112 | PyObject *resultobj = 0; | |
31113 | wxStockGDI::Item arg1 ; | |
31114 | wxBrush *result = 0 ; | |
31115 | int val1 ; | |
31116 | int ecode1 = 0 ; | |
31117 | PyObject * obj0 = 0 ; | |
31118 | char * kwnames[] = { | |
31119 | (char *) "item", NULL | |
31120 | }; | |
31121 | ||
31122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
31123 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31124 | if (!SWIG_IsOK(ecode1)) { | |
31125 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31126 | } | |
31127 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31128 | { | |
31129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31130 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
31131 | wxPyEndAllowThreads(__tstate); | |
31132 | if (PyErr_Occurred()) SWIG_fail; | |
31133 | } | |
31134 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31135 | return resultobj; | |
31136 | fail: | |
31137 | return NULL; | |
0085ce49 RD |
31138 | } |
31139 | ||
31140 | ||
50efceee RD |
31141 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31142 | PyObject *resultobj = 0; | |
31143 | wxStockGDI::Item arg1 ; | |
31144 | wxColour *result = 0 ; | |
31145 | int val1 ; | |
31146 | int ecode1 = 0 ; | |
31147 | PyObject * obj0 = 0 ; | |
31148 | char * kwnames[] = { | |
31149 | (char *) "item", NULL | |
31150 | }; | |
0085ce49 | 31151 | |
50efceee RD |
31152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
31153 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31154 | if (!SWIG_IsOK(ecode1)) { | |
31155 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31156 | } | |
31157 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31158 | { | |
31159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31160 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
31161 | wxPyEndAllowThreads(__tstate); | |
31162 | if (PyErr_Occurred()) SWIG_fail; | |
31163 | } | |
31164 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
31165 | return resultobj; | |
31166 | fail: | |
31167 | return NULL; | |
0085ce49 RD |
31168 | } |
31169 | ||
31170 | ||
50efceee RD |
31171 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31172 | PyObject *resultobj = 0; | |
31173 | wxStockGDI::Item arg1 ; | |
31174 | wxCursor *result = 0 ; | |
31175 | int val1 ; | |
31176 | int ecode1 = 0 ; | |
31177 | PyObject * obj0 = 0 ; | |
31178 | char * kwnames[] = { | |
31179 | (char *) "item", NULL | |
31180 | }; | |
31181 | ||
31182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
31183 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31184 | if (!SWIG_IsOK(ecode1)) { | |
31185 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31186 | } | |
31187 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31188 | { | |
31189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31190 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
31191 | wxPyEndAllowThreads(__tstate); | |
31192 | if (PyErr_Occurred()) SWIG_fail; | |
31193 | } | |
31194 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
31195 | return resultobj; | |
31196 | fail: | |
31197 | return NULL; | |
0085ce49 RD |
31198 | } |
31199 | ||
31200 | ||
50efceee RD |
31201 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31202 | PyObject *resultobj = 0; | |
31203 | wxStockGDI::Item arg1 ; | |
31204 | wxPen *result = 0 ; | |
31205 | int val1 ; | |
31206 | int ecode1 = 0 ; | |
31207 | PyObject * obj0 = 0 ; | |
31208 | char * kwnames[] = { | |
31209 | (char *) "item", NULL | |
31210 | }; | |
31211 | ||
31212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
31213 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31214 | if (!SWIG_IsOK(ecode1)) { | |
31215 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
31216 | } | |
31217 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
31218 | { | |
31219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31220 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
31221 | wxPyEndAllowThreads(__tstate); | |
31222 | if (PyErr_Occurred()) SWIG_fail; | |
31223 | } | |
31224 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31225 | return resultobj; | |
31226 | fail: | |
31227 | return NULL; | |
0085ce49 RD |
31228 | } |
31229 | ||
31230 | ||
50efceee RD |
31231 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31232 | PyObject *resultobj = 0; | |
31233 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
31234 | wxStockGDI::Item arg2 ; | |
31235 | wxFont *result = 0 ; | |
31236 | void *argp1 = 0 ; | |
31237 | int res1 = 0 ; | |
31238 | int val2 ; | |
31239 | int ecode2 = 0 ; | |
31240 | PyObject * obj0 = 0 ; | |
31241 | PyObject * obj1 = 0 ; | |
31242 | char * kwnames[] = { | |
31243 | (char *) "self",(char *) "item", NULL | |
31244 | }; | |
0085ce49 | 31245 | |
50efceee RD |
31246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
31248 | if (!SWIG_IsOK(res1)) { | |
31249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
31250 | } | |
31251 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
31252 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31253 | if (!SWIG_IsOK(ecode2)) { | |
31254 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
31255 | } | |
31256 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
31257 | { | |
31258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31259 | result = (wxFont *)(arg1)->GetFont(arg2); | |
31260 | wxPyEndAllowThreads(__tstate); | |
31261 | if (PyErr_Occurred()) SWIG_fail; | |
31262 | } | |
31263 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
31264 | return resultobj; | |
31265 | fail: | |
31266 | return NULL; | |
0085ce49 RD |
31267 | } |
31268 | ||
31269 | ||
50efceee RD |
31270 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31271 | PyObject *obj; | |
31272 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31273 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
31274 | return SWIG_Py_Void(); | |
0085ce49 RD |
31275 | } |
31276 | ||
50efceee RD |
31277 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31278 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
31279 | } |
31280 | ||
0085ce49 RD |
31281 | SWIGINTERN int NullBitmap_set(PyObject *) { |
31282 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
31283 | return 1; | |
31284 | } | |
31285 | ||
31286 | ||
31287 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
31288 | PyObject *pyobj = 0; | |
31289 | ||
31290 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
31291 | return pyobj; | |
31292 | } | |
31293 | ||
31294 | ||
31295 | SWIGINTERN int NullIcon_set(PyObject *) { | |
31296 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
31297 | return 1; | |
31298 | } | |
31299 | ||
31300 | ||
31301 | SWIGINTERN PyObject *NullIcon_get(void) { | |
31302 | PyObject *pyobj = 0; | |
31303 | ||
31304 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
31305 | return pyobj; | |
31306 | } | |
31307 | ||
31308 | ||
31309 | SWIGINTERN int NullCursor_set(PyObject *) { | |
31310 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
31311 | return 1; | |
31312 | } | |
31313 | ||
31314 | ||
31315 | SWIGINTERN PyObject *NullCursor_get(void) { | |
31316 | PyObject *pyobj = 0; | |
31317 | ||
31318 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
31319 | return pyobj; | |
31320 | } | |
31321 | ||
31322 | ||
31323 | SWIGINTERN int NullPen_set(PyObject *) { | |
31324 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
31325 | return 1; | |
31326 | } | |
31327 | ||
31328 | ||
31329 | SWIGINTERN PyObject *NullPen_get(void) { | |
31330 | PyObject *pyobj = 0; | |
31331 | ||
31332 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
31333 | return pyobj; | |
31334 | } | |
31335 | ||
31336 | ||
31337 | SWIGINTERN int NullBrush_set(PyObject *) { | |
31338 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
31339 | return 1; | |
31340 | } | |
31341 | ||
31342 | ||
31343 | SWIGINTERN PyObject *NullBrush_get(void) { | |
31344 | PyObject *pyobj = 0; | |
31345 | ||
31346 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
31347 | return pyobj; | |
31348 | } | |
31349 | ||
31350 | ||
31351 | SWIGINTERN int NullPalette_set(PyObject *) { | |
31352 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
31353 | return 1; | |
31354 | } | |
31355 | ||
31356 | ||
31357 | SWIGINTERN PyObject *NullPalette_get(void) { | |
31358 | PyObject *pyobj = 0; | |
31359 | ||
31360 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
31361 | return pyobj; | |
31362 | } | |
31363 | ||
31364 | ||
31365 | SWIGINTERN int NullFont_set(PyObject *) { | |
31366 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
31367 | return 1; | |
31368 | } | |
31369 | ||
31370 | ||
31371 | SWIGINTERN PyObject *NullFont_get(void) { | |
31372 | PyObject *pyobj = 0; | |
31373 | ||
31374 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
31375 | return pyobj; | |
31376 | } | |
31377 | ||
31378 | ||
31379 | SWIGINTERN int NullColour_set(PyObject *) { | |
31380 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
31381 | return 1; | |
31382 | } | |
31383 | ||
31384 | ||
31385 | SWIGINTERN PyObject *NullColour_get(void) { | |
31386 | PyObject *pyobj = 0; | |
31387 | ||
31388 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
31389 | return pyobj; | |
31390 | } | |
31391 | ||
31392 | ||
50efceee | 31393 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 31394 | PyObject *resultobj = 0; |
50efceee RD |
31395 | wxGDIObjListBase *result = 0 ; |
31396 | ||
31397 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
31398 | { | |
31399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31400 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
31401 | wxPyEndAllowThreads(__tstate); | |
31402 | if (PyErr_Occurred()) SWIG_fail; | |
31403 | } | |
31404 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
31405 | return resultobj; | |
31406 | fail: | |
31407 | return NULL; | |
31408 | } | |
31409 | ||
31410 | ||
31411 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31412 | PyObject *resultobj = 0; | |
31413 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
31414 | void *argp1 = 0 ; |
31415 | int res1 = 0 ; | |
50efceee | 31416 | PyObject *swig_obj[1] ; |
0085ce49 | 31417 | |
50efceee RD |
31418 | if (!args) SWIG_fail; |
31419 | swig_obj[0] = args; | |
31420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 31421 | if (!SWIG_IsOK(res1)) { |
50efceee | 31422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 31423 | } |
50efceee | 31424 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
31425 | { |
31426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
31427 | delete arg1; |
31428 | ||
0085ce49 RD |
31429 | wxPyEndAllowThreads(__tstate); |
31430 | if (PyErr_Occurred()) SWIG_fail; | |
31431 | } | |
31432 | resultobj = SWIG_Py_Void(); | |
31433 | return resultobj; | |
31434 | fail: | |
31435 | return NULL; | |
31436 | } | |
31437 | ||
31438 | ||
50efceee RD |
31439 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31440 | PyObject *obj; | |
31441 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31442 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
31443 | return SWIG_Py_Void(); | |
31444 | } | |
31445 | ||
31446 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31447 | return SWIG_Python_InitShadowInstance(args); | |
31448 | } | |
31449 | ||
0085ce49 RD |
31450 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31451 | PyObject *resultobj = 0; | |
31452 | wxPenList *arg1 = (wxPenList *) 0 ; | |
31453 | wxColour *arg2 = 0 ; | |
31454 | int arg3 ; | |
31455 | int arg4 ; | |
31456 | wxPen *result = 0 ; | |
31457 | void *argp1 = 0 ; | |
31458 | int res1 = 0 ; | |
31459 | wxColour temp2 ; | |
31460 | int val3 ; | |
31461 | int ecode3 = 0 ; | |
31462 | int val4 ; | |
31463 | int ecode4 = 0 ; | |
31464 | PyObject * obj0 = 0 ; | |
31465 | PyObject * obj1 = 0 ; | |
31466 | PyObject * obj2 = 0 ; | |
31467 | PyObject * obj3 = 0 ; | |
31468 | char * kwnames[] = { | |
31469 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
31470 | }; | |
31471 | ||
31472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
31474 | if (!SWIG_IsOK(res1)) { | |
31475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
31476 | } | |
31477 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
31478 | { | |
31479 | arg2 = &temp2; | |
31480 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31481 | } | |
31482 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31483 | if (!SWIG_IsOK(ecode3)) { | |
31484 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
31485 | } | |
31486 | arg3 = static_cast< int >(val3); | |
31487 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31488 | if (!SWIG_IsOK(ecode4)) { | |
31489 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
31490 | } | |
31491 | arg4 = static_cast< int >(val4); | |
31492 | { | |
31493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31494 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
31495 | wxPyEndAllowThreads(__tstate); | |
31496 | if (PyErr_Occurred()) SWIG_fail; | |
31497 | } | |
31498 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
31499 | return resultobj; | |
31500 | fail: | |
31501 | return NULL; | |
31502 | } | |
31503 | ||
31504 | ||
50efceee | 31505 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
31506 | PyObject *resultobj = 0; |
31507 | wxPenList *arg1 = (wxPenList *) 0 ; | |
31508 | wxPen *arg2 = (wxPen *) 0 ; | |
31509 | void *argp1 = 0 ; | |
31510 | int res1 = 0 ; | |
31511 | void *argp2 = 0 ; | |
31512 | int res2 = 0 ; | |
31513 | PyObject * obj0 = 0 ; | |
31514 | PyObject * obj1 = 0 ; | |
31515 | char * kwnames[] = { | |
31516 | (char *) "self",(char *) "pen", NULL | |
31517 | }; | |
31518 | ||
50efceee | 31519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
31520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
31521 | if (!SWIG_IsOK(res1)) { | |
50efceee | 31522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
31523 | } |
31524 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
31525 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
31526 | if (!SWIG_IsOK(res2)) { | |
50efceee | 31527 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
0085ce49 RD |
31528 | } |
31529 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
31530 | { | |
31531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31532 | (arg1)->AddPen(arg2); |
0085ce49 RD |
31533 | wxPyEndAllowThreads(__tstate); |
31534 | if (PyErr_Occurred()) SWIG_fail; | |
31535 | } | |
31536 | resultobj = SWIG_Py_Void(); | |
31537 | return resultobj; | |
31538 | fail: | |
31539 | return NULL; | |
31540 | } | |
31541 | ||
31542 | ||
50efceee | 31543 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
31544 | PyObject *resultobj = 0; |
31545 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 31546 | wxPen *arg2 = (wxPen *) 0 ; |
0085ce49 RD |
31547 | void *argp1 = 0 ; |
31548 | int res1 = 0 ; | |
50efceee RD |
31549 | void *argp2 = 0 ; |
31550 | int res2 = 0 ; | |
31551 | PyObject * obj0 = 0 ; | |
31552 | PyObject * obj1 = 0 ; | |
31553 | char * kwnames[] = { | |
31554 | (char *) "self",(char *) "pen", NULL | |
31555 | }; | |
0085ce49 | 31556 | |
50efceee RD |
31557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
31558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
0085ce49 | 31559 | if (!SWIG_IsOK(res1)) { |
50efceee | 31560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
31561 | } |
31562 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
31563 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
31564 | if (!SWIG_IsOK(res2)) { | |
31565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
31566 | } | |
31567 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
0085ce49 RD |
31568 | { |
31569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31570 | (arg1)->RemovePen(arg2); |
0085ce49 RD |
31571 | wxPyEndAllowThreads(__tstate); |
31572 | if (PyErr_Occurred()) SWIG_fail; | |
31573 | } | |
50efceee | 31574 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
31575 | return resultobj; |
31576 | fail: | |
31577 | return NULL; | |
31578 | } | |
31579 | ||
31580 | ||
31581 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31582 | PyObject *obj; | |
31583 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31584 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
31585 | return SWIG_Py_Void(); | |
31586 | } | |
31587 | ||
50efceee RD |
31588 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31589 | PyObject *resultobj = 0; | |
31590 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
31591 | wxColour *arg2 = 0 ; | |
31592 | int arg3 = (int) wxSOLID ; | |
31593 | wxBrush *result = 0 ; | |
31594 | void *argp1 = 0 ; | |
31595 | int res1 = 0 ; | |
31596 | wxColour temp2 ; | |
31597 | int val3 ; | |
31598 | int ecode3 = 0 ; | |
31599 | PyObject * obj0 = 0 ; | |
31600 | PyObject * obj1 = 0 ; | |
31601 | PyObject * obj2 = 0 ; | |
31602 | char * kwnames[] = { | |
31603 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
31604 | }; | |
31605 | ||
31606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
31608 | if (!SWIG_IsOK(res1)) { | |
31609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
31610 | } | |
31611 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
31612 | { | |
31613 | arg2 = &temp2; | |
31614 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31615 | } | |
31616 | if (obj2) { | |
31617 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31618 | if (!SWIG_IsOK(ecode3)) { | |
31619 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
31620 | } | |
31621 | arg3 = static_cast< int >(val3); | |
31622 | } | |
31623 | { | |
31624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31625 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
31626 | wxPyEndAllowThreads(__tstate); | |
31627 | if (PyErr_Occurred()) SWIG_fail; | |
31628 | } | |
31629 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31630 | return resultobj; | |
31631 | fail: | |
31632 | return NULL; | |
31633 | } | |
31634 | ||
31635 | ||
0085ce49 RD |
31636 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31637 | PyObject *resultobj = 0; | |
31638 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
31639 | wxBrush *arg2 = (wxBrush *) 0 ; | |
31640 | void *argp1 = 0 ; | |
31641 | int res1 = 0 ; | |
31642 | void *argp2 = 0 ; | |
31643 | int res2 = 0 ; | |
31644 | PyObject * obj0 = 0 ; | |
31645 | PyObject * obj1 = 0 ; | |
31646 | char * kwnames[] = { | |
31647 | (char *) "self",(char *) "brush", NULL | |
31648 | }; | |
31649 | ||
31650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
31652 | if (!SWIG_IsOK(res1)) { | |
31653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
31654 | } | |
31655 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
31656 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31657 | if (!SWIG_IsOK(res2)) { | |
31658 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
31659 | } | |
31660 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31661 | { | |
31662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31663 | (arg1)->AddBrush(arg2); | |
31664 | wxPyEndAllowThreads(__tstate); | |
31665 | if (PyErr_Occurred()) SWIG_fail; | |
31666 | } | |
31667 | resultobj = SWIG_Py_Void(); | |
31668 | return resultobj; | |
31669 | fail: | |
31670 | return NULL; | |
31671 | } | |
31672 | ||
31673 | ||
50efceee | 31674 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
31675 | PyObject *resultobj = 0; |
31676 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 31677 | wxBrush *arg2 = (wxBrush *) 0 ; |
0085ce49 RD |
31678 | void *argp1 = 0 ; |
31679 | int res1 = 0 ; | |
50efceee RD |
31680 | void *argp2 = 0 ; |
31681 | int res2 = 0 ; | |
31682 | PyObject * obj0 = 0 ; | |
31683 | PyObject * obj1 = 0 ; | |
31684 | char * kwnames[] = { | |
31685 | (char *) "self",(char *) "brush", NULL | |
31686 | }; | |
31687 | ||
31688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
31690 | if (!SWIG_IsOK(res1)) { | |
31691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
31692 | } | |
31693 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
31694 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
31695 | if (!SWIG_IsOK(res2)) { | |
31696 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
31697 | } | |
31698 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31699 | { | |
31700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31701 | (arg1)->RemoveBrush(arg2); | |
31702 | wxPyEndAllowThreads(__tstate); | |
31703 | if (PyErr_Occurred()) SWIG_fail; | |
31704 | } | |
31705 | resultobj = SWIG_Py_Void(); | |
31706 | return resultobj; | |
31707 | fail: | |
31708 | return NULL; | |
31709 | } | |
31710 | ||
31711 | ||
31712 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31713 | PyObject *obj; | |
31714 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31715 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
31716 | return SWIG_Py_Void(); | |
31717 | } | |
31718 | ||
31719 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31720 | PyObject *resultobj = 0; | |
31721 | wxFontList *arg1 = (wxFontList *) 0 ; | |
31722 | int arg2 ; | |
31723 | int arg3 ; | |
31724 | int arg4 ; | |
31725 | int arg5 ; | |
31726 | bool arg6 = (bool) false ; | |
31727 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
31728 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31729 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
31730 | wxFont *result = 0 ; | |
31731 | void *argp1 = 0 ; | |
31732 | int res1 = 0 ; | |
31733 | int val2 ; | |
31734 | int ecode2 = 0 ; | |
0085ce49 RD |
31735 | int val3 ; |
31736 | int ecode3 = 0 ; | |
50efceee RD |
31737 | int val4 ; |
31738 | int ecode4 = 0 ; | |
31739 | int val5 ; | |
31740 | int ecode5 = 0 ; | |
31741 | bool val6 ; | |
31742 | int ecode6 = 0 ; | |
31743 | bool temp7 = false ; | |
31744 | int val8 ; | |
31745 | int ecode8 = 0 ; | |
0085ce49 RD |
31746 | PyObject * obj0 = 0 ; |
31747 | PyObject * obj1 = 0 ; | |
31748 | PyObject * obj2 = 0 ; | |
50efceee RD |
31749 | PyObject * obj3 = 0 ; |
31750 | PyObject * obj4 = 0 ; | |
31751 | PyObject * obj5 = 0 ; | |
31752 | PyObject * obj6 = 0 ; | |
31753 | PyObject * obj7 = 0 ; | |
0085ce49 | 31754 | char * kwnames[] = { |
50efceee | 31755 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
31756 | }; |
31757 | ||
50efceee RD |
31758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
31759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 31760 | if (!SWIG_IsOK(res1)) { |
50efceee | 31761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 31762 | } |
50efceee RD |
31763 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
31764 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31765 | if (!SWIG_IsOK(ecode2)) { | |
31766 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
31767 | } | |
31768 | arg2 = static_cast< int >(val2); | |
31769 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31770 | if (!SWIG_IsOK(ecode3)) { | |
31771 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
31772 | } | |
31773 | arg3 = static_cast< int >(val3); | |
31774 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31775 | if (!SWIG_IsOK(ecode4)) { | |
31776 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
31777 | } | |
31778 | arg4 = static_cast< int >(val4); | |
31779 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31780 | if (!SWIG_IsOK(ecode5)) { | |
31781 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
31782 | } | |
31783 | arg5 = static_cast< int >(val5); | |
31784 | if (obj5) { | |
31785 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
31786 | if (!SWIG_IsOK(ecode6)) { | |
31787 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
31788 | } | |
31789 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 31790 | } |
50efceee RD |
31791 | if (obj6) { |
31792 | { | |
31793 | arg7 = wxString_in_helper(obj6); | |
31794 | if (arg7 == NULL) SWIG_fail; | |
31795 | temp7 = true; | |
31796 | } | |
31797 | } | |
31798 | if (obj7) { | |
31799 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
31800 | if (!SWIG_IsOK(ecode8)) { | |
31801 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 31802 | } |
50efceee | 31803 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
31804 | } |
31805 | { | |
31806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31807 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
31808 | wxPyEndAllowThreads(__tstate); |
31809 | if (PyErr_Occurred()) SWIG_fail; | |
31810 | } | |
50efceee RD |
31811 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
31812 | { | |
31813 | if (temp7) | |
31814 | delete arg7; | |
31815 | } | |
0085ce49 RD |
31816 | return resultobj; |
31817 | fail: | |
50efceee RD |
31818 | { |
31819 | if (temp7) | |
31820 | delete arg7; | |
31821 | } | |
0085ce49 RD |
31822 | return NULL; |
31823 | } | |
31824 | ||
31825 | ||
50efceee | 31826 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 31827 | PyObject *resultobj = 0; |
50efceee RD |
31828 | wxFontList *arg1 = (wxFontList *) 0 ; |
31829 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
31830 | void *argp1 = 0 ; |
31831 | int res1 = 0 ; | |
31832 | void *argp2 = 0 ; | |
31833 | int res2 = 0 ; | |
31834 | PyObject * obj0 = 0 ; | |
31835 | PyObject * obj1 = 0 ; | |
31836 | char * kwnames[] = { | |
50efceee | 31837 | (char *) "self",(char *) "font", NULL |
0085ce49 RD |
31838 | }; |
31839 | ||
50efceee RD |
31840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 31842 | if (!SWIG_IsOK(res1)) { |
50efceee | 31843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 31844 | } |
50efceee RD |
31845 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
31846 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
0085ce49 | 31847 | if (!SWIG_IsOK(res2)) { |
50efceee | 31848 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
0085ce49 | 31849 | } |
50efceee | 31850 | arg2 = reinterpret_cast< wxFont * >(argp2); |
0085ce49 RD |
31851 | { |
31852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31853 | (arg1)->AddFont(arg2); |
0085ce49 RD |
31854 | wxPyEndAllowThreads(__tstate); |
31855 | if (PyErr_Occurred()) SWIG_fail; | |
31856 | } | |
31857 | resultobj = SWIG_Py_Void(); | |
31858 | return resultobj; | |
31859 | fail: | |
31860 | return NULL; | |
31861 | } | |
31862 | ||
31863 | ||
50efceee | 31864 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 31865 | PyObject *resultobj = 0; |
50efceee RD |
31866 | wxFontList *arg1 = (wxFontList *) 0 ; |
31867 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
31868 | void *argp1 = 0 ; |
31869 | int res1 = 0 ; | |
50efceee RD |
31870 | void *argp2 = 0 ; |
31871 | int res2 = 0 ; | |
31872 | PyObject * obj0 = 0 ; | |
31873 | PyObject * obj1 = 0 ; | |
31874 | char * kwnames[] = { | |
31875 | (char *) "self",(char *) "font", NULL | |
31876 | }; | |
0085ce49 | 31877 | |
50efceee RD |
31878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
31879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 31880 | if (!SWIG_IsOK(res1)) { |
50efceee | 31881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 31882 | } |
50efceee RD |
31883 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
31884 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
31885 | if (!SWIG_IsOK(res2)) { | |
31886 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
31887 | } | |
31888 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
0085ce49 RD |
31889 | { |
31890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 31891 | (arg1)->RemoveFont(arg2); |
0085ce49 RD |
31892 | wxPyEndAllowThreads(__tstate); |
31893 | if (PyErr_Occurred()) SWIG_fail; | |
31894 | } | |
50efceee | 31895 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
31896 | return resultobj; |
31897 | fail: | |
31898 | return NULL; | |
31899 | } | |
31900 | ||
31901 | ||
50efceee | 31902 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
31903 | PyObject *obj; |
31904 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 31905 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
31906 | return SWIG_Py_Void(); |
31907 | } | |
31908 | ||
31909 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31910 | PyObject *resultobj = 0; | |
31911 | wxColourDatabase *result = 0 ; | |
31912 | ||
31913 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
31914 | { | |
31915 | if (!wxPyCheckForApp()) SWIG_fail; | |
31916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31917 | result = (wxColourDatabase *)new wxColourDatabase(); | |
31918 | wxPyEndAllowThreads(__tstate); | |
31919 | if (PyErr_Occurred()) SWIG_fail; | |
31920 | } | |
31921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
31922 | return resultobj; | |
31923 | fail: | |
31924 | return NULL; | |
31925 | } | |
31926 | ||
31927 | ||
31928 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31929 | PyObject *resultobj = 0; | |
31930 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
31931 | void *argp1 = 0 ; | |
31932 | int res1 = 0 ; | |
31933 | PyObject *swig_obj[1] ; | |
31934 | ||
31935 | if (!args) SWIG_fail; | |
31936 | swig_obj[0] = args; | |
31937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
31938 | if (!SWIG_IsOK(res1)) { | |
31939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
31940 | } | |
31941 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
31942 | { | |
31943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31944 | delete arg1; | |
31945 | ||
31946 | wxPyEndAllowThreads(__tstate); | |
31947 | if (PyErr_Occurred()) SWIG_fail; | |
31948 | } | |
31949 | resultobj = SWIG_Py_Void(); | |
31950 | return resultobj; | |
31951 | fail: | |
31952 | return NULL; | |
31953 | } | |
31954 | ||
31955 | ||
31956 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31957 | PyObject *resultobj = 0; | |
31958 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
31959 | wxString *arg2 = 0 ; | |
31960 | wxColour result; | |
31961 | void *argp1 = 0 ; | |
31962 | int res1 = 0 ; | |
31963 | bool temp2 = false ; | |
31964 | PyObject * obj0 = 0 ; | |
31965 | PyObject * obj1 = 0 ; | |
31966 | char * kwnames[] = { | |
31967 | (char *) "self",(char *) "name", NULL | |
31968 | }; | |
31969 | ||
31970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
31971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
31972 | if (!SWIG_IsOK(res1)) { | |
31973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
31974 | } | |
31975 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
31976 | { | |
31977 | arg2 = wxString_in_helper(obj1); | |
31978 | if (arg2 == NULL) SWIG_fail; | |
31979 | temp2 = true; | |
31980 | } | |
31981 | { | |
31982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31983 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
31984 | wxPyEndAllowThreads(__tstate); | |
31985 | if (PyErr_Occurred()) SWIG_fail; | |
31986 | } | |
31987 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
31988 | { | |
31989 | if (temp2) | |
31990 | delete arg2; | |
31991 | } | |
31992 | return resultobj; | |
31993 | fail: | |
31994 | { | |
31995 | if (temp2) | |
31996 | delete arg2; | |
31997 | } | |
31998 | return NULL; | |
31999 | } | |
32000 | ||
32001 | ||
32002 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32003 | PyObject *resultobj = 0; | |
32004 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32005 | wxColour *arg2 = 0 ; | |
32006 | wxString result; | |
32007 | void *argp1 = 0 ; | |
32008 | int res1 = 0 ; | |
32009 | wxColour temp2 ; | |
32010 | PyObject * obj0 = 0 ; | |
32011 | PyObject * obj1 = 0 ; | |
32012 | char * kwnames[] = { | |
32013 | (char *) "self",(char *) "colour", NULL | |
32014 | }; | |
32015 | ||
32016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
32017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32018 | if (!SWIG_IsOK(res1)) { | |
32019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32020 | } | |
32021 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32022 | { | |
32023 | arg2 = &temp2; | |
32024 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32025 | } | |
32026 | { | |
32027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32028 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
32029 | wxPyEndAllowThreads(__tstate); | |
32030 | if (PyErr_Occurred()) SWIG_fail; | |
32031 | } | |
32032 | { | |
32033 | #if wxUSE_UNICODE | |
32034 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32035 | #else | |
32036 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32037 | #endif | |
32038 | } | |
32039 | return resultobj; | |
32040 | fail: | |
32041 | return NULL; | |
32042 | } | |
32043 | ||
32044 | ||
32045 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32046 | PyObject *resultobj = 0; | |
32047 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32048 | wxString *arg2 = 0 ; | |
32049 | wxColour *arg3 = 0 ; | |
32050 | void *argp1 = 0 ; | |
32051 | int res1 = 0 ; | |
32052 | bool temp2 = false ; | |
32053 | wxColour temp3 ; | |
32054 | PyObject * obj0 = 0 ; | |
32055 | PyObject * obj1 = 0 ; | |
32056 | PyObject * obj2 = 0 ; | |
32057 | char * kwnames[] = { | |
32058 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
32059 | }; | |
32060 | ||
32061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32063 | if (!SWIG_IsOK(res1)) { | |
32064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32065 | } | |
32066 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32067 | { | |
32068 | arg2 = wxString_in_helper(obj1); | |
32069 | if (arg2 == NULL) SWIG_fail; | |
32070 | temp2 = true; | |
32071 | } | |
32072 | { | |
32073 | arg3 = &temp3; | |
32074 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32075 | } | |
32076 | { | |
32077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32078 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
32079 | wxPyEndAllowThreads(__tstate); | |
32080 | if (PyErr_Occurred()) SWIG_fail; | |
32081 | } | |
32082 | resultobj = SWIG_Py_Void(); | |
32083 | { | |
32084 | if (temp2) | |
32085 | delete arg2; | |
32086 | } | |
32087 | return resultobj; | |
32088 | fail: | |
32089 | { | |
32090 | if (temp2) | |
32091 | delete arg2; | |
32092 | } | |
32093 | return NULL; | |
32094 | } | |
32095 | ||
32096 | ||
32097 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32098 | PyObject *resultobj = 0; | |
32099 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32100 | wxString *arg2 = 0 ; | |
32101 | int arg3 ; | |
32102 | int arg4 ; | |
32103 | int arg5 ; | |
32104 | void *argp1 = 0 ; | |
32105 | int res1 = 0 ; | |
32106 | bool temp2 = false ; | |
32107 | int val3 ; | |
32108 | int ecode3 = 0 ; | |
32109 | int val4 ; | |
32110 | int ecode4 = 0 ; | |
50efceee RD |
32111 | int val5 ; |
32112 | int ecode5 = 0 ; | |
0085ce49 RD |
32113 | PyObject * obj0 = 0 ; |
32114 | PyObject * obj1 = 0 ; | |
32115 | PyObject * obj2 = 0 ; | |
32116 | PyObject * obj3 = 0 ; | |
32117 | PyObject * obj4 = 0 ; | |
0085ce49 | 32118 | char * kwnames[] = { |
50efceee | 32119 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
32120 | }; |
32121 | ||
50efceee RD |
32122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
32123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 32124 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
32125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
32126 | } | |
32127 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32128 | { | |
32129 | arg2 = wxString_in_helper(obj1); | |
32130 | if (arg2 == NULL) SWIG_fail; | |
32131 | temp2 = true; | |
0085ce49 | 32132 | } |
0085ce49 RD |
32133 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
32134 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 32135 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
32136 | } |
32137 | arg3 = static_cast< int >(val3); | |
32138 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32139 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 32140 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
32141 | } |
32142 | arg4 = static_cast< int >(val4); | |
32143 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32144 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 32145 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
32146 | } |
32147 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
32148 | { |
32149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32150 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
32151 | wxPyEndAllowThreads(__tstate); |
32152 | if (PyErr_Occurred()) SWIG_fail; | |
32153 | } | |
50efceee | 32154 | resultobj = SWIG_Py_Void(); |
0085ce49 | 32155 | { |
50efceee RD |
32156 | if (temp2) |
32157 | delete arg2; | |
0085ce49 RD |
32158 | } |
32159 | return resultobj; | |
32160 | fail: | |
32161 | { | |
50efceee RD |
32162 | if (temp2) |
32163 | delete arg2; | |
0085ce49 RD |
32164 | } |
32165 | return NULL; | |
32166 | } | |
32167 | ||
32168 | ||
50efceee RD |
32169 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32170 | PyObject *obj; | |
32171 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32172 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
32173 | return SWIG_Py_Void(); | |
32174 | } | |
32175 | ||
32176 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32177 | return SWIG_Python_InitShadowInstance(args); | |
32178 | } | |
32179 | ||
32180 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 32181 | PyObject *resultobj = 0; |
50efceee | 32182 | wxFontList *result = 0 ; |
0085ce49 | 32183 | |
50efceee | 32184 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32185 | { |
32186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32187 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
32188 | wxPyEndAllowThreads(__tstate); |
32189 | if (PyErr_Occurred()) SWIG_fail; | |
32190 | } | |
50efceee | 32191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
32192 | return resultobj; |
32193 | fail: | |
32194 | return NULL; | |
32195 | } | |
32196 | ||
32197 | ||
50efceee | 32198 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32199 | PyObject *resultobj = 0; |
50efceee | 32200 | wxPenList *result = 0 ; |
0085ce49 | 32201 | |
50efceee | 32202 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
32203 | { |
32204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32205 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
32206 | wxPyEndAllowThreads(__tstate); |
32207 | if (PyErr_Occurred()) SWIG_fail; | |
32208 | } | |
50efceee | 32209 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
32210 | return resultobj; |
32211 | fail: | |
32212 | return NULL; | |
32213 | } | |
32214 | ||
32215 | ||
50efceee RD |
32216 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32217 | PyObject *resultobj = 0; | |
32218 | wxBrushList *result = 0 ; | |
0085ce49 | 32219 | |
50efceee RD |
32220 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
32221 | { | |
32222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32223 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
32224 | wxPyEndAllowThreads(__tstate); | |
32225 | if (PyErr_Occurred()) SWIG_fail; | |
32226 | } | |
32227 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32228 | return resultobj; | |
32229 | fail: | |
32230 | return NULL; | |
0085ce49 RD |
32231 | } |
32232 | ||
32233 | ||
50efceee RD |
32234 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32235 | PyObject *resultobj = 0; | |
32236 | wxColourDatabase *result = 0 ; | |
0085ce49 | 32237 | |
50efceee RD |
32238 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
32239 | { | |
32240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32241 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
32242 | wxPyEndAllowThreads(__tstate); | |
32243 | if (PyErr_Occurred()) SWIG_fail; | |
32244 | } | |
32245 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32246 | return resultobj; | |
32247 | fail: | |
32248 | return NULL; | |
0085ce49 RD |
32249 | } |
32250 | ||
32251 | ||
32252 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32253 | PyObject *resultobj = 0; | |
32254 | wxEffects *result = 0 ; | |
32255 | ||
32256 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
32257 | { | |
32258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32259 | result = (wxEffects *)new wxEffects(); | |
32260 | wxPyEndAllowThreads(__tstate); | |
32261 | if (PyErr_Occurred()) SWIG_fail; | |
32262 | } | |
32263 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
32264 | return resultobj; | |
32265 | fail: | |
32266 | return NULL; | |
32267 | } | |
32268 | ||
32269 | ||
32270 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32271 | PyObject *resultobj = 0; | |
32272 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32273 | wxColour result; | |
32274 | void *argp1 = 0 ; | |
32275 | int res1 = 0 ; | |
32276 | PyObject *swig_obj[1] ; | |
32277 | ||
32278 | if (!args) SWIG_fail; | |
32279 | swig_obj[0] = args; | |
32280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32281 | if (!SWIG_IsOK(res1)) { | |
32282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32283 | } | |
32284 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32285 | { | |
32286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32287 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
32288 | wxPyEndAllowThreads(__tstate); | |
32289 | if (PyErr_Occurred()) SWIG_fail; | |
32290 | } | |
32291 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32292 | return resultobj; | |
32293 | fail: | |
32294 | return NULL; | |
32295 | } | |
32296 | ||
32297 | ||
32298 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32299 | PyObject *resultobj = 0; | |
32300 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32301 | wxColour result; | |
32302 | void *argp1 = 0 ; | |
32303 | int res1 = 0 ; | |
32304 | PyObject *swig_obj[1] ; | |
32305 | ||
32306 | if (!args) SWIG_fail; | |
32307 | swig_obj[0] = args; | |
32308 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32309 | if (!SWIG_IsOK(res1)) { | |
32310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32311 | } | |
32312 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32313 | { | |
32314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32315 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
32316 | wxPyEndAllowThreads(__tstate); | |
32317 | if (PyErr_Occurred()) SWIG_fail; | |
32318 | } | |
32319 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32320 | return resultobj; | |
32321 | fail: | |
32322 | return NULL; | |
32323 | } | |
32324 | ||
32325 | ||
32326 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32327 | PyObject *resultobj = 0; | |
32328 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32329 | wxColour result; | |
32330 | void *argp1 = 0 ; | |
32331 | int res1 = 0 ; | |
32332 | PyObject *swig_obj[1] ; | |
32333 | ||
32334 | if (!args) SWIG_fail; | |
32335 | swig_obj[0] = args; | |
32336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32337 | if (!SWIG_IsOK(res1)) { | |
32338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32339 | } | |
32340 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32341 | { | |
32342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32343 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
32344 | wxPyEndAllowThreads(__tstate); | |
32345 | if (PyErr_Occurred()) SWIG_fail; | |
32346 | } | |
32347 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32348 | return resultobj; | |
32349 | fail: | |
32350 | return NULL; | |
32351 | } | |
32352 | ||
32353 | ||
32354 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32355 | PyObject *resultobj = 0; | |
32356 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32357 | wxColour result; | |
32358 | void *argp1 = 0 ; | |
32359 | int res1 = 0 ; | |
32360 | PyObject *swig_obj[1] ; | |
32361 | ||
32362 | if (!args) SWIG_fail; | |
32363 | swig_obj[0] = args; | |
32364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32365 | if (!SWIG_IsOK(res1)) { | |
32366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32367 | } | |
32368 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32369 | { | |
32370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32371 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
32372 | wxPyEndAllowThreads(__tstate); | |
32373 | if (PyErr_Occurred()) SWIG_fail; | |
32374 | } | |
32375 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32376 | return resultobj; | |
32377 | fail: | |
32378 | return NULL; | |
32379 | } | |
32380 | ||
32381 | ||
32382 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32383 | PyObject *resultobj = 0; | |
32384 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32385 | wxColour result; | |
32386 | void *argp1 = 0 ; | |
32387 | int res1 = 0 ; | |
32388 | PyObject *swig_obj[1] ; | |
32389 | ||
32390 | if (!args) SWIG_fail; | |
32391 | swig_obj[0] = args; | |
32392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32393 | if (!SWIG_IsOK(res1)) { | |
32394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
32395 | } | |
32396 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32397 | { | |
32398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32399 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
32400 | wxPyEndAllowThreads(__tstate); | |
32401 | if (PyErr_Occurred()) SWIG_fail; | |
32402 | } | |
32403 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32404 | return resultobj; | |
32405 | fail: | |
32406 | return NULL; | |
32407 | } | |
32408 | ||
32409 | ||
32410 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32411 | PyObject *resultobj = 0; | |
32412 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32413 | wxColour *arg2 = 0 ; | |
32414 | void *argp1 = 0 ; | |
32415 | int res1 = 0 ; | |
32416 | wxColour temp2 ; | |
32417 | PyObject * obj0 = 0 ; | |
32418 | PyObject * obj1 = 0 ; | |
32419 | char * kwnames[] = { | |
32420 | (char *) "self",(char *) "c", NULL | |
32421 | }; | |
32422 | ||
32423 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
32424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32425 | if (!SWIG_IsOK(res1)) { | |
32426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32427 | } | |
32428 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32429 | { | |
32430 | arg2 = &temp2; | |
32431 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32432 | } | |
32433 | { | |
32434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32435 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
32436 | wxPyEndAllowThreads(__tstate); | |
32437 | if (PyErr_Occurred()) SWIG_fail; | |
32438 | } | |
32439 | resultobj = SWIG_Py_Void(); | |
32440 | return resultobj; | |
32441 | fail: | |
32442 | return NULL; | |
32443 | } | |
32444 | ||
32445 | ||
32446 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32447 | PyObject *resultobj = 0; | |
32448 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32449 | wxColour *arg2 = 0 ; | |
32450 | void *argp1 = 0 ; | |
32451 | int res1 = 0 ; | |
32452 | wxColour temp2 ; | |
32453 | PyObject * obj0 = 0 ; | |
32454 | PyObject * obj1 = 0 ; | |
32455 | char * kwnames[] = { | |
32456 | (char *) "self",(char *) "c", NULL | |
32457 | }; | |
32458 | ||
32459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32461 | if (!SWIG_IsOK(res1)) { | |
32462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32463 | } | |
32464 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32465 | { | |
32466 | arg2 = &temp2; | |
32467 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32468 | } | |
32469 | { | |
32470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32471 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
32472 | wxPyEndAllowThreads(__tstate); | |
32473 | if (PyErr_Occurred()) SWIG_fail; | |
32474 | } | |
32475 | resultobj = SWIG_Py_Void(); | |
32476 | return resultobj; | |
32477 | fail: | |
32478 | return NULL; | |
32479 | } | |
32480 | ||
32481 | ||
32482 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32483 | PyObject *resultobj = 0; | |
32484 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32485 | wxColour *arg2 = 0 ; | |
32486 | void *argp1 = 0 ; | |
32487 | int res1 = 0 ; | |
32488 | wxColour temp2 ; | |
32489 | PyObject * obj0 = 0 ; | |
32490 | PyObject * obj1 = 0 ; | |
32491 | char * kwnames[] = { | |
32492 | (char *) "self",(char *) "c", NULL | |
32493 | }; | |
32494 | ||
32495 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
32496 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32497 | if (!SWIG_IsOK(res1)) { | |
32498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32499 | } | |
32500 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32501 | { | |
32502 | arg2 = &temp2; | |
32503 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32504 | } | |
32505 | { | |
32506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32507 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
32508 | wxPyEndAllowThreads(__tstate); | |
32509 | if (PyErr_Occurred()) SWIG_fail; | |
32510 | } | |
32511 | resultobj = SWIG_Py_Void(); | |
32512 | return resultobj; | |
32513 | fail: | |
32514 | return NULL; | |
32515 | } | |
32516 | ||
32517 | ||
32518 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32519 | PyObject *resultobj = 0; | |
32520 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32521 | wxColour *arg2 = 0 ; | |
32522 | void *argp1 = 0 ; | |
32523 | int res1 = 0 ; | |
32524 | wxColour temp2 ; | |
32525 | PyObject * obj0 = 0 ; | |
32526 | PyObject * obj1 = 0 ; | |
32527 | char * kwnames[] = { | |
32528 | (char *) "self",(char *) "c", NULL | |
32529 | }; | |
32530 | ||
32531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32533 | if (!SWIG_IsOK(res1)) { | |
32534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32535 | } | |
32536 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32537 | { | |
32538 | arg2 = &temp2; | |
32539 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32540 | } | |
32541 | { | |
32542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32543 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
32544 | wxPyEndAllowThreads(__tstate); | |
32545 | if (PyErr_Occurred()) SWIG_fail; | |
32546 | } | |
32547 | resultobj = SWIG_Py_Void(); | |
32548 | return resultobj; | |
32549 | fail: | |
32550 | return NULL; | |
32551 | } | |
32552 | ||
32553 | ||
32554 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32555 | PyObject *resultobj = 0; | |
32556 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32557 | wxColour *arg2 = 0 ; | |
32558 | void *argp1 = 0 ; | |
32559 | int res1 = 0 ; | |
32560 | wxColour temp2 ; | |
32561 | PyObject * obj0 = 0 ; | |
32562 | PyObject * obj1 = 0 ; | |
32563 | char * kwnames[] = { | |
32564 | (char *) "self",(char *) "c", NULL | |
32565 | }; | |
32566 | ||
32567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
32568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32569 | if (!SWIG_IsOK(res1)) { | |
32570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32571 | } | |
32572 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32573 | { | |
32574 | arg2 = &temp2; | |
32575 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32576 | } | |
32577 | { | |
32578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32579 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
32580 | wxPyEndAllowThreads(__tstate); | |
32581 | if (PyErr_Occurred()) SWIG_fail; | |
32582 | } | |
32583 | resultobj = SWIG_Py_Void(); | |
32584 | return resultobj; | |
32585 | fail: | |
32586 | return NULL; | |
32587 | } | |
32588 | ||
32589 | ||
32590 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32591 | PyObject *resultobj = 0; | |
32592 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32593 | wxColour *arg2 = 0 ; | |
32594 | wxColour *arg3 = 0 ; | |
32595 | wxColour *arg4 = 0 ; | |
32596 | wxColour *arg5 = 0 ; | |
32597 | wxColour *arg6 = 0 ; | |
32598 | void *argp1 = 0 ; | |
32599 | int res1 = 0 ; | |
32600 | wxColour temp2 ; | |
32601 | wxColour temp3 ; | |
32602 | wxColour temp4 ; | |
32603 | wxColour temp5 ; | |
32604 | wxColour temp6 ; | |
32605 | PyObject * obj0 = 0 ; | |
32606 | PyObject * obj1 = 0 ; | |
32607 | PyObject * obj2 = 0 ; | |
32608 | PyObject * obj3 = 0 ; | |
32609 | PyObject * obj4 = 0 ; | |
32610 | PyObject * obj5 = 0 ; | |
32611 | char * kwnames[] = { | |
32612 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
32613 | }; | |
32614 | ||
32615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
32616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32617 | if (!SWIG_IsOK(res1)) { | |
32618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32619 | } | |
32620 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32621 | { | |
32622 | arg2 = &temp2; | |
32623 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32624 | } | |
32625 | { | |
32626 | arg3 = &temp3; | |
32627 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32628 | } | |
32629 | { | |
32630 | arg4 = &temp4; | |
32631 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
32632 | } | |
32633 | { | |
32634 | arg5 = &temp5; | |
32635 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
32636 | } | |
32637 | { | |
32638 | arg6 = &temp6; | |
32639 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
32640 | } | |
32641 | { | |
32642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32643 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
32644 | wxPyEndAllowThreads(__tstate); | |
32645 | if (PyErr_Occurred()) SWIG_fail; | |
32646 | } | |
32647 | resultobj = SWIG_Py_Void(); | |
32648 | return resultobj; | |
32649 | fail: | |
32650 | return NULL; | |
32651 | } | |
32652 | ||
32653 | ||
32654 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32655 | PyObject *resultobj = 0; | |
32656 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32657 | wxDC *arg2 = 0 ; | |
32658 | wxRect *arg3 = 0 ; | |
32659 | int arg4 = (int) 1 ; | |
32660 | void *argp1 = 0 ; | |
32661 | int res1 = 0 ; | |
32662 | void *argp2 = 0 ; | |
32663 | int res2 = 0 ; | |
32664 | wxRect temp3 ; | |
32665 | int val4 ; | |
32666 | int ecode4 = 0 ; | |
32667 | PyObject * obj0 = 0 ; | |
32668 | PyObject * obj1 = 0 ; | |
32669 | PyObject * obj2 = 0 ; | |
32670 | PyObject * obj3 = 0 ; | |
32671 | char * kwnames[] = { | |
32672 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
32673 | }; | |
32674 | ||
32675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32677 | if (!SWIG_IsOK(res1)) { | |
32678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32679 | } | |
32680 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32681 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
32682 | if (!SWIG_IsOK(res2)) { | |
32683 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
32684 | } | |
32685 | if (!argp2) { | |
32686 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
32687 | } | |
32688 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
32689 | { | |
32690 | arg3 = &temp3; | |
32691 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
32692 | } | |
32693 | if (obj3) { | |
32694 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32695 | if (!SWIG_IsOK(ecode4)) { | |
32696 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
32697 | } | |
32698 | arg4 = static_cast< int >(val4); | |
32699 | } | |
32700 | { | |
32701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32702 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
32703 | wxPyEndAllowThreads(__tstate); | |
32704 | if (PyErr_Occurred()) SWIG_fail; | |
32705 | } | |
32706 | resultobj = SWIG_Py_Void(); | |
32707 | return resultobj; | |
32708 | fail: | |
32709 | return NULL; | |
32710 | } | |
32711 | ||
32712 | ||
32713 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32714 | PyObject *resultobj = 0; | |
32715 | wxEffects *arg1 = (wxEffects *) 0 ; | |
32716 | wxRect *arg2 = 0 ; | |
32717 | wxDC *arg3 = 0 ; | |
32718 | wxBitmap *arg4 = 0 ; | |
32719 | bool result; | |
32720 | void *argp1 = 0 ; | |
32721 | int res1 = 0 ; | |
32722 | wxRect temp2 ; | |
32723 | void *argp3 = 0 ; | |
32724 | int res3 = 0 ; | |
32725 | void *argp4 = 0 ; | |
32726 | int res4 = 0 ; | |
32727 | PyObject * obj0 = 0 ; | |
32728 | PyObject * obj1 = 0 ; | |
32729 | PyObject * obj2 = 0 ; | |
32730 | PyObject * obj3 = 0 ; | |
32731 | char * kwnames[] = { | |
32732 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
32733 | }; | |
32734 | ||
32735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
32737 | if (!SWIG_IsOK(res1)) { | |
32738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
32739 | } | |
32740 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
32741 | { | |
32742 | arg2 = &temp2; | |
32743 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
32744 | } | |
32745 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
32746 | if (!SWIG_IsOK(res3)) { | |
32747 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32748 | } | |
32749 | if (!argp3) { | |
32750 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32751 | } | |
32752 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
32753 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
32754 | if (!SWIG_IsOK(res4)) { | |
32755 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
32756 | } | |
32757 | if (!argp4) { | |
32758 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
32759 | } | |
32760 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
32761 | { | |
32762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32763 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
32764 | wxPyEndAllowThreads(__tstate); | |
32765 | if (PyErr_Occurred()) SWIG_fail; | |
32766 | } | |
32767 | { | |
32768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32769 | } | |
32770 | return resultobj; | |
32771 | fail: | |
32772 | return NULL; | |
32773 | } | |
32774 | ||
32775 | ||
32776 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32777 | PyObject *obj; | |
32778 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32779 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
32780 | return SWIG_Py_Void(); | |
32781 | } | |
32782 | ||
32783 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32784 | return SWIG_Python_InitShadowInstance(args); | |
32785 | } | |
32786 | ||
32787 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32788 | PyObject *resultobj = 0; | |
32789 | int arg1 ; | |
32790 | int arg2 ; | |
32791 | bool arg3 ; | |
32792 | wxSplitterRenderParams *result = 0 ; | |
32793 | int val1 ; | |
32794 | int ecode1 = 0 ; | |
32795 | int val2 ; | |
32796 | int ecode2 = 0 ; | |
32797 | bool val3 ; | |
32798 | int ecode3 = 0 ; | |
32799 | PyObject * obj0 = 0 ; | |
32800 | PyObject * obj1 = 0 ; | |
32801 | PyObject * obj2 = 0 ; | |
32802 | char * kwnames[] = { | |
32803 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
32804 | }; | |
32805 | ||
32806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32807 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32808 | if (!SWIG_IsOK(ecode1)) { | |
32809 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
32810 | } | |
32811 | arg1 = static_cast< int >(val1); | |
32812 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32813 | if (!SWIG_IsOK(ecode2)) { | |
32814 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
32815 | } | |
32816 | arg2 = static_cast< int >(val2); | |
32817 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
32818 | if (!SWIG_IsOK(ecode3)) { | |
32819 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
32820 | } | |
32821 | arg3 = static_cast< bool >(val3); | |
32822 | { | |
32823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32824 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
32825 | wxPyEndAllowThreads(__tstate); | |
32826 | if (PyErr_Occurred()) SWIG_fail; | |
32827 | } | |
32828 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
32829 | return resultobj; | |
32830 | fail: | |
32831 | return NULL; | |
32832 | } | |
32833 | ||
32834 | ||
32835 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32836 | PyObject *resultobj = 0; | |
32837 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
32838 | void *argp1 = 0 ; | |
32839 | int res1 = 0 ; | |
32840 | PyObject *swig_obj[1] ; | |
32841 | ||
32842 | if (!args) SWIG_fail; | |
32843 | swig_obj[0] = args; | |
32844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
32845 | if (!SWIG_IsOK(res1)) { | |
32846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
32847 | } | |
32848 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
32849 | { | |
32850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32851 | delete arg1; | |
32852 | ||
32853 | wxPyEndAllowThreads(__tstate); | |
32854 | if (PyErr_Occurred()) SWIG_fail; | |
32855 | } | |
32856 | resultobj = SWIG_Py_Void(); | |
32857 | return resultobj; | |
32858 | fail: | |
32859 | return NULL; | |
32860 | } | |
32861 | ||
32862 | ||
32863 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32864 | PyObject *resultobj = 0; | |
32865 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
32866 | int result; | |
32867 | void *argp1 = 0 ; | |
32868 | int res1 = 0 ; | |
32869 | PyObject *swig_obj[1] ; | |
32870 | ||
32871 | if (!args) SWIG_fail; | |
32872 | swig_obj[0] = args; | |
32873 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
32874 | if (!SWIG_IsOK(res1)) { | |
32875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
32876 | } | |
32877 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
32878 | result = (int)(int) ((arg1)->widthSash); | |
32879 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32880 | return resultobj; | |
32881 | fail: | |
32882 | return NULL; | |
32883 | } | |
32884 | ||
32885 | ||
32886 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32887 | PyObject *resultobj = 0; | |
32888 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
32889 | int result; | |
32890 | void *argp1 = 0 ; | |
32891 | int res1 = 0 ; | |
32892 | PyObject *swig_obj[1] ; | |
32893 | ||
32894 | if (!args) SWIG_fail; | |
32895 | swig_obj[0] = args; | |
32896 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
32897 | if (!SWIG_IsOK(res1)) { | |
32898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
32899 | } | |
32900 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
32901 | result = (int)(int) ((arg1)->border); | |
32902 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32903 | return resultobj; | |
32904 | fail: | |
32905 | return NULL; | |
32906 | } | |
32907 | ||
32908 | ||
32909 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32910 | PyObject *resultobj = 0; | |
32911 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
32912 | bool result; | |
32913 | void *argp1 = 0 ; | |
32914 | int res1 = 0 ; | |
32915 | PyObject *swig_obj[1] ; | |
32916 | ||
32917 | if (!args) SWIG_fail; | |
32918 | swig_obj[0] = args; | |
32919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
32920 | if (!SWIG_IsOK(res1)) { | |
32921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
32922 | } | |
32923 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
32924 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
32925 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
32926 | return resultobj; | |
32927 | fail: | |
32928 | return NULL; | |
32929 | } | |
32930 | ||
32931 | ||
32932 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32933 | PyObject *obj; | |
32934 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32935 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
32936 | return SWIG_Py_Void(); | |
32937 | } | |
32938 | ||
32939 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32940 | return SWIG_Python_InitShadowInstance(args); | |
32941 | } | |
32942 | ||
33d6fd3b RD |
32943 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32944 | PyObject *resultobj = 0; | |
32945 | wxHeaderButtonParams *result = 0 ; | |
32946 | ||
32947 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
32948 | { | |
32949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32950 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
32951 | wxPyEndAllowThreads(__tstate); | |
32952 | if (PyErr_Occurred()) SWIG_fail; | |
32953 | } | |
32954 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
32955 | return resultobj; | |
32956 | fail: | |
32957 | return NULL; | |
32958 | } | |
32959 | ||
32960 | ||
32961 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32962 | PyObject *resultobj = 0; | |
32963 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
32964 | void *argp1 = 0 ; | |
32965 | int res1 = 0 ; | |
32966 | PyObject *swig_obj[1] ; | |
32967 | ||
32968 | if (!args) SWIG_fail; | |
32969 | swig_obj[0] = args; | |
32970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
32971 | if (!SWIG_IsOK(res1)) { | |
32972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
32973 | } | |
32974 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
32975 | { | |
32976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32977 | delete arg1; | |
32978 | ||
32979 | wxPyEndAllowThreads(__tstate); | |
32980 | if (PyErr_Occurred()) SWIG_fail; | |
32981 | } | |
32982 | resultobj = SWIG_Py_Void(); | |
32983 | return resultobj; | |
32984 | fail: | |
32985 | return NULL; | |
32986 | } | |
32987 | ||
32988 | ||
32989 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32990 | PyObject *resultobj = 0; | |
32991 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
32992 | wxColour *arg2 = (wxColour *) 0 ; | |
32993 | void *argp1 = 0 ; | |
32994 | int res1 = 0 ; | |
32995 | wxColour temp2 ; | |
32996 | PyObject *swig_obj[2] ; | |
32997 | ||
32998 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
32999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33000 | if (!SWIG_IsOK(res1)) { | |
33001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33002 | } | |
33003 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33004 | { | |
33005 | arg2 = &temp2; | |
33006 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33007 | } | |
33008 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
33009 | ||
33010 | resultobj = SWIG_Py_Void(); | |
33011 | return resultobj; | |
33012 | fail: | |
33013 | return NULL; | |
33014 | } | |
33015 | ||
33016 | ||
33017 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33018 | PyObject *resultobj = 0; | |
33019 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33020 | wxColour *result = 0 ; | |
33021 | void *argp1 = 0 ; | |
33022 | int res1 = 0 ; | |
33023 | PyObject *swig_obj[1] ; | |
33024 | ||
33025 | if (!args) SWIG_fail; | |
33026 | swig_obj[0] = args; | |
33027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33028 | if (!SWIG_IsOK(res1)) { | |
33029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33030 | } | |
33031 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33032 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
33033 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33034 | return resultobj; | |
33035 | fail: | |
33036 | return NULL; | |
33037 | } | |
33038 | ||
33039 | ||
33040 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33041 | PyObject *resultobj = 0; | |
33042 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33043 | wxColour *arg2 = (wxColour *) 0 ; | |
33044 | void *argp1 = 0 ; | |
33045 | int res1 = 0 ; | |
33046 | wxColour temp2 ; | |
33047 | PyObject *swig_obj[2] ; | |
33048 | ||
33049 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
33050 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33051 | if (!SWIG_IsOK(res1)) { | |
33052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33053 | } | |
33054 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33055 | { | |
33056 | arg2 = &temp2; | |
33057 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33058 | } | |
33059 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
33060 | ||
33061 | resultobj = SWIG_Py_Void(); | |
33062 | return resultobj; | |
33063 | fail: | |
33064 | return NULL; | |
33065 | } | |
33066 | ||
33067 | ||
33068 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33069 | PyObject *resultobj = 0; | |
33070 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33071 | wxColour *result = 0 ; | |
33072 | void *argp1 = 0 ; | |
33073 | int res1 = 0 ; | |
33074 | PyObject *swig_obj[1] ; | |
33075 | ||
33076 | if (!args) SWIG_fail; | |
33077 | swig_obj[0] = args; | |
33078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33079 | if (!SWIG_IsOK(res1)) { | |
33080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33081 | } | |
33082 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33083 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
33084 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33085 | return resultobj; | |
33086 | fail: | |
33087 | return NULL; | |
33088 | } | |
33089 | ||
33090 | ||
33091 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33092 | PyObject *resultobj = 0; | |
33093 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33094 | wxString *arg2 = (wxString *) 0 ; | |
33095 | void *argp1 = 0 ; | |
33096 | int res1 = 0 ; | |
33097 | bool temp2 = false ; | |
33098 | PyObject *swig_obj[2] ; | |
33099 | ||
33100 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
33101 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33102 | if (!SWIG_IsOK(res1)) { | |
33103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33104 | } | |
33105 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33106 | { | |
33107 | arg2 = wxString_in_helper(swig_obj[1]); | |
33108 | if (arg2 == NULL) SWIG_fail; | |
33109 | temp2 = true; | |
33110 | } | |
33111 | if (arg1) (arg1)->m_labelText = *arg2; | |
33112 | ||
33113 | resultobj = SWIG_Py_Void(); | |
33114 | { | |
33115 | if (temp2) | |
33116 | delete arg2; | |
33117 | } | |
33118 | return resultobj; | |
33119 | fail: | |
33120 | { | |
33121 | if (temp2) | |
33122 | delete arg2; | |
33123 | } | |
33124 | return NULL; | |
33125 | } | |
33126 | ||
33127 | ||
33128 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33129 | PyObject *resultobj = 0; | |
33130 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33131 | wxString *result = 0 ; | |
33132 | void *argp1 = 0 ; | |
33133 | int res1 = 0 ; | |
33134 | PyObject *swig_obj[1] ; | |
33135 | ||
33136 | if (!args) SWIG_fail; | |
33137 | swig_obj[0] = args; | |
33138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33139 | if (!SWIG_IsOK(res1)) { | |
33140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33141 | } | |
33142 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33143 | result = (wxString *)& ((arg1)->m_labelText); | |
33144 | { | |
33145 | #if wxUSE_UNICODE | |
33146 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33147 | #else | |
33148 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33149 | #endif | |
33150 | } | |
33151 | return resultobj; | |
33152 | fail: | |
33153 | return NULL; | |
33154 | } | |
33155 | ||
33156 | ||
33157 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33158 | PyObject *resultobj = 0; | |
33159 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33160 | wxFont *arg2 = (wxFont *) 0 ; | |
33161 | void *argp1 = 0 ; | |
33162 | int res1 = 0 ; | |
33163 | void *argp2 = 0 ; | |
33164 | int res2 = 0 ; | |
33165 | PyObject *swig_obj[2] ; | |
33166 | ||
33167 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
33168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33169 | if (!SWIG_IsOK(res1)) { | |
33170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33171 | } | |
33172 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33173 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33174 | if (!SWIG_IsOK(res2)) { | |
33175 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33176 | } | |
33177 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
33178 | if (arg1) (arg1)->m_labelFont = *arg2; | |
33179 | ||
33180 | resultobj = SWIG_Py_Void(); | |
33181 | return resultobj; | |
33182 | fail: | |
33183 | return NULL; | |
33184 | } | |
33185 | ||
33186 | ||
33187 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33188 | PyObject *resultobj = 0; | |
33189 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33190 | wxFont *result = 0 ; | |
33191 | void *argp1 = 0 ; | |
33192 | int res1 = 0 ; | |
33193 | PyObject *swig_obj[1] ; | |
33194 | ||
33195 | if (!args) SWIG_fail; | |
33196 | swig_obj[0] = args; | |
33197 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33198 | if (!SWIG_IsOK(res1)) { | |
33199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33200 | } | |
33201 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33202 | result = (wxFont *)& ((arg1)->m_labelFont); | |
33203 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
33204 | return resultobj; | |
33205 | fail: | |
33206 | return NULL; | |
33207 | } | |
33208 | ||
33209 | ||
33210 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33211 | PyObject *resultobj = 0; | |
33212 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33213 | wxColour *arg2 = (wxColour *) 0 ; | |
33214 | void *argp1 = 0 ; | |
33215 | int res1 = 0 ; | |
33216 | wxColour temp2 ; | |
33217 | PyObject *swig_obj[2] ; | |
33218 | ||
33219 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
33220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33221 | if (!SWIG_IsOK(res1)) { | |
33222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33223 | } | |
33224 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33225 | { | |
33226 | arg2 = &temp2; | |
33227 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33228 | } | |
33229 | if (arg1) (arg1)->m_labelColour = *arg2; | |
33230 | ||
33231 | resultobj = SWIG_Py_Void(); | |
33232 | return resultobj; | |
33233 | fail: | |
33234 | return NULL; | |
33235 | } | |
33236 | ||
33237 | ||
33238 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33239 | PyObject *resultobj = 0; | |
33240 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33241 | wxColour *result = 0 ; | |
33242 | void *argp1 = 0 ; | |
33243 | int res1 = 0 ; | |
33244 | PyObject *swig_obj[1] ; | |
33245 | ||
33246 | if (!args) SWIG_fail; | |
33247 | swig_obj[0] = args; | |
33248 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33249 | if (!SWIG_IsOK(res1)) { | |
33250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33251 | } | |
33252 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33253 | result = (wxColour *)& ((arg1)->m_labelColour); | |
33254 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33255 | return resultobj; | |
33256 | fail: | |
33257 | return NULL; | |
33258 | } | |
33259 | ||
33260 | ||
33261 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33262 | PyObject *resultobj = 0; | |
33263 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33264 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33265 | void *argp1 = 0 ; | |
33266 | int res1 = 0 ; | |
33267 | void *argp2 = 0 ; | |
33268 | int res2 = 0 ; | |
33269 | PyObject *swig_obj[2] ; | |
33270 | ||
33271 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
33272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33273 | if (!SWIG_IsOK(res1)) { | |
33274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33275 | } | |
33276 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33277 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33278 | if (!SWIG_IsOK(res2)) { | |
33279 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
33280 | } | |
33281 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
33282 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
33283 | ||
33284 | resultobj = SWIG_Py_Void(); | |
33285 | return resultobj; | |
33286 | fail: | |
33287 | return NULL; | |
33288 | } | |
33289 | ||
33290 | ||
33291 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33292 | PyObject *resultobj = 0; | |
33293 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33294 | wxBitmap *result = 0 ; | |
33295 | void *argp1 = 0 ; | |
33296 | int res1 = 0 ; | |
33297 | PyObject *swig_obj[1] ; | |
33298 | ||
33299 | if (!args) SWIG_fail; | |
33300 | swig_obj[0] = args; | |
33301 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33302 | if (!SWIG_IsOK(res1)) { | |
33303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33304 | } | |
33305 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33306 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
33307 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
33308 | return resultobj; | |
33309 | fail: | |
33310 | return NULL; | |
33311 | } | |
33312 | ||
33313 | ||
33314 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33315 | PyObject *resultobj = 0; | |
33316 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33317 | int arg2 ; | |
33318 | void *argp1 = 0 ; | |
33319 | int res1 = 0 ; | |
33320 | int val2 ; | |
33321 | int ecode2 = 0 ; | |
33322 | PyObject *swig_obj[2] ; | |
33323 | ||
33324 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
33325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33326 | if (!SWIG_IsOK(res1)) { | |
33327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33328 | } | |
33329 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33330 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
33331 | if (!SWIG_IsOK(ecode2)) { | |
33332 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
33333 | } | |
33334 | arg2 = static_cast< int >(val2); | |
33335 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
33336 | ||
33337 | resultobj = SWIG_Py_Void(); | |
33338 | return resultobj; | |
33339 | fail: | |
33340 | return NULL; | |
33341 | } | |
33342 | ||
33343 | ||
33344 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33345 | PyObject *resultobj = 0; | |
33346 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33347 | int result; | |
33348 | void *argp1 = 0 ; | |
33349 | int res1 = 0 ; | |
33350 | PyObject *swig_obj[1] ; | |
33351 | ||
33352 | if (!args) SWIG_fail; | |
33353 | swig_obj[0] = args; | |
33354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33355 | if (!SWIG_IsOK(res1)) { | |
33356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33357 | } | |
33358 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33359 | result = (int) ((arg1)->m_labelAlignment); | |
33360 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33361 | return resultobj; | |
33362 | fail: | |
33363 | return NULL; | |
33364 | } | |
33365 | ||
33366 | ||
33367 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33368 | PyObject *obj; | |
33369 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33370 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
33371 | return SWIG_Py_Void(); | |
33372 | } | |
33373 | ||
33374 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33375 | return SWIG_Python_InitShadowInstance(args); | |
33376 | } | |
33377 | ||
0085ce49 RD |
33378 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33379 | PyObject *resultobj = 0; | |
33380 | int arg1 ; | |
33381 | int arg2 ; | |
33382 | wxRendererVersion *result = 0 ; | |
33383 | int val1 ; | |
33384 | int ecode1 = 0 ; | |
33385 | int val2 ; | |
33386 | int ecode2 = 0 ; | |
33387 | PyObject * obj0 = 0 ; | |
33388 | PyObject * obj1 = 0 ; | |
33389 | char * kwnames[] = { | |
33390 | (char *) "version_",(char *) "age_", NULL | |
33391 | }; | |
33392 | ||
33393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
33394 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33395 | if (!SWIG_IsOK(ecode1)) { | |
33396 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
33397 | } | |
33398 | arg1 = static_cast< int >(val1); | |
33399 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33400 | if (!SWIG_IsOK(ecode2)) { | |
33401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
33402 | } | |
33403 | arg2 = static_cast< int >(val2); | |
33404 | { | |
33405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33406 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
33407 | wxPyEndAllowThreads(__tstate); | |
33408 | if (PyErr_Occurred()) SWIG_fail; | |
33409 | } | |
33410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
33411 | return resultobj; | |
33412 | fail: | |
33413 | return NULL; | |
33414 | } | |
33415 | ||
33416 | ||
33417 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33418 | PyObject *resultobj = 0; | |
33419 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33420 | void *argp1 = 0 ; | |
33421 | int res1 = 0 ; | |
33422 | PyObject *swig_obj[1] ; | |
33423 | ||
33424 | if (!args) SWIG_fail; | |
33425 | swig_obj[0] = args; | |
33426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
33427 | if (!SWIG_IsOK(res1)) { | |
33428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33429 | } | |
33430 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33431 | { | |
33432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33433 | delete arg1; | |
33434 | ||
33435 | wxPyEndAllowThreads(__tstate); | |
33436 | if (PyErr_Occurred()) SWIG_fail; | |
33437 | } | |
33438 | resultobj = SWIG_Py_Void(); | |
33439 | return resultobj; | |
33440 | fail: | |
33441 | return NULL; | |
33442 | } | |
33443 | ||
33444 | ||
33445 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33446 | PyObject *resultobj = 0; | |
33447 | wxRendererVersion *arg1 = 0 ; | |
33448 | bool result; | |
33449 | void *argp1 = 0 ; | |
33450 | int res1 = 0 ; | |
33451 | PyObject * obj0 = 0 ; | |
33452 | char * kwnames[] = { | |
33453 | (char *) "ver", NULL | |
33454 | }; | |
33455 | ||
33456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
33457 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
33458 | if (!SWIG_IsOK(res1)) { | |
33459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
33460 | } | |
33461 | if (!argp1) { | |
33462 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
33463 | } | |
33464 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33465 | { | |
33466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33467 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
33468 | wxPyEndAllowThreads(__tstate); | |
33469 | if (PyErr_Occurred()) SWIG_fail; | |
33470 | } | |
33471 | { | |
33472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33473 | } | |
33474 | return resultobj; | |
33475 | fail: | |
33476 | return NULL; | |
33477 | } | |
33478 | ||
33479 | ||
33480 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33481 | PyObject *resultobj = 0; | |
33482 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33483 | int result; | |
33484 | void *argp1 = 0 ; | |
33485 | int res1 = 0 ; | |
33486 | PyObject *swig_obj[1] ; | |
33487 | ||
33488 | if (!args) SWIG_fail; | |
33489 | swig_obj[0] = args; | |
33490 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
33491 | if (!SWIG_IsOK(res1)) { | |
33492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33493 | } | |
33494 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33495 | result = (int)(int) ((arg1)->version); | |
33496 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33497 | return resultobj; | |
33498 | fail: | |
33499 | return NULL; | |
33500 | } | |
33501 | ||
33502 | ||
33503 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33504 | PyObject *resultobj = 0; | |
33505 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
33506 | int result; | |
33507 | void *argp1 = 0 ; | |
33508 | int res1 = 0 ; | |
33509 | PyObject *swig_obj[1] ; | |
33510 | ||
33511 | if (!args) SWIG_fail; | |
33512 | swig_obj[0] = args; | |
33513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
33514 | if (!SWIG_IsOK(res1)) { | |
33515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
33516 | } | |
33517 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
33518 | result = (int)(int) ((arg1)->age); | |
33519 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33520 | return resultobj; | |
33521 | fail: | |
33522 | return NULL; | |
33523 | } | |
33524 | ||
33525 | ||
33526 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33527 | PyObject *obj; | |
33528 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33529 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
33530 | return SWIG_Py_Void(); | |
33531 | } | |
33532 | ||
33533 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33534 | return SWIG_Python_InitShadowInstance(args); | |
33535 | } | |
33536 | ||
33537 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33538 | PyObject *resultobj = 0; | |
33539 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33540 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33541 | wxDC *arg3 = 0 ; | |
33542 | wxRect *arg4 = 0 ; | |
33543 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
33544 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
33545 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
0085ce49 RD |
33546 | void *argp1 = 0 ; |
33547 | int res1 = 0 ; | |
33548 | void *argp2 = 0 ; | |
33549 | int res2 = 0 ; | |
33550 | void *argp3 = 0 ; | |
33551 | int res3 = 0 ; | |
33552 | wxRect temp4 ; | |
33553 | int val5 ; | |
33554 | int ecode5 = 0 ; | |
33d6fd3b RD |
33555 | int val6 ; |
33556 | int ecode6 = 0 ; | |
33557 | void *argp7 = 0 ; | |
33558 | int res7 = 0 ; | |
0085ce49 RD |
33559 | PyObject * obj0 = 0 ; |
33560 | PyObject * obj1 = 0 ; | |
33561 | PyObject * obj2 = 0 ; | |
33562 | PyObject * obj3 = 0 ; | |
33563 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
33564 | PyObject * obj5 = 0 ; |
33565 | PyObject * obj6 = 0 ; | |
0085ce49 | 33566 | char * kwnames[] = { |
33d6fd3b | 33567 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
33568 | }; |
33569 | ||
33d6fd3b | 33570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
33571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
33572 | if (!SWIG_IsOK(res1)) { | |
33573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33574 | } | |
33575 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33576 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33577 | if (!SWIG_IsOK(res2)) { | |
33578 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33579 | } | |
33580 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33581 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33582 | if (!SWIG_IsOK(res3)) { | |
33583 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33584 | } | |
33585 | if (!argp3) { | |
33586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33587 | } | |
33588 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33589 | { | |
33590 | arg4 = &temp4; | |
33591 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
33592 | } | |
33593 | if (obj4) { | |
33594 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33595 | if (!SWIG_IsOK(ecode5)) { | |
33596 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
33597 | } | |
33598 | arg5 = static_cast< int >(val5); | |
33599 | } | |
33d6fd3b RD |
33600 | if (obj5) { |
33601 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
33602 | if (!SWIG_IsOK(ecode6)) { | |
33603 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
33604 | } | |
33605 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
33606 | } | |
33607 | if (obj6) { | |
33608 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33609 | if (!SWIG_IsOK(res7)) { | |
33610 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
33611 | } | |
33612 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
33613 | } | |
33614 | { | |
33615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33616 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
33617 | wxPyEndAllowThreads(__tstate); | |
33618 | if (PyErr_Occurred()) SWIG_fail; | |
33619 | } | |
33620 | resultobj = SWIG_Py_Void(); | |
33621 | return resultobj; | |
33622 | fail: | |
33623 | return NULL; | |
33624 | } | |
33625 | ||
33626 | ||
33627 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33628 | PyObject *resultobj = 0; | |
33629 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33630 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33631 | wxDC *arg3 = 0 ; | |
33632 | wxRect *arg4 = 0 ; | |
33633 | int arg5 = (int) 0 ; | |
33634 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
33635 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
33636 | void *argp1 = 0 ; | |
33637 | int res1 = 0 ; | |
33638 | void *argp2 = 0 ; | |
33639 | int res2 = 0 ; | |
33640 | void *argp3 = 0 ; | |
33641 | int res3 = 0 ; | |
33642 | wxRect temp4 ; | |
33643 | int val5 ; | |
33644 | int ecode5 = 0 ; | |
33645 | int val6 ; | |
33646 | int ecode6 = 0 ; | |
33647 | void *argp7 = 0 ; | |
33648 | int res7 = 0 ; | |
33649 | PyObject * obj0 = 0 ; | |
33650 | PyObject * obj1 = 0 ; | |
33651 | PyObject * obj2 = 0 ; | |
33652 | PyObject * obj3 = 0 ; | |
33653 | PyObject * obj4 = 0 ; | |
33654 | PyObject * obj5 = 0 ; | |
33655 | PyObject * obj6 = 0 ; | |
33656 | char * kwnames[] = { | |
33657 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
33658 | }; | |
33659 | ||
33660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33662 | if (!SWIG_IsOK(res1)) { | |
33663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33664 | } | |
33665 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33666 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33667 | if (!SWIG_IsOK(res2)) { | |
33668 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33669 | } | |
33670 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33671 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33672 | if (!SWIG_IsOK(res3)) { | |
33673 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33674 | } | |
33675 | if (!argp3) { | |
33676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33677 | } | |
33678 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33679 | { | |
33680 | arg4 = &temp4; | |
33681 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
33682 | } | |
33683 | if (obj4) { | |
33684 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33685 | if (!SWIG_IsOK(ecode5)) { | |
33686 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
33687 | } | |
33688 | arg5 = static_cast< int >(val5); | |
33689 | } | |
33690 | if (obj5) { | |
33691 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
33692 | if (!SWIG_IsOK(ecode6)) { | |
33693 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
33694 | } | |
33695 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
33696 | } | |
33697 | if (obj6) { | |
33698 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33699 | if (!SWIG_IsOK(res7)) { | |
33700 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
33701 | } | |
33702 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
33703 | } | |
0085ce49 RD |
33704 | { |
33705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 33706 | (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
33707 | wxPyEndAllowThreads(__tstate); |
33708 | if (PyErr_Occurred()) SWIG_fail; | |
33709 | } | |
33710 | resultobj = SWIG_Py_Void(); | |
33711 | return resultobj; | |
33712 | fail: | |
33713 | return NULL; | |
33714 | } | |
33715 | ||
33716 | ||
33d6fd3b RD |
33717 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33718 | PyObject *resultobj = 0; | |
33719 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33720 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33721 | int result; | |
33722 | void *argp1 = 0 ; | |
33723 | int res1 = 0 ; | |
33724 | void *argp2 = 0 ; | |
33725 | int res2 = 0 ; | |
33726 | PyObject * obj0 = 0 ; | |
33727 | PyObject * obj1 = 0 ; | |
33728 | char * kwnames[] = { | |
33729 | (char *) "self",(char *) "win", NULL | |
33730 | }; | |
33731 | ||
33732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
33733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33734 | if (!SWIG_IsOK(res1)) { | |
33735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33736 | } | |
33737 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33738 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33739 | if (!SWIG_IsOK(res2)) { | |
33740 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33741 | } | |
33742 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33743 | { | |
33744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33745 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
33746 | wxPyEndAllowThreads(__tstate); | |
33747 | if (PyErr_Occurred()) SWIG_fail; | |
33748 | } | |
33749 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33750 | return resultobj; | |
33751 | fail: | |
33752 | return NULL; | |
33753 | } | |
33754 | ||
33755 | ||
0085ce49 RD |
33756 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33757 | PyObject *resultobj = 0; | |
33758 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33759 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33760 | wxDC *arg3 = 0 ; | |
33761 | wxRect *arg4 = 0 ; | |
33762 | int arg5 = (int) 0 ; | |
33763 | void *argp1 = 0 ; | |
33764 | int res1 = 0 ; | |
33765 | void *argp2 = 0 ; | |
33766 | int res2 = 0 ; | |
33767 | void *argp3 = 0 ; | |
33768 | int res3 = 0 ; | |
33769 | wxRect temp4 ; | |
33770 | int val5 ; | |
33771 | int ecode5 = 0 ; | |
33772 | PyObject * obj0 = 0 ; | |
33773 | PyObject * obj1 = 0 ; | |
33774 | PyObject * obj2 = 0 ; | |
33775 | PyObject * obj3 = 0 ; | |
33776 | PyObject * obj4 = 0 ; | |
33777 | char * kwnames[] = { | |
33778 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
33779 | }; | |
33780 | ||
33781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
33782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33783 | if (!SWIG_IsOK(res1)) { | |
33784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33785 | } | |
33786 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33787 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33788 | if (!SWIG_IsOK(res2)) { | |
33789 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33790 | } | |
33791 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33792 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33793 | if (!SWIG_IsOK(res3)) { | |
33794 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33795 | } | |
33796 | if (!argp3) { | |
33797 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33798 | } | |
33799 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33800 | { | |
33801 | arg4 = &temp4; | |
33802 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
33803 | } | |
33804 | if (obj4) { | |
33805 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33806 | if (!SWIG_IsOK(ecode5)) { | |
33807 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
33808 | } | |
33809 | arg5 = static_cast< int >(val5); | |
33810 | } | |
33811 | { | |
33812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33813 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
33814 | wxPyEndAllowThreads(__tstate); | |
33815 | if (PyErr_Occurred()) SWIG_fail; | |
33816 | } | |
33817 | resultobj = SWIG_Py_Void(); | |
33818 | return resultobj; | |
33819 | fail: | |
33820 | return NULL; | |
33821 | } | |
33822 | ||
33823 | ||
33824 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33825 | PyObject *resultobj = 0; | |
33826 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33827 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33828 | wxDC *arg3 = 0 ; | |
33829 | wxRect *arg4 = 0 ; | |
33830 | int arg5 = (int) 0 ; | |
33831 | void *argp1 = 0 ; | |
33832 | int res1 = 0 ; | |
33833 | void *argp2 = 0 ; | |
33834 | int res2 = 0 ; | |
33835 | void *argp3 = 0 ; | |
33836 | int res3 = 0 ; | |
33837 | wxRect temp4 ; | |
33838 | int val5 ; | |
33839 | int ecode5 = 0 ; | |
33840 | PyObject * obj0 = 0 ; | |
33841 | PyObject * obj1 = 0 ; | |
33842 | PyObject * obj2 = 0 ; | |
33843 | PyObject * obj3 = 0 ; | |
33844 | PyObject * obj4 = 0 ; | |
33845 | char * kwnames[] = { | |
33846 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
33847 | }; | |
33848 | ||
33849 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
33850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33851 | if (!SWIG_IsOK(res1)) { | |
33852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33853 | } | |
33854 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33855 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33856 | if (!SWIG_IsOK(res2)) { | |
33857 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33858 | } | |
33859 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33860 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33861 | if (!SWIG_IsOK(res3)) { | |
33862 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33863 | } | |
33864 | if (!argp3) { | |
33865 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33866 | } | |
33867 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33868 | { | |
33869 | arg4 = &temp4; | |
33870 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
33871 | } | |
33872 | if (obj4) { | |
33873 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33874 | if (!SWIG_IsOK(ecode5)) { | |
33875 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
33876 | } | |
33877 | arg5 = static_cast< int >(val5); | |
33878 | } | |
33879 | { | |
33880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33881 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
33882 | wxPyEndAllowThreads(__tstate); | |
33883 | if (PyErr_Occurred()) SWIG_fail; | |
33884 | } | |
33885 | resultobj = SWIG_Py_Void(); | |
33886 | return resultobj; | |
33887 | fail: | |
33888 | return NULL; | |
33889 | } | |
33890 | ||
33891 | ||
33892 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33893 | PyObject *resultobj = 0; | |
33894 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33895 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33896 | wxDC *arg3 = 0 ; | |
33897 | wxSize *arg4 = 0 ; | |
33898 | int arg5 ; | |
33899 | wxOrientation arg6 ; | |
33900 | int arg7 = (int) 0 ; | |
33901 | void *argp1 = 0 ; | |
33902 | int res1 = 0 ; | |
33903 | void *argp2 = 0 ; | |
33904 | int res2 = 0 ; | |
33905 | void *argp3 = 0 ; | |
33906 | int res3 = 0 ; | |
33907 | wxSize temp4 ; | |
33908 | int val5 ; | |
33909 | int ecode5 = 0 ; | |
33910 | int val6 ; | |
33911 | int ecode6 = 0 ; | |
33912 | int val7 ; | |
33913 | int ecode7 = 0 ; | |
33914 | PyObject * obj0 = 0 ; | |
33915 | PyObject * obj1 = 0 ; | |
33916 | PyObject * obj2 = 0 ; | |
33917 | PyObject * obj3 = 0 ; | |
33918 | PyObject * obj4 = 0 ; | |
33919 | PyObject * obj5 = 0 ; | |
33920 | PyObject * obj6 = 0 ; | |
33921 | char * kwnames[] = { | |
33922 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
33923 | }; | |
33924 | ||
33925 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33926 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
33927 | if (!SWIG_IsOK(res1)) { | |
33928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
33929 | } | |
33930 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
33931 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
33932 | if (!SWIG_IsOK(res2)) { | |
33933 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
33934 | } | |
33935 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
33936 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33937 | if (!SWIG_IsOK(res3)) { | |
33938 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33939 | } | |
33940 | if (!argp3) { | |
33941 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33942 | } | |
33943 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33944 | { | |
33945 | arg4 = &temp4; | |
33946 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33947 | } | |
33948 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33949 | if (!SWIG_IsOK(ecode5)) { | |
33950 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
33951 | } | |
33952 | arg5 = static_cast< int >(val5); | |
33953 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
33954 | if (!SWIG_IsOK(ecode6)) { | |
33955 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
33956 | } | |
33957 | arg6 = static_cast< wxOrientation >(val6); | |
33958 | if (obj6) { | |
33959 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
33960 | if (!SWIG_IsOK(ecode7)) { | |
33961 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
33962 | } | |
33963 | arg7 = static_cast< int >(val7); | |
33964 | } | |
33965 | { | |
33966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33967 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
33968 | wxPyEndAllowThreads(__tstate); | |
33969 | if (PyErr_Occurred()) SWIG_fail; | |
33970 | } | |
33971 | resultobj = SWIG_Py_Void(); | |
33972 | return resultobj; | |
33973 | fail: | |
33974 | return NULL; | |
33975 | } | |
33976 | ||
33977 | ||
33978 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33979 | PyObject *resultobj = 0; | |
33980 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
33981 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33982 | wxDC *arg3 = 0 ; | |
33983 | wxRect *arg4 = 0 ; | |
33984 | int arg5 = (int) 0 ; | |
33985 | void *argp1 = 0 ; | |
33986 | int res1 = 0 ; | |
33987 | void *argp2 = 0 ; | |
33988 | int res2 = 0 ; | |
33989 | void *argp3 = 0 ; | |
33990 | int res3 = 0 ; | |
33991 | wxRect temp4 ; | |
33992 | int val5 ; | |
33993 | int ecode5 = 0 ; | |
33994 | PyObject * obj0 = 0 ; | |
33995 | PyObject * obj1 = 0 ; | |
33996 | PyObject * obj2 = 0 ; | |
33997 | PyObject * obj3 = 0 ; | |
33998 | PyObject * obj4 = 0 ; | |
33999 | char * kwnames[] = { | |
34000 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34001 | }; | |
34002 | ||
34003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34005 | if (!SWIG_IsOK(res1)) { | |
34006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34007 | } | |
34008 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34009 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34010 | if (!SWIG_IsOK(res2)) { | |
34011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34012 | } | |
34013 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34014 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34015 | if (!SWIG_IsOK(res3)) { | |
34016 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34017 | } | |
34018 | if (!argp3) { | |
34019 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34020 | } | |
34021 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34022 | { | |
34023 | arg4 = &temp4; | |
34024 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34025 | } | |
34026 | if (obj4) { | |
34027 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34028 | if (!SWIG_IsOK(ecode5)) { | |
34029 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
34030 | } | |
34031 | arg5 = static_cast< int >(val5); | |
34032 | } | |
34033 | { | |
34034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34035 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34036 | wxPyEndAllowThreads(__tstate); | |
34037 | if (PyErr_Occurred()) SWIG_fail; | |
34038 | } | |
34039 | resultobj = SWIG_Py_Void(); | |
34040 | return resultobj; | |
34041 | fail: | |
34042 | return NULL; | |
34043 | } | |
34044 | ||
34045 | ||
34046 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34047 | PyObject *resultobj = 0; | |
34048 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34049 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34050 | wxDC *arg3 = 0 ; | |
34051 | wxRect *arg4 = 0 ; | |
34052 | int arg5 = (int) 0 ; | |
34053 | void *argp1 = 0 ; | |
34054 | int res1 = 0 ; | |
34055 | void *argp2 = 0 ; | |
34056 | int res2 = 0 ; | |
34057 | void *argp3 = 0 ; | |
34058 | int res3 = 0 ; | |
34059 | wxRect temp4 ; | |
34060 | int val5 ; | |
34061 | int ecode5 = 0 ; | |
34062 | PyObject * obj0 = 0 ; | |
34063 | PyObject * obj1 = 0 ; | |
34064 | PyObject * obj2 = 0 ; | |
34065 | PyObject * obj3 = 0 ; | |
34066 | PyObject * obj4 = 0 ; | |
34067 | char * kwnames[] = { | |
34068 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34069 | }; | |
34070 | ||
34071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34073 | if (!SWIG_IsOK(res1)) { | |
34074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34075 | } | |
34076 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34077 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34078 | if (!SWIG_IsOK(res2)) { | |
34079 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34080 | } | |
34081 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34082 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34083 | if (!SWIG_IsOK(res3)) { | |
34084 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34085 | } | |
34086 | if (!argp3) { | |
34087 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34088 | } | |
34089 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34090 | { | |
34091 | arg4 = &temp4; | |
34092 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34093 | } | |
34094 | if (obj4) { | |
34095 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34096 | if (!SWIG_IsOK(ecode5)) { | |
34097 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
34098 | } | |
34099 | arg5 = static_cast< int >(val5); | |
34100 | } | |
34101 | { | |
34102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34103 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34104 | wxPyEndAllowThreads(__tstate); | |
34105 | if (PyErr_Occurred()) SWIG_fail; | |
34106 | } | |
34107 | resultobj = SWIG_Py_Void(); | |
34108 | return resultobj; | |
34109 | fail: | |
34110 | return NULL; | |
34111 | } | |
34112 | ||
34113 | ||
01f6b6d3 RD |
34114 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34115 | PyObject *resultobj = 0; | |
34116 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34117 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34118 | wxDC *arg3 = 0 ; | |
34119 | wxRect *arg4 = 0 ; | |
34120 | int arg5 = (int) 0 ; | |
34121 | void *argp1 = 0 ; | |
34122 | int res1 = 0 ; | |
34123 | void *argp2 = 0 ; | |
34124 | int res2 = 0 ; | |
34125 | void *argp3 = 0 ; | |
34126 | int res3 = 0 ; | |
34127 | wxRect temp4 ; | |
34128 | int val5 ; | |
34129 | int ecode5 = 0 ; | |
34130 | PyObject * obj0 = 0 ; | |
34131 | PyObject * obj1 = 0 ; | |
34132 | PyObject * obj2 = 0 ; | |
34133 | PyObject * obj3 = 0 ; | |
34134 | PyObject * obj4 = 0 ; | |
34135 | char * kwnames[] = { | |
34136 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34137 | }; | |
34138 | ||
34139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34141 | if (!SWIG_IsOK(res1)) { | |
34142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34143 | } | |
34144 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34145 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34146 | if (!SWIG_IsOK(res2)) { | |
34147 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34148 | } | |
34149 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34150 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34151 | if (!SWIG_IsOK(res3)) { | |
34152 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34153 | } | |
34154 | if (!argp3) { | |
34155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34156 | } | |
34157 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34158 | { | |
34159 | arg4 = &temp4; | |
34160 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34161 | } | |
34162 | if (obj4) { | |
34163 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34164 | if (!SWIG_IsOK(ecode5)) { | |
34165 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
34166 | } | |
34167 | arg5 = static_cast< int >(val5); | |
34168 | } | |
34169 | { | |
34170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34171 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34172 | wxPyEndAllowThreads(__tstate); | |
34173 | if (PyErr_Occurred()) SWIG_fail; | |
34174 | } | |
34175 | resultobj = SWIG_Py_Void(); | |
34176 | return resultobj; | |
34177 | fail: | |
34178 | return NULL; | |
34179 | } | |
34180 | ||
34181 | ||
34182 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34183 | PyObject *resultobj = 0; | |
34184 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34185 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34186 | wxDC *arg3 = 0 ; | |
34187 | wxRect *arg4 = 0 ; | |
34188 | int arg5 = (int) 0 ; | |
34189 | void *argp1 = 0 ; | |
34190 | int res1 = 0 ; | |
34191 | void *argp2 = 0 ; | |
34192 | int res2 = 0 ; | |
34193 | void *argp3 = 0 ; | |
34194 | int res3 = 0 ; | |
34195 | wxRect temp4 ; | |
34196 | int val5 ; | |
34197 | int ecode5 = 0 ; | |
34198 | PyObject * obj0 = 0 ; | |
34199 | PyObject * obj1 = 0 ; | |
34200 | PyObject * obj2 = 0 ; | |
34201 | PyObject * obj3 = 0 ; | |
34202 | PyObject * obj4 = 0 ; | |
34203 | char * kwnames[] = { | |
34204 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34205 | }; | |
34206 | ||
34207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34209 | if (!SWIG_IsOK(res1)) { | |
34210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34211 | } | |
34212 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34213 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34214 | if (!SWIG_IsOK(res2)) { | |
34215 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34216 | } | |
34217 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34218 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34219 | if (!SWIG_IsOK(res3)) { | |
34220 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34221 | } | |
34222 | if (!argp3) { | |
34223 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34224 | } | |
34225 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34226 | { | |
34227 | arg4 = &temp4; | |
34228 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34229 | } | |
34230 | if (obj4) { | |
34231 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34232 | if (!SWIG_IsOK(ecode5)) { | |
34233 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
34234 | } | |
34235 | arg5 = static_cast< int >(val5); | |
34236 | } | |
34237 | { | |
34238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34239 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34240 | wxPyEndAllowThreads(__tstate); | |
34241 | if (PyErr_Occurred()) SWIG_fail; | |
34242 | } | |
34243 | resultobj = SWIG_Py_Void(); | |
34244 | return resultobj; | |
34245 | fail: | |
34246 | return NULL; | |
34247 | } | |
34248 | ||
34249 | ||
34250 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
34251 | PyObject *resultobj = 0; |
34252 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34253 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34254 | wxDC *arg3 = 0 ; | |
34255 | wxRect *arg4 = 0 ; | |
34256 | int arg5 = (int) 0 ; | |
34257 | void *argp1 = 0 ; | |
34258 | int res1 = 0 ; | |
34259 | void *argp2 = 0 ; | |
34260 | int res2 = 0 ; | |
34261 | void *argp3 = 0 ; | |
34262 | int res3 = 0 ; | |
34263 | wxRect temp4 ; | |
34264 | int val5 ; | |
34265 | int ecode5 = 0 ; | |
34266 | PyObject * obj0 = 0 ; | |
34267 | PyObject * obj1 = 0 ; | |
34268 | PyObject * obj2 = 0 ; | |
34269 | PyObject * obj3 = 0 ; | |
34270 | PyObject * obj4 = 0 ; | |
34271 | char * kwnames[] = { | |
34272 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34273 | }; | |
34274 | ||
01f6b6d3 | 34275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
34276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34277 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 34278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
34279 | } |
34280 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34281 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34282 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 34283 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
34284 | } |
34285 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34286 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34287 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 34288 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34289 | } |
34290 | if (!argp3) { | |
01f6b6d3 | 34291 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
34292 | } |
34293 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34294 | { | |
34295 | arg4 = &temp4; | |
34296 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34297 | } | |
34298 | if (obj4) { | |
34299 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34300 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 34301 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
34302 | } |
34303 | arg5 = static_cast< int >(val5); | |
34304 | } | |
34305 | { | |
34306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 34307 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
34308 | wxPyEndAllowThreads(__tstate); |
34309 | if (PyErr_Occurred()) SWIG_fail; | |
34310 | } | |
34311 | resultobj = SWIG_Py_Void(); | |
34312 | return resultobj; | |
34313 | fail: | |
34314 | return NULL; | |
34315 | } | |
34316 | ||
34317 | ||
0085ce49 RD |
34318 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34319 | PyObject *resultobj = 0; | |
34320 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34322 | SwigValueWrapper<wxSplitterRenderParams > result; | |
34323 | void *argp1 = 0 ; | |
34324 | int res1 = 0 ; | |
34325 | void *argp2 = 0 ; | |
34326 | int res2 = 0 ; | |
34327 | PyObject * obj0 = 0 ; | |
34328 | PyObject * obj1 = 0 ; | |
34329 | char * kwnames[] = { | |
34330 | (char *) "self",(char *) "win", NULL | |
34331 | }; | |
34332 | ||
34333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
34334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34335 | if (!SWIG_IsOK(res1)) { | |
34336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34337 | } | |
34338 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34339 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34340 | if (!SWIG_IsOK(res2)) { | |
34341 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
34342 | } | |
34343 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34344 | { | |
34345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34346 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
34347 | wxPyEndAllowThreads(__tstate); | |
34348 | if (PyErr_Occurred()) SWIG_fail; | |
34349 | } | |
34350 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
34351 | return resultobj; | |
34352 | fail: | |
34353 | return NULL; | |
34354 | } | |
34355 | ||
34356 | ||
34357 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34358 | PyObject *resultobj = 0; | |
34359 | wxRendererNative *result = 0 ; | |
34360 | ||
34361 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
34362 | { | |
704eda0c | 34363 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 34365 | { |
0085ce49 RD |
34366 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
34367 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 34368 | } |
0085ce49 RD |
34369 | wxPyEndAllowThreads(__tstate); |
34370 | if (PyErr_Occurred()) SWIG_fail; | |
34371 | } | |
34372 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34373 | return resultobj; | |
34374 | fail: | |
34375 | return NULL; | |
34376 | } | |
34377 | ||
34378 | ||
34379 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34380 | PyObject *resultobj = 0; | |
34381 | wxRendererNative *result = 0 ; | |
34382 | ||
34383 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
34384 | { | |
704eda0c | 34385 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34387 | { |
0085ce49 RD |
34388 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
34389 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34390 | } |
0085ce49 RD |
34391 | wxPyEndAllowThreads(__tstate); |
34392 | if (PyErr_Occurred()) SWIG_fail; | |
34393 | } | |
34394 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34395 | return resultobj; | |
34396 | fail: | |
34397 | return NULL; | |
34398 | } | |
34399 | ||
34400 | ||
34401 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34402 | PyObject *resultobj = 0; | |
34403 | wxRendererNative *result = 0 ; | |
34404 | ||
34405 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
34406 | { | |
704eda0c | 34407 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 34408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 34409 | { |
0085ce49 RD |
34410 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
34411 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 34412 | } |
0085ce49 RD |
34413 | wxPyEndAllowThreads(__tstate); |
34414 | if (PyErr_Occurred()) SWIG_fail; | |
34415 | } | |
34416 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34417 | return resultobj; | |
34418 | fail: | |
34419 | return NULL; | |
34420 | } | |
34421 | ||
34422 | ||
34423 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34424 | PyObject *resultobj = 0; | |
34425 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34426 | wxRendererNative *result = 0 ; | |
34427 | void *argp1 = 0 ; | |
34428 | int res1 = 0 ; | |
34429 | PyObject * obj0 = 0 ; | |
34430 | char * kwnames[] = { | |
34431 | (char *) "renderer", NULL | |
34432 | }; | |
34433 | ||
34434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
34435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34436 | if (!SWIG_IsOK(res1)) { | |
34437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34438 | } | |
34439 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34440 | { | |
704eda0c | 34441 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
34442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34443 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
34444 | wxPyEndAllowThreads(__tstate); | |
34445 | if (PyErr_Occurred()) SWIG_fail; | |
34446 | } | |
34447 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34448 | return resultobj; | |
34449 | fail: | |
34450 | return NULL; | |
34451 | } | |
34452 | ||
34453 | ||
34454 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34455 | PyObject *resultobj = 0; | |
34456 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34457 | SwigValueWrapper<wxRendererVersion > result; | |
34458 | void *argp1 = 0 ; | |
34459 | int res1 = 0 ; | |
34460 | PyObject *swig_obj[1] ; | |
34461 | ||
34462 | if (!args) SWIG_fail; | |
34463 | swig_obj[0] = args; | |
34464 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34465 | if (!SWIG_IsOK(res1)) { | |
34466 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
34467 | } | |
34468 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34469 | { | |
34470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34471 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
34472 | wxPyEndAllowThreads(__tstate); | |
34473 | if (PyErr_Occurred()) SWIG_fail; | |
34474 | } | |
34475 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
34476 | return resultobj; | |
34477 | fail: | |
34478 | return NULL; | |
34479 | } | |
34480 | ||
34481 | ||
34482 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34483 | PyObject *obj; | |
34484 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34485 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
34486 | return SWIG_Py_Void(); | |
34487 | } | |
34488 | ||
27e45892 RD |
34489 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34490 | PyObject *resultobj = 0; | |
34491 | wxPseudoDC *result = 0 ; | |
34492 | ||
34493 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
34494 | { | |
34495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34496 | result = (wxPseudoDC *)new wxPseudoDC(); | |
34497 | wxPyEndAllowThreads(__tstate); | |
34498 | if (PyErr_Occurred()) SWIG_fail; | |
34499 | } | |
34500 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
34501 | return resultobj; | |
34502 | fail: | |
34503 | return NULL; | |
34504 | } | |
34505 | ||
34506 | ||
34507 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34508 | PyObject *resultobj = 0; | |
34509 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34510 | void *argp1 = 0 ; | |
34511 | int res1 = 0 ; | |
34512 | PyObject *swig_obj[1] ; | |
34513 | ||
34514 | if (!args) SWIG_fail; | |
34515 | swig_obj[0] = args; | |
34516 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34517 | if (!SWIG_IsOK(res1)) { | |
34518 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34519 | } | |
34520 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34521 | { | |
34522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34523 | (arg1)->BeginDrawing(); | |
34524 | wxPyEndAllowThreads(__tstate); | |
34525 | if (PyErr_Occurred()) SWIG_fail; | |
34526 | } | |
34527 | resultobj = SWIG_Py_Void(); | |
34528 | return resultobj; | |
34529 | fail: | |
34530 | return NULL; | |
34531 | } | |
34532 | ||
34533 | ||
34534 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34535 | PyObject *resultobj = 0; | |
34536 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34537 | void *argp1 = 0 ; | |
34538 | int res1 = 0 ; | |
34539 | PyObject *swig_obj[1] ; | |
34540 | ||
34541 | if (!args) SWIG_fail; | |
34542 | swig_obj[0] = args; | |
34543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34544 | if (!SWIG_IsOK(res1)) { | |
34545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34546 | } | |
34547 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34548 | { | |
34549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34550 | (arg1)->EndDrawing(); | |
34551 | wxPyEndAllowThreads(__tstate); | |
34552 | if (PyErr_Occurred()) SWIG_fail; | |
34553 | } | |
34554 | resultobj = SWIG_Py_Void(); | |
34555 | return resultobj; | |
34556 | fail: | |
34557 | return NULL; | |
34558 | } | |
34559 | ||
34560 | ||
34561 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34562 | PyObject *resultobj = 0; | |
34563 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34564 | void *argp1 = 0 ; | |
34565 | int res1 = 0 ; | |
34566 | PyObject *swig_obj[1] ; | |
34567 | ||
34568 | if (!args) SWIG_fail; | |
34569 | swig_obj[0] = args; | |
34570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
34571 | if (!SWIG_IsOK(res1)) { | |
34572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34573 | } | |
34574 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34575 | { | |
34576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34577 | delete arg1; | |
34578 | ||
34579 | wxPyEndAllowThreads(__tstate); | |
34580 | if (PyErr_Occurred()) SWIG_fail; | |
34581 | } | |
34582 | resultobj = SWIG_Py_Void(); | |
34583 | return resultobj; | |
34584 | fail: | |
34585 | return NULL; | |
34586 | } | |
34587 | ||
34588 | ||
34589 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34590 | PyObject *resultobj = 0; | |
34591 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34592 | void *argp1 = 0 ; | |
34593 | int res1 = 0 ; | |
34594 | PyObject *swig_obj[1] ; | |
34595 | ||
34596 | if (!args) SWIG_fail; | |
34597 | swig_obj[0] = args; | |
34598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34599 | if (!SWIG_IsOK(res1)) { | |
34600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34601 | } | |
34602 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34603 | { | |
34604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34605 | (arg1)->RemoveAll(); | |
34606 | wxPyEndAllowThreads(__tstate); | |
34607 | if (PyErr_Occurred()) SWIG_fail; | |
34608 | } | |
34609 | resultobj = SWIG_Py_Void(); | |
34610 | return resultobj; | |
34611 | fail: | |
34612 | return NULL; | |
34613 | } | |
34614 | ||
34615 | ||
34616 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34617 | PyObject *resultobj = 0; | |
34618 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34619 | int result; | |
34620 | void *argp1 = 0 ; | |
34621 | int res1 = 0 ; | |
34622 | PyObject *swig_obj[1] ; | |
34623 | ||
34624 | if (!args) SWIG_fail; | |
34625 | swig_obj[0] = args; | |
34626 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34627 | if (!SWIG_IsOK(res1)) { | |
34628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34629 | } | |
34630 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34631 | { | |
34632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34633 | result = (int)(arg1)->GetLen(); | |
34634 | wxPyEndAllowThreads(__tstate); | |
34635 | if (PyErr_Occurred()) SWIG_fail; | |
34636 | } | |
34637 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34638 | return resultobj; | |
34639 | fail: | |
34640 | return NULL; | |
34641 | } | |
34642 | ||
34643 | ||
34644 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34645 | PyObject *resultobj = 0; | |
34646 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34647 | int arg2 ; | |
34648 | void *argp1 = 0 ; | |
34649 | int res1 = 0 ; | |
34650 | int val2 ; | |
34651 | int ecode2 = 0 ; | |
34652 | PyObject * obj0 = 0 ; | |
34653 | PyObject * obj1 = 0 ; | |
34654 | char * kwnames[] = { | |
34655 | (char *) "self",(char *) "id", NULL | |
34656 | }; | |
34657 | ||
34658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
34659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34660 | if (!SWIG_IsOK(res1)) { | |
34661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34662 | } | |
34663 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34664 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34665 | if (!SWIG_IsOK(ecode2)) { | |
34666 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
34667 | } | |
34668 | arg2 = static_cast< int >(val2); | |
34669 | { | |
34670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34671 | (arg1)->SetId(arg2); | |
34672 | wxPyEndAllowThreads(__tstate); | |
34673 | if (PyErr_Occurred()) SWIG_fail; | |
34674 | } | |
34675 | resultobj = SWIG_Py_Void(); | |
34676 | return resultobj; | |
34677 | fail: | |
34678 | return NULL; | |
34679 | } | |
34680 | ||
34681 | ||
34682 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34683 | PyObject *resultobj = 0; | |
34684 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34685 | int arg2 ; | |
34686 | void *argp1 = 0 ; | |
34687 | int res1 = 0 ; | |
34688 | int val2 ; | |
34689 | int ecode2 = 0 ; | |
34690 | PyObject * obj0 = 0 ; | |
34691 | PyObject * obj1 = 0 ; | |
34692 | char * kwnames[] = { | |
34693 | (char *) "self",(char *) "id", NULL | |
34694 | }; | |
34695 | ||
34696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
34697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34698 | if (!SWIG_IsOK(res1)) { | |
34699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34700 | } | |
34701 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34702 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34703 | if (!SWIG_IsOK(ecode2)) { | |
34704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
34705 | } | |
34706 | arg2 = static_cast< int >(val2); | |
34707 | { | |
34708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34709 | (arg1)->ClearId(arg2); | |
34710 | wxPyEndAllowThreads(__tstate); | |
34711 | if (PyErr_Occurred()) SWIG_fail; | |
34712 | } | |
34713 | resultobj = SWIG_Py_Void(); | |
34714 | return resultobj; | |
34715 | fail: | |
34716 | return NULL; | |
34717 | } | |
34718 | ||
34719 | ||
34720 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34721 | PyObject *resultobj = 0; | |
34722 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34723 | int arg2 ; | |
34724 | void *argp1 = 0 ; | |
34725 | int res1 = 0 ; | |
34726 | int val2 ; | |
34727 | int ecode2 = 0 ; | |
34728 | PyObject * obj0 = 0 ; | |
34729 | PyObject * obj1 = 0 ; | |
34730 | char * kwnames[] = { | |
34731 | (char *) "self",(char *) "id", NULL | |
34732 | }; | |
34733 | ||
34734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
34735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34736 | if (!SWIG_IsOK(res1)) { | |
34737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34738 | } | |
34739 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34740 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34741 | if (!SWIG_IsOK(ecode2)) { | |
34742 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
34743 | } | |
34744 | arg2 = static_cast< int >(val2); | |
34745 | { | |
34746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34747 | (arg1)->RemoveId(arg2); | |
34748 | wxPyEndAllowThreads(__tstate); | |
34749 | if (PyErr_Occurred()) SWIG_fail; | |
34750 | } | |
34751 | resultobj = SWIG_Py_Void(); | |
34752 | return resultobj; | |
34753 | fail: | |
34754 | return NULL; | |
34755 | } | |
34756 | ||
34757 | ||
34758 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34759 | PyObject *resultobj = 0; | |
34760 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34761 | int arg2 ; | |
34762 | int arg3 ; | |
34763 | int arg4 ; | |
34764 | void *argp1 = 0 ; | |
34765 | int res1 = 0 ; | |
34766 | int val2 ; | |
34767 | int ecode2 = 0 ; | |
34768 | int val3 ; | |
34769 | int ecode3 = 0 ; | |
34770 | int val4 ; | |
34771 | int ecode4 = 0 ; | |
34772 | PyObject * obj0 = 0 ; | |
34773 | PyObject * obj1 = 0 ; | |
34774 | PyObject * obj2 = 0 ; | |
34775 | PyObject * obj3 = 0 ; | |
34776 | char * kwnames[] = { | |
34777 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
34778 | }; | |
34779 | ||
34780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34782 | if (!SWIG_IsOK(res1)) { | |
34783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34784 | } | |
34785 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34786 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34787 | if (!SWIG_IsOK(ecode2)) { | |
34788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
34789 | } | |
34790 | arg2 = static_cast< int >(val2); | |
34791 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34792 | if (!SWIG_IsOK(ecode3)) { | |
34793 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
34794 | } | |
34795 | arg3 = static_cast< int >(val3); | |
34796 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34797 | if (!SWIG_IsOK(ecode4)) { | |
34798 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
34799 | } | |
34800 | arg4 = static_cast< int >(val4); | |
34801 | { | |
34802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34803 | (arg1)->TranslateId(arg2,arg3,arg4); | |
34804 | wxPyEndAllowThreads(__tstate); | |
34805 | if (PyErr_Occurred()) SWIG_fail; | |
34806 | } | |
34807 | resultobj = SWIG_Py_Void(); | |
34808 | return resultobj; | |
34809 | fail: | |
34810 | return NULL; | |
34811 | } | |
34812 | ||
34813 | ||
72ef6efb RD |
34814 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34815 | PyObject *resultobj = 0; | |
34816 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34817 | int arg2 ; | |
34818 | bool arg3 = (bool) true ; | |
34819 | void *argp1 = 0 ; | |
34820 | int res1 = 0 ; | |
34821 | int val2 ; | |
34822 | int ecode2 = 0 ; | |
34823 | bool val3 ; | |
34824 | int ecode3 = 0 ; | |
34825 | PyObject * obj0 = 0 ; | |
34826 | PyObject * obj1 = 0 ; | |
34827 | PyObject * obj2 = 0 ; | |
34828 | char * kwnames[] = { | |
34829 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
34830 | }; | |
34831 | ||
34832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34834 | if (!SWIG_IsOK(res1)) { | |
34835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34836 | } | |
34837 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34838 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34839 | if (!SWIG_IsOK(ecode2)) { | |
34840 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
34841 | } | |
34842 | arg2 = static_cast< int >(val2); | |
34843 | if (obj2) { | |
34844 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34845 | if (!SWIG_IsOK(ecode3)) { | |
34846 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
34847 | } | |
34848 | arg3 = static_cast< bool >(val3); | |
34849 | } | |
34850 | { | |
34851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34852 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
34853 | wxPyEndAllowThreads(__tstate); | |
34854 | if (PyErr_Occurred()) SWIG_fail; | |
34855 | } | |
34856 | resultobj = SWIG_Py_Void(); | |
34857 | return resultobj; | |
34858 | fail: | |
34859 | return NULL; | |
34860 | } | |
34861 | ||
34862 | ||
34863 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34864 | PyObject *resultobj = 0; | |
34865 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34866 | int arg2 ; | |
34867 | bool result; | |
34868 | void *argp1 = 0 ; | |
34869 | int res1 = 0 ; | |
34870 | int val2 ; | |
34871 | int ecode2 = 0 ; | |
34872 | PyObject * obj0 = 0 ; | |
34873 | PyObject * obj1 = 0 ; | |
34874 | char * kwnames[] = { | |
34875 | (char *) "self",(char *) "id", NULL | |
34876 | }; | |
34877 | ||
34878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
34879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34880 | if (!SWIG_IsOK(res1)) { | |
34881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34882 | } | |
34883 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34884 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34885 | if (!SWIG_IsOK(ecode2)) { | |
34886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
34887 | } | |
34888 | arg2 = static_cast< int >(val2); | |
34889 | { | |
34890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34891 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
34892 | wxPyEndAllowThreads(__tstate); | |
34893 | if (PyErr_Occurred()) SWIG_fail; | |
34894 | } | |
34895 | { | |
34896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34897 | } | |
34898 | return resultobj; | |
34899 | fail: | |
34900 | return NULL; | |
34901 | } | |
34902 | ||
34903 | ||
34904 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34905 | PyObject *resultobj = 0; | |
34906 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34907 | int arg2 ; | |
34908 | int arg3 ; | |
34909 | int arg4 = (int) 1 ; | |
34910 | wxColor const &arg5_defvalue = *wxWHITE ; | |
34911 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
34912 | PyObject *result = 0 ; | |
34913 | void *argp1 = 0 ; | |
34914 | int res1 = 0 ; | |
34915 | int val2 ; | |
34916 | int ecode2 = 0 ; | |
34917 | int val3 ; | |
34918 | int ecode3 = 0 ; | |
34919 | int val4 ; | |
34920 | int ecode4 = 0 ; | |
34921 | void *argp5 = 0 ; | |
34922 | int res5 = 0 ; | |
34923 | PyObject * obj0 = 0 ; | |
34924 | PyObject * obj1 = 0 ; | |
34925 | PyObject * obj2 = 0 ; | |
34926 | PyObject * obj3 = 0 ; | |
34927 | PyObject * obj4 = 0 ; | |
34928 | char * kwnames[] = { | |
34929 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
34930 | }; | |
34931 | ||
34932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34934 | if (!SWIG_IsOK(res1)) { | |
34935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34936 | } | |
34937 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34938 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34939 | if (!SWIG_IsOK(ecode2)) { | |
34940 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
34941 | } | |
34942 | arg2 = static_cast< int >(val2); | |
34943 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34944 | if (!SWIG_IsOK(ecode3)) { | |
34945 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
34946 | } | |
34947 | arg3 = static_cast< int >(val3); | |
34948 | if (obj3) { | |
34949 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34950 | if (!SWIG_IsOK(ecode4)) { | |
34951 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
34952 | } | |
34953 | arg4 = static_cast< int >(val4); | |
34954 | } | |
34955 | if (obj4) { | |
34956 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
34957 | if (!SWIG_IsOK(res5)) { | |
34958 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
34959 | } | |
34960 | if (!argp5) { | |
34961 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
34962 | } | |
34963 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
34964 | } | |
34965 | { | |
34966 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
34967 | if (PyErr_Occurred()) SWIG_fail; | |
34968 | } | |
34969 | resultobj = result; | |
34970 | return resultobj; | |
34971 | fail: | |
34972 | return NULL; | |
34973 | } | |
34974 | ||
34975 | ||
34976 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34977 | PyObject *resultobj = 0; | |
34978 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34979 | int arg2 ; | |
34980 | int arg3 ; | |
34981 | PyObject *result = 0 ; | |
34982 | void *argp1 = 0 ; | |
34983 | int res1 = 0 ; | |
34984 | int val2 ; | |
34985 | int ecode2 = 0 ; | |
34986 | int val3 ; | |
34987 | int ecode3 = 0 ; | |
34988 | PyObject * obj0 = 0 ; | |
34989 | PyObject * obj1 = 0 ; | |
34990 | PyObject * obj2 = 0 ; | |
34991 | char * kwnames[] = { | |
34992 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34993 | }; | |
34994 | ||
34995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34997 | if (!SWIG_IsOK(res1)) { | |
34998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34999 | } | |
35000 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35001 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35002 | if (!SWIG_IsOK(ecode2)) { | |
35003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
35004 | } | |
35005 | arg2 = static_cast< int >(val2); | |
35006 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35007 | if (!SWIG_IsOK(ecode3)) { | |
35008 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
35009 | } | |
35010 | arg3 = static_cast< int >(val3); | |
35011 | { | |
35012 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
35013 | if (PyErr_Occurred()) SWIG_fail; | |
35014 | } | |
35015 | resultobj = result; | |
35016 | return resultobj; | |
35017 | fail: | |
35018 | return NULL; | |
35019 | } | |
35020 | ||
35021 | ||
27e45892 RD |
35022 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35023 | PyObject *resultobj = 0; | |
35024 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35025 | int arg2 ; | |
35026 | wxDC *arg3 = (wxDC *) 0 ; | |
35027 | void *argp1 = 0 ; | |
35028 | int res1 = 0 ; | |
35029 | int val2 ; | |
35030 | int ecode2 = 0 ; | |
35031 | void *argp3 = 0 ; | |
35032 | int res3 = 0 ; | |
35033 | PyObject * obj0 = 0 ; | |
35034 | PyObject * obj1 = 0 ; | |
35035 | PyObject * obj2 = 0 ; | |
35036 | char * kwnames[] = { | |
35037 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
35038 | }; | |
35039 | ||
35040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35042 | if (!SWIG_IsOK(res1)) { | |
35043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35044 | } | |
35045 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35046 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35047 | if (!SWIG_IsOK(ecode2)) { | |
35048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
35049 | } | |
35050 | arg2 = static_cast< int >(val2); | |
35051 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35052 | if (!SWIG_IsOK(res3)) { | |
35053 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
35054 | } | |
35055 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35056 | { | |
35057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35058 | (arg1)->DrawIdToDC(arg2,arg3); | |
35059 | wxPyEndAllowThreads(__tstate); | |
35060 | if (PyErr_Occurred()) SWIG_fail; | |
35061 | } | |
35062 | resultobj = SWIG_Py_Void(); | |
35063 | return resultobj; | |
35064 | fail: | |
35065 | return NULL; | |
35066 | } | |
35067 | ||
35068 | ||
35069 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35070 | PyObject *resultobj = 0; | |
35071 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35072 | int arg2 ; | |
35073 | wxRect *arg3 = 0 ; | |
35074 | void *argp1 = 0 ; | |
35075 | int res1 = 0 ; | |
35076 | int val2 ; | |
35077 | int ecode2 = 0 ; | |
35078 | wxRect temp3 ; | |
35079 | PyObject * obj0 = 0 ; | |
35080 | PyObject * obj1 = 0 ; | |
35081 | PyObject * obj2 = 0 ; | |
35082 | char * kwnames[] = { | |
35083 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
35084 | }; | |
35085 | ||
35086 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35088 | if (!SWIG_IsOK(res1)) { | |
35089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35090 | } | |
35091 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35092 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35093 | if (!SWIG_IsOK(ecode2)) { | |
35094 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35095 | } | |
35096 | arg2 = static_cast< int >(val2); | |
35097 | { | |
35098 | arg3 = &temp3; | |
35099 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35100 | } | |
35101 | { | |
35102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35103 | (arg1)->SetIdBounds(arg2,*arg3); | |
35104 | wxPyEndAllowThreads(__tstate); | |
35105 | if (PyErr_Occurred()) SWIG_fail; | |
35106 | } | |
35107 | resultobj = SWIG_Py_Void(); | |
35108 | return resultobj; | |
35109 | fail: | |
35110 | return NULL; | |
35111 | } | |
35112 | ||
35113 | ||
35114 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35115 | PyObject *resultobj = 0; | |
35116 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35117 | int arg2 ; | |
35118 | wxRect result; | |
35119 | void *argp1 = 0 ; | |
35120 | int res1 = 0 ; | |
35121 | int val2 ; | |
35122 | int ecode2 = 0 ; | |
35123 | PyObject * obj0 = 0 ; | |
35124 | PyObject * obj1 = 0 ; | |
35125 | char * kwnames[] = { | |
35126 | (char *) "self",(char *) "id", NULL | |
35127 | }; | |
35128 | ||
35129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
35130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35131 | if (!SWIG_IsOK(res1)) { | |
35132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35133 | } | |
35134 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35135 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35136 | if (!SWIG_IsOK(ecode2)) { | |
35137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35138 | } | |
35139 | arg2 = static_cast< int >(val2); | |
35140 | { | |
35141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35142 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
35143 | wxPyEndAllowThreads(__tstate); | |
35144 | if (PyErr_Occurred()) SWIG_fail; | |
35145 | } | |
35146 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
35147 | return resultobj; | |
35148 | fail: | |
35149 | return NULL; | |
35150 | } | |
35151 | ||
35152 | ||
35153 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35154 | PyObject *resultobj = 0; | |
35155 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35156 | wxDC *arg2 = (wxDC *) 0 ; | |
35157 | wxRect *arg3 = 0 ; | |
35158 | void *argp1 = 0 ; | |
35159 | int res1 = 0 ; | |
35160 | void *argp2 = 0 ; | |
35161 | int res2 = 0 ; | |
35162 | wxRect temp3 ; | |
35163 | PyObject * obj0 = 0 ; | |
35164 | PyObject * obj1 = 0 ; | |
35165 | PyObject * obj2 = 0 ; | |
35166 | char * kwnames[] = { | |
35167 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
35168 | }; | |
35169 | ||
35170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35172 | if (!SWIG_IsOK(res1)) { | |
35173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35174 | } | |
35175 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35176 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35177 | if (!SWIG_IsOK(res2)) { | |
35178 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35179 | } | |
35180 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35181 | { | |
35182 | arg3 = &temp3; | |
35183 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35184 | } | |
35185 | { | |
35186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35187 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
35188 | wxPyEndAllowThreads(__tstate); | |
35189 | if (PyErr_Occurred()) SWIG_fail; | |
35190 | } | |
35191 | resultobj = SWIG_Py_Void(); | |
35192 | return resultobj; | |
35193 | fail: | |
35194 | return NULL; | |
35195 | } | |
35196 | ||
35197 | ||
35198 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35199 | PyObject *resultobj = 0; | |
35200 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35201 | wxDC *arg2 = (wxDC *) 0 ; | |
35202 | wxRegion *arg3 = 0 ; | |
35203 | void *argp1 = 0 ; | |
35204 | int res1 = 0 ; | |
35205 | void *argp2 = 0 ; | |
35206 | int res2 = 0 ; | |
35207 | void *argp3 = 0 ; | |
35208 | int res3 = 0 ; | |
35209 | PyObject * obj0 = 0 ; | |
35210 | PyObject * obj1 = 0 ; | |
35211 | PyObject * obj2 = 0 ; | |
35212 | char * kwnames[] = { | |
35213 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
35214 | }; | |
35215 | ||
35216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35218 | if (!SWIG_IsOK(res1)) { | |
35219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35220 | } | |
35221 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35222 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35223 | if (!SWIG_IsOK(res2)) { | |
35224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35225 | } | |
35226 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35227 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
35228 | if (!SWIG_IsOK(res3)) { | |
35229 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35230 | } | |
35231 | if (!argp3) { | |
35232 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
35233 | } | |
35234 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
35235 | { | |
35236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35237 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
35238 | wxPyEndAllowThreads(__tstate); | |
35239 | if (PyErr_Occurred()) SWIG_fail; | |
35240 | } | |
35241 | resultobj = SWIG_Py_Void(); | |
35242 | return resultobj; | |
35243 | fail: | |
35244 | return NULL; | |
35245 | } | |
35246 | ||
35247 | ||
35248 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35249 | PyObject *resultobj = 0; | |
35250 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35251 | wxDC *arg2 = (wxDC *) 0 ; | |
35252 | void *argp1 = 0 ; | |
35253 | int res1 = 0 ; | |
35254 | void *argp2 = 0 ; | |
35255 | int res2 = 0 ; | |
35256 | PyObject * obj0 = 0 ; | |
35257 | PyObject * obj1 = 0 ; | |
35258 | char * kwnames[] = { | |
35259 | (char *) "self",(char *) "dc", NULL | |
35260 | }; | |
35261 | ||
35262 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
35263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35264 | if (!SWIG_IsOK(res1)) { | |
35265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35266 | } | |
35267 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35268 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35269 | if (!SWIG_IsOK(res2)) { | |
35270 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
35271 | } | |
35272 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
35273 | { | |
35274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35275 | (arg1)->DrawToDC(arg2); | |
35276 | wxPyEndAllowThreads(__tstate); | |
35277 | if (PyErr_Occurred()) SWIG_fail; | |
35278 | } | |
35279 | resultobj = SWIG_Py_Void(); | |
35280 | return resultobj; | |
35281 | fail: | |
35282 | return NULL; | |
35283 | } | |
35284 | ||
35285 | ||
35286 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35287 | PyObject *resultobj = 0; | |
35288 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35289 | int arg2 ; | |
35290 | int arg3 ; | |
35291 | wxColour *arg4 = 0 ; | |
35292 | int arg5 = (int) wxFLOOD_SURFACE ; | |
35293 | void *argp1 = 0 ; | |
35294 | int res1 = 0 ; | |
35295 | int val2 ; | |
35296 | int ecode2 = 0 ; | |
35297 | int val3 ; | |
35298 | int ecode3 = 0 ; | |
35299 | wxColour temp4 ; | |
35300 | int val5 ; | |
35301 | int ecode5 = 0 ; | |
35302 | PyObject * obj0 = 0 ; | |
35303 | PyObject * obj1 = 0 ; | |
35304 | PyObject * obj2 = 0 ; | |
35305 | PyObject * obj3 = 0 ; | |
35306 | PyObject * obj4 = 0 ; | |
35307 | char * kwnames[] = { | |
35308 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
35309 | }; | |
35310 | ||
35311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35313 | if (!SWIG_IsOK(res1)) { | |
35314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35315 | } | |
35316 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35317 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35318 | if (!SWIG_IsOK(ecode2)) { | |
35319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
35320 | } | |
35321 | arg2 = static_cast< int >(val2); | |
35322 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35323 | if (!SWIG_IsOK(ecode3)) { | |
35324 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
35325 | } | |
35326 | arg3 = static_cast< int >(val3); | |
35327 | { | |
35328 | arg4 = &temp4; | |
35329 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
35330 | } | |
35331 | if (obj4) { | |
35332 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35333 | if (!SWIG_IsOK(ecode5)) { | |
35334 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
35335 | } | |
35336 | arg5 = static_cast< int >(val5); | |
35337 | } | |
35338 | { | |
35339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35340 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
35341 | wxPyEndAllowThreads(__tstate); | |
35342 | if (PyErr_Occurred()) SWIG_fail; | |
35343 | } | |
35344 | resultobj = SWIG_Py_Void(); | |
35345 | return resultobj; | |
35346 | fail: | |
35347 | return NULL; | |
35348 | } | |
35349 | ||
35350 | ||
35351 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35352 | PyObject *resultobj = 0; | |
35353 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35354 | wxPoint *arg2 = 0 ; | |
35355 | wxColour *arg3 = 0 ; | |
35356 | int arg4 = (int) wxFLOOD_SURFACE ; | |
35357 | void *argp1 = 0 ; | |
35358 | int res1 = 0 ; | |
35359 | wxPoint temp2 ; | |
35360 | wxColour temp3 ; | |
35361 | int val4 ; | |
35362 | int ecode4 = 0 ; | |
35363 | PyObject * obj0 = 0 ; | |
35364 | PyObject * obj1 = 0 ; | |
35365 | PyObject * obj2 = 0 ; | |
35366 | PyObject * obj3 = 0 ; | |
35367 | char * kwnames[] = { | |
35368 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
35369 | }; | |
35370 | ||
35371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35373 | if (!SWIG_IsOK(res1)) { | |
35374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35375 | } | |
35376 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35377 | { | |
35378 | arg2 = &temp2; | |
35379 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35380 | } | |
35381 | { | |
35382 | arg3 = &temp3; | |
35383 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
35384 | } | |
35385 | if (obj3) { | |
35386 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35387 | if (!SWIG_IsOK(ecode4)) { | |
35388 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
35389 | } | |
35390 | arg4 = static_cast< int >(val4); | |
35391 | } | |
35392 | { | |
35393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35394 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
35395 | wxPyEndAllowThreads(__tstate); | |
35396 | if (PyErr_Occurred()) SWIG_fail; | |
35397 | } | |
35398 | resultobj = SWIG_Py_Void(); | |
35399 | return resultobj; | |
35400 | fail: | |
35401 | return NULL; | |
35402 | } | |
35403 | ||
35404 | ||
35405 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35406 | PyObject *resultobj = 0; | |
35407 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35408 | int arg2 ; | |
35409 | int arg3 ; | |
35410 | int arg4 ; | |
35411 | int arg5 ; | |
35412 | void *argp1 = 0 ; | |
35413 | int res1 = 0 ; | |
35414 | int val2 ; | |
35415 | int ecode2 = 0 ; | |
35416 | int val3 ; | |
35417 | int ecode3 = 0 ; | |
35418 | int val4 ; | |
35419 | int ecode4 = 0 ; | |
35420 | int val5 ; | |
35421 | int ecode5 = 0 ; | |
35422 | PyObject * obj0 = 0 ; | |
35423 | PyObject * obj1 = 0 ; | |
35424 | PyObject * obj2 = 0 ; | |
35425 | PyObject * obj3 = 0 ; | |
35426 | PyObject * obj4 = 0 ; | |
35427 | char * kwnames[] = { | |
35428 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
35429 | }; | |
35430 | ||
35431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35432 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35433 | if (!SWIG_IsOK(res1)) { | |
35434 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35435 | } | |
35436 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35437 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35438 | if (!SWIG_IsOK(ecode2)) { | |
35439 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
35440 | } | |
35441 | arg2 = static_cast< int >(val2); | |
35442 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35443 | if (!SWIG_IsOK(ecode3)) { | |
35444 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
35445 | } | |
35446 | arg3 = static_cast< int >(val3); | |
35447 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35448 | if (!SWIG_IsOK(ecode4)) { | |
35449 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
35450 | } | |
35451 | arg4 = static_cast< int >(val4); | |
35452 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35453 | if (!SWIG_IsOK(ecode5)) { | |
35454 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
35455 | } | |
35456 | arg5 = static_cast< int >(val5); | |
35457 | { | |
35458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35459 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
35460 | wxPyEndAllowThreads(__tstate); | |
35461 | if (PyErr_Occurred()) SWIG_fail; | |
35462 | } | |
35463 | resultobj = SWIG_Py_Void(); | |
35464 | return resultobj; | |
35465 | fail: | |
35466 | return NULL; | |
35467 | } | |
35468 | ||
35469 | ||
35470 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35471 | PyObject *resultobj = 0; | |
35472 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35473 | wxPoint *arg2 = 0 ; | |
35474 | wxPoint *arg3 = 0 ; | |
35475 | void *argp1 = 0 ; | |
35476 | int res1 = 0 ; | |
35477 | wxPoint temp2 ; | |
35478 | wxPoint temp3 ; | |
35479 | PyObject * obj0 = 0 ; | |
35480 | PyObject * obj1 = 0 ; | |
35481 | PyObject * obj2 = 0 ; | |
35482 | char * kwnames[] = { | |
35483 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
35484 | }; | |
35485 | ||
35486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35488 | if (!SWIG_IsOK(res1)) { | |
35489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35490 | } | |
35491 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35492 | { | |
35493 | arg2 = &temp2; | |
35494 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35495 | } | |
35496 | { | |
35497 | arg3 = &temp3; | |
35498 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
35499 | } | |
35500 | { | |
35501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35502 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
35503 | wxPyEndAllowThreads(__tstate); | |
35504 | if (PyErr_Occurred()) SWIG_fail; | |
35505 | } | |
35506 | resultobj = SWIG_Py_Void(); | |
35507 | return resultobj; | |
35508 | fail: | |
35509 | return NULL; | |
35510 | } | |
35511 | ||
35512 | ||
35513 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35514 | PyObject *resultobj = 0; | |
35515 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35516 | int arg2 ; | |
35517 | int arg3 ; | |
35518 | void *argp1 = 0 ; | |
35519 | int res1 = 0 ; | |
35520 | int val2 ; | |
35521 | int ecode2 = 0 ; | |
35522 | int val3 ; | |
35523 | int ecode3 = 0 ; | |
35524 | PyObject * obj0 = 0 ; | |
35525 | PyObject * obj1 = 0 ; | |
35526 | PyObject * obj2 = 0 ; | |
35527 | char * kwnames[] = { | |
35528 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35529 | }; | |
35530 | ||
35531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35533 | if (!SWIG_IsOK(res1)) { | |
35534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35535 | } | |
35536 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35537 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35538 | if (!SWIG_IsOK(ecode2)) { | |
35539 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
35540 | } | |
35541 | arg2 = static_cast< int >(val2); | |
35542 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35543 | if (!SWIG_IsOK(ecode3)) { | |
35544 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
35545 | } | |
35546 | arg3 = static_cast< int >(val3); | |
35547 | { | |
35548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35549 | (arg1)->CrossHair(arg2,arg3); | |
35550 | wxPyEndAllowThreads(__tstate); | |
35551 | if (PyErr_Occurred()) SWIG_fail; | |
35552 | } | |
35553 | resultobj = SWIG_Py_Void(); | |
35554 | return resultobj; | |
35555 | fail: | |
35556 | return NULL; | |
35557 | } | |
35558 | ||
35559 | ||
35560 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35561 | PyObject *resultobj = 0; | |
35562 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35563 | wxPoint *arg2 = 0 ; | |
35564 | void *argp1 = 0 ; | |
35565 | int res1 = 0 ; | |
35566 | wxPoint temp2 ; | |
35567 | PyObject * obj0 = 0 ; | |
35568 | PyObject * obj1 = 0 ; | |
35569 | char * kwnames[] = { | |
35570 | (char *) "self",(char *) "pt", NULL | |
35571 | }; | |
35572 | ||
35573 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
35574 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35575 | if (!SWIG_IsOK(res1)) { | |
35576 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35577 | } | |
35578 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35579 | { | |
35580 | arg2 = &temp2; | |
35581 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35582 | } | |
35583 | { | |
35584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35585 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
35586 | wxPyEndAllowThreads(__tstate); | |
35587 | if (PyErr_Occurred()) SWIG_fail; | |
35588 | } | |
35589 | resultobj = SWIG_Py_Void(); | |
35590 | return resultobj; | |
35591 | fail: | |
35592 | return NULL; | |
35593 | } | |
35594 | ||
35595 | ||
35596 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35597 | PyObject *resultobj = 0; | |
35598 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35599 | int arg2 ; | |
35600 | int arg3 ; | |
35601 | int arg4 ; | |
35602 | int arg5 ; | |
35603 | int arg6 ; | |
35604 | int arg7 ; | |
35605 | void *argp1 = 0 ; | |
35606 | int res1 = 0 ; | |
35607 | int val2 ; | |
35608 | int ecode2 = 0 ; | |
35609 | int val3 ; | |
35610 | int ecode3 = 0 ; | |
35611 | int val4 ; | |
35612 | int ecode4 = 0 ; | |
35613 | int val5 ; | |
35614 | int ecode5 = 0 ; | |
35615 | int val6 ; | |
35616 | int ecode6 = 0 ; | |
35617 | int val7 ; | |
35618 | int ecode7 = 0 ; | |
35619 | PyObject * obj0 = 0 ; | |
35620 | PyObject * obj1 = 0 ; | |
35621 | PyObject * obj2 = 0 ; | |
35622 | PyObject * obj3 = 0 ; | |
35623 | PyObject * obj4 = 0 ; | |
35624 | PyObject * obj5 = 0 ; | |
35625 | PyObject * obj6 = 0 ; | |
35626 | char * kwnames[] = { | |
35627 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
35628 | }; | |
35629 | ||
35630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35632 | if (!SWIG_IsOK(res1)) { | |
35633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35634 | } | |
35635 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35636 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35637 | if (!SWIG_IsOK(ecode2)) { | |
35638 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
35639 | } | |
35640 | arg2 = static_cast< int >(val2); | |
35641 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35642 | if (!SWIG_IsOK(ecode3)) { | |
35643 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
35644 | } | |
35645 | arg3 = static_cast< int >(val3); | |
35646 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35647 | if (!SWIG_IsOK(ecode4)) { | |
35648 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
35649 | } | |
35650 | arg4 = static_cast< int >(val4); | |
35651 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35652 | if (!SWIG_IsOK(ecode5)) { | |
35653 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
35654 | } | |
35655 | arg5 = static_cast< int >(val5); | |
35656 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35657 | if (!SWIG_IsOK(ecode6)) { | |
35658 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
35659 | } | |
35660 | arg6 = static_cast< int >(val6); | |
35661 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
35662 | if (!SWIG_IsOK(ecode7)) { | |
35663 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
35664 | } | |
35665 | arg7 = static_cast< int >(val7); | |
35666 | { | |
35667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35668 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
35669 | wxPyEndAllowThreads(__tstate); | |
35670 | if (PyErr_Occurred()) SWIG_fail; | |
35671 | } | |
35672 | resultobj = SWIG_Py_Void(); | |
35673 | return resultobj; | |
35674 | fail: | |
35675 | return NULL; | |
35676 | } | |
35677 | ||
35678 | ||
35679 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35680 | PyObject *resultobj = 0; | |
35681 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35682 | wxPoint *arg2 = 0 ; | |
35683 | wxPoint *arg3 = 0 ; | |
35684 | wxPoint *arg4 = 0 ; | |
35685 | void *argp1 = 0 ; | |
35686 | int res1 = 0 ; | |
35687 | wxPoint temp2 ; | |
35688 | wxPoint temp3 ; | |
35689 | wxPoint temp4 ; | |
35690 | PyObject * obj0 = 0 ; | |
35691 | PyObject * obj1 = 0 ; | |
35692 | PyObject * obj2 = 0 ; | |
35693 | PyObject * obj3 = 0 ; | |
35694 | char * kwnames[] = { | |
35695 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
35696 | }; | |
35697 | ||
35698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35700 | if (!SWIG_IsOK(res1)) { | |
35701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35702 | } | |
35703 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35704 | { | |
35705 | arg2 = &temp2; | |
35706 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35707 | } | |
35708 | { | |
35709 | arg3 = &temp3; | |
35710 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
35711 | } | |
35712 | { | |
35713 | arg4 = &temp4; | |
35714 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
35715 | } | |
35716 | { | |
35717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35718 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
35719 | wxPyEndAllowThreads(__tstate); | |
35720 | if (PyErr_Occurred()) SWIG_fail; | |
35721 | } | |
35722 | resultobj = SWIG_Py_Void(); | |
35723 | return resultobj; | |
35724 | fail: | |
35725 | return NULL; | |
35726 | } | |
35727 | ||
35728 | ||
35729 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35730 | PyObject *resultobj = 0; | |
35731 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35732 | int arg2 ; | |
35733 | int arg3 ; | |
35734 | int arg4 ; | |
35735 | int arg5 ; | |
35736 | void *argp1 = 0 ; | |
35737 | int res1 = 0 ; | |
35738 | int val2 ; | |
35739 | int ecode2 = 0 ; | |
35740 | int val3 ; | |
35741 | int ecode3 = 0 ; | |
35742 | int val4 ; | |
35743 | int ecode4 = 0 ; | |
35744 | int val5 ; | |
35745 | int ecode5 = 0 ; | |
35746 | PyObject * obj0 = 0 ; | |
35747 | PyObject * obj1 = 0 ; | |
35748 | PyObject * obj2 = 0 ; | |
35749 | PyObject * obj3 = 0 ; | |
35750 | PyObject * obj4 = 0 ; | |
35751 | char * kwnames[] = { | |
35752 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35753 | }; | |
35754 | ||
35755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35757 | if (!SWIG_IsOK(res1)) { | |
35758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35759 | } | |
35760 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35761 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35762 | if (!SWIG_IsOK(ecode2)) { | |
35763 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
35764 | } | |
35765 | arg2 = static_cast< int >(val2); | |
35766 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35767 | if (!SWIG_IsOK(ecode3)) { | |
35768 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
35769 | } | |
35770 | arg3 = static_cast< int >(val3); | |
35771 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35772 | if (!SWIG_IsOK(ecode4)) { | |
35773 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
35774 | } | |
35775 | arg4 = static_cast< int >(val4); | |
35776 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35777 | if (!SWIG_IsOK(ecode5)) { | |
35778 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
35779 | } | |
35780 | arg5 = static_cast< int >(val5); | |
35781 | { | |
35782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35783 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
35784 | wxPyEndAllowThreads(__tstate); | |
35785 | if (PyErr_Occurred()) SWIG_fail; | |
35786 | } | |
35787 | resultobj = SWIG_Py_Void(); | |
35788 | return resultobj; | |
35789 | fail: | |
35790 | return NULL; | |
35791 | } | |
35792 | ||
35793 | ||
35794 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35795 | PyObject *resultobj = 0; | |
35796 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35797 | wxRect *arg2 = 0 ; | |
35798 | void *argp1 = 0 ; | |
35799 | int res1 = 0 ; | |
35800 | wxRect temp2 ; | |
35801 | PyObject * obj0 = 0 ; | |
35802 | PyObject * obj1 = 0 ; | |
35803 | char * kwnames[] = { | |
35804 | (char *) "self",(char *) "rect", NULL | |
35805 | }; | |
35806 | ||
35807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
35808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35809 | if (!SWIG_IsOK(res1)) { | |
35810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35811 | } | |
35812 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35813 | { | |
35814 | arg2 = &temp2; | |
35815 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
35816 | } | |
35817 | { | |
35818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35819 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
35820 | wxPyEndAllowThreads(__tstate); | |
35821 | if (PyErr_Occurred()) SWIG_fail; | |
35822 | } | |
35823 | resultobj = SWIG_Py_Void(); | |
35824 | return resultobj; | |
35825 | fail: | |
35826 | return NULL; | |
35827 | } | |
35828 | ||
35829 | ||
35830 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35831 | PyObject *resultobj = 0; | |
35832 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35833 | int arg2 ; | |
35834 | int arg3 ; | |
35835 | int arg4 ; | |
35836 | int arg5 ; | |
35837 | double arg6 ; | |
35838 | double arg7 ; | |
35839 | void *argp1 = 0 ; | |
35840 | int res1 = 0 ; | |
35841 | int val2 ; | |
35842 | int ecode2 = 0 ; | |
35843 | int val3 ; | |
35844 | int ecode3 = 0 ; | |
35845 | int val4 ; | |
35846 | int ecode4 = 0 ; | |
35847 | int val5 ; | |
35848 | int ecode5 = 0 ; | |
35849 | double val6 ; | |
35850 | int ecode6 = 0 ; | |
35851 | double val7 ; | |
35852 | int ecode7 = 0 ; | |
35853 | PyObject * obj0 = 0 ; | |
35854 | PyObject * obj1 = 0 ; | |
35855 | PyObject * obj2 = 0 ; | |
35856 | PyObject * obj3 = 0 ; | |
35857 | PyObject * obj4 = 0 ; | |
35858 | PyObject * obj5 = 0 ; | |
35859 | PyObject * obj6 = 0 ; | |
35860 | char * kwnames[] = { | |
35861 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
35862 | }; | |
35863 | ||
35864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35866 | if (!SWIG_IsOK(res1)) { | |
35867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35868 | } | |
35869 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35870 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35871 | if (!SWIG_IsOK(ecode2)) { | |
35872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
35873 | } | |
35874 | arg2 = static_cast< int >(val2); | |
35875 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35876 | if (!SWIG_IsOK(ecode3)) { | |
35877 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
35878 | } | |
35879 | arg3 = static_cast< int >(val3); | |
35880 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35881 | if (!SWIG_IsOK(ecode4)) { | |
35882 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
35883 | } | |
35884 | arg4 = static_cast< int >(val4); | |
35885 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35886 | if (!SWIG_IsOK(ecode5)) { | |
35887 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
35888 | } | |
35889 | arg5 = static_cast< int >(val5); | |
35890 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
35891 | if (!SWIG_IsOK(ecode6)) { | |
35892 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
35893 | } | |
35894 | arg6 = static_cast< double >(val6); | |
35895 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
35896 | if (!SWIG_IsOK(ecode7)) { | |
35897 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
35898 | } | |
35899 | arg7 = static_cast< double >(val7); | |
35900 | { | |
35901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35902 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
35903 | wxPyEndAllowThreads(__tstate); | |
35904 | if (PyErr_Occurred()) SWIG_fail; | |
35905 | } | |
35906 | resultobj = SWIG_Py_Void(); | |
35907 | return resultobj; | |
35908 | fail: | |
35909 | return NULL; | |
35910 | } | |
35911 | ||
35912 | ||
35913 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35914 | PyObject *resultobj = 0; | |
35915 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35916 | wxPoint *arg2 = 0 ; | |
35917 | wxSize *arg3 = 0 ; | |
35918 | double arg4 ; | |
35919 | double arg5 ; | |
35920 | void *argp1 = 0 ; | |
35921 | int res1 = 0 ; | |
35922 | wxPoint temp2 ; | |
35923 | wxSize temp3 ; | |
35924 | double val4 ; | |
35925 | int ecode4 = 0 ; | |
35926 | double val5 ; | |
35927 | int ecode5 = 0 ; | |
35928 | PyObject * obj0 = 0 ; | |
35929 | PyObject * obj1 = 0 ; | |
35930 | PyObject * obj2 = 0 ; | |
35931 | PyObject * obj3 = 0 ; | |
35932 | PyObject * obj4 = 0 ; | |
35933 | char * kwnames[] = { | |
35934 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
35935 | }; | |
35936 | ||
35937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35939 | if (!SWIG_IsOK(res1)) { | |
35940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35941 | } | |
35942 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35943 | { | |
35944 | arg2 = &temp2; | |
35945 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35946 | } | |
35947 | { | |
35948 | arg3 = &temp3; | |
35949 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35950 | } | |
35951 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
35952 | if (!SWIG_IsOK(ecode4)) { | |
35953 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
35954 | } | |
35955 | arg4 = static_cast< double >(val4); | |
35956 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
35957 | if (!SWIG_IsOK(ecode5)) { | |
35958 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
35959 | } | |
35960 | arg5 = static_cast< double >(val5); | |
35961 | { | |
35962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35963 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
35964 | wxPyEndAllowThreads(__tstate); | |
35965 | if (PyErr_Occurred()) SWIG_fail; | |
35966 | } | |
35967 | resultobj = SWIG_Py_Void(); | |
35968 | return resultobj; | |
35969 | fail: | |
35970 | return NULL; | |
35971 | } | |
35972 | ||
35973 | ||
35974 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35975 | PyObject *resultobj = 0; | |
35976 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35977 | int arg2 ; | |
35978 | int arg3 ; | |
35979 | void *argp1 = 0 ; | |
35980 | int res1 = 0 ; | |
35981 | int val2 ; | |
35982 | int ecode2 = 0 ; | |
35983 | int val3 ; | |
35984 | int ecode3 = 0 ; | |
35985 | PyObject * obj0 = 0 ; | |
35986 | PyObject * obj1 = 0 ; | |
35987 | PyObject * obj2 = 0 ; | |
35988 | char * kwnames[] = { | |
35989 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35990 | }; | |
35991 | ||
35992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35994 | if (!SWIG_IsOK(res1)) { | |
35995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35996 | } | |
35997 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35998 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35999 | if (!SWIG_IsOK(ecode2)) { | |
36000 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
36001 | } | |
36002 | arg2 = static_cast< int >(val2); | |
36003 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36004 | if (!SWIG_IsOK(ecode3)) { | |
36005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
36006 | } | |
36007 | arg3 = static_cast< int >(val3); | |
36008 | { | |
36009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36010 | (arg1)->DrawPoint(arg2,arg3); | |
36011 | wxPyEndAllowThreads(__tstate); | |
36012 | if (PyErr_Occurred()) SWIG_fail; | |
36013 | } | |
36014 | resultobj = SWIG_Py_Void(); | |
36015 | return resultobj; | |
36016 | fail: | |
36017 | return NULL; | |
36018 | } | |
36019 | ||
36020 | ||
36021 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36022 | PyObject *resultobj = 0; | |
36023 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36024 | wxPoint *arg2 = 0 ; | |
36025 | void *argp1 = 0 ; | |
36026 | int res1 = 0 ; | |
36027 | wxPoint temp2 ; | |
36028 | PyObject * obj0 = 0 ; | |
36029 | PyObject * obj1 = 0 ; | |
36030 | char * kwnames[] = { | |
36031 | (char *) "self",(char *) "pt", NULL | |
36032 | }; | |
36033 | ||
36034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36036 | if (!SWIG_IsOK(res1)) { | |
36037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36038 | } | |
36039 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36040 | { | |
36041 | arg2 = &temp2; | |
36042 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36043 | } | |
36044 | { | |
36045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36046 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
36047 | wxPyEndAllowThreads(__tstate); | |
36048 | if (PyErr_Occurred()) SWIG_fail; | |
36049 | } | |
36050 | resultobj = SWIG_Py_Void(); | |
36051 | return resultobj; | |
36052 | fail: | |
36053 | return NULL; | |
36054 | } | |
36055 | ||
36056 | ||
36057 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36058 | PyObject *resultobj = 0; | |
36059 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36060 | int arg2 ; | |
36061 | int arg3 ; | |
36062 | int arg4 ; | |
36063 | int arg5 ; | |
36064 | void *argp1 = 0 ; | |
36065 | int res1 = 0 ; | |
36066 | int val2 ; | |
36067 | int ecode2 = 0 ; | |
36068 | int val3 ; | |
36069 | int ecode3 = 0 ; | |
36070 | int val4 ; | |
36071 | int ecode4 = 0 ; | |
36072 | int val5 ; | |
36073 | int ecode5 = 0 ; | |
36074 | PyObject * obj0 = 0 ; | |
36075 | PyObject * obj1 = 0 ; | |
36076 | PyObject * obj2 = 0 ; | |
36077 | PyObject * obj3 = 0 ; | |
36078 | PyObject * obj4 = 0 ; | |
36079 | char * kwnames[] = { | |
36080 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36081 | }; | |
36082 | ||
36083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36085 | if (!SWIG_IsOK(res1)) { | |
36086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36087 | } | |
36088 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36089 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36090 | if (!SWIG_IsOK(ecode2)) { | |
36091 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36092 | } | |
36093 | arg2 = static_cast< int >(val2); | |
36094 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36095 | if (!SWIG_IsOK(ecode3)) { | |
36096 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36097 | } | |
36098 | arg3 = static_cast< int >(val3); | |
36099 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36100 | if (!SWIG_IsOK(ecode4)) { | |
36101 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36102 | } | |
36103 | arg4 = static_cast< int >(val4); | |
36104 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36105 | if (!SWIG_IsOK(ecode5)) { | |
36106 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36107 | } | |
36108 | arg5 = static_cast< int >(val5); | |
36109 | { | |
36110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36111 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
36112 | wxPyEndAllowThreads(__tstate); | |
36113 | if (PyErr_Occurred()) SWIG_fail; | |
36114 | } | |
36115 | resultobj = SWIG_Py_Void(); | |
36116 | return resultobj; | |
36117 | fail: | |
36118 | return NULL; | |
36119 | } | |
36120 | ||
36121 | ||
36122 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36123 | PyObject *resultobj = 0; | |
36124 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36125 | wxRect *arg2 = 0 ; | |
36126 | void *argp1 = 0 ; | |
36127 | int res1 = 0 ; | |
36128 | wxRect temp2 ; | |
36129 | PyObject * obj0 = 0 ; | |
36130 | PyObject * obj1 = 0 ; | |
36131 | char * kwnames[] = { | |
36132 | (char *) "self",(char *) "rect", NULL | |
36133 | }; | |
36134 | ||
36135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36137 | if (!SWIG_IsOK(res1)) { | |
36138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36139 | } | |
36140 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36141 | { | |
36142 | arg2 = &temp2; | |
36143 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36144 | } | |
36145 | { | |
36146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36147 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
36148 | wxPyEndAllowThreads(__tstate); | |
36149 | if (PyErr_Occurred()) SWIG_fail; | |
36150 | } | |
36151 | resultobj = SWIG_Py_Void(); | |
36152 | return resultobj; | |
36153 | fail: | |
36154 | return NULL; | |
36155 | } | |
36156 | ||
36157 | ||
36158 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36159 | PyObject *resultobj = 0; | |
36160 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36161 | wxPoint *arg2 = 0 ; | |
36162 | wxSize *arg3 = 0 ; | |
36163 | void *argp1 = 0 ; | |
36164 | int res1 = 0 ; | |
36165 | wxPoint temp2 ; | |
36166 | wxSize temp3 ; | |
36167 | PyObject * obj0 = 0 ; | |
36168 | PyObject * obj1 = 0 ; | |
36169 | PyObject * obj2 = 0 ; | |
36170 | char * kwnames[] = { | |
36171 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36172 | }; | |
36173 | ||
36174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36176 | if (!SWIG_IsOK(res1)) { | |
36177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36178 | } | |
36179 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36180 | { | |
36181 | arg2 = &temp2; | |
36182 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36183 | } | |
36184 | { | |
36185 | arg3 = &temp3; | |
36186 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36187 | } | |
36188 | { | |
36189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36190 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36191 | wxPyEndAllowThreads(__tstate); | |
36192 | if (PyErr_Occurred()) SWIG_fail; | |
36193 | } | |
36194 | resultobj = SWIG_Py_Void(); | |
36195 | return resultobj; | |
36196 | fail: | |
36197 | return NULL; | |
36198 | } | |
36199 | ||
36200 | ||
36201 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36202 | PyObject *resultobj = 0; | |
36203 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36204 | int arg2 ; | |
36205 | int arg3 ; | |
36206 | int arg4 ; | |
36207 | int arg5 ; | |
36208 | double arg6 ; | |
36209 | void *argp1 = 0 ; | |
36210 | int res1 = 0 ; | |
36211 | int val2 ; | |
36212 | int ecode2 = 0 ; | |
36213 | int val3 ; | |
36214 | int ecode3 = 0 ; | |
36215 | int val4 ; | |
36216 | int ecode4 = 0 ; | |
36217 | int val5 ; | |
36218 | int ecode5 = 0 ; | |
36219 | double val6 ; | |
36220 | int ecode6 = 0 ; | |
36221 | PyObject * obj0 = 0 ; | |
36222 | PyObject * obj1 = 0 ; | |
36223 | PyObject * obj2 = 0 ; | |
36224 | PyObject * obj3 = 0 ; | |
36225 | PyObject * obj4 = 0 ; | |
36226 | PyObject * obj5 = 0 ; | |
36227 | char * kwnames[] = { | |
36228 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
36229 | }; | |
36230 | ||
36231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
36232 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36233 | if (!SWIG_IsOK(res1)) { | |
36234 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36235 | } | |
36236 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36237 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36238 | if (!SWIG_IsOK(ecode2)) { | |
36239 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36240 | } | |
36241 | arg2 = static_cast< int >(val2); | |
36242 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36243 | if (!SWIG_IsOK(ecode3)) { | |
36244 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36245 | } | |
36246 | arg3 = static_cast< int >(val3); | |
36247 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36248 | if (!SWIG_IsOK(ecode4)) { | |
36249 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36250 | } | |
36251 | arg4 = static_cast< int >(val4); | |
36252 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36253 | if (!SWIG_IsOK(ecode5)) { | |
36254 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36255 | } | |
36256 | arg5 = static_cast< int >(val5); | |
36257 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36258 | if (!SWIG_IsOK(ecode6)) { | |
36259 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
36260 | } | |
36261 | arg6 = static_cast< double >(val6); | |
36262 | { | |
36263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36264 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
36265 | wxPyEndAllowThreads(__tstate); | |
36266 | if (PyErr_Occurred()) SWIG_fail; | |
36267 | } | |
36268 | resultobj = SWIG_Py_Void(); | |
36269 | return resultobj; | |
36270 | fail: | |
36271 | return NULL; | |
36272 | } | |
36273 | ||
36274 | ||
36275 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36276 | PyObject *resultobj = 0; | |
36277 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36278 | wxRect *arg2 = 0 ; | |
36279 | double arg3 ; | |
36280 | void *argp1 = 0 ; | |
36281 | int res1 = 0 ; | |
36282 | wxRect temp2 ; | |
36283 | double val3 ; | |
36284 | int ecode3 = 0 ; | |
36285 | PyObject * obj0 = 0 ; | |
36286 | PyObject * obj1 = 0 ; | |
36287 | PyObject * obj2 = 0 ; | |
36288 | char * kwnames[] = { | |
36289 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
36290 | }; | |
36291 | ||
36292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36294 | if (!SWIG_IsOK(res1)) { | |
36295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36296 | } | |
36297 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36298 | { | |
36299 | arg2 = &temp2; | |
36300 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36301 | } | |
36302 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
36303 | if (!SWIG_IsOK(ecode3)) { | |
36304 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
36305 | } | |
36306 | arg3 = static_cast< double >(val3); | |
36307 | { | |
36308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36309 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
36310 | wxPyEndAllowThreads(__tstate); | |
36311 | if (PyErr_Occurred()) SWIG_fail; | |
36312 | } | |
36313 | resultobj = SWIG_Py_Void(); | |
36314 | return resultobj; | |
36315 | fail: | |
36316 | return NULL; | |
36317 | } | |
36318 | ||
36319 | ||
36320 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36321 | PyObject *resultobj = 0; | |
36322 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36323 | wxPoint *arg2 = 0 ; | |
36324 | wxSize *arg3 = 0 ; | |
36325 | double arg4 ; | |
36326 | void *argp1 = 0 ; | |
36327 | int res1 = 0 ; | |
36328 | wxPoint temp2 ; | |
36329 | wxSize temp3 ; | |
36330 | double val4 ; | |
36331 | int ecode4 = 0 ; | |
36332 | PyObject * obj0 = 0 ; | |
36333 | PyObject * obj1 = 0 ; | |
36334 | PyObject * obj2 = 0 ; | |
36335 | PyObject * obj3 = 0 ; | |
36336 | char * kwnames[] = { | |
36337 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
36338 | }; | |
36339 | ||
36340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36342 | if (!SWIG_IsOK(res1)) { | |
36343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36344 | } | |
36345 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36346 | { | |
36347 | arg2 = &temp2; | |
36348 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36349 | } | |
36350 | { | |
36351 | arg3 = &temp3; | |
36352 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36353 | } | |
36354 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36355 | if (!SWIG_IsOK(ecode4)) { | |
36356 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
36357 | } | |
36358 | arg4 = static_cast< double >(val4); | |
36359 | { | |
36360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36361 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
36362 | wxPyEndAllowThreads(__tstate); | |
36363 | if (PyErr_Occurred()) SWIG_fail; | |
36364 | } | |
36365 | resultobj = SWIG_Py_Void(); | |
36366 | return resultobj; | |
36367 | fail: | |
36368 | return NULL; | |
36369 | } | |
36370 | ||
36371 | ||
36372 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36373 | PyObject *resultobj = 0; | |
36374 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36375 | int arg2 ; | |
36376 | int arg3 ; | |
36377 | int arg4 ; | |
36378 | void *argp1 = 0 ; | |
36379 | int res1 = 0 ; | |
36380 | int val2 ; | |
36381 | int ecode2 = 0 ; | |
36382 | int val3 ; | |
36383 | int ecode3 = 0 ; | |
36384 | int val4 ; | |
36385 | int ecode4 = 0 ; | |
36386 | PyObject * obj0 = 0 ; | |
36387 | PyObject * obj1 = 0 ; | |
36388 | PyObject * obj2 = 0 ; | |
36389 | PyObject * obj3 = 0 ; | |
36390 | char * kwnames[] = { | |
36391 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
36392 | }; | |
36393 | ||
36394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36395 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36396 | if (!SWIG_IsOK(res1)) { | |
36397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36398 | } | |
36399 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36400 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36401 | if (!SWIG_IsOK(ecode2)) { | |
36402 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
36403 | } | |
36404 | arg2 = static_cast< int >(val2); | |
36405 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36406 | if (!SWIG_IsOK(ecode3)) { | |
36407 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
36408 | } | |
36409 | arg3 = static_cast< int >(val3); | |
36410 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36411 | if (!SWIG_IsOK(ecode4)) { | |
36412 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
36413 | } | |
36414 | arg4 = static_cast< int >(val4); | |
36415 | { | |
36416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36417 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
36418 | wxPyEndAllowThreads(__tstate); | |
36419 | if (PyErr_Occurred()) SWIG_fail; | |
36420 | } | |
36421 | resultobj = SWIG_Py_Void(); | |
36422 | return resultobj; | |
36423 | fail: | |
36424 | return NULL; | |
36425 | } | |
36426 | ||
36427 | ||
36428 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36429 | PyObject *resultobj = 0; | |
36430 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36431 | wxPoint *arg2 = 0 ; | |
36432 | int arg3 ; | |
36433 | void *argp1 = 0 ; | |
36434 | int res1 = 0 ; | |
36435 | wxPoint temp2 ; | |
36436 | int val3 ; | |
36437 | int ecode3 = 0 ; | |
36438 | PyObject * obj0 = 0 ; | |
36439 | PyObject * obj1 = 0 ; | |
36440 | PyObject * obj2 = 0 ; | |
36441 | char * kwnames[] = { | |
36442 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
36443 | }; | |
36444 | ||
36445 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36446 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36447 | if (!SWIG_IsOK(res1)) { | |
36448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36449 | } | |
36450 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36451 | { | |
36452 | arg2 = &temp2; | |
36453 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36454 | } | |
36455 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36456 | if (!SWIG_IsOK(ecode3)) { | |
36457 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
36458 | } | |
36459 | arg3 = static_cast< int >(val3); | |
36460 | { | |
36461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36462 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
36463 | wxPyEndAllowThreads(__tstate); | |
36464 | if (PyErr_Occurred()) SWIG_fail; | |
36465 | } | |
36466 | resultobj = SWIG_Py_Void(); | |
36467 | return resultobj; | |
36468 | fail: | |
36469 | return NULL; | |
36470 | } | |
36471 | ||
36472 | ||
36473 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36474 | PyObject *resultobj = 0; | |
36475 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36476 | int arg2 ; | |
36477 | int arg3 ; | |
36478 | int arg4 ; | |
36479 | int arg5 ; | |
36480 | void *argp1 = 0 ; | |
36481 | int res1 = 0 ; | |
36482 | int val2 ; | |
36483 | int ecode2 = 0 ; | |
36484 | int val3 ; | |
36485 | int ecode3 = 0 ; | |
36486 | int val4 ; | |
36487 | int ecode4 = 0 ; | |
36488 | int val5 ; | |
36489 | int ecode5 = 0 ; | |
36490 | PyObject * obj0 = 0 ; | |
36491 | PyObject * obj1 = 0 ; | |
36492 | PyObject * obj2 = 0 ; | |
36493 | PyObject * obj3 = 0 ; | |
36494 | PyObject * obj4 = 0 ; | |
36495 | char * kwnames[] = { | |
36496 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36497 | }; | |
36498 | ||
36499 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36501 | if (!SWIG_IsOK(res1)) { | |
36502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36503 | } | |
36504 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36505 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36506 | if (!SWIG_IsOK(ecode2)) { | |
36507 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
36508 | } | |
36509 | arg2 = static_cast< int >(val2); | |
36510 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36511 | if (!SWIG_IsOK(ecode3)) { | |
36512 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
36513 | } | |
36514 | arg3 = static_cast< int >(val3); | |
36515 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36516 | if (!SWIG_IsOK(ecode4)) { | |
36517 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
36518 | } | |
36519 | arg4 = static_cast< int >(val4); | |
36520 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36521 | if (!SWIG_IsOK(ecode5)) { | |
36522 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
36523 | } | |
36524 | arg5 = static_cast< int >(val5); | |
36525 | { | |
36526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36527 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
36528 | wxPyEndAllowThreads(__tstate); | |
36529 | if (PyErr_Occurred()) SWIG_fail; | |
36530 | } | |
36531 | resultobj = SWIG_Py_Void(); | |
36532 | return resultobj; | |
36533 | fail: | |
36534 | return NULL; | |
36535 | } | |
36536 | ||
36537 | ||
36538 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36539 | PyObject *resultobj = 0; | |
36540 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36541 | wxRect *arg2 = 0 ; | |
36542 | void *argp1 = 0 ; | |
36543 | int res1 = 0 ; | |
36544 | wxRect temp2 ; | |
36545 | PyObject * obj0 = 0 ; | |
36546 | PyObject * obj1 = 0 ; | |
36547 | char * kwnames[] = { | |
36548 | (char *) "self",(char *) "rect", NULL | |
36549 | }; | |
36550 | ||
36551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36553 | if (!SWIG_IsOK(res1)) { | |
36554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36555 | } | |
36556 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36557 | { | |
36558 | arg2 = &temp2; | |
36559 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36560 | } | |
36561 | { | |
36562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36563 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
36564 | wxPyEndAllowThreads(__tstate); | |
36565 | if (PyErr_Occurred()) SWIG_fail; | |
36566 | } | |
36567 | resultobj = SWIG_Py_Void(); | |
36568 | return resultobj; | |
36569 | fail: | |
36570 | return NULL; | |
36571 | } | |
36572 | ||
36573 | ||
36574 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36575 | PyObject *resultobj = 0; | |
36576 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36577 | wxPoint *arg2 = 0 ; | |
36578 | wxSize *arg3 = 0 ; | |
36579 | void *argp1 = 0 ; | |
36580 | int res1 = 0 ; | |
36581 | wxPoint temp2 ; | |
36582 | wxSize temp3 ; | |
36583 | PyObject * obj0 = 0 ; | |
36584 | PyObject * obj1 = 0 ; | |
36585 | PyObject * obj2 = 0 ; | |
36586 | char * kwnames[] = { | |
36587 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
36588 | }; | |
36589 | ||
36590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36592 | if (!SWIG_IsOK(res1)) { | |
36593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36594 | } | |
36595 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36596 | { | |
36597 | arg2 = &temp2; | |
36598 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36599 | } | |
36600 | { | |
36601 | arg3 = &temp3; | |
36602 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36603 | } | |
36604 | { | |
36605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36606 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
36607 | wxPyEndAllowThreads(__tstate); | |
36608 | if (PyErr_Occurred()) SWIG_fail; | |
36609 | } | |
36610 | resultobj = SWIG_Py_Void(); | |
36611 | return resultobj; | |
36612 | fail: | |
36613 | return NULL; | |
36614 | } | |
36615 | ||
36616 | ||
36617 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36618 | PyObject *resultobj = 0; | |
36619 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36620 | wxIcon *arg2 = 0 ; | |
36621 | int arg3 ; | |
36622 | int arg4 ; | |
36623 | void *argp1 = 0 ; | |
36624 | int res1 = 0 ; | |
36625 | void *argp2 = 0 ; | |
36626 | int res2 = 0 ; | |
36627 | int val3 ; | |
36628 | int ecode3 = 0 ; | |
36629 | int val4 ; | |
36630 | int ecode4 = 0 ; | |
36631 | PyObject * obj0 = 0 ; | |
36632 | PyObject * obj1 = 0 ; | |
36633 | PyObject * obj2 = 0 ; | |
36634 | PyObject * obj3 = 0 ; | |
36635 | char * kwnames[] = { | |
36636 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
36637 | }; | |
36638 | ||
36639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36641 | if (!SWIG_IsOK(res1)) { | |
36642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36643 | } | |
36644 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36645 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
36646 | if (!SWIG_IsOK(res2)) { | |
36647 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36648 | } | |
36649 | if (!argp2) { | |
36650 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36651 | } | |
36652 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
36653 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36654 | if (!SWIG_IsOK(ecode3)) { | |
36655 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
36656 | } | |
36657 | arg3 = static_cast< int >(val3); | |
36658 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36659 | if (!SWIG_IsOK(ecode4)) { | |
36660 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
36661 | } | |
36662 | arg4 = static_cast< int >(val4); | |
36663 | { | |
36664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36665 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
36666 | wxPyEndAllowThreads(__tstate); | |
36667 | if (PyErr_Occurred()) SWIG_fail; | |
36668 | } | |
36669 | resultobj = SWIG_Py_Void(); | |
36670 | return resultobj; | |
36671 | fail: | |
36672 | return NULL; | |
36673 | } | |
36674 | ||
36675 | ||
36676 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36677 | PyObject *resultobj = 0; | |
36678 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36679 | wxIcon *arg2 = 0 ; | |
36680 | wxPoint *arg3 = 0 ; | |
36681 | void *argp1 = 0 ; | |
36682 | int res1 = 0 ; | |
36683 | void *argp2 = 0 ; | |
36684 | int res2 = 0 ; | |
36685 | wxPoint temp3 ; | |
36686 | PyObject * obj0 = 0 ; | |
36687 | PyObject * obj1 = 0 ; | |
36688 | PyObject * obj2 = 0 ; | |
36689 | char * kwnames[] = { | |
36690 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
36691 | }; | |
36692 | ||
36693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36695 | if (!SWIG_IsOK(res1)) { | |
36696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36697 | } | |
36698 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36699 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
36700 | if (!SWIG_IsOK(res2)) { | |
36701 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36702 | } | |
36703 | if (!argp2) { | |
36704 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
36705 | } | |
36706 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
36707 | { | |
36708 | arg3 = &temp3; | |
36709 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36710 | } | |
36711 | { | |
36712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36713 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
36714 | wxPyEndAllowThreads(__tstate); | |
36715 | if (PyErr_Occurred()) SWIG_fail; | |
36716 | } | |
36717 | resultobj = SWIG_Py_Void(); | |
36718 | return resultobj; | |
36719 | fail: | |
36720 | return NULL; | |
36721 | } | |
36722 | ||
36723 | ||
36724 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36725 | PyObject *resultobj = 0; | |
36726 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36727 | wxBitmap *arg2 = 0 ; | |
36728 | int arg3 ; | |
36729 | int arg4 ; | |
36730 | bool arg5 = (bool) false ; | |
36731 | void *argp1 = 0 ; | |
36732 | int res1 = 0 ; | |
36733 | void *argp2 = 0 ; | |
36734 | int res2 = 0 ; | |
36735 | int val3 ; | |
36736 | int ecode3 = 0 ; | |
36737 | int val4 ; | |
36738 | int ecode4 = 0 ; | |
36739 | bool val5 ; | |
36740 | int ecode5 = 0 ; | |
36741 | PyObject * obj0 = 0 ; | |
36742 | PyObject * obj1 = 0 ; | |
36743 | PyObject * obj2 = 0 ; | |
36744 | PyObject * obj3 = 0 ; | |
36745 | PyObject * obj4 = 0 ; | |
36746 | char * kwnames[] = { | |
36747 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
36748 | }; | |
36749 | ||
36750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36752 | if (!SWIG_IsOK(res1)) { | |
36753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36754 | } | |
36755 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36756 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
36757 | if (!SWIG_IsOK(res2)) { | |
36758 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36759 | } | |
36760 | if (!argp2) { | |
36761 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36762 | } | |
36763 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
36764 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36765 | if (!SWIG_IsOK(ecode3)) { | |
36766 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
36767 | } | |
36768 | arg3 = static_cast< int >(val3); | |
36769 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36770 | if (!SWIG_IsOK(ecode4)) { | |
36771 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
36772 | } | |
36773 | arg4 = static_cast< int >(val4); | |
36774 | if (obj4) { | |
36775 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
36776 | if (!SWIG_IsOK(ecode5)) { | |
36777 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
36778 | } | |
36779 | arg5 = static_cast< bool >(val5); | |
36780 | } | |
36781 | { | |
36782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36783 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
36784 | wxPyEndAllowThreads(__tstate); | |
36785 | if (PyErr_Occurred()) SWIG_fail; | |
36786 | } | |
36787 | resultobj = SWIG_Py_Void(); | |
36788 | return resultobj; | |
36789 | fail: | |
36790 | return NULL; | |
36791 | } | |
36792 | ||
36793 | ||
36794 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36795 | PyObject *resultobj = 0; | |
36796 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36797 | wxBitmap *arg2 = 0 ; | |
36798 | wxPoint *arg3 = 0 ; | |
36799 | bool arg4 = (bool) false ; | |
36800 | void *argp1 = 0 ; | |
36801 | int res1 = 0 ; | |
36802 | void *argp2 = 0 ; | |
36803 | int res2 = 0 ; | |
36804 | wxPoint temp3 ; | |
36805 | bool val4 ; | |
36806 | int ecode4 = 0 ; | |
36807 | PyObject * obj0 = 0 ; | |
36808 | PyObject * obj1 = 0 ; | |
36809 | PyObject * obj2 = 0 ; | |
36810 | PyObject * obj3 = 0 ; | |
36811 | char * kwnames[] = { | |
36812 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
36813 | }; | |
36814 | ||
36815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36817 | if (!SWIG_IsOK(res1)) { | |
36818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36819 | } | |
36820 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36821 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
36822 | if (!SWIG_IsOK(res2)) { | |
36823 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36824 | } | |
36825 | if (!argp2) { | |
36826 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
36827 | } | |
36828 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
36829 | { | |
36830 | arg3 = &temp3; | |
36831 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36832 | } | |
36833 | if (obj3) { | |
36834 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
36835 | if (!SWIG_IsOK(ecode4)) { | |
36836 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
36837 | } | |
36838 | arg4 = static_cast< bool >(val4); | |
36839 | } | |
36840 | { | |
36841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36842 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
36843 | wxPyEndAllowThreads(__tstate); | |
36844 | if (PyErr_Occurred()) SWIG_fail; | |
36845 | } | |
36846 | resultobj = SWIG_Py_Void(); | |
36847 | return resultobj; | |
36848 | fail: | |
36849 | return NULL; | |
36850 | } | |
36851 | ||
36852 | ||
36853 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36854 | PyObject *resultobj = 0; | |
36855 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36856 | wxString *arg2 = 0 ; | |
36857 | int arg3 ; | |
36858 | int arg4 ; | |
36859 | void *argp1 = 0 ; | |
36860 | int res1 = 0 ; | |
36861 | bool temp2 = false ; | |
36862 | int val3 ; | |
36863 | int ecode3 = 0 ; | |
36864 | int val4 ; | |
36865 | int ecode4 = 0 ; | |
36866 | PyObject * obj0 = 0 ; | |
36867 | PyObject * obj1 = 0 ; | |
36868 | PyObject * obj2 = 0 ; | |
36869 | PyObject * obj3 = 0 ; | |
36870 | char * kwnames[] = { | |
36871 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
36872 | }; | |
36873 | ||
36874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36876 | if (!SWIG_IsOK(res1)) { | |
36877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36878 | } | |
36879 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36880 | { | |
36881 | arg2 = wxString_in_helper(obj1); | |
36882 | if (arg2 == NULL) SWIG_fail; | |
36883 | temp2 = true; | |
36884 | } | |
36885 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36886 | if (!SWIG_IsOK(ecode3)) { | |
36887 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
36888 | } | |
36889 | arg3 = static_cast< int >(val3); | |
36890 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36891 | if (!SWIG_IsOK(ecode4)) { | |
36892 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
36893 | } | |
36894 | arg4 = static_cast< int >(val4); | |
36895 | { | |
36896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36897 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
36898 | wxPyEndAllowThreads(__tstate); | |
36899 | if (PyErr_Occurred()) SWIG_fail; | |
36900 | } | |
36901 | resultobj = SWIG_Py_Void(); | |
36902 | { | |
36903 | if (temp2) | |
36904 | delete arg2; | |
36905 | } | |
36906 | return resultobj; | |
36907 | fail: | |
36908 | { | |
36909 | if (temp2) | |
36910 | delete arg2; | |
36911 | } | |
36912 | return NULL; | |
36913 | } | |
36914 | ||
36915 | ||
36916 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36917 | PyObject *resultobj = 0; | |
36918 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36919 | wxString *arg2 = 0 ; | |
36920 | wxPoint *arg3 = 0 ; | |
36921 | void *argp1 = 0 ; | |
36922 | int res1 = 0 ; | |
36923 | bool temp2 = false ; | |
36924 | wxPoint temp3 ; | |
36925 | PyObject * obj0 = 0 ; | |
36926 | PyObject * obj1 = 0 ; | |
36927 | PyObject * obj2 = 0 ; | |
36928 | char * kwnames[] = { | |
36929 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
36930 | }; | |
36931 | ||
36932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36934 | if (!SWIG_IsOK(res1)) { | |
36935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36936 | } | |
36937 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36938 | { | |
36939 | arg2 = wxString_in_helper(obj1); | |
36940 | if (arg2 == NULL) SWIG_fail; | |
36941 | temp2 = true; | |
36942 | } | |
36943 | { | |
36944 | arg3 = &temp3; | |
36945 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36946 | } | |
36947 | { | |
36948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36949 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
36950 | wxPyEndAllowThreads(__tstate); | |
36951 | if (PyErr_Occurred()) SWIG_fail; | |
36952 | } | |
36953 | resultobj = SWIG_Py_Void(); | |
36954 | { | |
36955 | if (temp2) | |
36956 | delete arg2; | |
36957 | } | |
36958 | return resultobj; | |
36959 | fail: | |
36960 | { | |
36961 | if (temp2) | |
36962 | delete arg2; | |
36963 | } | |
36964 | return NULL; | |
36965 | } | |
36966 | ||
36967 | ||
36968 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36969 | PyObject *resultobj = 0; | |
36970 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36971 | wxString *arg2 = 0 ; | |
36972 | int arg3 ; | |
36973 | int arg4 ; | |
36974 | double arg5 ; | |
36975 | void *argp1 = 0 ; | |
36976 | int res1 = 0 ; | |
36977 | bool temp2 = false ; | |
36978 | int val3 ; | |
36979 | int ecode3 = 0 ; | |
36980 | int val4 ; | |
36981 | int ecode4 = 0 ; | |
36982 | double val5 ; | |
36983 | int ecode5 = 0 ; | |
36984 | PyObject * obj0 = 0 ; | |
36985 | PyObject * obj1 = 0 ; | |
36986 | PyObject * obj2 = 0 ; | |
36987 | PyObject * obj3 = 0 ; | |
36988 | PyObject * obj4 = 0 ; | |
36989 | char * kwnames[] = { | |
36990 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
36991 | }; | |
36992 | ||
36993 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36994 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36995 | if (!SWIG_IsOK(res1)) { | |
36996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36997 | } | |
36998 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36999 | { | |
37000 | arg2 = wxString_in_helper(obj1); | |
37001 | if (arg2 == NULL) SWIG_fail; | |
37002 | temp2 = true; | |
37003 | } | |
37004 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37005 | if (!SWIG_IsOK(ecode3)) { | |
37006 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
37007 | } | |
37008 | arg3 = static_cast< int >(val3); | |
37009 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37010 | if (!SWIG_IsOK(ecode4)) { | |
37011 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
37012 | } | |
37013 | arg4 = static_cast< int >(val4); | |
37014 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37015 | if (!SWIG_IsOK(ecode5)) { | |
37016 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
37017 | } | |
37018 | arg5 = static_cast< double >(val5); | |
37019 | { | |
37020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37021 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
37022 | wxPyEndAllowThreads(__tstate); | |
37023 | if (PyErr_Occurred()) SWIG_fail; | |
37024 | } | |
37025 | resultobj = SWIG_Py_Void(); | |
37026 | { | |
37027 | if (temp2) | |
37028 | delete arg2; | |
37029 | } | |
37030 | return resultobj; | |
37031 | fail: | |
37032 | { | |
37033 | if (temp2) | |
37034 | delete arg2; | |
37035 | } | |
37036 | return NULL; | |
37037 | } | |
37038 | ||
37039 | ||
37040 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37041 | PyObject *resultobj = 0; | |
37042 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37043 | wxString *arg2 = 0 ; | |
37044 | wxPoint *arg3 = 0 ; | |
37045 | double arg4 ; | |
37046 | void *argp1 = 0 ; | |
37047 | int res1 = 0 ; | |
37048 | bool temp2 = false ; | |
37049 | wxPoint temp3 ; | |
37050 | double val4 ; | |
37051 | int ecode4 = 0 ; | |
37052 | PyObject * obj0 = 0 ; | |
37053 | PyObject * obj1 = 0 ; | |
37054 | PyObject * obj2 = 0 ; | |
37055 | PyObject * obj3 = 0 ; | |
37056 | char * kwnames[] = { | |
37057 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
37058 | }; | |
37059 | ||
37060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37062 | if (!SWIG_IsOK(res1)) { | |
37063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37064 | } | |
37065 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37066 | { | |
37067 | arg2 = wxString_in_helper(obj1); | |
37068 | if (arg2 == NULL) SWIG_fail; | |
37069 | temp2 = true; | |
37070 | } | |
37071 | { | |
37072 | arg3 = &temp3; | |
37073 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37074 | } | |
37075 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37076 | if (!SWIG_IsOK(ecode4)) { | |
37077 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
37078 | } | |
37079 | arg4 = static_cast< double >(val4); | |
37080 | { | |
37081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37082 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37083 | wxPyEndAllowThreads(__tstate); | |
37084 | if (PyErr_Occurred()) SWIG_fail; | |
37085 | } | |
37086 | resultobj = SWIG_Py_Void(); | |
37087 | { | |
37088 | if (temp2) | |
37089 | delete arg2; | |
37090 | } | |
37091 | return resultobj; | |
37092 | fail: | |
37093 | { | |
37094 | if (temp2) | |
37095 | delete arg2; | |
37096 | } | |
37097 | return NULL; | |
37098 | } | |
37099 | ||
37100 | ||
37101 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37102 | PyObject *resultobj = 0; | |
37103 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37104 | int arg2 ; | |
37105 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37106 | int arg4 = (int) 0 ; | |
37107 | int arg5 = (int) 0 ; | |
37108 | void *argp1 = 0 ; | |
37109 | int res1 = 0 ; | |
37110 | int val4 ; | |
37111 | int ecode4 = 0 ; | |
37112 | int val5 ; | |
37113 | int ecode5 = 0 ; | |
37114 | PyObject * obj0 = 0 ; | |
37115 | PyObject * obj1 = 0 ; | |
37116 | PyObject * obj2 = 0 ; | |
37117 | PyObject * obj3 = 0 ; | |
37118 | char * kwnames[] = { | |
37119 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
37120 | }; | |
37121 | ||
37122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37124 | if (!SWIG_IsOK(res1)) { | |
37125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37126 | } | |
37127 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37128 | { | |
37129 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37130 | if (arg3 == NULL) SWIG_fail; | |
37131 | } | |
37132 | if (obj2) { | |
37133 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37134 | if (!SWIG_IsOK(ecode4)) { | |
37135 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
37136 | } | |
37137 | arg4 = static_cast< int >(val4); | |
37138 | } | |
37139 | if (obj3) { | |
37140 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37141 | if (!SWIG_IsOK(ecode5)) { | |
37142 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
37143 | } | |
37144 | arg5 = static_cast< int >(val5); | |
37145 | } | |
37146 | { | |
37147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37148 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
37149 | wxPyEndAllowThreads(__tstate); | |
37150 | if (PyErr_Occurred()) SWIG_fail; | |
37151 | } | |
37152 | resultobj = SWIG_Py_Void(); | |
37153 | { | |
37154 | if (arg3) delete [] arg3; | |
37155 | } | |
37156 | return resultobj; | |
37157 | fail: | |
37158 | { | |
37159 | if (arg3) delete [] arg3; | |
37160 | } | |
37161 | return NULL; | |
37162 | } | |
37163 | ||
37164 | ||
37165 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37166 | PyObject *resultobj = 0; | |
37167 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37168 | int arg2 ; | |
37169 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37170 | int arg4 = (int) 0 ; | |
37171 | int arg5 = (int) 0 ; | |
37172 | int arg6 = (int) wxODDEVEN_RULE ; | |
37173 | void *argp1 = 0 ; | |
37174 | int res1 = 0 ; | |
37175 | int val4 ; | |
37176 | int ecode4 = 0 ; | |
37177 | int val5 ; | |
37178 | int ecode5 = 0 ; | |
37179 | int val6 ; | |
37180 | int ecode6 = 0 ; | |
37181 | PyObject * obj0 = 0 ; | |
37182 | PyObject * obj1 = 0 ; | |
37183 | PyObject * obj2 = 0 ; | |
37184 | PyObject * obj3 = 0 ; | |
37185 | PyObject * obj4 = 0 ; | |
37186 | char * kwnames[] = { | |
37187 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
37188 | }; | |
37189 | ||
37190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37192 | if (!SWIG_IsOK(res1)) { | |
37193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37194 | } | |
37195 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37196 | { | |
37197 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37198 | if (arg3 == NULL) SWIG_fail; | |
37199 | } | |
37200 | if (obj2) { | |
37201 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37202 | if (!SWIG_IsOK(ecode4)) { | |
37203 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
37204 | } | |
37205 | arg4 = static_cast< int >(val4); | |
37206 | } | |
37207 | if (obj3) { | |
37208 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37209 | if (!SWIG_IsOK(ecode5)) { | |
37210 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
37211 | } | |
37212 | arg5 = static_cast< int >(val5); | |
37213 | } | |
37214 | if (obj4) { | |
37215 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
37216 | if (!SWIG_IsOK(ecode6)) { | |
37217 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
37218 | } | |
37219 | arg6 = static_cast< int >(val6); | |
37220 | } | |
37221 | { | |
37222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37223 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
37224 | wxPyEndAllowThreads(__tstate); | |
37225 | if (PyErr_Occurred()) SWIG_fail; | |
37226 | } | |
37227 | resultobj = SWIG_Py_Void(); | |
37228 | { | |
37229 | if (arg3) delete [] arg3; | |
37230 | } | |
37231 | return resultobj; | |
37232 | fail: | |
37233 | { | |
37234 | if (arg3) delete [] arg3; | |
37235 | } | |
37236 | return NULL; | |
37237 | } | |
37238 | ||
37239 | ||
37240 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37241 | PyObject *resultobj = 0; | |
37242 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37243 | wxString *arg2 = 0 ; | |
37244 | wxRect *arg3 = 0 ; | |
37245 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37246 | int arg5 = (int) -1 ; | |
37247 | void *argp1 = 0 ; | |
37248 | int res1 = 0 ; | |
37249 | bool temp2 = false ; | |
37250 | wxRect temp3 ; | |
37251 | int val4 ; | |
37252 | int ecode4 = 0 ; | |
37253 | int val5 ; | |
37254 | int ecode5 = 0 ; | |
37255 | PyObject * obj0 = 0 ; | |
37256 | PyObject * obj1 = 0 ; | |
37257 | PyObject * obj2 = 0 ; | |
37258 | PyObject * obj3 = 0 ; | |
37259 | PyObject * obj4 = 0 ; | |
37260 | char * kwnames[] = { | |
37261 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37262 | }; | |
37263 | ||
37264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37266 | if (!SWIG_IsOK(res1)) { | |
37267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37268 | } | |
37269 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37270 | { | |
37271 | arg2 = wxString_in_helper(obj1); | |
37272 | if (arg2 == NULL) SWIG_fail; | |
37273 | temp2 = true; | |
37274 | } | |
37275 | { | |
37276 | arg3 = &temp3; | |
37277 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
37278 | } | |
37279 | if (obj3) { | |
37280 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37281 | if (!SWIG_IsOK(ecode4)) { | |
37282 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
37283 | } | |
37284 | arg4 = static_cast< int >(val4); | |
37285 | } | |
37286 | if (obj4) { | |
37287 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37288 | if (!SWIG_IsOK(ecode5)) { | |
37289 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
37290 | } | |
37291 | arg5 = static_cast< int >(val5); | |
37292 | } | |
37293 | { | |
37294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37295 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
37296 | wxPyEndAllowThreads(__tstate); | |
37297 | if (PyErr_Occurred()) SWIG_fail; | |
37298 | } | |
37299 | resultobj = SWIG_Py_Void(); | |
37300 | { | |
37301 | if (temp2) | |
37302 | delete arg2; | |
37303 | } | |
37304 | return resultobj; | |
37305 | fail: | |
37306 | { | |
37307 | if (temp2) | |
37308 | delete arg2; | |
37309 | } | |
37310 | return NULL; | |
37311 | } | |
37312 | ||
37313 | ||
37314 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37315 | PyObject *resultobj = 0; | |
37316 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37317 | wxString *arg2 = 0 ; | |
37318 | wxBitmap *arg3 = 0 ; | |
37319 | wxRect *arg4 = 0 ; | |
37320 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
37321 | int arg6 = (int) -1 ; | |
37322 | void *argp1 = 0 ; | |
37323 | int res1 = 0 ; | |
37324 | bool temp2 = false ; | |
37325 | void *argp3 = 0 ; | |
37326 | int res3 = 0 ; | |
37327 | wxRect temp4 ; | |
37328 | int val5 ; | |
37329 | int ecode5 = 0 ; | |
37330 | int val6 ; | |
37331 | int ecode6 = 0 ; | |
37332 | PyObject * obj0 = 0 ; | |
37333 | PyObject * obj1 = 0 ; | |
37334 | PyObject * obj2 = 0 ; | |
37335 | PyObject * obj3 = 0 ; | |
37336 | PyObject * obj4 = 0 ; | |
37337 | PyObject * obj5 = 0 ; | |
37338 | char * kwnames[] = { | |
37339 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
37340 | }; | |
37341 | ||
37342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37344 | if (!SWIG_IsOK(res1)) { | |
37345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37346 | } | |
37347 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37348 | { | |
37349 | arg2 = wxString_in_helper(obj1); | |
37350 | if (arg2 == NULL) SWIG_fail; | |
37351 | temp2 = true; | |
37352 | } | |
37353 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37354 | if (!SWIG_IsOK(res3)) { | |
37355 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37356 | } | |
37357 | if (!argp3) { | |
37358 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
37359 | } | |
37360 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
37361 | { | |
37362 | arg4 = &temp4; | |
37363 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
37364 | } | |
37365 | if (obj4) { | |
37366 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37367 | if (!SWIG_IsOK(ecode5)) { | |
37368 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
37369 | } | |
37370 | arg5 = static_cast< int >(val5); | |
37371 | } | |
37372 | if (obj5) { | |
37373 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37374 | if (!SWIG_IsOK(ecode6)) { | |
37375 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
37376 | } | |
37377 | arg6 = static_cast< int >(val6); | |
37378 | } | |
37379 | { | |
37380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37381 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
37382 | wxPyEndAllowThreads(__tstate); | |
37383 | if (PyErr_Occurred()) SWIG_fail; | |
37384 | } | |
37385 | resultobj = SWIG_Py_Void(); | |
37386 | { | |
37387 | if (temp2) | |
37388 | delete arg2; | |
37389 | } | |
37390 | return resultobj; | |
37391 | fail: | |
37392 | { | |
37393 | if (temp2) | |
37394 | delete arg2; | |
37395 | } | |
37396 | return NULL; | |
37397 | } | |
37398 | ||
37399 | ||
37400 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37401 | PyObject *resultobj = 0; | |
37402 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37403 | int arg2 ; | |
37404 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37405 | void *argp1 = 0 ; | |
37406 | int res1 = 0 ; | |
37407 | PyObject * obj0 = 0 ; | |
37408 | PyObject * obj1 = 0 ; | |
37409 | char * kwnames[] = { | |
37410 | (char *) "self",(char *) "points", NULL | |
37411 | }; | |
37412 | ||
37413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
37414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37415 | if (!SWIG_IsOK(res1)) { | |
37416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37417 | } | |
37418 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37419 | { | |
37420 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37421 | if (arg3 == NULL) SWIG_fail; | |
37422 | } | |
37423 | { | |
37424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37425 | (arg1)->DrawSpline(arg2,arg3); | |
37426 | wxPyEndAllowThreads(__tstate); | |
37427 | if (PyErr_Occurred()) SWIG_fail; | |
37428 | } | |
37429 | resultobj = SWIG_Py_Void(); | |
37430 | { | |
37431 | if (arg3) delete [] arg3; | |
37432 | } | |
37433 | return resultobj; | |
37434 | fail: | |
37435 | { | |
37436 | if (arg3) delete [] arg3; | |
37437 | } | |
37438 | return NULL; | |
37439 | } | |
37440 | ||
37441 | ||
37442 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37443 | PyObject *resultobj = 0; | |
37444 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37445 | void *argp1 = 0 ; | |
37446 | int res1 = 0 ; | |
37447 | PyObject *swig_obj[1] ; | |
37448 | ||
37449 | if (!args) SWIG_fail; | |
37450 | swig_obj[0] = args; | |
37451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37452 | if (!SWIG_IsOK(res1)) { | |
37453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37454 | } | |
37455 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37456 | { | |
37457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37458 | (arg1)->Clear(); | |
37459 | wxPyEndAllowThreads(__tstate); | |
37460 | if (PyErr_Occurred()) SWIG_fail; | |
37461 | } | |
37462 | resultobj = SWIG_Py_Void(); | |
37463 | return resultobj; | |
37464 | fail: | |
37465 | return NULL; | |
37466 | } | |
37467 | ||
37468 | ||
37469 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37470 | PyObject *resultobj = 0; | |
37471 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37472 | wxFont *arg2 = 0 ; | |
37473 | void *argp1 = 0 ; | |
37474 | int res1 = 0 ; | |
37475 | void *argp2 = 0 ; | |
37476 | int res2 = 0 ; | |
37477 | PyObject * obj0 = 0 ; | |
37478 | PyObject * obj1 = 0 ; | |
37479 | char * kwnames[] = { | |
37480 | (char *) "self",(char *) "font", NULL | |
37481 | }; | |
37482 | ||
37483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
37484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37485 | if (!SWIG_IsOK(res1)) { | |
37486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37487 | } | |
37488 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37489 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
37490 | if (!SWIG_IsOK(res2)) { | |
37491 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
37492 | } | |
37493 | if (!argp2) { | |
37494 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
37495 | } | |
37496 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
37497 | { | |
37498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37499 | (arg1)->SetFont((wxFont const &)*arg2); | |
37500 | wxPyEndAllowThreads(__tstate); | |
37501 | if (PyErr_Occurred()) SWIG_fail; | |
37502 | } | |
37503 | resultobj = SWIG_Py_Void(); | |
37504 | return resultobj; | |
37505 | fail: | |
37506 | return NULL; | |
37507 | } | |
37508 | ||
37509 | ||
37510 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37511 | PyObject *resultobj = 0; | |
37512 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37513 | wxPen *arg2 = 0 ; | |
37514 | void *argp1 = 0 ; | |
37515 | int res1 = 0 ; | |
37516 | void *argp2 = 0 ; | |
37517 | int res2 = 0 ; | |
37518 | PyObject * obj0 = 0 ; | |
37519 | PyObject * obj1 = 0 ; | |
37520 | char * kwnames[] = { | |
37521 | (char *) "self",(char *) "pen", NULL | |
37522 | }; | |
37523 | ||
37524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
37525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37526 | if (!SWIG_IsOK(res1)) { | |
37527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37528 | } | |
37529 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37530 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
37531 | if (!SWIG_IsOK(res2)) { | |
37532 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
37533 | } | |
37534 | if (!argp2) { | |
37535 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
37536 | } | |
37537 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
37538 | { | |
37539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37540 | (arg1)->SetPen((wxPen const &)*arg2); | |
37541 | wxPyEndAllowThreads(__tstate); | |
37542 | if (PyErr_Occurred()) SWIG_fail; | |
37543 | } | |
37544 | resultobj = SWIG_Py_Void(); | |
37545 | return resultobj; | |
37546 | fail: | |
37547 | return NULL; | |
37548 | } | |
37549 | ||
37550 | ||
37551 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37552 | PyObject *resultobj = 0; | |
37553 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37554 | wxBrush *arg2 = 0 ; | |
37555 | void *argp1 = 0 ; | |
37556 | int res1 = 0 ; | |
37557 | void *argp2 = 0 ; | |
37558 | int res2 = 0 ; | |
37559 | PyObject * obj0 = 0 ; | |
37560 | PyObject * obj1 = 0 ; | |
37561 | char * kwnames[] = { | |
37562 | (char *) "self",(char *) "brush", NULL | |
37563 | }; | |
37564 | ||
37565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
37566 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37567 | if (!SWIG_IsOK(res1)) { | |
37568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37569 | } | |
37570 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37571 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
37572 | if (!SWIG_IsOK(res2)) { | |
37573 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37574 | } | |
37575 | if (!argp2) { | |
37576 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37577 | } | |
37578 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
37579 | { | |
37580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37581 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
37582 | wxPyEndAllowThreads(__tstate); | |
37583 | if (PyErr_Occurred()) SWIG_fail; | |
37584 | } | |
37585 | resultobj = SWIG_Py_Void(); | |
37586 | return resultobj; | |
37587 | fail: | |
37588 | return NULL; | |
37589 | } | |
37590 | ||
37591 | ||
37592 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37593 | PyObject *resultobj = 0; | |
37594 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37595 | wxBrush *arg2 = 0 ; | |
37596 | void *argp1 = 0 ; | |
37597 | int res1 = 0 ; | |
37598 | void *argp2 = 0 ; | |
37599 | int res2 = 0 ; | |
37600 | PyObject * obj0 = 0 ; | |
37601 | PyObject * obj1 = 0 ; | |
37602 | char * kwnames[] = { | |
37603 | (char *) "self",(char *) "brush", NULL | |
37604 | }; | |
37605 | ||
37606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
37607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37608 | if (!SWIG_IsOK(res1)) { | |
37609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37610 | } | |
37611 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37612 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
37613 | if (!SWIG_IsOK(res2)) { | |
37614 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37615 | } | |
37616 | if (!argp2) { | |
37617 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
37618 | } | |
37619 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
37620 | { | |
37621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37622 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
37623 | wxPyEndAllowThreads(__tstate); | |
37624 | if (PyErr_Occurred()) SWIG_fail; | |
37625 | } | |
37626 | resultobj = SWIG_Py_Void(); | |
37627 | return resultobj; | |
37628 | fail: | |
37629 | return NULL; | |
37630 | } | |
37631 | ||
37632 | ||
37633 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37634 | PyObject *resultobj = 0; | |
37635 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37636 | int arg2 ; | |
37637 | void *argp1 = 0 ; | |
37638 | int res1 = 0 ; | |
37639 | int val2 ; | |
37640 | int ecode2 = 0 ; | |
37641 | PyObject * obj0 = 0 ; | |
37642 | PyObject * obj1 = 0 ; | |
37643 | char * kwnames[] = { | |
37644 | (char *) "self",(char *) "mode", NULL | |
37645 | }; | |
37646 | ||
37647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
37648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37649 | if (!SWIG_IsOK(res1)) { | |
37650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37651 | } | |
37652 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37653 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37654 | if (!SWIG_IsOK(ecode2)) { | |
37655 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
37656 | } | |
37657 | arg2 = static_cast< int >(val2); | |
37658 | { | |
37659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37660 | (arg1)->SetBackgroundMode(arg2); | |
37661 | wxPyEndAllowThreads(__tstate); | |
37662 | if (PyErr_Occurred()) SWIG_fail; | |
37663 | } | |
37664 | resultobj = SWIG_Py_Void(); | |
37665 | return resultobj; | |
37666 | fail: | |
37667 | return NULL; | |
37668 | } | |
37669 | ||
37670 | ||
37671 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37672 | PyObject *resultobj = 0; | |
37673 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37674 | wxPalette *arg2 = 0 ; | |
37675 | void *argp1 = 0 ; | |
37676 | int res1 = 0 ; | |
37677 | void *argp2 = 0 ; | |
37678 | int res2 = 0 ; | |
37679 | PyObject * obj0 = 0 ; | |
37680 | PyObject * obj1 = 0 ; | |
37681 | char * kwnames[] = { | |
37682 | (char *) "self",(char *) "palette", NULL | |
37683 | }; | |
37684 | ||
37685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
37686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37687 | if (!SWIG_IsOK(res1)) { | |
37688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37689 | } | |
37690 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37691 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
37692 | if (!SWIG_IsOK(res2)) { | |
37693 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
37694 | } | |
37695 | if (!argp2) { | |
37696 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
37697 | } | |
37698 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
37699 | { | |
37700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37701 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
37702 | wxPyEndAllowThreads(__tstate); | |
37703 | if (PyErr_Occurred()) SWIG_fail; | |
37704 | } | |
37705 | resultobj = SWIG_Py_Void(); | |
37706 | return resultobj; | |
37707 | fail: | |
37708 | return NULL; | |
37709 | } | |
37710 | ||
37711 | ||
37712 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37713 | PyObject *resultobj = 0; | |
37714 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37715 | wxColour *arg2 = 0 ; | |
37716 | void *argp1 = 0 ; | |
37717 | int res1 = 0 ; | |
37718 | wxColour temp2 ; | |
37719 | PyObject * obj0 = 0 ; | |
37720 | PyObject * obj1 = 0 ; | |
37721 | char * kwnames[] = { | |
37722 | (char *) "self",(char *) "colour", NULL | |
37723 | }; | |
37724 | ||
37725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
37726 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37727 | if (!SWIG_IsOK(res1)) { | |
37728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37729 | } | |
37730 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37731 | { | |
37732 | arg2 = &temp2; | |
37733 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
37734 | } | |
37735 | { | |
37736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37737 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
37738 | wxPyEndAllowThreads(__tstate); | |
37739 | if (PyErr_Occurred()) SWIG_fail; | |
37740 | } | |
37741 | resultobj = SWIG_Py_Void(); | |
37742 | return resultobj; | |
37743 | fail: | |
37744 | return NULL; | |
37745 | } | |
37746 | ||
37747 | ||
37748 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37749 | PyObject *resultobj = 0; | |
37750 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37751 | wxColour *arg2 = 0 ; | |
37752 | void *argp1 = 0 ; | |
37753 | int res1 = 0 ; | |
37754 | wxColour temp2 ; | |
37755 | PyObject * obj0 = 0 ; | |
37756 | PyObject * obj1 = 0 ; | |
37757 | char * kwnames[] = { | |
37758 | (char *) "self",(char *) "colour", NULL | |
37759 | }; | |
37760 | ||
37761 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
37762 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37763 | if (!SWIG_IsOK(res1)) { | |
37764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37765 | } | |
37766 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37767 | { | |
37768 | arg2 = &temp2; | |
37769 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
37770 | } | |
37771 | { | |
37772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37773 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
37774 | wxPyEndAllowThreads(__tstate); | |
37775 | if (PyErr_Occurred()) SWIG_fail; | |
37776 | } | |
37777 | resultobj = SWIG_Py_Void(); | |
37778 | return resultobj; | |
37779 | fail: | |
37780 | return NULL; | |
37781 | } | |
37782 | ||
37783 | ||
37784 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37785 | PyObject *resultobj = 0; | |
37786 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37787 | int arg2 ; | |
37788 | void *argp1 = 0 ; | |
37789 | int res1 = 0 ; | |
37790 | int val2 ; | |
37791 | int ecode2 = 0 ; | |
37792 | PyObject * obj0 = 0 ; | |
37793 | PyObject * obj1 = 0 ; | |
37794 | char * kwnames[] = { | |
37795 | (char *) "self",(char *) "function", NULL | |
37796 | }; | |
37797 | ||
37798 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
37799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37800 | if (!SWIG_IsOK(res1)) { | |
37801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37802 | } | |
37803 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37804 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37805 | if (!SWIG_IsOK(ecode2)) { | |
37806 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
37807 | } | |
37808 | arg2 = static_cast< int >(val2); | |
37809 | { | |
37810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37811 | (arg1)->SetLogicalFunction(arg2); | |
37812 | wxPyEndAllowThreads(__tstate); | |
37813 | if (PyErr_Occurred()) SWIG_fail; | |
37814 | } | |
37815 | resultobj = SWIG_Py_Void(); | |
37816 | return resultobj; | |
37817 | fail: | |
37818 | return NULL; | |
37819 | } | |
37820 | ||
37821 | ||
37822 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37823 | PyObject *obj; | |
37824 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
37825 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
37826 | return SWIG_Py_Void(); | |
37827 | } | |
37828 | ||
37829 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
37830 | return SWIG_Python_InitShadowInstance(args); | |
37831 | } | |
37832 | ||
37833 | static PyMethodDef SwigMethods[] = { | |
37834 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
37835 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
37836 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
37837 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
37838 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
37839 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37840 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37841 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37842 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
37843 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
37844 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
37845 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 37846 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 37847 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
37848 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
37849 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37850 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37851 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37852 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
37853 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37854 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 37855 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
37856 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
37857 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
37858 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
37859 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37860 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
37861 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37862 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37863 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 37864 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
37865 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
37866 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
37867 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37868 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
37869 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
37870 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
37871 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
37872 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
37873 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 37874 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
37875 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
37876 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37877 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37878 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37879 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37880 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37881 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
37882 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37883 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
37884 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37885 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37886 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
37887 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
37888 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37889 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37890 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
37891 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37892 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37893 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37894 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
37895 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
37896 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
37897 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 37898 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
37899 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
37900 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
37901 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37902 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
37903 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37904 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37905 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37906 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37907 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 37908 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
37909 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
37910 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
37911 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
37912 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
37913 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
37914 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
37915 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37916 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37917 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37918 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37919 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37920 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
37921 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37922 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37923 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37924 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37925 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37926 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37927 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37928 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
37929 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
37930 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
37931 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37932 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37933 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
37934 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
37935 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
37936 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
37937 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
37938 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
37939 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
37940 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
37941 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
37942 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
37943 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
37944 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
37945 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
37946 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
37947 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
37948 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37949 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
37950 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
37951 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37952 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37953 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37954 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37955 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37956 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
37957 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
37958 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
37959 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
37960 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
37961 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
37962 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
37963 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
37964 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
37965 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
37966 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
37967 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
37968 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37969 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
37970 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
37971 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37972 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37973 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37974 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37975 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37976 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
37977 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
37978 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
37979 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
37980 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
37981 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
37982 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
37983 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37984 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
37985 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
37986 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37987 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37988 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37989 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 37990 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
37991 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
37992 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
37993 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
37994 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37995 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37996 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37997 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37998 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
37999 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
38000 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38001 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
38002 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
38003 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38004 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
38005 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38006 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
38007 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
38008 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
38009 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
38010 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38011 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38012 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
38013 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38014 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38015 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38016 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
38017 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
38018 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38019 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
38020 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38021 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38022 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
38023 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, |
38024 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
38025 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38026 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38027 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38028 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38029 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
38030 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
38031 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38032 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38033 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38034 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38035 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38036 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
38037 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38038 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38039 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38040 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 38041 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38042 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
38043 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38044 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38045 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38046 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38047 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38048 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38049 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38050 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38051 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
38052 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38053 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38054 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
38055 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
38056 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38057 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
38058 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
38059 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
38060 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
38061 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
38062 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
38063 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
38064 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
38065 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
38066 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
38067 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
38068 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
38069 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
38070 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
38071 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
38072 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
38073 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
38074 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38075 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
38076 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
38077 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
38078 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
38079 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
38080 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
38081 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
38082 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38083 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38084 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38085 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38086 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38087 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38088 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38089 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38090 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
38091 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
38092 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38093 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
38094 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
38095 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
38096 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
38097 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
38098 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
38099 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
38100 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
38101 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
38102 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38103 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
38104 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
38105 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
38106 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38107 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38108 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
38109 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
38110 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
38111 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38112 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38113 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
38114 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38115 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38116 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38117 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38118 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38119 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
38120 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38121 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38122 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38123 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38124 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
38125 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
38126 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38127 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
38128 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38129 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38130 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38131 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38132 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38133 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
27e45892 | 38134 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38135 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38136 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
38137 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
38138 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
38139 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
38140 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
38141 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
38142 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
38143 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
38144 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
38145 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
38146 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
38147 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
38148 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
38149 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38150 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38151 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38152 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38153 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38154 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38155 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38156 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38157 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38158 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38159 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38160 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
38161 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
38162 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
38163 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38164 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
38165 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
38166 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38167 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
38168 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
38169 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
38170 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
38171 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38172 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38173 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
38174 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
38175 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
38176 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38177 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
38178 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
38179 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
38180 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
38181 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
38182 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
38183 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
38184 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
38185 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
38186 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38187 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
38188 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38189 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38190 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
38191 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
38192 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
38193 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
38194 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
38195 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
38196 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
38197 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
38198 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38199 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 38200 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38201 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
38202 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38203 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38204 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38205 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38206 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38207 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
38208 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
38209 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38210 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
38211 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
38212 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38213 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38214 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38215 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
38216 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38217 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
38218 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
38219 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
38220 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
38221 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38222 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38223 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38224 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38225 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38226 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
38227 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
38228 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
38229 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38230 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38231 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38232 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38233 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38234 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38235 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38236 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38237 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38238 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38239 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38240 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38241 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38242 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38243 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38244 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38245 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38246 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38247 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38248 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38249 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38250 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38251 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38252 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38253 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38254 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38255 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38256 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38257 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38258 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38259 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38260 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38261 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38262 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38263 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38264 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38265 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38266 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38267 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38268 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38269 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38270 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38271 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38272 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38273 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38274 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38275 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38276 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38277 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
38278 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38279 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
38280 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
38281 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
38282 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38283 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38284 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38285 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38286 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38287 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38288 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
38289 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
38290 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
38291 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
38292 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
38293 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38294 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38295 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38296 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38297 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
38298 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
38299 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
38300 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
38301 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38302 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38303 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38304 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38305 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38306 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38307 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38308 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38309 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
38310 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
38311 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
38312 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 38313 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
0085ce49 RD |
38314 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
38315 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
38316 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
38317 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
38318 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
38319 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
38320 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
38321 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38322 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38323 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
38324 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38325 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
38326 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38327 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
38328 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38329 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
38330 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
38331 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38332 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38333 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
38334 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
38335 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38336 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38337 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38338 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
38339 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38340 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
38341 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38342 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38343 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
38344 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
38345 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
38346 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
38347 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
38348 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
38349 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
38350 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38351 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38352 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38353 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38354 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38355 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38356 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38357 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38358 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
38359 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
38360 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
38361 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
38362 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38363 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
38364 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
38365 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
38366 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38367 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
38368 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
38369 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
38370 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
38371 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
38372 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
38373 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 38374 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38375 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38376 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38377 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
38378 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38379 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
38380 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38381 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38382 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
38383 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
38384 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
38385 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38386 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
38387 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38388 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38389 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
38390 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
38391 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38392 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
38393 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
38394 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
38395 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
38396 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
38397 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
38398 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
38399 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38400 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
38401 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
38402 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38403 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
38404 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 38405 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38406 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38407 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
38408 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
38409 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38410 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
38411 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38412 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38413 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
38414 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
38415 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
38416 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38417 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
38418 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
38419 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38420 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
38421 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
38422 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38423 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
38424 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
38425 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
38426 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
38427 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
38428 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
38429 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
38430 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
38431 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
38432 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
38433 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
38434 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
38435 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
38436 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
38437 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
38438 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
38439 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
38440 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
38441 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
38442 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
5c8c7dd3 RD |
38443 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
38444 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38445 | { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38446 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38447 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, | |
38448 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38449 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
38450 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38451 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38452 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38453 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38454 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38455 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
38456 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
72ef6efb | 38457 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
38458 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
38459 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
38460 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
38461 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38462 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
38463 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 38464 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
38465 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
38466 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38467 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38468 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
38469 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
38470 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38471 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
38472 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38473 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38474 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
38475 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb RD |
38476 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
38477 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, | |
0a27f394 RD |
38478 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
38479 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 38480 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 38481 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
38482 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
38483 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38484 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38485 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38486 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38487 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38488 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
38489 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 38490 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 38491 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
38492 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
38493 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
72ef6efb RD |
38494 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
38495 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38496 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
38497 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
38498 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38499 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
38500 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
38501 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
38502 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
38503 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
38504 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38505 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
38506 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
38507 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 38508 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
38509 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
38510 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38511 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38512 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38513 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38514 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 38515 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
38516 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
38517 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38518 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38519 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 38520 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 38521 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
38522 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
38523 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
38524 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
38525 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38526 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38527 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
38528 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38529 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38530 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38531 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38532 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38533 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38534 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
72ef6efb RD |
38535 | { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38536 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, | |
0a27f394 RD |
38537 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
38538 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38539 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
38540 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
38541 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
38542 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
38543 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
38544 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
38545 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
38546 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
38547 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
38548 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
38549 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
38550 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38551 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
38552 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
38553 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38554 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38555 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38556 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38557 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38558 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38559 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38560 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
38561 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38562 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
38563 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38564 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
38565 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
38566 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
38567 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
38568 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
38569 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
38570 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38571 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38572 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38573 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38574 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38575 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
38576 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
38577 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
38578 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
38579 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
38580 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 38581 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 38582 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38583 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38584 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 38585 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 38586 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38587 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 38588 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
38589 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
38590 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38591 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38592 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
38593 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
38594 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
38595 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38596 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38597 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38598 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38599 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
38600 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
38601 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
38602 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
38603 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
38604 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
38605 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
38606 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
38607 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
38608 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
38609 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
38610 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
38611 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38612 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38613 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38614 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38615 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38616 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38617 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38618 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38619 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
38620 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
38621 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38622 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
38623 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
38624 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
38625 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
38626 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
38627 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
38628 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
38629 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
38630 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
38631 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
38632 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
38633 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
38634 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
38635 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
38636 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
38637 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
38638 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
38639 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
38640 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
38641 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
38642 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
38643 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
38644 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
38645 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38646 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
38647 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
38648 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38649 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
38650 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
38651 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
38652 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
38653 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
38654 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
38655 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38656 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
38657 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38658 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38659 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38660 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
38661 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
38662 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38663 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
38664 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
38665 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
38666 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
38667 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
38668 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38669 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
38670 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
38671 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
38672 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
38673 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
38674 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
38675 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
38676 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
38677 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38678 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38679 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38680 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
38681 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
38682 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38683 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38684 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38685 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
38686 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38687 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38688 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38689 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38690 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38691 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38692 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38693 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38694 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38695 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38696 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38697 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38698 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38699 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38700 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38701 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38702 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38703 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38704 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38705 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38706 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38707 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38708 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38709 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38710 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38711 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38712 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38713 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38714 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38715 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38716 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38717 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38718 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38719 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38720 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38721 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38722 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38723 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38724 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38725 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38726 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38727 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38728 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38729 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
38730 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38731 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38732 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38733 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38734 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38735 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38736 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38737 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38738 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38739 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
38740 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
38741 | { NULL, NULL, 0, NULL } |
38742 | }; | |
38743 | ||
38744 | ||
38745 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
38746 | ||
72ef6efb RD |
38747 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
38748 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
38749 | } | |
8e99bda9 RD |
38750 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
38751 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
38752 | } | |
38753 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
38754 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
38755 | } | |
72ef6efb RD |
38756 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
38757 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
38758 | } | |
38759 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
38760 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
38761 | } | |
fc46b7f3 RD |
38762 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
38763 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
38764 | } | |
70d7cb34 RD |
38765 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
38766 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
38767 | } | |
38768 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
38769 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
38770 | } | |
38771 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
38772 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
38773 | } | |
38774 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
38775 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
38776 | } | |
38777 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
38778 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
38779 | } | |
38780 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
38781 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
38782 | } | |
0085ce49 RD |
38783 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
38784 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
38785 | } | |
38786 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
38787 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
38788 | } | |
38789 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
38790 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
38791 | } | |
38792 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
38793 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
38794 | } | |
38795 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
38796 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
38797 | } | |
38798 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
38799 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
38800 | } | |
38801 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
38802 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
38803 | } | |
38804 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
38805 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
38806 | } | |
72ef6efb RD |
38807 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
38808 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
38809 | } | |
0085ce49 RD |
38810 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
38811 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
38812 | } | |
24f6c4e8 RD |
38813 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
38814 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
38815 | } | |
0085ce49 RD |
38816 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
38817 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
38818 | } | |
38819 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
38820 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
38821 | } | |
38822 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
38823 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
38824 | } | |
38825 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
38826 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
38827 | } | |
0085ce49 | 38828 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 38829 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
38830 | } |
38831 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 38832 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
0085ce49 | 38833 | } |
24f6c4e8 RD |
38834 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
38835 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
38836 | } | |
38837 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
38838 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
38839 | } | |
0085ce49 RD |
38840 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
38841 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
38842 | } | |
38843 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
38844 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
38845 | } | |
50efceee RD |
38846 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
38847 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
38848 | } | |
38849 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
38850 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
38851 | } | |
38852 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
38853 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
38854 | } | |
0085ce49 RD |
38855 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
38856 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
38857 | } | |
38858 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
38859 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
38860 | } | |
38861 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
38862 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
38863 | } | |
38864 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
38865 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
38866 | } | |
0085ce49 RD |
38867 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
38868 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
38869 | } | |
34e0a3bb RD |
38870 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
38871 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
38872 | } | |
0085ce49 RD |
38873 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
38874 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
38875 | } | |
38876 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
38877 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
38878 | } | |
38879 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
38880 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
38881 | } | |
38882 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
38883 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
38884 | } | |
38885 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
38886 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
38887 | } | |
38888 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
38889 | return (void *)((wxObject *) ((wxSizer *) x)); | |
38890 | } | |
38891 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
38892 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
38893 | } | |
38894 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
38895 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
38896 | } | |
0085ce49 RD |
38897 | static void *_p_wxEventTo_p_wxObject(void *x) { |
38898 | return (void *)((wxObject *) ((wxEvent *) x)); | |
38899 | } | |
38900 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
38901 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
38902 | } | |
38903 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
38904 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
38905 | } | |
38906 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
38907 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
38908 | } | |
27e45892 RD |
38909 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
38910 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
38911 | } | |
2131d850 RD |
38912 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
38913 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
38914 | } | |
0085ce49 RD |
38915 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
38916 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
38917 | } | |
38918 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
38919 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
38920 | } | |
38921 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
38922 | return (void *)((wxObject *) ((wxDC *) x)); | |
38923 | } | |
38924 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
38925 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
38926 | } | |
38927 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
38928 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
38929 | } | |
38930 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
38931 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
38932 | } | |
38933 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
38934 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
38935 | } | |
38936 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
38937 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
38938 | } | |
70d7cb34 RD |
38939 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
38940 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
38941 | } | |
0085ce49 RD |
38942 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
38943 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
38944 | } | |
38945 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 38946 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
38947 | } |
38948 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
38949 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
38950 | } | |
38951 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
38952 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
38953 | } | |
38954 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
38955 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
38956 | } | |
38957 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
38958 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
38959 | } | |
38960 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
38961 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
38962 | } | |
38963 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
38964 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
38965 | } | |
70d7cb34 RD |
38966 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
38967 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
38968 | } | |
38969 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
38970 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
38971 | } | |
0085ce49 RD |
38972 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
38973 | return (void *)((wxObject *) ((wxEffects *) x)); | |
38974 | } | |
38975 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
38976 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
38977 | } | |
38978 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
38979 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
38980 | } | |
38981 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
38982 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
38983 | } | |
70d7cb34 RD |
38984 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
38985 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
38986 | } | |
0085ce49 RD |
38987 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
38988 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
38989 | } | |
38990 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
38991 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
38992 | } | |
38993 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
38994 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
38995 | } | |
38996 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
38997 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
38998 | } | |
38999 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39000 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39001 | } | |
39002 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39003 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39004 | } | |
39005 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39006 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39007 | } | |
39008 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39009 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39010 | } | |
39011 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39012 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39013 | } | |
39014 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39015 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39016 | } | |
39017 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39018 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39019 | } | |
39020 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39021 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39022 | } | |
39023 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39024 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39025 | } | |
39026 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39027 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39028 | } | |
39029 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39030 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39031 | } | |
39032 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39033 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39034 | } | |
39035 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39036 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39037 | } | |
39038 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39039 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39040 | } | |
39041 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39042 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39043 | } | |
39044 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39045 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39046 | } | |
39047 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
39048 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
39049 | } | |
39050 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39051 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39052 | } | |
39053 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39054 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39055 | } | |
39056 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39057 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39058 | } | |
39059 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
39060 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39061 | } | |
34e0a3bb RD |
39062 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
39063 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
39064 | } | |
24f6c4e8 RD |
39065 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
39066 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
39067 | } | |
0085ce49 | 39068 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
8e99bda9 | 39069 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
0085ce49 | 39070 | } |
24f6c4e8 RD |
39071 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
39072 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
0085ce49 RD |
39073 | } |
39074 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
39075 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
39076 | } | |
39077 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
39078 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
39079 | } | |
39080 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
39081 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
39082 | } | |
39083 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
39084 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39085 | } | |
39086 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
39087 | return (void *)((wxObject *) ((wxImage *) x)); | |
39088 | } | |
39089 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
39090 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
39091 | } | |
70d7cb34 RD |
39092 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
39093 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39094 | } | |
39095 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
39096 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
39097 | } | |
0085ce49 RD |
39098 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
39099 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
39100 | } | |
39101 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
8e99bda9 | 39102 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
0085ce49 RD |
39103 | } |
39104 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
39105 | return (void *)((wxObject *) ((wxImageList *) x)); | |
39106 | } | |
72ef6efb RD |
39107 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
39108 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
39109 | } | |
0085ce49 RD |
39110 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
39111 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
39112 | } | |
39113 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
39114 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
39115 | } | |
39116 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
39117 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
39118 | } | |
70d7cb34 RD |
39119 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
39120 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39121 | } | |
0085ce49 RD |
39122 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
39123 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39124 | } | |
39125 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
39126 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
39127 | } | |
39128 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
39129 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
39130 | } | |
39131 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
39132 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
39133 | } | |
39134 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
39135 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
39136 | } | |
39137 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
39138 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
39139 | } | |
39140 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
39141 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
39142 | } | |
0085ce49 RD |
39143 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
39144 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
39145 | } | |
39146 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
39147 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
39148 | } | |
39149 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
39150 | return (void *)((wxObject *) ((wxMask *) x)); | |
39151 | } | |
70d7cb34 RD |
39152 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
39153 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39154 | } | |
0085ce49 RD |
39155 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
39156 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39157 | } | |
39158 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
39159 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
39160 | } | |
39161 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
39162 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
39163 | } | |
39164 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
39165 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
39166 | } | |
39167 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
39168 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
39169 | } | |
39170 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
39171 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
39172 | } | |
39173 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
39174 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
39175 | } | |
39176 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
39177 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
39178 | } | |
39179 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
39180 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
39181 | } | |
39182 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
39183 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
39184 | } | |
39185 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
39186 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
39187 | } | |
39188 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
39189 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
39190 | } | |
39191 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
39192 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
39193 | } | |
39194 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
39195 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
39196 | } | |
39197 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
39198 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39199 | } | |
39200 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
39201 | return (void *)((wxObject *) ((wxColour *) x)); | |
39202 | } | |
0085ce49 RD |
39203 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
39204 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
39205 | } | |
39206 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
39207 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
39208 | } | |
39209 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
39210 | return (void *)((wxWindow *) ((wxControl *) x)); | |
39211 | } | |
39212 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
39213 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
39214 | } | |
39215 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
39216 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
39217 | } | |
fc46b7f3 RD |
39218 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
39219 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
39220 | } | |
39221 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
39222 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
39223 | } | |
39224 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 | 39225 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 39226 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39227 | 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}; |
39228 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
39229 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
39230 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
39231 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 39232 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
39233 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
39234 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 39235 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39236 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
39237 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
39238 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
39239 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
39240 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39241 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 | 39242 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 39243 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39244 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
39245 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
39246 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
39247 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
39248 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
39249 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 39250 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39251 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
39252 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39253 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
39254 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
39255 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
39256 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
39257 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
39258 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
39259 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39260 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 39261 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39262 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39263 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 39264 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39265 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
39266 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
39267 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 39268 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
39269 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
39270 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 39271 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39272 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
39273 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
39274 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
39275 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
39276 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
39277 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
39278 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
39279 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
39280 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
39281 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
39282 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
39283 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
39284 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
39285 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
39286 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
39287 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
39288 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
39289 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 39290 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 39291 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39292 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
39293 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
39294 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
39295 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
39296 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
39297 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
39298 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
39299 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
39300 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
39301 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
39302 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
39303 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 39304 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39305 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
39306 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
39307 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
39308 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
39309 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
39310 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
39311 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
39312 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
39313 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
39314 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
39315 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
39316 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
39317 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
39318 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
39319 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
39320 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
39321 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
39322 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
39323 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
39324 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
39325 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
39326 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
39327 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 39328 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
39329 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
39330 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
39331 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
39332 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
39333 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
39334 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 39335 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 39336 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 39337 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 39338 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39339 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
39340 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
39341 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 39342 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
39343 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
39344 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
39345 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
39346 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
39347 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
39348 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
39349 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
39350 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
39351 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
39352 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
39353 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
39354 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
39355 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
39356 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
39357 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
39358 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
39359 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
39360 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
39361 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
39362 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
39363 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
39364 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 39365 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39366 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
39367 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
39368 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
39369 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
39370 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 39371 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 39372 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 39373 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39374 | static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39375 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
39376 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
39377 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 39378 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 39379 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 39380 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 | 39381 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
70d7cb34 | 39382 | static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39383 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
39384 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
39385 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
39386 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
39387 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
39388 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
39389 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 39390 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
39391 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
39392 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
39393 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
39394 | ||
39395 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 39396 | &_swigt__p_buffer, |
0085ce49 RD |
39397 | &_swigt__p_char, |
39398 | &_swigt__p_double, | |
39399 | &_swigt__p_form_ops_t, | |
39400 | &_swigt__p_int, | |
39401 | &_swigt__p_unsigned_char, | |
39402 | &_swigt__p_unsigned_int, | |
39403 | &_swigt__p_unsigned_long, | |
0a27f394 | 39404 | &_swigt__p_void, |
0085ce49 RD |
39405 | &_swigt__p_wxANIHandler, |
39406 | &_swigt__p_wxAcceleratorTable, | |
39407 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
39408 | &_swigt__p_wxAlphaPixelData, |
39409 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 39410 | &_swigt__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
39411 | &_swigt__p_wxBMPHandler, |
39412 | &_swigt__p_wxBitmap, | |
39413 | &_swigt__p_wxBoxSizer, | |
39414 | &_swigt__p_wxBrush, | |
39415 | &_swigt__p_wxBrushList, | |
39416 | &_swigt__p_wxBufferedDC, | |
39417 | &_swigt__p_wxBufferedPaintDC, | |
39418 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 39419 | &_swigt__p_wxChar, |
0085ce49 RD |
39420 | &_swigt__p_wxChildFocusEvent, |
39421 | &_swigt__p_wxClientDC, | |
2131d850 | 39422 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 | 39423 | &_swigt__p_wxCloseEvent, |
72ef6efb | 39424 | &_swigt__p_wxColor, |
0085ce49 RD |
39425 | &_swigt__p_wxColour, |
39426 | &_swigt__p_wxColourDatabase, | |
39427 | &_swigt__p_wxCommandEvent, | |
39428 | &_swigt__p_wxContextMenuEvent, | |
39429 | &_swigt__p_wxControl, | |
39430 | &_swigt__p_wxControlWithItems, | |
39431 | &_swigt__p_wxCursor, | |
39432 | &_swigt__p_wxDC, | |
70d7cb34 RD |
39433 | &_swigt__p_wxDCBrushChanger, |
39434 | &_swigt__p_wxDCClipper, | |
b39fe951 | 39435 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
39436 | &_swigt__p_wxDCPenChanger, |
39437 | &_swigt__p_wxDCTextColourChanger, | |
0085ce49 RD |
39438 | &_swigt__p_wxDash, |
39439 | &_swigt__p_wxDateEvent, | |
39440 | &_swigt__p_wxDisplayChangedEvent, | |
39441 | &_swigt__p_wxDropFilesEvent, | |
39442 | &_swigt__p_wxDuplexMode, | |
39443 | &_swigt__p_wxEffects, | |
39444 | &_swigt__p_wxEncodingConverter, | |
39445 | &_swigt__p_wxEraseEvent, | |
39446 | &_swigt__p_wxEvent, | |
39447 | &_swigt__p_wxEvtHandler, | |
39448 | &_swigt__p_wxFSFile, | |
39449 | &_swigt__p_wxFileSystem, | |
39450 | &_swigt__p_wxFlexGridSizer, | |
39451 | &_swigt__p_wxFocusEvent, | |
39452 | &_swigt__p_wxFont, | |
39453 | &_swigt__p_wxFontList, | |
39454 | &_swigt__p_wxFontMapper, | |
39455 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 39456 | &_swigt__p_wxGCDC, |
50efceee | 39457 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
39458 | &_swigt__p_wxGDIObject, |
39459 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 39460 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 39461 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
39462 | &_swigt__p_wxGraphicsFont, |
39463 | &_swigt__p_wxGraphicsMatrix, | |
39464 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 39465 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
39466 | &_swigt__p_wxGraphicsPen, |
39467 | &_swigt__p_wxGraphicsRenderer, | |
0085ce49 RD |
39468 | &_swigt__p_wxGridBagSizer, |
39469 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 39470 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
39471 | &_swigt__p_wxICOHandler, |
39472 | &_swigt__p_wxIcon, | |
39473 | &_swigt__p_wxIconBundle, | |
39474 | &_swigt__p_wxIconLocation, | |
39475 | &_swigt__p_wxIconizeEvent, | |
39476 | &_swigt__p_wxIdleEvent, | |
39477 | &_swigt__p_wxImage, | |
39478 | &_swigt__p_wxImageHandler, | |
39479 | &_swigt__p_wxImageList, | |
39480 | &_swigt__p_wxIndividualLayoutConstraint, | |
39481 | &_swigt__p_wxInitDialogEvent, | |
39482 | &_swigt__p_wxJPEGHandler, | |
39483 | &_swigt__p_wxKeyEvent, | |
39484 | &_swigt__p_wxLanguageInfo, | |
39485 | &_swigt__p_wxLayoutConstraints, | |
39486 | &_swigt__p_wxLocale, | |
39487 | &_swigt__p_wxMask, | |
39488 | &_swigt__p_wxMaximizeEvent, | |
39489 | &_swigt__p_wxMemoryDC, | |
39490 | &_swigt__p_wxMenu, | |
39491 | &_swigt__p_wxMenuBar, | |
39492 | &_swigt__p_wxMenuEvent, | |
39493 | &_swigt__p_wxMenuItem, | |
39494 | &_swigt__p_wxMetaFile, | |
39495 | &_swigt__p_wxMetaFileDC, | |
39496 | &_swigt__p_wxMirrorDC, | |
39497 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 39498 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
39499 | &_swigt__p_wxMouseEvent, |
39500 | &_swigt__p_wxMoveEvent, | |
39501 | &_swigt__p_wxNativeEncodingInfo, | |
39502 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
39503 | &_swigt__p_wxNativePixelData, |
39504 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
39505 | &_swigt__p_wxNavigationKeyEvent, |
39506 | &_swigt__p_wxNcPaintEvent, | |
39507 | &_swigt__p_wxNotifyEvent, | |
39508 | &_swigt__p_wxObject, | |
b39fe951 | 39509 | &_swigt__p_wxOverlay, |
0085ce49 RD |
39510 | &_swigt__p_wxPCXHandler, |
39511 | &_swigt__p_wxPNGHandler, | |
39512 | &_swigt__p_wxPNMHandler, | |
39513 | &_swigt__p_wxPaintDC, | |
39514 | &_swigt__p_wxPaintEvent, | |
39515 | &_swigt__p_wxPalette, | |
39516 | &_swigt__p_wxPaletteChangedEvent, | |
39517 | &_swigt__p_wxPaperSize, | |
39518 | &_swigt__p_wxPen, | |
39519 | &_swigt__p_wxPenList, | |
fc46b7f3 | 39520 | &_swigt__p_wxPixelDataBase, |
0085ce49 | 39521 | &_swigt__p_wxPoint, |
72ef6efb | 39522 | &_swigt__p_wxPoint2D, |
70d7cb34 | 39523 | &_swigt__p_wxPoint2DDouble, |
0085ce49 RD |
39524 | &_swigt__p_wxPostScriptDC, |
39525 | &_swigt__p_wxPrintData, | |
39526 | &_swigt__p_wxPrinterDC, | |
27e45892 | 39527 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
39528 | &_swigt__p_wxPyApp, |
39529 | &_swigt__p_wxPyCommandEvent, | |
39530 | &_swigt__p_wxPyEvent, | |
39531 | &_swigt__p_wxPyFontEnumerator, | |
39532 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 39533 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
39534 | &_swigt__p_wxPySizer, |
39535 | &_swigt__p_wxPyValidator, | |
39536 | &_swigt__p_wxQueryNewPaletteEvent, | |
39537 | &_swigt__p_wxRect, | |
70d7cb34 | 39538 | &_swigt__p_wxRect2DDouble, |
0085ce49 RD |
39539 | &_swigt__p_wxRegion, |
39540 | &_swigt__p_wxRegionIterator, | |
39541 | &_swigt__p_wxRendererNative, | |
39542 | &_swigt__p_wxRendererVersion, | |
39543 | &_swigt__p_wxScreenDC, | |
39544 | &_swigt__p_wxScrollEvent, | |
39545 | &_swigt__p_wxScrollWinEvent, | |
39546 | &_swigt__p_wxSetCursorEvent, | |
39547 | &_swigt__p_wxShowEvent, | |
39548 | &_swigt__p_wxSize, | |
39549 | &_swigt__p_wxSizeEvent, | |
39550 | &_swigt__p_wxSizer, | |
39551 | &_swigt__p_wxSizerItem, | |
39552 | &_swigt__p_wxSplitterRenderParams, | |
39553 | &_swigt__p_wxStaticBoxSizer, | |
39554 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 39555 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
39556 | &_swigt__p_wxString, |
39557 | &_swigt__p_wxSysColourChangedEvent, | |
39558 | &_swigt__p_wxTIFFHandler, | |
39559 | &_swigt__p_wxUpdateUIEvent, | |
39560 | &_swigt__p_wxValidator, | |
39561 | &_swigt__p_wxWindow, | |
39562 | &_swigt__p_wxWindowCreateEvent, | |
39563 | &_swigt__p_wxWindowDC, | |
39564 | &_swigt__p_wxWindowDestroyEvent, | |
39565 | &_swigt__p_wxXPMHandler, | |
39566 | }; | |
39567 | ||
fc46b7f3 | 39568 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39569 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
39570 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
39571 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
39572 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
39573 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
39574 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
39575 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 39576 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
39577 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
39578 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 39579 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39580 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
39581 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
39582 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
39583 | static swig_cast_info _swigc__p_wxBufferedDC[] = { {&_swigt__p_wxBufferedDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0},{0, 0, 0, 0}}; | |
39584 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 39585 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
39586 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}}; |
39587 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
39588 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
39589 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
39590 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 39591 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39592 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
39593 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 39594 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39595 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
39596 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
39597 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
39598 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
39599 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
39600 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
39601 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
39602 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
39603 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 39604 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 39605 | static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39606 | static swig_cast_info _swigc__p_wxGDIObject[] = { {&_swigt__p_wxIcon, _p_wxIconTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxGDIObject, 0, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxGDIObject, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 39607 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 39608 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39609 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
39610 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
39611 | static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 39612 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39613 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
39614 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 39615 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39616 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
39617 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
39618 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
39619 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
39620 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
39621 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 39622 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39623 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 39624 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39625 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
39626 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
39627 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
39628 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
39629 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
39630 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
39631 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 39632 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39633 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 39634 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39635 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
39636 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
39637 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39638 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39639 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39640 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39641 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39642 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
39643 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39644 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39645 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39646 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 39647 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39648 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
39649 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39650 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39651 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39652 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39653 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39654 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
39655 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39656 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
39657 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
39658 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39659 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39660 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39661 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
39662 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39663 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39664 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39665 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39666 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39667 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39668 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39669 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39670 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 39671 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
39672 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
39673 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39674 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39675 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39676 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39677 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 39678 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 39679 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 39680 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 39681 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39682 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
39683 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
39684 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 39685 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39686 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
39687 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
39688 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39689 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39690 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39691 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39692 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
39693 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
39694 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39695 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39696 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
39697 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39698 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39699 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39700 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39701 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39702 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39703 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39704 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
39705 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
39706 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
39707 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
70d7cb34 | 39708 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_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_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_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_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_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_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; |
b39fe951 | 39709 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39710 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
39711 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
39712 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
39713 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
39714 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 39715 | static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39716 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 39717 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 39718 | static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39719 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
39720 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
39721 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 39722 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39723 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 39724 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 39725 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 | 39726 | static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39727 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
39728 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
39729 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
39730 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
39731 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
39732 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
39733 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 39734 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39735 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
39736 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 39737 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
39738 | |
39739 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 39740 | _swigc__p_buffer, |
0085ce49 RD |
39741 | _swigc__p_char, |
39742 | _swigc__p_double, | |
39743 | _swigc__p_form_ops_t, | |
39744 | _swigc__p_int, | |
39745 | _swigc__p_unsigned_char, | |
39746 | _swigc__p_unsigned_int, | |
39747 | _swigc__p_unsigned_long, | |
0a27f394 | 39748 | _swigc__p_void, |
0085ce49 RD |
39749 | _swigc__p_wxANIHandler, |
39750 | _swigc__p_wxAcceleratorTable, | |
39751 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
39752 | _swigc__p_wxAlphaPixelData, |
39753 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 39754 | _swigc__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
39755 | _swigc__p_wxBMPHandler, |
39756 | _swigc__p_wxBitmap, | |
39757 | _swigc__p_wxBoxSizer, | |
39758 | _swigc__p_wxBrush, | |
39759 | _swigc__p_wxBrushList, | |
39760 | _swigc__p_wxBufferedDC, | |
39761 | _swigc__p_wxBufferedPaintDC, | |
39762 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 39763 | _swigc__p_wxChar, |
0085ce49 RD |
39764 | _swigc__p_wxChildFocusEvent, |
39765 | _swigc__p_wxClientDC, | |
2131d850 | 39766 | _swigc__p_wxClipboardTextEvent, |
0085ce49 | 39767 | _swigc__p_wxCloseEvent, |
72ef6efb | 39768 | _swigc__p_wxColor, |
0085ce49 RD |
39769 | _swigc__p_wxColour, |
39770 | _swigc__p_wxColourDatabase, | |
39771 | _swigc__p_wxCommandEvent, | |
39772 | _swigc__p_wxContextMenuEvent, | |
39773 | _swigc__p_wxControl, | |
39774 | _swigc__p_wxControlWithItems, | |
39775 | _swigc__p_wxCursor, | |
39776 | _swigc__p_wxDC, | |
70d7cb34 RD |
39777 | _swigc__p_wxDCBrushChanger, |
39778 | _swigc__p_wxDCClipper, | |
b39fe951 | 39779 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
39780 | _swigc__p_wxDCPenChanger, |
39781 | _swigc__p_wxDCTextColourChanger, | |
0085ce49 RD |
39782 | _swigc__p_wxDash, |
39783 | _swigc__p_wxDateEvent, | |
39784 | _swigc__p_wxDisplayChangedEvent, | |
39785 | _swigc__p_wxDropFilesEvent, | |
39786 | _swigc__p_wxDuplexMode, | |
39787 | _swigc__p_wxEffects, | |
39788 | _swigc__p_wxEncodingConverter, | |
39789 | _swigc__p_wxEraseEvent, | |
39790 | _swigc__p_wxEvent, | |
39791 | _swigc__p_wxEvtHandler, | |
39792 | _swigc__p_wxFSFile, | |
39793 | _swigc__p_wxFileSystem, | |
39794 | _swigc__p_wxFlexGridSizer, | |
39795 | _swigc__p_wxFocusEvent, | |
39796 | _swigc__p_wxFont, | |
39797 | _swigc__p_wxFontList, | |
39798 | _swigc__p_wxFontMapper, | |
39799 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 39800 | _swigc__p_wxGCDC, |
50efceee | 39801 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
39802 | _swigc__p_wxGDIObject, |
39803 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 39804 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 39805 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
39806 | _swigc__p_wxGraphicsFont, |
39807 | _swigc__p_wxGraphicsMatrix, | |
39808 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 39809 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
39810 | _swigc__p_wxGraphicsPen, |
39811 | _swigc__p_wxGraphicsRenderer, | |
0085ce49 RD |
39812 | _swigc__p_wxGridBagSizer, |
39813 | _swigc__p_wxGridSizer, | |
33d6fd3b | 39814 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
39815 | _swigc__p_wxICOHandler, |
39816 | _swigc__p_wxIcon, | |
39817 | _swigc__p_wxIconBundle, | |
39818 | _swigc__p_wxIconLocation, | |
39819 | _swigc__p_wxIconizeEvent, | |
39820 | _swigc__p_wxIdleEvent, | |
39821 | _swigc__p_wxImage, | |
39822 | _swigc__p_wxImageHandler, | |
39823 | _swigc__p_wxImageList, | |
39824 | _swigc__p_wxIndividualLayoutConstraint, | |
39825 | _swigc__p_wxInitDialogEvent, | |
39826 | _swigc__p_wxJPEGHandler, | |
39827 | _swigc__p_wxKeyEvent, | |
39828 | _swigc__p_wxLanguageInfo, | |
39829 | _swigc__p_wxLayoutConstraints, | |
39830 | _swigc__p_wxLocale, | |
39831 | _swigc__p_wxMask, | |
39832 | _swigc__p_wxMaximizeEvent, | |
39833 | _swigc__p_wxMemoryDC, | |
39834 | _swigc__p_wxMenu, | |
39835 | _swigc__p_wxMenuBar, | |
39836 | _swigc__p_wxMenuEvent, | |
39837 | _swigc__p_wxMenuItem, | |
39838 | _swigc__p_wxMetaFile, | |
39839 | _swigc__p_wxMetaFileDC, | |
39840 | _swigc__p_wxMirrorDC, | |
39841 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 39842 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
39843 | _swigc__p_wxMouseEvent, |
39844 | _swigc__p_wxMoveEvent, | |
39845 | _swigc__p_wxNativeEncodingInfo, | |
39846 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
39847 | _swigc__p_wxNativePixelData, |
39848 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
39849 | _swigc__p_wxNavigationKeyEvent, |
39850 | _swigc__p_wxNcPaintEvent, | |
39851 | _swigc__p_wxNotifyEvent, | |
39852 | _swigc__p_wxObject, | |
b39fe951 | 39853 | _swigc__p_wxOverlay, |
0085ce49 RD |
39854 | _swigc__p_wxPCXHandler, |
39855 | _swigc__p_wxPNGHandler, | |
39856 | _swigc__p_wxPNMHandler, | |
39857 | _swigc__p_wxPaintDC, | |
39858 | _swigc__p_wxPaintEvent, | |
39859 | _swigc__p_wxPalette, | |
39860 | _swigc__p_wxPaletteChangedEvent, | |
39861 | _swigc__p_wxPaperSize, | |
39862 | _swigc__p_wxPen, | |
39863 | _swigc__p_wxPenList, | |
fc46b7f3 | 39864 | _swigc__p_wxPixelDataBase, |
0085ce49 | 39865 | _swigc__p_wxPoint, |
72ef6efb | 39866 | _swigc__p_wxPoint2D, |
70d7cb34 | 39867 | _swigc__p_wxPoint2DDouble, |
0085ce49 RD |
39868 | _swigc__p_wxPostScriptDC, |
39869 | _swigc__p_wxPrintData, | |
39870 | _swigc__p_wxPrinterDC, | |
27e45892 | 39871 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
39872 | _swigc__p_wxPyApp, |
39873 | _swigc__p_wxPyCommandEvent, | |
39874 | _swigc__p_wxPyEvent, | |
39875 | _swigc__p_wxPyFontEnumerator, | |
39876 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 39877 | _swigc__p_wxPyLocale, |
0085ce49 RD |
39878 | _swigc__p_wxPySizer, |
39879 | _swigc__p_wxPyValidator, | |
39880 | _swigc__p_wxQueryNewPaletteEvent, | |
39881 | _swigc__p_wxRect, | |
70d7cb34 | 39882 | _swigc__p_wxRect2DDouble, |
0085ce49 RD |
39883 | _swigc__p_wxRegion, |
39884 | _swigc__p_wxRegionIterator, | |
39885 | _swigc__p_wxRendererNative, | |
39886 | _swigc__p_wxRendererVersion, | |
39887 | _swigc__p_wxScreenDC, | |
39888 | _swigc__p_wxScrollEvent, | |
39889 | _swigc__p_wxScrollWinEvent, | |
39890 | _swigc__p_wxSetCursorEvent, | |
39891 | _swigc__p_wxShowEvent, | |
39892 | _swigc__p_wxSize, | |
39893 | _swigc__p_wxSizeEvent, | |
39894 | _swigc__p_wxSizer, | |
39895 | _swigc__p_wxSizerItem, | |
39896 | _swigc__p_wxSplitterRenderParams, | |
39897 | _swigc__p_wxStaticBoxSizer, | |
39898 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 39899 | _swigc__p_wxStockGDI, |
0085ce49 RD |
39900 | _swigc__p_wxString, |
39901 | _swigc__p_wxSysColourChangedEvent, | |
39902 | _swigc__p_wxTIFFHandler, | |
39903 | _swigc__p_wxUpdateUIEvent, | |
39904 | _swigc__p_wxValidator, | |
39905 | _swigc__p_wxWindow, | |
39906 | _swigc__p_wxWindowCreateEvent, | |
39907 | _swigc__p_wxWindowDC, | |
39908 | _swigc__p_wxWindowDestroyEvent, | |
39909 | _swigc__p_wxXPMHandler, | |
39910 | }; | |
39911 | ||
39912 | ||
39913 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
39914 | ||
39915 | static swig_const_info swig_const_table[] = { | |
39916 | {0, 0, 0, 0.0, 0, 0}}; | |
39917 | ||
39918 | #ifdef __cplusplus | |
39919 | } | |
39920 | #endif | |
39921 | /* ----------------------------------------------------------------------------- | |
39922 | * Type initialization: | |
39923 | * This problem is tough by the requirement that no dynamic | |
39924 | * memory is used. Also, since swig_type_info structures store pointers to | |
39925 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
39926 | * to swig_type_info structures, we need some lookup code at initialization. | |
39927 | * The idea is that swig generates all the structures that are needed. | |
39928 | * The runtime then collects these partially filled structures. | |
39929 | * The SWIG_InitializeModule function takes these initial arrays out of | |
39930 | * swig_module, and does all the lookup, filling in the swig_module.types | |
39931 | * array with the correct data and linking the correct swig_cast_info | |
39932 | * structures together. | |
39933 | * | |
39934 | * The generated swig_type_info structures are assigned staticly to an initial | |
39935 | * array. We just loop though that array, and handle each type individually. | |
39936 | * First we lookup if this type has been already loaded, and if so, use the | |
39937 | * loaded structure instead of the generated one. Then we have to fill in the | |
39938 | * cast linked list. The cast data is initially stored in something like a | |
39939 | * two-dimensional array. Each row corresponds to a type (there are the same | |
39940 | * number of rows as there are in the swig_type_initial array). Each entry in | |
39941 | * a column is one of the swig_cast_info structures for that type. | |
39942 | * The cast_initial array is actually an array of arrays, because each row has | |
39943 | * a variable number of columns. So to actually build the cast linked list, | |
39944 | * we find the array of casts associated with the type, and loop through it | |
39945 | * adding the casts to the list. The one last trick we need to do is making | |
39946 | * sure the type pointer in the swig_cast_info struct is correct. | |
39947 | * | |
39948 | * First off, we lookup the cast->type name to see if it is already loaded. | |
39949 | * There are three cases to handle: | |
39950 | * 1) If the cast->type has already been loaded AND the type we are adding | |
39951 | * casting info to has not been loaded (it is in this module), THEN we | |
39952 | * replace the cast->type pointer with the type pointer that has already | |
39953 | * been loaded. | |
39954 | * 2) If BOTH types (the one we are adding casting info to, and the | |
39955 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
39956 | * the previous module so we just ignore it. | |
39957 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
39958 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
39959 | * be correct. | |
39960 | * ----------------------------------------------------------------------------- */ | |
39961 | ||
39962 | #ifdef __cplusplus | |
39963 | extern "C" { | |
39964 | #if 0 | |
39965 | } /* c-mode */ | |
39966 | #endif | |
39967 | #endif | |
39968 | ||
39969 | #if 0 | |
39970 | #define SWIGRUNTIME_DEBUG | |
39971 | #endif | |
39972 | ||
39973 | SWIGRUNTIME void | |
39974 | SWIG_InitializeModule(void *clientdata) { | |
39975 | size_t i; | |
39976 | swig_module_info *module_head; | |
39977 | static int init_run = 0; | |
39978 | ||
39979 | clientdata = clientdata; | |
39980 | ||
39981 | if (init_run) return; | |
39982 | init_run = 1; | |
39983 | ||
39984 | /* Initialize the swig_module */ | |
39985 | swig_module.type_initial = swig_type_initial; | |
39986 | swig_module.cast_initial = swig_cast_initial; | |
39987 | ||
39988 | /* Try and load any already created modules */ | |
39989 | module_head = SWIG_GetModule(clientdata); | |
39990 | if (module_head) { | |
39991 | swig_module.next = module_head->next; | |
39992 | module_head->next = &swig_module; | |
39993 | } else { | |
39994 | /* This is the first module loaded */ | |
39995 | swig_module.next = &swig_module; | |
39996 | SWIG_SetModule(clientdata, &swig_module); | |
39997 | } | |
39998 | ||
39999 | /* Now work on filling in swig_module.types */ | |
40000 | #ifdef SWIGRUNTIME_DEBUG | |
40001 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
40002 | #endif | |
40003 | for (i = 0; i < swig_module.size; ++i) { | |
40004 | swig_type_info *type = 0; | |
40005 | swig_type_info *ret; | |
40006 | swig_cast_info *cast; | |
40007 | ||
40008 | #ifdef SWIGRUNTIME_DEBUG | |
40009 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40010 | #endif | |
40011 | ||
40012 | /* if there is another module already loaded */ | |
40013 | if (swig_module.next != &swig_module) { | |
40014 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 40015 | } |
0085ce49 RD |
40016 | if (type) { |
40017 | /* Overwrite clientdata field */ | |
40018 | #ifdef SWIGRUNTIME_DEBUG | |
40019 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
40020 | #endif | |
40021 | if (swig_module.type_initial[i]->clientdata) { | |
40022 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
40023 | #ifdef SWIGRUNTIME_DEBUG | |
40024 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
40025 | #endif | |
40026 | } | |
40027 | } else { | |
40028 | type = swig_module.type_initial[i]; | |
8d38bd1d | 40029 | } |
0085ce49 RD |
40030 | |
40031 | /* Insert casting types */ | |
40032 | cast = swig_module.cast_initial[i]; | |
40033 | while (cast->type) { | |
40034 | /* Don't need to add information already in the list */ | |
40035 | ret = 0; | |
40036 | #ifdef SWIGRUNTIME_DEBUG | |
40037 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
40038 | #endif | |
40039 | if (swig_module.next != &swig_module) { | |
40040 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
40041 | #ifdef SWIGRUNTIME_DEBUG | |
40042 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
40043 | #endif | |
40044 | } | |
40045 | if (ret) { | |
40046 | if (type == swig_module.type_initial[i]) { | |
40047 | #ifdef SWIGRUNTIME_DEBUG | |
40048 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
40049 | #endif | |
40050 | cast->type = ret; | |
40051 | ret = 0; | |
40052 | } else { | |
40053 | /* Check for casting already in the list */ | |
40054 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
40055 | #ifdef SWIGRUNTIME_DEBUG | |
40056 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
40057 | #endif | |
40058 | if (!ocast) ret = 0; | |
40059 | } | |
40060 | } | |
40061 | ||
40062 | if (!ret) { | |
40063 | #ifdef SWIGRUNTIME_DEBUG | |
40064 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
40065 | #endif | |
40066 | if (type->cast) { | |
40067 | type->cast->prev = cast; | |
40068 | cast->next = type->cast; | |
40069 | } | |
40070 | type->cast = cast; | |
40071 | } | |
40072 | cast++; | |
8d38bd1d | 40073 | } |
0085ce49 RD |
40074 | /* Set entry in modules->types array equal to the type */ |
40075 | swig_module.types[i] = type; | |
40076 | } | |
40077 | swig_module.types[i] = 0; | |
40078 | ||
40079 | #ifdef SWIGRUNTIME_DEBUG | |
40080 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40081 | for (i = 0; i < swig_module.size; ++i) { | |
40082 | int j = 0; | |
40083 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
40084 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40085 | while (cast->type) { | |
40086 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
40087 | cast++; | |
40088 | ++j; | |
40089 | } | |
40090 | printf("---- Total casts: %d\n",j); | |
40091 | } | |
40092 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40093 | #endif | |
40094 | } | |
40095 | ||
40096 | /* This function will propagate the clientdata field of type to | |
40097 | * any new swig_type_info structures that have been added into the list | |
40098 | * of equivalent types. It is like calling | |
40099 | * SWIG_TypeClientData(type, clientdata) a second time. | |
40100 | */ | |
40101 | SWIGRUNTIME void | |
40102 | SWIG_PropagateClientData(void) { | |
40103 | size_t i; | |
40104 | swig_cast_info *equiv; | |
40105 | static int init_run = 0; | |
40106 | ||
40107 | if (init_run) return; | |
40108 | init_run = 1; | |
40109 | ||
40110 | for (i = 0; i < swig_module.size; i++) { | |
40111 | if (swig_module.types[i]->clientdata) { | |
40112 | equiv = swig_module.types[i]->cast; | |
40113 | while (equiv) { | |
40114 | if (!equiv->converter) { | |
40115 | if (equiv->type && !equiv->type->clientdata) | |
40116 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
40117 | } | |
40118 | equiv = equiv->next; | |
40119 | } | |
8d38bd1d | 40120 | } |
0085ce49 RD |
40121 | } |
40122 | } | |
40123 | ||
40124 | #ifdef __cplusplus | |
40125 | #if 0 | |
40126 | { | |
40127 | /* c-mode */ | |
40128 | #endif | |
40129 | } | |
40130 | #endif | |
40131 | ||
40132 | ||
40133 | ||
40134 | #ifdef __cplusplus | |
40135 | extern "C" { | |
40136 | #endif | |
40137 | ||
40138 | /* Python-specific SWIG API */ | |
40139 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
40140 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
40141 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
40142 | ||
40143 | /* ----------------------------------------------------------------------------- | |
40144 | * global variable support code. | |
40145 | * ----------------------------------------------------------------------------- */ | |
40146 | ||
40147 | typedef struct swig_globalvar { | |
40148 | char *name; /* Name of global variable */ | |
40149 | PyObject *(*get_attr)(void); /* Return the current value */ | |
40150 | int (*set_attr)(PyObject *); /* Set the value */ | |
40151 | struct swig_globalvar *next; | |
40152 | } swig_globalvar; | |
40153 | ||
40154 | typedef struct swig_varlinkobject { | |
40155 | PyObject_HEAD | |
40156 | swig_globalvar *vars; | |
40157 | } swig_varlinkobject; | |
40158 | ||
40159 | SWIGINTERN PyObject * | |
40160 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
40161 | return PyString_FromString("<Swig global variables>"); | |
40162 | } | |
40163 | ||
40164 | SWIGINTERN PyObject * | |
40165 | swig_varlink_str(swig_varlinkobject *v) { | |
40166 | PyObject *str = PyString_FromString("("); | |
40167 | swig_globalvar *var; | |
40168 | for (var = v->vars; var; var=var->next) { | |
40169 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
40170 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
40171 | } | |
40172 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
40173 | return str; | |
40174 | } | |
40175 | ||
40176 | SWIGINTERN int | |
40177 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
40178 | PyObject *str = swig_varlink_str(v); | |
40179 | fprintf(fp,"Swig global variables "); | |
40180 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
40181 | Py_DECREF(str); | |
40182 | return 0; | |
40183 | } | |
40184 | ||
40185 | SWIGINTERN void | |
40186 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
40187 | swig_globalvar *var = v->vars; | |
40188 | while (var) { | |
40189 | swig_globalvar *n = var->next; | |
40190 | free(var->name); | |
40191 | free(var); | |
40192 | var = n; | |
8d38bd1d | 40193 | } |
0085ce49 RD |
40194 | } |
40195 | ||
40196 | SWIGINTERN PyObject * | |
40197 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
40198 | PyObject *res = NULL; | |
40199 | swig_globalvar *var = v->vars; | |
40200 | while (var) { | |
40201 | if (strcmp(var->name,n) == 0) { | |
40202 | res = (*var->get_attr)(); | |
40203 | break; | |
40204 | } | |
40205 | var = var->next; | |
8d38bd1d | 40206 | } |
0085ce49 RD |
40207 | if (res == NULL && !PyErr_Occurred()) { |
40208 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40209 | } |
0085ce49 RD |
40210 | return res; |
40211 | } | |
40212 | ||
40213 | SWIGINTERN int | |
40214 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
40215 | int res = 1; | |
40216 | swig_globalvar *var = v->vars; | |
40217 | while (var) { | |
40218 | if (strcmp(var->name,n) == 0) { | |
40219 | res = (*var->set_attr)(p); | |
40220 | break; | |
40221 | } | |
40222 | var = var->next; | |
8d38bd1d | 40223 | } |
0085ce49 RD |
40224 | if (res == 1 && !PyErr_Occurred()) { |
40225 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 40226 | } |
0085ce49 RD |
40227 | return res; |
40228 | } | |
40229 | ||
40230 | SWIGINTERN PyTypeObject* | |
40231 | swig_varlink_type(void) { | |
40232 | static char varlink__doc__[] = "Swig var link object"; | |
40233 | static PyTypeObject varlink_type; | |
40234 | static int type_init = 0; | |
40235 | if (!type_init) { | |
40236 | const PyTypeObject tmp | |
40237 | = { | |
40238 | PyObject_HEAD_INIT(NULL) | |
40239 | 0, /* Number of items in variable part (ob_size) */ | |
40240 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
40241 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
40242 | 0, /* Itemsize (tp_itemsize) */ | |
40243 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
40244 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
40245 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
40246 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
40247 | 0, /* tp_compare */ | |
40248 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
40249 | 0, /* tp_as_number */ | |
40250 | 0, /* tp_as_sequence */ | |
40251 | 0, /* tp_as_mapping */ | |
40252 | 0, /* tp_hash */ | |
40253 | 0, /* tp_call */ | |
40254 | (reprfunc)swig_varlink_str, /* tp_str */ | |
40255 | 0, /* tp_getattro */ | |
40256 | 0, /* tp_setattro */ | |
40257 | 0, /* tp_as_buffer */ | |
40258 | 0, /* tp_flags */ | |
40259 | varlink__doc__, /* tp_doc */ | |
40260 | 0, /* tp_traverse */ | |
40261 | 0, /* tp_clear */ | |
40262 | 0, /* tp_richcompare */ | |
40263 | 0, /* tp_weaklistoffset */ | |
40264 | #if PY_VERSION_HEX >= 0x02020000 | |
40265 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
40266 | #endif | |
40267 | #if PY_VERSION_HEX >= 0x02030000 | |
40268 | 0, /* tp_del */ | |
40269 | #endif | |
40270 | #ifdef COUNT_ALLOCS | |
40271 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
40272 | #endif | |
40273 | }; | |
40274 | varlink_type = tmp; | |
40275 | varlink_type.ob_type = &PyType_Type; | |
40276 | type_init = 1; | |
8d38bd1d | 40277 | } |
0085ce49 RD |
40278 | return &varlink_type; |
40279 | } | |
40280 | ||
40281 | /* Create a variable linking object for use later */ | |
40282 | SWIGINTERN PyObject * | |
40283 | SWIG_Python_newvarlink(void) { | |
40284 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
40285 | if (result) { | |
40286 | result->vars = 0; | |
40287 | } | |
40288 | return ((PyObject*) result); | |
40289 | } | |
40290 | ||
40291 | SWIGINTERN void | |
40292 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
40293 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
40294 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
40295 | if (gv) { | |
40296 | size_t size = strlen(name)+1; | |
40297 | gv->name = (char *)malloc(size); | |
40298 | if (gv->name) { | |
40299 | strncpy(gv->name,name,size); | |
40300 | gv->get_attr = get_attr; | |
40301 | gv->set_attr = set_attr; | |
40302 | gv->next = v->vars; | |
40303 | } | |
8d38bd1d | 40304 | } |
0085ce49 RD |
40305 | v->vars = gv; |
40306 | } | |
40307 | ||
40308 | SWIGINTERN PyObject * | |
40309 | SWIG_globals() { | |
40310 | static PyObject *_SWIG_globals = 0; | |
40311 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
40312 | return _SWIG_globals; | |
40313 | } | |
40314 | ||
40315 | /* ----------------------------------------------------------------------------- | |
40316 | * constants/methods manipulation | |
40317 | * ----------------------------------------------------------------------------- */ | |
40318 | ||
40319 | /* Install Constants */ | |
40320 | SWIGINTERN void | |
40321 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
40322 | PyObject *obj = 0; | |
40323 | size_t i; | |
40324 | for (i = 0; constants[i].type; ++i) { | |
40325 | switch(constants[i].type) { | |
40326 | case SWIG_PY_POINTER: | |
40327 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
40328 | break; | |
40329 | case SWIG_PY_BINARY: | |
40330 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
40331 | break; | |
40332 | default: | |
40333 | obj = 0; | |
40334 | break; | |
40335 | } | |
40336 | if (obj) { | |
40337 | PyDict_SetItemString(d, constants[i].name, obj); | |
40338 | Py_DECREF(obj); | |
40339 | } | |
8d38bd1d | 40340 | } |
0085ce49 RD |
40341 | } |
40342 | ||
40343 | /* -----------------------------------------------------------------------------*/ | |
40344 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40345 | /* -----------------------------------------------------------------------------*/ | |
40346 | ||
40347 | SWIGINTERN void | |
40348 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
40349 | swig_const_info *const_table, | |
40350 | swig_type_info **types, | |
40351 | swig_type_info **types_initial) { | |
40352 | size_t i; | |
40353 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 40354 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
40355 | if (c && (c = strstr(c, "swig_ptr: "))) { |
40356 | int j; | |
40357 | swig_const_info *ci = 0; | |
453fb36b | 40358 | const char *name = c + 10; |
0085ce49 RD |
40359 | for (j = 0; const_table[j].type; ++j) { |
40360 | if (strncmp(const_table[j].name, name, | |
40361 | strlen(const_table[j].name)) == 0) { | |
40362 | ci = &(const_table[j]); | |
40363 | break; | |
40364 | } | |
40365 | } | |
40366 | if (ci) { | |
40367 | size_t shift = (ci->ptype) - types; | |
40368 | swig_type_info *ty = types_initial[shift]; | |
40369 | size_t ldoc = (c - methods[i].ml_doc); | |
40370 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
40371 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
40372 | if (ndoc) { | |
40373 | char *buff = ndoc; | |
40374 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
40375 | if (ptr) { | |
40376 | strncpy(buff, methods[i].ml_doc, ldoc); | |
40377 | buff += ldoc; | |
40378 | strncpy(buff, "swig_ptr: ", 10); | |
40379 | buff += 10; | |
40380 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
40381 | methods[i].ml_doc = ndoc; | |
40382 | } | |
40383 | } | |
40384 | } | |
40385 | } | |
8d38bd1d | 40386 | } |
0085ce49 RD |
40387 | } |
40388 | ||
40389 | #ifdef __cplusplus | |
40390 | } | |
40391 | #endif | |
40392 | ||
40393 | /* -----------------------------------------------------------------------------* | |
40394 | * Partial Init method | |
40395 | * -----------------------------------------------------------------------------*/ | |
40396 | ||
40397 | #ifdef __cplusplus | |
40398 | extern "C" | |
40399 | #endif | |
40400 | SWIGEXPORT void SWIG_init(void) { | |
40401 | PyObject *m, *d; | |
40402 | ||
40403 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
40404 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
40405 | ||
40406 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40407 | d = PyModule_GetDict(m); | |
40408 | ||
40409 | SWIG_InitializeModule(0); | |
40410 | SWIG_InstallConstants(d,swig_const_table); | |
40411 | ||
40412 | ||
01f6b6d3 RD |
40413 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
40414 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
40415 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
40416 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
40417 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
40418 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
40419 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
40420 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
40421 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
40422 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
40423 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
40424 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
40425 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
40426 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
40427 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
40428 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
40429 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
40430 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
40431 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
40432 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
40433 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
40434 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
40435 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
40436 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
40437 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
40438 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
40439 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
40440 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
40441 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
40442 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
40443 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
40444 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
40445 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
40446 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
40447 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
40448 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
40449 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
40450 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
40451 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
40452 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
40453 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
40454 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
40455 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
40456 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
40457 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
40458 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
40459 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
40460 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
40461 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
40462 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
40463 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
40464 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
40465 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
40466 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
40467 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
40468 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
40469 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
40470 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
40471 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
40472 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
40473 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
40474 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
40475 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
40476 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
40477 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
40478 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
40479 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
40480 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
40481 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
40482 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
40483 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
40484 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
40485 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
40486 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
40487 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
40488 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
40489 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
40490 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
40491 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
40492 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
40493 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
40494 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
40495 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
40496 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
40497 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
40498 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
40499 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
40500 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
40501 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
40502 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
40503 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
40504 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
40505 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
40506 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
40507 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
40508 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
40509 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
40510 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
40511 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
40512 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
40513 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
40514 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
40515 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
40516 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
40517 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
40518 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
40519 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
40520 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
40521 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
40522 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
40523 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
40524 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
40525 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
40526 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
40527 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
40528 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
40529 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
40530 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
40531 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
40532 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
40533 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
40534 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
40535 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
40536 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
40537 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
40538 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
40539 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
40540 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
40541 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
40542 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
40543 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
40544 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
40545 | ||
40546 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
40547 | ||
40548 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
40549 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
40550 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
40551 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
40552 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
40553 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
40554 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
40555 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
40556 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
40557 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
40558 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
40559 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
40560 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
40561 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
40562 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
40563 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
40564 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
40565 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
40566 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
40567 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
40568 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
40569 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
40570 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
40571 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
40572 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
40573 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
40574 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
40575 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
40576 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
40577 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
40578 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
40579 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
40580 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
40581 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
40582 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
40583 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
40584 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
40585 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
40586 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
40587 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
40588 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
40589 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
40590 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
40591 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
40592 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
40593 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
40594 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
40595 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
40596 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
40597 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
40598 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
40599 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
40600 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
40601 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
40602 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
40603 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
40604 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
40605 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
40606 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
40607 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
40608 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
40609 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
40610 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
40611 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
40612 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
40613 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
40614 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
40615 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
40616 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
40617 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
40618 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
40619 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
40620 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
40621 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
40622 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
40623 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
40624 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
40625 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
40626 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
40627 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
40628 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
40629 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
40630 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
40631 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
40632 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
40633 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
40634 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
40635 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
40636 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
40637 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
40638 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
40639 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
40640 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
40641 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
40642 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
40643 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
40644 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
40645 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
40646 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
40647 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
40648 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
40649 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
40650 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
40651 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
40652 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
40653 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
40654 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
40655 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
40656 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
40657 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
40658 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
40659 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
40660 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
40661 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
40662 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
40663 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
40664 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
40665 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
40666 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
40667 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
40668 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
40669 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
40670 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
40671 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
40672 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
40673 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
40674 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
40675 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
40676 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
40677 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
40678 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
40679 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
40680 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
40681 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
40682 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
40683 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
40684 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
40685 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
40686 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
40687 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
40688 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
40689 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
40690 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
40691 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
40692 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
40693 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
40694 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
40695 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
40696 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
40697 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
40698 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
40699 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
40700 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
40701 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
40702 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
40703 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
40704 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
40705 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
40706 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
40707 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
40708 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
40709 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
40710 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
40711 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
40712 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
40713 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
40714 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
40715 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
40716 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
40717 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
40718 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
40719 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
40720 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
40721 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
40722 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
40723 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
40724 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
40725 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
40726 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
40727 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
40728 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
40729 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
40730 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
40731 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
40732 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
40733 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
40734 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
40735 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
40736 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
40737 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
40738 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
40739 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
40740 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
40741 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
40742 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
40743 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
40744 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
40745 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
40746 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
40747 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
40748 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
40749 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
40750 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
40751 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
40752 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
40753 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
40754 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
40755 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
40756 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
40757 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
40758 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
40759 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
40760 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
40761 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
40762 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
40763 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
40764 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
40765 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
40766 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
40767 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
40768 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
40769 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
40770 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
40771 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
40772 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
40773 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
40774 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
40775 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
40776 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
40777 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
40778 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
40779 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
40780 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
40781 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
40782 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
40783 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
40784 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
40785 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
40786 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
40787 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
40788 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
40789 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
40790 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
40791 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
40792 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
40793 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
40794 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
40795 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
40796 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
40797 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
40798 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
40799 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
40800 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
40801 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
0085ce49 RD |
40802 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
40803 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
40804 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
40805 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
40806 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
40807 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
40808 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
40809 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
40810 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
40811 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
40812 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
40813 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
40814 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
40815 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
40816 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
40817 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
40818 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
40819 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
40820 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
40821 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
40822 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
40823 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
40824 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
40825 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
40826 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
40827 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
40828 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
40829 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
40830 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
40831 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
40832 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
40833 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
40834 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
40835 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
40836 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
40837 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
40838 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
40839 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
40840 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
40841 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
40842 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
40843 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 RD |
40844 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
40845 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
40846 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
40847 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
40848 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
40849 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
40850 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
40851 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
0085ce49 RD |
40852 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
40853 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
40854 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 40855 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
0085ce49 RD |
40856 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
40857 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
40858 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 40859 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
0085ce49 RD |
40860 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
40861 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
40862 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
40863 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
40864 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
40865 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
40866 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
40867 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
40868 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
40869 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
40870 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
40871 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
40872 | ||
40873 | // Work around a chicken/egg problem in drawlist.cpp | |
40874 | wxPyDrawList_SetAPIPtr(); | |
40875 | ||
d14a1e28 RD |
40876 | } |
40877 |